User:TitanOfOld
Developer | |
---|---|
Name | Aaron W. Swenson |
Nickname | titanofold (www.g.o link) |
titanofold@gentoo.org
| |
Packages | p.g.o/titanofold@gentoo.org (commits) |
Is active | Yes |
Projects |
|
My Hardware
I run Gentoo on a Lenovo ThinPad E525 (1200CT0).
user $
lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h Processor Root Complex 00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Sumo [Radeon HD 6480G] 00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] BeaverCreek HDMI Audio [Radeon HD 6500D and 6400G-6600G series] 00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 12h Processor Root Port 00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] 00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11) 00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11) 00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11) 00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11) 00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 13) 00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01) 00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11) 00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] FCH PCI Bridge (rev 40) 00:14.7 SD Host controller: Advanced Micro Devices, Inc. [AMD] FCH SD Flash Controller 00:15.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 0) 00:15.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 1) 00:15.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 2) 00:15.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 3) 00:16.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11) 00:16.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11) 00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 0 (rev 43) 00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 1 00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 2 00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 3 00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 4 00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 6 00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 5 00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 7 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06) 04:00.0 System peripheral: Ricoh Co Ltd PCIe SDXC/MMC Host Controller (rev 04) 05:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter (rev 01)
Helpful Notes
I had an issue getting suspend to work properly on my laptop. It would go into suspend/sleep mode just fine, but on resume the screen would remain off. No backlight, no drawing, even though the system would be active. I read somewhere that the module for the wireless was the culprit, and it is. So, here's a little hook for you:
#!/usr/bin/env bash
case $1 in
hibernate|suspend)
echo "Unloading Realtek module"
rmmod rtl8192ce
;;
thaw|resume)
echo "Reloading Realtek module"
modprobe rtl8192ce
;;
*) echo "Somebody is calling me totally wrong."
;;
esac
Full Disk Encryption
Just some notes. Full explanation later.
Follow handbook, at chapter 4, preparing disks, do the following instead:
Have USB drive for removable boot partition
Create key file
mount /dev/sdb1 /mnt/key
dd if=/dev/zero of=/mnt/key/key.luks count=2057 cryptsetup --align-payload=1 luksFormat /mnt/key/key.luks cryptsetup luksOpen /mnt/key/key.luks lukskey dd if=/dev/urandom of=/dev/mapper/lukskey
cryptsetup luksFormat /dev/sda -ctwofish-xts-plain:512 -s 512 --key-file /dev/mapper/lukskey
cryptsetup --key-file /dev/mapper/lukskey luksOpen /dev/sda enc
cryptsetup luksClose lukskey
umount /mnt/key
openssl enc -aes-256-ctr -pass pass:"$(dd if=/dev/urandom bs=128 count=1 2>/dev/null | base64)" -nosalt < /dev/zero > /dev/mapper/enc
Above took 2h 35m 46.114s to fill 320GB (approximately 298GiB) hard drive on the above laptop.
pvcreate /dev/mapper/enc
vgcreate vg0 /dev/mapper/enc
lvcreate -L 9G vg0 -n swap
lvcreate -l +100%FREE vg0 -n root
mkswap -L swap /dev/vg0/swap
swapon /dev/vg0/swap
mkfs.btrfs -L root /dev/vg0/root
mount -o compress=lzo /dev/vg0/root /mnt/gentoo
Continue with handbook.
Use grub to install to thumbdrive
Follow Custom_Initramfs have it included in the kernel.