Merge pull request #30 from unman/master

Fix link
This commit is contained in:
Hakisho Nukama 2015-08-28 09:34:02 +00:00
commit c285cfa61f
2 changed files with 32 additions and 28 deletions

View File

@ -71,7 +71,7 @@ Customizing Disposable VMs
---------------------------------------------------------
You can change the template used to generate the Disposable VM, and change settings used in the Disposable VM savefile. These changes will be reflected in every new Disposable VM.
Full instructions are [here] (doc/UserDoc/DispVMCustomization/)
Full instructions are [here](/doc/UserDoc/DispVMCustomization/)
Disposable VMs and Local Forensics

View File

@ -5,26 +5,24 @@ permalink: /doc/InstallNvidiaDriver/
redirect_from: /wiki/InstallNvidiaDriver/
---
Nvidia proprietary driver installation
======================================
#Nvidia proprietary driver installation
RpmFusion packages
==================
You can use rpm packages from rpmfusion, or you can build the driver yourself.
There are rpm packages with all necessary software on rpmfusion. The only package you have to compile is kernel module (but there is ready src.rpm package).
##RpmFusion packages
Download packages
-----------------
There are rpm packages with all necessary software on rpmfusion. The only package you have to compile is the kernel module (but there is a ready built src.rpm package).
You will need any Fedora 18 system to download and build packages. You can use Qubes AppVM for it, but it isn't necessary. To download packages from rpmfusion - add this repository to your yum configuration (instructions are on their website). After then download packages using yumdownloader:
###Download packages
You will need any Fedora 18 system to download and build packages. You can use Qubes AppVM for it, but it isn't necessary. To download packages from rpmfusion - add this repository to your yum configuration (instructions are on their website). Then download packages using yumdownloader:
{% highlight trac-wiki %}
yumdownloader --resolve xorg-x11-drv-nvidia
yumdownloader --source nvidia-kmod
{% endhighlight %}
Build kernel package
--------------------
###Build kernel package
You will need at least kernel-devel (matching your Qubes dom0 kernel), rpmbuild tool and kmodtool, and then you can use it to build package:
@ -33,33 +31,37 @@ yum install kernel-devel rpm-build kmodtool
rpmbuild --nodeps -D "kernels `uname -r`" --rebuild nvidia-kmod-260.19.36-1.fc13.3.src.rpm
{% endhighlight %}
In above command replace `uname -r` with kernel version from your Qubes dom0. If everything went right, you have now complete packages with nvidia drivers for Qubes system. Transfer them to dom0 (eg using USB stick) and install (using standard "yum install /path/to/file"). Then you need to disable nouveau (normally it is done by install scripts from nvidia package, but unfortunately it isn't compatible with Qubes...):
In above command replace `uname -r` with kernel version from your Qubes dom0. If everything went right, you have now complete packages with nvidia drivers for Qubes system. Transfer them to dom0 (eg using USB stick) and install (using standard "yum install /path/to/file").
1. Edit /etc/default/grub:
Then you need to disable nouveau (normally it is done by install scripts from nvidia package, but unfortunately it isn't compatible with Qubes...):
Edit /etc/default/grub:
{% highlight trac-wiki %}
GRUB_CMDLINE_LINUX="quiet rhgb nouveau.modeset=0 rd.driver.blacklist=nouveau video=vesa:off"
{% endhighlight %}
2. Regenerate grub configuration:
Regenerate grub configuration:
{% highlight trac-wiki %}
grub2-mkconfig -o /boot/grub2/grub.cfg
{% endhighlight %}
Then reboot.
Reboot.
Manual installation
===================
But this is somehow complicated: First - download it from nvidia.com site. Here "NVIDIA-Linux-x86\_64-260.19.44.run" is used. Copy it to dom0. Every next step is done in dom0.
See [this page](/doc/CopyToDomZero/) for instruction on how to transfer files to Dom0 (where there is normally no networking).
##Manual installation
**WARNING**: Nvidia doesn't sign their files. To make it worse, you are forced to download them over a plaintext connection. This means there are virtually dozens of possibilities for somebody to modify this file and provide you with a malicious/backdoored file. You should realize that installing untrusted files into your Dom0 is really a bad idea. Perhaps it might be a better idea to just get a new laptop with integrated Intel GPU? You have been warned, anyway.
This process is quite complicated: First - download the source from nvidia.com site. Here "NVIDIA-Linux-x86\_64-260.19.44.run" is used. Copy it to dom0. Every next step is done in dom0.
Userspace components
--------------------
See [this page](/doc/CopyToDomZero/) for instructions on how to transfer files to Dom0 (where there is normally no networking).
**WARNING**: Nvidia doesn't sign their files. To make it worse, you are forced to download them over a plaintext connection. This means there are virtually dozens of possibilities for somebody to modify this file and provide you with a malicious/backdoored file. You should realize that installing untrusted files into your Dom0 is a bad idea. Perhaps it might be a better idea to just get a new laptop with integrated Intel GPU? You have been warned.
###Userspace components
Install libraries, Xorg driver, configuration utilities. This can by done by nvidia-installer:
@ -67,8 +69,7 @@ Install libraries, Xorg driver, configuration utilities. This can by done by nvi
./NVIDIA-Linux-x86_64-260.19.44.run --ui=none --no-x-check --keep --no-nouveau-check --no-kernel-module
{% endhighlight %}
Kernel module
-------------
###Kernel module
You will need:
@ -82,7 +83,7 @@ This installation must be done manually, because nvidia-installer refused to ins
- */lib/modules/2.6.34.1-12.xenlinux.qubes.x86\_64/build* symlinked to the above directory
- */usr/src/kernels/2.6.34.1-12.xenlinux.qubes.x86\_64/arch/x64/include/mach-xen* should be present (if not - take it from kernel sources)
If it is not true - correct it manually. To build kernel module, enter *NVIDIA-Linux-x86\_64-260.19.44/kernel* directory and execute:
If all the files are not there correct the errors manually. To build kernel module, enter *NVIDIA-Linux-x86\_64-260.19.44/kernel* directory and execute:
{% highlight trac-wiki %}
make
@ -90,7 +91,9 @@ IGNORE_XEN_PRESENCE=1 CC="gcc -DNV_VMAP_4_PRESENT -DNV_SIGNAL_STRUCT_RLIM" make
mv /lib/modules/2.6.34.1-12.xenlinux.qubes.x86_64/kernel/drivers/video/nvidia.ko /lib/modules/2.6.34.1-12.xenlinux.qubes.x86_64/extra/
{% endhighlight %}
Ignore error while inserting nvidia.ko (at the end of make phase). Now you should disable nouveau:
Ignore any errors while inserting nvidia.ko (at the end of make phase).
###Disable nouveau:
{% highlight trac-wiki %}
cat /etc/modprobe.d/nouveau-disable.conf
@ -100,8 +103,7 @@ install nouveau /bin/true
Add *rdblacklist=nouveau* option to /boot/grub/menu.lst (at the end of line containing *vmlinuz*).
Configure Xorg
--------------
###Configure Xorg
After all, you should configure Xorg to use nvidia driver. You can use *nvidia-xconfig* or do it manually:
@ -111,4 +113,6 @@ mv /root/xorg.conf.new /etc/X11/xorg.conf
# replace Driver in Device section by "nvidia"
{% endhighlight %}
Now you should reboot the system.