The Linux Challenges

Link to Anthrit's PDF file of his daily log in Arch Linux:
http://www.anthrit.com/uploads/Anthrit/The%20Arch%20Challange.pdf
 
The guide Anthrit used to install Arch Linux (Code to type is in Italic):

Our first step is to format the harddrive. Remember, it's an imaginary virtual harddrive -- nothing will be touched on your physical harddrive.
 
Do
fdisk /dev/sda
 
Hit n to create a new partition. p for primary, 1 to make it partition number 1, make it start at sector 2048, and make it e.g. 2 Gb by having it stop at +2G -- this will be our swap. Hit n again, p again, and make it partition number 2, and accept the default sectors that it suggests. This will be our  /(root) partition.
Hit a, then 2, to make the partition bootable.
Hit t, then 1, then 82 to make a swap disk.
Hit w to finalise the changes.
 
Do
mkswap /dev/sda1
mkfs.ext4 /dev/sda2

to set up the file systems.
 
Do
mount /dev/sda2 /mnt
to mount your new ext4 partition.

Install a basic system:
Do
pacman-key --init
pacman-key --populate archlinux


to get set up with pacman. Edit pacman.conf if you want a specific architecture (i686 or x86_64), or the current architecture will be used.
 
Time to install packages:
pacstrap /mnt base gnome xorg-xinit xorg-server xorg-utils xorg-server-util vim mlocate wicd wicd-gtk openssh grub-bios upower
 
Generate a proto-fstab:
genfstab -p /mnt > /mnt/etc/fstab
 
Then enter a chroot:
arch-chroot /mnt
 
Edit /etc/fstab and add a line for swap:
 /dev/sda1    none    swap    sw    0 0
 
Set up your locale and timezone:
ln -s /usr/share/zoneinfo/Australia/Melbourne /etc/localtime
echo 'LANG="en_US.UTF-8"'>/etc/locale
echo 'KEYMAP=us'> /etc/vconsole.conf
echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen
locale-gen
echo "spinebill" >/etc/hostname

 
Set up a user:
pacman -S sudo
useradd -p `openssl passwd -1 mypassword` -m Myusername
echo "Myusername ALL=(ALL) ALL">> /etc/sudoers

 
Edit /home/verahill/.xinitrc and uncomment
exec gnome-session
 
Set up grub and booting:
mkinitcpio -p linux
grub-mkconfig -o /boot/grub/grub.cfg
grub-install /dev/sda

 
You're now ready to start your Arch system. First you need to shut down your current system though:
exit
umount /mnt
shutdown -h now

 
Once the machine is off, go to Settings, Storage, and remove disk from virtual drive.
 
Booting:
Boot by clicking on Start.
You might get the odd error message while booting, but everything will be fine.
 
Log in as the user you created, then enabled the ssh daemon and the wicd daemon:
sudo systemctl enable sshd
sudo systemctl enable wicd

 
Start wicd-curses
wicd-curses

and wait 10-20 seconds for wicd to detect the network card and starting it
Quit by hitting 'Q'.

Install Video Drivers:
All: sudo pacman -S xf86-video-vesa
NVIDIA: sudo pacman -S nvidia
ATI: sudo pacman -S xf86-video-ati

To launch gnome, type
 startx