Advertisement
Guest User

Untitled

a guest
Feb 16th, 2019
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.58 KB | None | 0 0
  1.  
  2. btrfs sub list /
  3.  
  4. snapper list
  5. snapper dif 3..4
  6. snapper undochange 3..4
  7. snapper rollback
  8.  
  9. df -Th
  10.  
  11. ------ ARCH CORE INSTALLATION ------
  12.  
  13. cfdisk /dev/sda
  14. - create 512MB partition, type EFI system
  15. - rest for the root
  16. - swap if you fee like it
  17. mkfs.vfat -F 32 -n EFI /dev/sda1
  18. mkfs.btrfs -L "ROOT" /dev/sda2
  19.  
  20. mount /dev/sda2 /mnt
  21. btrfs subvolume create /mnt/@
  22. btrfs subvolume create /mnt/@home
  23. btrfs subvolume create /mnt/@snapshots
  24. umount /mnt
  25.  
  26. mount -o noatime,ssd,space_cache=v2,compress=zstd,subvol=@ /dev/sda2 /mnt
  27. mkdir -p /mnt/boot
  28. mkdir -p /mnt/home
  29. mount -o noatime,ssd,space_cache=v2,compress=zstd,subvol=@home /dev/sda2 /mnt/home
  30. mount /dev/sda1 /mnt/boot
  31.  
  32. pacstrap /mnt base base-devel efibootmgr btrfs-progs grub
  33.  
  34. genfstab -U /mnt >> /mnt/etc/fstab
  35.  
  36. arch-chroot /mnt
  37.  
  38. grub-install --efi-directory=/boot --bootloader-id=GRUB
  39. grub-mkconfig -o /boot/grub/grub.cfg
  40.  
  41. cp /etc/mkinitcpio.conf /etc/mkinitcpio.conf.orig
  42. ORIG= "base udev autodetect modconf block filesystems keyboard fsck"
  43. HOOKS="base systemd autodetect modconf block filesystems btrfs keyboard fsck"
  44. mkinitcpio -p linux
  45.  
  46. exit
  47. reboot now
  48.  
  49.  
  50. ------ ARCH BASE SETTINGS ------
  51.  
  52.  
  53. - login as root
  54. passwd
  55. echo whatever > /etc/hostname
  56. useradd -m -G wheel ja
  57. passwd ja
  58. EDITOR=nano visudo
  59. - uncomment %wheel ALL=(ALL) ALL
  60. ip a
  61. systemctl enable --now [email protected]
  62. nano /etc/locale.gen
  63. - uncomment en_US.UTF-8
  64. locale-gen
  65. localectl set-locale LANG=en_US.UTF-8
  66. timedatectl set-timezone 'Europe/Prague'
  67. hwclock --systohc --utc
  68. timedatectl set-ntp true
  69.  
  70.  
  71. ------ RECOMENDATIONS ------
  72.  
  73.  
  74. systemctl enable --now fstrim.timer
  75.  
  76. nano /etc/makepkg.conf
  77. - MAKEFLAGS="-j$(nproc)"
  78. - PKGEXT='.pkg.tar'
  79.  
  80. nano /etc/pacman.conf
  81. - uncomment #Color
  82.  
  83. git clone https://aur.archlinux.org/yay-bin.git
  84. cd yay
  85. makepkg -si
  86.  
  87. yay zim-zsh
  88.  
  89. pacman -S reflector
  90. reflector -l 200 -n 20 -c SK -p http --sort rate --save /etc/pacman.d/mirrorlist
  91.  
  92. sudo pacman -Rns $(pacman -Qtdq)
  93.  
  94. pacman -S pacman-contrib
  95. systemctl enable --now paccache.timer
  96.  
  97. ------ TIMESHIFT ------
  98.  
  99.  
  100. yay timeshift
  101.  
  102. systemctl enable --now cronie
  103.  
  104. cp /etc/default/timeshift.json /etc/timeshift.json
  105. nano /etc/timeshift.json
  106. lsblk -o UUID /dev/sda2 >> /etc/timeshift.json
  107. {
  108. "backup_device_uuid" : "fe176199-b741-47f3-ac1a-47a436309d5a",
  109. "parent_device_uuid" : "",
  110. "do_first_run" : "false",
  111. "btrfs_mode" : "true",
  112. "include_btrfs_home" : "false",
  113. "stop_cron_emails" : "true",
  114. "schedule_monthly" : "false",
  115. "schedule_weekly" : "false",
  116. "schedule_daily" : "false",
  117. "schedule_hourly" : "false",
  118. "schedule_boot" : "false",
  119. "count_monthly" : "2",
  120. "count_weekly" : "3",
  121. "count_daily" : "5",
  122. "count_hourly" : "6",
  123. "count_boot" : "20",
  124. "snapshot_size" : "0",
  125. "snapshot_count" : "0",
  126. "exclude" : [
  127. ],
  128. "exclude-apps" : [
  129. ]
  130. }
  131.  
  132. sudo timeshift --list
  133. sudo timeshift --create --comment "first after reinstall" --tags O
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141. ---------
  142.  
  143. pacman -S snapper
  144. snapper -c root create-config /
  145. btrfs sub del /.snapshots
  146. mkdir /.snapshots
  147. nano /etc/fstab - mount @snapshots in to /.snapshots
  148. mount /.snapshots
  149.  
  150. pacman -S grub-btrfs
  151. nano /etc/grub.d/41_snapshots-btrfs - check defaults
  152. nano /etc/default/grub
  153. GRUB_BTRFS_CREATE_ONLY_HARMONIZED_ENTRIES="true"
  154. GRUB_BTRFS_LIMIT="10"
  155. nano /etc/snapper/configs/root
  156. NUMBER_MIN_AGE="0"
  157. NUMBER_LIMIT="10"
  158. NUMBER_LIMIT_IMPORTANT="3"
  159. TIMELINE_CREATE="no"
  160.  
  161. systemctl status cronie.service
  162.  
  163. pacman -S snap-pac
  164. yay snap-pac-grub
  165.  
  166. -- recovery --
  167.  
  168. snapper rollback
  169.  
  170.  
  171. ------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement