Saturday, June 16, 2018

Dell XPS 9570 with NVIDIA GTX 1050 TI mobile on Fedora 28

This is a note on how to install the drivers for the NVIDIA GeForce GTX 1050 TI mobile on Fedora 28 running on a Dell XPS 9570.

To my dismay, it seems I was unsuccessful in installing these drivers from a variety of sources (rpmfusion or Nvidia) on the UEFI enabled boot system.  I did attempt to sign them as I have signed other drivers in the past, such as vboxdrv and others... I could not get this to work.  So I gave up on UEFI and disabled it in the BIOS - which I don't really enjoy doing.

So, once UEFI was disabled, this is how I installed the drivers on my Fedora 28 installation.  Note that I followed the instructions from: https://ask.fedoraproject.org/en/question/119588/nvidia-driver-doesnt-work-for-dell-inspiron-15-7000-gaming-ee-no-devices-detected-ee-no-screens-foundee/

First I installed the third party repositories from the Gnome Software center:



I enabled the "RPM Fusion for Fedora 28 - Nonfree - NVIDIA Driver" repo.  The next step is important because rather than installing it simply from the Gnome Software app, I preferred having the DNF history so I installed it using these commands:

$ sudo dnf install xorg-x11-drv-nvidia akmod-nvidia xorg-x11-drv-nvidia-cuda
$ sudo dnf update -y


Note that the 2nd command was superfluous in my case as my system was already updated with the latest drivers, kernel-devel libraries and dkms.

Fortunately this worked like a charm.  Kudos to the Fedora team, RPM Fusion, and the community members as well as the OP on the above link for ensuring this all works, and figuring out the 'issues' with the driver installation.

Too bad I couldn't get this to work on UEFI.

Friday, June 15, 2018

Moving a VirtualBox vagrant machine from one PC to Another.

This document outlines steps for moving a single VirtualBox based Vagrant VM from one PC to another.

1) Use the virtualbox manager to export the vagrant machine you are looking at moving.

2) Copy the exported OVF file to the other PC.

3) Tar your vagrant machine's folder:

$ tar -czvf ./VagrantMachine.tar.gz ./VagrantMachine

4) Copy this file to the new PC and to its final destination.

5) Import the OVF file into the VirtualBox manager on the new PC.

6) Extract the tar gzip'ed achive:

$ tar -xzvf ./VagrantMachine.tar.gz

7) Open the new PC's VirtualBox.xml file and find the UUID for the newly imported VM:

$ less ~/.config/VirtualBox/VirtualBox.xml

    <MachineRegistry>
      <MachineEntry uuid="{6ba80e35-75b9-4356-a575-eafc26199534}" src="/home/user/VirtualBox VMs/drupal8_default_1528979867528_60017/sdrupal8_default_1528979867528_60017.vbox"/>
      <MachineEntry uuid="{2a77b436-41c8-47e0-b4e6-1a2ebca0fb83}" src="/home/user/VirtualBox VMs/drupal7_default_1529028747318_87440/sdrupal7_default_1529028747318_87440.vbox"/>
      <MachineEntry uuid="{88bcf6b5-480c-4d37-bc2a-aa48b0e422d0}" src="/home/user/VirtualBox VMs/newVM_default_1527647210758_42083/electorhood_default_1527647210758_42083.vbox"/>
    </MachineRegistry>


8) Replace the UUID in the vagrant machine's ID file:

$ vim ./VagrantMachine/.vagrant/machines/default/virtualbox/id

9) Start the vagrant machine.