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.

38 lines
1.3 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:yourpassword | 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
  14. grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
  15. grub-mkconfig -o /boot/grub/grub.cfg
  16. systemctl enable NetworkManager
  17. systemctl enable bluetooth
  18. systemctl enable cups
  19. systemctl enable sshd
  20. systemctl enable avahi-daemon
  21. systemctl enable tlp
  22. systemctl enable reflector.timer
  23. systemctl enable fstrim.timer
  24. useradd -m username
  25. echo username:yourpassword | chpasswd
  26. echo "username ALL=(ALL) ALL" >> /etc/sudoers.d/username
  27. /bin/echo -e "\e[1;32mDone! Type exit, umount -a and reboot.\e[0m"