Installing Arch Linux on Virtual Box
This article describes the steps I took to install Arch Linux on Virtual Box. The details below follow on from a basic installation as describes in the Arch Wiki (http://archlinux.org).
Install as per the Wiki by downloading the 'Live' .iso image and using the following options;
- MBR boot
- single partition
- locale /usr/share/zoneinfo/GB
- Network Manager
Ensure that /etc/locale.gen has the language uncommented.
Update all packages.
Follow the instructions here to add a user.
Follow the instructions here to install a SUDO user.
If during the installation, the locales are not correctly configured, Gnome Terminal may not open once system is in GUI Mode. For this reason consider installing XTerm as a means to temporarily access the command line when in Gnome. This can be removed once it is confirmed that Gnome Terminal is working as expected.
pacman -S xterm
pacman -S gnome pacman -S gnome-extra
pacman -S xorg
Install the Gnome Desktop Manager (GDM)
pacman -S gdm systemctl start gdm.service systemctl enable gdm.service reboot
Virtual Box Guest Additions
Install the guest utils and select the virtualbox-guest-modules-arch
pacman -S virtualbox-guest-utils
Set the framebuffer to the resolution of the host e.g. if the host is 1440x900 check that this exists.
pacman -S hwinfo hwinfo --framebuffer
If the resolution doesn't appear in the list add it from the host command line
MacBookAir:etc john$ VBoxManage setextradata "Arch Linux" "CustomVideoMode1" "1440x900x24"
Re-check using hwinfo to ensure the resolution is now present.
Edit /etc/default/grub to include a kernel parameter in the GRUB_CMDLINE_LINUX_DEFAULT list, e.g:
GRUB_CMDLINE_LINUX_DEFAULT="quiet video=1360x768" GRUB_GFXMODE="1440x900x24"
Execute the following to commit these changes.
grub-mkconfig -o /boot/grub/grub.cfg
pacman -S tor
Install Tor browser from AUR
cd ~/builds curl -L -O https://aur.archlinux.org/cgit/aur.git/snapshot/tor-browser-en.tar.gz tar -xvf tor-browser-en.tar.gz cd tor-browser-en
If the following message appears;
tor-browser-linux64-7.0.6_en-US.tar.xz ... FAILED (unknown public key D1483FA6C3C07136) ==> ERROR: One or more PGP signatures could not be verified!
This simply means that the public key to verify the signature is missing. To fix this use gpg to import the missing public key from a keyserver e.g.
gpg --recv-keys D1483FA6C3C07136