mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2025-05-02 06:46:11 -04:00
replaced all github flavored code blocks with fenced kramdown code blocks
This commit is contained in:
parent
df467baf1c
commit
39ef7373fd
58 changed files with 609 additions and 609 deletions
|
@ -17,19 +17,19 @@ There are rpm packages with all necessary software on rpmfusion. The only packag
|
|||
|
||||
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:
|
||||
|
||||
```
|
||||
~~~
|
||||
yumdownloader --resolve xorg-x11-drv-nvidia
|
||||
yumdownloader --source nvidia-kmod
|
||||
```
|
||||
~~~
|
||||
|
||||
###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:
|
||||
|
||||
```
|
||||
~~~
|
||||
yum install kernel-devel rpm-build kmodtool
|
||||
rpmbuild --nodeps -D "kernels `uname -r`" --rebuild nvidia-kmod-260.19.36-1.fc13.3.src.rpm
|
||||
```
|
||||
~~~
|
||||
|
||||
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").
|
||||
|
||||
|
@ -37,15 +37,15 @@ Then you need to disable nouveau (normally it is done by install scripts from nv
|
|||
|
||||
Edit /etc/default/grub:
|
||||
|
||||
```
|
||||
~~~
|
||||
GRUB_CMDLINE_LINUX="quiet rhgb nouveau.modeset=0 rd.driver.blacklist=nouveau video=vesa:off"
|
||||
```
|
||||
~~~
|
||||
|
||||
Regenerate grub configuration:
|
||||
|
||||
```
|
||||
~~~
|
||||
grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||
```
|
||||
~~~
|
||||
|
||||
Reboot.
|
||||
|
||||
|
@ -65,9 +65,9 @@ See [this page](/doc/CopyToDomZero/) for instructions on how to transfer files t
|
|||
|
||||
Install libraries, Xorg driver, configuration utilities. This can by done by nvidia-installer:
|
||||
|
||||
```
|
||||
~~~
|
||||
./NVIDIA-Linux-x86_64-260.19.44.run --ui=none --no-x-check --keep --no-nouveau-check --no-kernel-module
|
||||
```
|
||||
~~~
|
||||
|
||||
###Kernel module
|
||||
|
||||
|
@ -85,21 +85,21 @@ This installation must be done manually, because nvidia-installer refused to ins
|
|||
|
||||
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:
|
||||
|
||||
```
|
||||
~~~
|
||||
make
|
||||
IGNORE_XEN_PRESENCE=1 CC="gcc -DNV_VMAP_4_PRESENT -DNV_SIGNAL_STRUCT_RLIM" make -f Makefile.kbuild
|
||||
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/
|
||||
```
|
||||
~~~
|
||||
|
||||
Ignore any errors while inserting nvidia.ko (at the end of make phase).
|
||||
|
||||
###Disable nouveau:
|
||||
|
||||
```
|
||||
~~~
|
||||
cat /etc/modprobe.d/nouveau-disable.conf
|
||||
# blacklist isn't enough...
|
||||
install nouveau /bin/true
|
||||
```
|
||||
~~~
|
||||
|
||||
Add *rdblacklist=nouveau* option to /boot/grub/menu.lst (at the end of line containing *vmlinuz*).
|
||||
|
||||
|
@ -107,11 +107,11 @@ Add *rdblacklist=nouveau* option to /boot/grub/menu.lst (at the end of line cont
|
|||
|
||||
After all, you should configure Xorg to use nvidia driver. You can use *nvidia-xconfig* or do it manually:
|
||||
|
||||
```
|
||||
~~~
|
||||
X -configure
|
||||
mv /root/xorg.conf.new /etc/X11/xorg.conf
|
||||
# replace Driver in Device section by "nvidia"
|
||||
```
|
||||
~~~
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -22,15 +22,15 @@ Assuming your X Window System works fine now when you booted from the "failsafe"
|
|||
|
||||
1. Switch to runlevel 3 (this should kill your X server):
|
||||
|
||||
```
|
||||
~~~
|
||||
init 3
|
||||
```
|
||||
~~~
|
||||
|
||||
1. Run X-autoconfiguration:
|
||||
|
||||
```
|
||||
~~~
|
||||
Xorg -configure
|
||||
```
|
||||
~~~
|
||||
|
||||
This should generate a file `xorg.conf.new` in the `/root` directory.
|
||||
|
||||
|
@ -40,29 +40,29 @@ In most cases you can ignore any warning or error messages displayed by the X se
|
|||
|
||||
- Uncomment the ShadowFB option, so that you should now have something like this:
|
||||
|
||||
```
|
||||
~~~
|
||||
Option "ShadowFB" # [<bool>]
|
||||
```
|
||||
~~~
|
||||
|
||||
- Change the driver name to `nouveau` (you will probably have `nv` written there):
|
||||
|
||||
```
|
||||
~~~
|
||||
Driver "nouveau"
|
||||
```
|
||||
~~~
|
||||
|
||||
Save the modification, exit the editor.
|
||||
|
||||
1. Move the file to `/etc/X11` and rename it as `xorg.conf`:
|
||||
|
||||
```
|
||||
~~~
|
||||
mv /root/xorg.conf.new /etc/X11/xorg.conf
|
||||
```
|
||||
~~~
|
||||
|
||||
1. Verify that X will work with those new settings:
|
||||
|
||||
```
|
||||
~~~
|
||||
xinit
|
||||
```
|
||||
~~~
|
||||
|
||||
If you see a terminal window in the top left corner, it means you most likely succeeded, even if your keyboard or mouse do not work now (don't worry about them).
|
||||
|
||||
|
|
|
@ -9,18 +9,18 @@ VMs specially templates use disk space. Also default private storage max size is
|
|||
|
||||
So it is a good practice to regularly check disk space usage with command
|
||||
|
||||
```
|
||||
~~~
|
||||
df
|
||||
```
|
||||
~~~
|
||||
|
||||
in dom0 terminal.
|
||||
|
||||
A system in out of space condition should be able to boot, but may be unable to load a desktop manager. In this case it is possible to login to dom0 terminal with Alt + Ctrl + F2. To recover disk space it may be possible to delete files in a userVM connecting to the userVM terminal:
|
||||
|
||||
```
|
||||
~~~
|
||||
qvm-start <VMname>
|
||||
sudo xl console <VMname>
|
||||
```
|
||||
~~~
|
||||
|
||||
If this does not work, check the size of /var/lib/qubes/qubes.xml. If it is zero, you'll need to use one of the file backup (stored in /var/lib/qubes/backup), hopefully you have the current data there. Find the most recent one and place in /var/lib/qubes/qubes.xml instead of the empty file.
|
||||
|
||||
|
@ -28,25 +28,25 @@ In any case you'll need some disk space to start the VM. Check "df" output if yo
|
|||
|
||||
1. Clean yum cache:
|
||||
|
||||
```
|
||||
~~~
|
||||
sudo yum clean all
|
||||
```
|
||||
~~~
|
||||
|
||||
1. Delete .img files of a less important VM, that can be found in
|
||||
|
||||
/var/lib/qubes/appvms/. Then, when the system is working again, cleanup the rest with:
|
||||
|
||||
```
|
||||
~~~
|
||||
qvm-remove <VMname>
|
||||
```
|
||||
~~~
|
||||
|
||||
With this method you lose one VM data, but it'll more securely work.
|
||||
|
||||
1. Decrease filesystem safety margin (5% by default):
|
||||
|
||||
```
|
||||
~~~
|
||||
sudo tune2fs -m 4 /dev/mapper/vg_dom0-lv_root
|
||||
```
|
||||
~~~
|
||||
|
||||
1. Remove some unneeded files in dom0 home (if you have one, most likely no).
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ On a side note, we should notice that allowing anybody to reflash the BIOS is re
|
|||
Getting the touchpad working during installation
|
||||
------------------------------------------------
|
||||
|
||||
In order to get the touchpad working during installation you should pass the **```i8042.nopnp=1```** option to the kernel before the installer starts.
|
||||
In order to get the touchpad working during installation you should pass the **~~~i8042.nopnp=1~~~** option to the kernel before the installer starts.
|
||||
|
||||
\<screenshot\>
|
||||
|
||||
|
@ -39,12 +39,12 @@ Applying other fixes
|
|||
|
||||
There are a few more fixes needed for Sony Vaio Z, and we have prepared a special package that you can install in Dom0 that applies them all. After the installation is complete, open console in Dom0 and do the following:
|
||||
|
||||
```
|
||||
~~~
|
||||
$ sudo bash
|
||||
# qvm-dom0-networking up
|
||||
# yum install qubes-core-dom0-vaio-fixes
|
||||
# reboot
|
||||
```
|
||||
~~~
|
||||
|
||||
This script takes care about the following:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue