SHOW:
|
|
- or go back to the newest paste.
| 1 | modprobe rtl8192se | |
| 2 | iwlist | |
| 3 | # netcfg wireless-wpa | |
| 4 | # wifi-menu | |
| 5 | ??? | |
| 6 | ||
| 7 | # keyap | |
| 8 | loadkeys us | |
| 9 | ||
| 10 | # flash-drive | |
| 11 | pacman -S emacs | |
| 12 | mkdir /flash | |
| 13 | mount /dev/sdc2 /flash | |
| 14 | ||
| 15 | # layout disk | |
| 16 | cfisk | |
| 17 | # remove swap | |
| 18 | # recreate root | |
| 19 | ||
| 20 | # / | |
| 21 | modprobe dm_mod | |
| 22 | cryptsetup --cipher aes-xts-plain64 --key-size 512 --hash sha512 --iter-time 5000 --use-random luksFormat /dev/sda2 | |
| 23 | cryptsetup luksDump /dev/sda2 | |
| 24 | cryptsetup luksOpen /dev/sda2 luks-root | |
| 25 | mkfs.ext4 /dev/mapper/luks-root | |
| 26 | mount -t ext4 -o discard,noatime,nodiratime,defaults /dev/mapper/luks-root /mnt | |
| 27 | ||
| 28 | # /boot | |
| 29 | mkfs.ext2 /dev/sda1 | |
| 30 | mount -t ext2 /dev/disk/by-id/ata-INTEL_SSDSA1M160G2LE_CVPO034600W4160CGN-part1 /mnt/boot | |
| 31 | ||
| 32 | # install base-system | |
| 33 | pacstrap /mnt base | |
| 34 | ||
| 35 | - | # /external |
| 35 | + | |
| 36 | - | #mkdir /mnt/root |
| 36 | + | |
| 37 | - | #cp /flash/external.key /mnt/root |
| 37 | + | |
| 38 | - | #mkdir /mnt/external |
| 38 | + | |
| 39 | - | #cryptsetup luksOpen /dev/sdb --key-file=/mnt/root/external.key |
| 39 | + | |
| 40 | - | #mount -t ext4 -o noatime,nodiratime,defaults /dev/mapper/luks-external /mnt/external |
| 40 | + | |
| 41 | - | # echo "luks-external /dev/disk/by-id/wwn-0x50014ee6ad72cfce /root/external.key nofail" > /mnt/etc/crypttab |
| 41 | + | |
| 42 | swapon /mnt/root/swap | |
| 43 | ||
| 44 | ||
| 45 | # /etc/crypttab | |
| 46 | echo "luks-root /dev/disk/by-id/ata-INTEL_SSDSA1M160G2LE_CVPO034600W4160CGN-part2 none allow-discards" > /mnt/etc/crypttab | |
| 47 | ||
| 48 | # generate fstab | |
| 49 | genfstab -p /mnt >> /mnt/etc/fstab | |
| 50 | ||
| 51 | # chroot | |
| 52 | arch-chroot /mnt | |
| 53 | ||
| 54 | pacman -Syu | |
| 55 | ||
| 56 | # emacs | |
| 57 | pacman -S emacs-nox | |
| 58 | ||
| 59 | # /etc/crypttab | |
| 60 | #/etc/fstab | |
| 61 | /dev/disk/by-id/ata-INTEL_SSDSA1M160G2LE_CVPO034600W4160CGN-part1 /boot ext2 defaults 1 2 | |
| 62 | /dev/mapper/luks-root / ext4 discard,noatime,nodiratime,defaults 1 1 | |
| 63 | /swap swap swap defaults 0 0 | |
| 64 | /dev/mapper/luks-external /external ext4 noatime,nodiratime,defaults 0 2 | |
| 65 | /home/oleg/Dropbox/container.key /home/oleg/SafeBox truecrypt keyfiles=/home/oleg/key.container,nofail 0 2 | |
| 66 | 10.0.20.188:/Public /public nfs rw,nolock,async,soft,nofail 0 0 | |
| 67 | ||
| 68 | # hostname | |
| 69 | echo "t510" > /etc/hostname | |
| 70 | ||
| 71 | # timezone | |
| 72 | ln -s /usr/share/zoneinfo/Asia/Irkutsk /etc/localtime | |
| 73 | ||
| 74 | # locale | |
| 75 | echo LANG="en_US.UTF-8" > /etc/locale.conf | |
| 76 | # edit /etc/locale.gen | |
| 77 | locale-gen | |
| 78 | ||
| 79 | # add "encrypt" to HOOKS after filesystems /etc/mkinitcpio.conf | |
| 80 | # generate initramfs | |
| 81 | mkinitcpio -p linux | |
| 82 | ||
| 83 | pacman -S grub-bios | |
| 84 | modprobe dm-mod | |
| 85 | grub-install --recheck /dev/sda | |
| 86 | # /etc/default/grub | |
| 87 | # GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda2:luks-root:allow-discards root=/dev/mapper/luks-root" | |
| 88 | # disable: GRUB_DISABLE_LINUX_UUID=true | |
| 89 | # disable quiet | |
| 90 | grub-mkconfig -o /boot/grub/grub.cfg | |
| 91 | ||
| 92 | passwd | |
| 93 | ||
| 94 | # netcfg wireless-wpa | |
| 95 | # wifi-menu | |
| 96 | ||
| 97 | pacman-key --init | |
| 98 | pacman-key --populate archlinux | |
| 99 | pacman -S systemd systemd-sysvcompat ca-certificates pkgfile htop netcfg networkmanager xf86-video-intel xorg-server network-manager-applet ttf-dejavu openssh pulseaudio virtualbox virtualbox-host-modules virtualbox-guest-iso firefox gnome dhcpcd zsh rxvt-unicode flashplugin nspluginwrapper | |
| 100 | systemctl enable sshd.service | |
| 101 | systemctl enable gdm.service | |
| 102 | systemctl enable NetworkManager | |
| 103 | systemctl enable [email protected] | |
| 104 | echo "vboxdrv" > /etc/modules-load.d/virtualbox.conf | |
| 105 | ||
| 106 | groupadd networkmanager | |
| 107 | groupadd oleg | |
| 108 | useradd -m -g oleg -G audio,dbus,locate,optical,log,network,networkmanager,power,storage,tty,uucp,vboxusers,video,users,wheel -s /bin/zsh oleg | |
| 109 | passwd oleg | |
| 110 | exit | |
| 111 | umount /mnt/boot | |
| 112 | umount /mnt | |
| 113 | ||
| 114 | reboot | |
| 115 | ||
| 116 | ls /sys/class/net | |
| 117 | dhcpcd <network_interface> |