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.

45 lines
1.8 KiB

2 years ago
2 years ago
  1. #!/bin/bash
  2. ln -sf /usr/share/zoneinfo/Mexico /etc/localtime
  3. hwclock --systohc
  4. sed -i '177s/.//' /etc/locale.gen
  5. echo "LANG=en_US.UTF-8" >> /etc/locale.conf
  6. locale-gen
  7. echo "KEYMAP=es" >> /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 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 edk2-ovmf bridge-utils dnsmasq vde2 openbsd-netcat iptables-nft 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=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
  19. grub-mkconfig -o /boot/grub/grub.cfg
  20. systemctl enable NetworkManager
  21. systemctl enable bluetooth
  22. systemctl enable cups.service
  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 gmarx
  32. echo gmarx:password | chpasswd
  33. usermod -aG libvirt gmarx
  34. echo "gmarx ALL=(ALL) ALL" >> /etc/sudoers.d/gmarx
  35. printf "\e[1;32mDone! Type exit, umount -a and reboot.\e[0m"