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.

46 lines
1.6 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. pacman -S --noconfirm grub efibootmgr 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 ovmf bridge-utils dnsmasq vde2 openbsd-netcat ebtables iptables ipset firewalld flatpak sof-firmware nss-mdns acpid
  14. # pacman -S --noconfirm xf86-video-amdgpu
  15. # pacman -S --noconfirm nvidia nvidia-utils nvidia-settings
  16. grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
  17. grub-mkconfig -o /boot/grub/grub.cfg
  18. systemctl enable NetworkManager
  19. systemctl enable bluetooth
  20. systemctl enable cups
  21. systemctl enable sshd
  22. systemctl enable avahi-daemon
  23. systemctl enable tlp
  24. systemctl enable reflector.timer
  25. systemctl enable fstrim.timer
  26. systemctl enable libvirtd
  27. systemctl enable firewalld
  28. systemctl enable acpid
  29. useradd -m ermanno
  30. echo ermanno:password | chpasswd
  31. usermod -aG libvirt ermanno
  32. echo "ermanno ALL=(ALL) ALL" >> /etc/sudoers.d/ermanno
  33. /bin/echo -e "\e[1;32mDone! Type exit, umount -a and reboot.\e[0m"