Xisabla

Arch install (2020)

Feb 6th, 2020 (edited)
341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.17 KB | None | 0 0
  1. # USB Boot
  2. loadkeys fr-pc
  3. wifi-menu
  4. timedatectl
  5. timedatectl set-ntp true
  6. cfdisk /dev/sda
  7. # sda1 -> 100M Efi System (put here by windows)
  8. # sda4 -> 16Go linux-swap
  9. # sda5 -> xxGo linux
  10. mkswap /dev/sda4
  11. mkfs.ext4 /dev/sda5
  12. mount /dev/sda5 /mnt
  13. swapon /dev/sda4
  14. pacstrap -i /mnt base base-devel linux linux-firmware nano dialog curl wget git go
  15. genfstab -U -p /mnt >> /mnt/etc/fstab
  16. arch-chroot /mnt
  17.  
  18. # Chroot
  19. #echo NomDeLaMachine > /etc/hostname
  20. #echo '127.0.1.1 NomDeLaMachine.localdomain NomDeLaMachine' >> /etc/hosts
  21. ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime
  22. echo LANG="en_US.UTF-8" > /etc/locale.conf
  23. export LANG=en_US.UTF-8
  24. echo KEYMAP=fr > /etc/vconsole.conf
  25. nano /etc/locale.gen # Uncomment en_US/fr_FR
  26. locale-gen
  27. hwclock --systohc --utc
  28. pacman -S networkmanager
  29. systemctl enable NetworkManager
  30. mkinitcpio -p linux
  31. passwd
  32. pacman -S grub efibootmgr os-prober
  33. mkdir /boot/efi
  34. mount /dev/sda1 /boot/efi
  35. lsblk # to check if everything is mounted correctly
  36. grub-install #--target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot/efi --recheck
  37. grub-mkconfig -o /boot/grub/grub.cfg
  38. #sudo mkdir /boot/efi/EFI/BOOT
  39. #sudo cp /boot/efi/EFI/GRUB/grubx64.efi /boot/efi/EFI/BOOT/BOOTX64.EFI
  40. #sudo nano /boot/efi/startup.nsh --> Add: bcfg boot add 1 fs0:\EFI\GRUB\grubx64.efi "My GRUB bootloader"
  41. exit
  42.  
  43. umount -R /mnt
  44. reboot
  45.  
  46. # After reboot
  47. wifi-menu
  48. useradd -m -g users -G wheel -s /bin/bash username
  49. passwd username
  50. EDITOR=nano visudo --> Uncomment # %wheel ALL=(ALL) ALL
  51. git clone https://aur.archlinux.org/yay.git .yay && cd .yay && makepkg -si
  52. yay -Syu pulseaudio pulseaudio-alsa xorg xorg-xinit xorg-server sddm plasma nvidia nvidia-settings nvidia-utils lib32-nvidia-utils
  53. sudo systemctl start sddm.service
  54. sudo systemctl enable sddm.service
  55. localectl set-x11-keymap fr
  56. # /etc/sddm.conf If you want to enforce Numlock to be enabled, set Numlock=on in the [General] section.
  57. sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  58.  
  59. # zsh
  60. # Theme: https://github.com/caiogondim/bullet-train.zsh
  61. plugins=(git sudo vscode screen npm node man gradle gitignore catimg)
  62. setopt autocd autopushd
  63. autoload -U compinit; compinit
Add Comment
Please, Sign In to add comment