"I remember new years eve 2010/11, crystal clear night, awesome fireworks in Zurich Switzerland, drinking with my bro and then he said "you have no soul do you?" – nohitall
Alright, so it's been awhile since I made an entry, 'boo-hoo'.. But I bring treats: Notes I took while replacing Gentoo with Arch on my desktop. Yeah, since I finally got my monitors in, I figured it would be a lot of wasted time compiling in Gentoo when I could be doing hood-rat stuff instead on Arch.. Well anyway I figured I'd kick things up a notch, having watched Inception recently. Using this install you get 3 things: block-disk-encryption (LUKS) on top of logical-volume-management (LVM2), and finally your OS (Arch) all warm up inside all of that.. Now you may ask yourself: "why did he use LVM when he seems to be using a pretty simple partition scheme?", and the answer is: "Because, pnd4 can." .. Yeah-see, I took that one out of nohitall's evil book of nerd things to do when you're lacking sleep and bored. Come say 'Hi' on #crunchbang (via Freenode); Im serving up 'Das Boot' to anyone who wants to complain about how pointless this block of text is.. enjoi!
Start by booting the installation media
Use fdisk to create 2 partitions
- the boot partition can be pretty small at around 100MiB or so.
Write random data to drive
1 2 |
|
Optional: In another terminal run a command to monitor progress
1
|
|
Remove volume of scrambled data.
1
|
|
Set up LVM logical volumes: root, swap, var, tmp, home
1 2 3 4 5 6 7 |
|
Encrypt root
1 2 |
|
Set up root with chosen filesystem [for example; ext4]
1 2 |
|
Set up boot with chosen filesystem [for example; ext2]
1 2 3 4 |
|
Create key for home and var store in /etc/luks-keys/home
1 2 3 |
|
Encrypt, format, and mount var
1 2 3 4 5 |
|
Encrypt, format, and mount home
1 2 3 4 5 |
|
Connect to internet
Install arch via 'pacstrap'
Syslinux or GRUB, whatever floats your boat.
Wicd optional but great if planning to use Wi-Fi
1
|
|
Generate new fstab
1
|
|
Chroot into new install
1
|
|
Set hostname
1
|
|
Set timezone
1
|
|
Edit /etc/locale.gen
1
|
|
Configure /etc/locale.conf
1 2 3 |
|
Edit /etc/mkinitcpio.conf and generate initrd
- Put lvm2 and encrypt (in this order) before filesystems in HOOKS
1
|
|
Change APPEND line in /boot/syslinux/syslinux.cfg
1
|
|
Commit changes to /boot
-i = Puts file
-a = Set boot flag
-m = Install MBR boot code
1
|
|
Add to /etc/fstab
1 2 3 |
|
Edit /etc/crypttab
1 2 3 4 |
|
Set root password
1
|
|
Reboot
1
|
|
[Fin]