Last active
August 29, 2015 14:04
-
-
Save julianoborba/d9c03c5ab58cec52233b to your computer and use it in GitHub Desktop.
Minhas Aventuras no Linux Qubes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Creating an HVM domain - Sample | |
| # qvm-create win7 --hvm --label green | |
| # qvm-start win7 --cdrom=/usr/local/iso/win7_en.iso | |
| Or | |
| # qvm-start win7 --cdrom=/dev/cdrom | |
| ================================================================================================== | |
| Installing Java! - Sample | |
| # yum search java | grep -i --color JDK | |
| # yum install java-1.7.0-openjdk java-1.7.0-openjdk-devel | |
| ================================================================================================== | |
| Para habilitar o modo verbose durante o boot após o GRUB, pressionar F9. | |
| As vezes um HD encriptado com LUKS não pede a senha durante o boot em modo gráfico... | |
| então pressione F9 e digite o pass quando solicitado no modo texto. | |
| ================================================================================================== | |
| Copy files to dom0 | |
| # qvm-run --pass-io <src_domain> 'cat /path/to/file_in_src_domain' > /path/to/file_name_in_dom0 | |
| Copy files from Dom0 to VMs | |
| # cat /path/to/file_in_dom0 | qvm-run --pass-io <dst_domain> 'cat > /path/to/file_name_in_appvm' | |
| ================================================================================================== | |
| Installing AMD Radeon video driver - UNSOLVED (yet) | |
| 1 - download the driver (fglrx) http://support.amd.com/en-us/download | |
| 2 - Then you may get this message : | |
| -- | |
| One or more tools required for installation cannot be found on the system. Install the required tools before installing the fglrx driver. Optionally, run the installer with the --force option to install without the tools. Forcing install will disable AMD hardware acceleration and may make your system unstable. Not recommended. See /usr/share/ati/fglrx-install.log for more details. | |
| -- | |
| 3 - Run in circles and go to Google, DuckDuckGo or even your grandma | |
| 4 - Wait me, I will finish this saga for Qubes | |
| ... | |
| $ - Installing rpm packages | |
| # rpm -i <package name> | |
| $ - Install gcc, binutils make, kernel-devel, kernel-headers and dkms. Since dom0 is isolated from the Internet by design, you should download the packages and copy to dom0. But, just to register the command, the normal procces to install all this stuff comes from, for example: | |
| # sudo yum install gcc binutils make kernel-devel kernel-headers dkms | |
| To find the packages, search | |
| Here http://pkgs.org/ | |
| And here http://fr2.rpmfind.net/linux/RPM/index.html | |
| My own "package" xP https://www.mediafire.com/?suhjtzkn1q2b7ep | |
| http://askubuntu.com/questions/226997/trying-to-use-amd-fglrx-driver-unity-does-not-work-ubuntu-12-10 | |
| http://pkgs.org/fedora-20/rpm-sphere/freeocl-0.3.6-7.3.i686.rpm.html | |
| http://stevenrosenberg.net/blog/linux/fedora/2014_0112_amd_catalyst_fedora_success | |
| http://bluehatrecord.wordpress.com/2014/05/10/installing-the-proprietary-amd-catalyst-14-4-fglrx-driver-on-fedora-20-with-kernel-3-14/ | |
| http://tojaj.com/fedora-20-howto-switch-from-ati-proprietary-drivers-to-radeon-driver/ | |
| http://wiki.cchtml.com/index.php/Fedora_18_Installation_Guide | |
| http://www.blackmoreops.com/2014/02/11/install-amd-ati-proprietary-driver-fglrx-in-kali-linux-1-0-6-running-kernel-version-3-12-6/ | |
| http://www.blackmoreops.com/2014/03/05/install-amd-ati-proprietary-fglrx-driver-kali-linux-1-0-6/ | |
| https://packages.debian.org/sid/amd64/amd-opencl-icd/download | |
| https://packages.debian.org/squeeze/firmware-linux-nonfree | |
| http://forums.fedoraforum.org/showthread.php?t=84934 | |
| http://joeyh.name/code/alien/ | |
| ============ | |
| https://wiki.qubes-os.org/wiki/FullScreenMode | |
| ============ | |
| Updating Qubes | |
| In dom0, open a terminal and run: | |
| # sudo rpm -vv --rebuilddb | |
| # sudo qubes-dom0-update | |
| In your TemplateVMs, open a terminal and run: | |
| # sudo yum upgrade | |
| # sudo yum update | |
| ============ | |
| Mounting devices into custom domains | |
| My external HDD: | |
| # qvm-block -a cotidiano dom0:sdc1 | |
| # qvm-block -a cotidiano dom0:sdc | |
| My smatphone: | |
| # qvm-block -a cotidiano dom0:sdb1 | |
| # qvm-block -a cotidiano dom0:sdb | |
| To detach both: | |
| # qvm-block -d contidiano:sdb | |
| # qvm-block -d contidiano:sdc | |
| To list all | |
| # qvm-block -l | |
| To detach all | |
| # qvm-block -d contidiano | |
| ============ | |
| Remove unused packages | |
| "Starting from Fedora 18, you can simply use this command | |
| yum autoremove | |
| or | |
| yum remove --setopt=clean_requirements_on_remove=1 | |
| You can also apply autoremove command with specific package | |
| yum autoremove <package>" | |
| ============ | |
| Creating templates | |
| # qvm-create --hvm work-win7 --template win7-x64 --label green | |
| # qvm-create --hvm personal-win7 --template win7-x64 --label purple | |
| # qvm-create --hvm testing-win7 --template win7-x64 --label red |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment