Archlinux basic installation configuration scripts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.9 KiB

  1. #!/bin/bash
  2. ln -sf /usr/share/zoneinfo/Europe/Zurich /etc/localtime
  3. hwclock --systohc
  4. sed -i '177s/.//' /etc/locale.gen
  5. locale-gen
  6. echo "LANG=en_US.UTF-8" >> /etc/locale.conf
  7. echo "KEYMAP=de_CH-latin1" >> /etc/vconsole.conf
  8. echo "arch" >> /etc/hostname
  9. echo "127.0.0.1 localhost" >> /etc/hosts
  10. echo "::1 localhost" >> /etc/hosts
  11. echo "127.0.1.1 arch.localdomain arch" >> /etc/hosts
  12. echo root:password | chpasswd
  13. # You can add xorg to the installation packages, I usually add it at the DE or WM install script
  14. # You can remove the tlp package if you are installing on a desktop or vm
  15. pacman -S --noconfirm grub networkmanager network-manager-applet dialog wpa_supplicant mtools dosfstools reflector base-devel linux-headers avahi xdg-user-dirs xdg-utils gvfs gvfs-smb nfs-utils inetutils dnsutils bluez bluez-utils cups hplip alsa-utils pulseaudio bash-completion openssh rsync reflector acpi acpi_call tlp virt-manager qemu qemu-arch-extra edk2-ovmf bridge-utils dnsmasq vde2 openbsd-netcat ebtables iptables ipset firewalld flatpak sof-firmware nss-mdns acpid os-prober ntfs-3g terminus-font
  16. # pacman -S --noconfirm xf86-video-amdgpu
  17. # pacman -S --noconfirm nvidia nvidia-utils nvidia-settings
  18. grub-install --target=i386-pc /dev/sdX # replace sdx with your disk name, not the partition
  19. grub-mkconfig -o /boot/grub/grub.cfg
  20. systemctl enable NetworkManager
  21. systemctl enable bluetooth
  22. systemctl enable cups
  23. systemctl enable sshd
  24. systemctl enable avahi-daemon
  25. systemctl enable tlp # You can comment this command out if you didn't install tlp, see above
  26. systemctl enable reflector.timer
  27. systemctl enable fstrim.timer
  28. systemctl enable libvirtd
  29. systemctl enable firewalld
  30. systemctl enable acpid
  31. useradd -m ermanno
  32. echo ermanno:password | chpasswd
  33. usermod -aG libvirt ermanno
  34. echo "ermanno ALL=(ALL) ALL" >> /etc/sudoers.d/ermanno
  35. /bin/echo -e "\e[1;32mDone! Type exit, umount -a and reboot.\e[0m"