Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1.  
  2. mkfs.vfat -F32 /dev/sdb1
  3. mkfs -t btrfs -L archroot /dev/sdb2
  4.  
  5. mount -t btrfs -o compress=lzo /dev/sdb2 /mnt
  6. btrfs subvolume create /mnt/@
  7. btrfs subvolume create /mnt/@home
  8. btrfs subvolume create /mnt/@snapshots
  9. umount /dev/sdb2
  10.  
  11. mount -o compress=lzo,subvol=@ /dev/sdb2 /mnt
  12. mkdir -p /mnt/home
  13. mount -o compress=lzo,subvol=@home /dev/sdb2 /mnt/home
  14. mkdir -p /mnt/.snapshots
  15. mount -o compress=lzo,subvol=@snapshots /dev/sdb2 /mnt/.snapshots
  16. mkdir -p /mnt/var
  17. btrfs subvolume create /mnt/var/tmp
  18. btrfs subvolume create /mnt/tmp
  19. mount /dev/sdb1 /mnt/boot
  20.  
  21. pacstrap /mnt base base-devel intel-ucode btrfs-progs vim
  22. genfstab -U -p /mnt>> /mnt/etc/fstab
  23.  
  24. arch-chroot /mnt
  25.  
  26. echo "arch-desktop"> /etc/hostname
  27. vim /etc/locale.gen
  28. locale-gen
  29.  
  30. echo LANG=de_DE.UTF-8> /etc/locale.conf
  31.  
  32. ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime
  33. hwclock --systohc --utc
  34.  
  35. # user
  36. passwd
  37. groupadd mtkr
  38. useradd -mg mtkr -G wheel,storage,power,audio -s /bin/bash mtkr
  39. passwd mtkr
  40.  
  41. pacman -S sudo
  42. visudo
  43.  
  44. pacman -S grub efibootmgr dosfstools os-prober mtools gptfdisk
  45. grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=arch_grub --recheck --debug
  46. grub-mkconfig -o /boot/grub/grub.cfg
  47.  
  48. reboot
  49.  
  50. Konfiguration
  51. =============
  52. systemctl enable dhcpcd@enp13s0
  53. systemctl start dhcpcd@enp13s0
  54. pacman -S openssh
  55. systemctl enable sshd
  56. systemctl start sshd
  57.  
  58. pacman -S acpid dbus avahi cronie
  59. systemctl enable acpid
  60. systemctl enable avahi-daemon
  61. systemctl enable cronie
  62.  
  63. systemctl enable --now systemd-timesyncd.service
  64. hwclock -w
  65.  
  66. Desktop Stuff
  67. =============
  68. pacman -Syu xorg-server
  69. pacman -Syu nvidia nvidia-utils gnome gnome-extra gdm alsa-utils alsa-oss
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement