archinstall/base.sh

92 lines
3.9 KiB
Bash
Raw Normal View History

2021-12-11 18:22:56 +00:00
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
hwclock --systohc
2021-12-11 19:03:24 +00:00
# vim /etc/locale.gen
sed -i 's/#\(de_DE.UTF-8\)/\1/' /etc/locale.gen
2021-12-11 18:22:56 +00:00
locale-gen
echo "LANG=de_DE.UTF-8" >> /etc/locale.conf
echo "KEYMAP=de-latin1" >> /etc/vconsole.conf #only for console not for DE or terminal
echo "FONT=Tamsyn10x20r" >> /etc/vconsole.conf
echo "arch" >> /etc/hostname
# vim /etc/hosts
echo "127.0.0.1 localhost" >> /etc/hosts
echo "::1 localhost" >> /etc/hosts
echo "127.0.1.1 arch.localedomain arch" >> /etc/hosts
echo root:test | chpasswd
# Wish
# pacman -S --noconfirm efibootmgr dialog iwd mtools doasfstools reflector base-devel linux-headers avahi nss-mdns xdg-user-dirs xdg-utils inetutils dnsutils bluez bluez-utils cups hplip alsa-utils pipewire pipewire-alsa pipewire-pulseaudio pipewire-jack pavucontrol bash-completion openssh rsync acpi acpi_call tlp virt-manager qemu qemu-arch-extra edk2-ovmf bridge-utils dnsmasq vde2 openbsd-netcat iptables-nft ipset firewalld sof-firmware acpid os-prober ntfs-3g tamsyn-font
# i3
2021-12-11 21:28:41 +00:00
pacman -S efibootmgr dialog iwd 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 xorg pavucontrol bash-completion openssh rsync acpi acpi_call tlp virt-manager qemu qemu-arch-extra edk2-ovmf bridge-utils dnsmasq vde2 openbsd-netcat iptables-nft ipset firewalld sof-firmware acpid os-prober ntfs-3g
exit 0
2021-12-11 18:22:56 +00:00
# All
# pacman -S --noconfirm efibootmgr dialog <iwd>/<wpa_supplicant> mtools doasfstools 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 pipewire pipewire-alsa pipewire-pulseaudio pipewire-jack pavucontrol bash-completion openssh rsync 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> treminus-font
2021-12-12 20:39:13 +00:00
# Filemanager
# ranger
# pcmanfm
2021-12-11 18:22:56 +00:00
pacman -S --noconfirm xf86-video-amdgpu
systemctl enable bluetooth
systemctl enable cups.service
systemctl enable sshd
systemctl enable avahi-deamon
systemctl enable reflector.timer
systemctl enable fstrim.timer
systemctl enable libvirtd
systemctl enable firewalld
systemctl enable acpid
systemctl enable iwd
2021-12-11 18:35:28 +00:00
sed -i 's/MODULES=()/MODULES=(amdgpu)/' /etc/mkinitcpio.conf
# sed -i 's/MODULES=()/MODULES=(nvidia)/' /etc/mkinitcpio.conf
# sed -i 's/MODULES=()/MODULES=(i915)/' /etc/mkinitcpio.conf
mkinitcpio -p linux
# mkinitcpio -p linux-lts
bootctl install # be aware of Problems by dualbooting
# Bootloaderconfig
sed -i 's/#\(timeout\)\s[0-9]/\1 5/' /boot/loader/loader.conf
sed -i 's/#\(console\)/\1/' /boot/loader/loader.conf
sed -i 's/keep/max/' /boot/loader/loader.conf
sed -i 's/\(default\s\).*/\1arch.conf/' /boot/loader/loader.conf
# Entry
echo "title Arch Linux" >> /boot/loader/entries/arch.conf
echo "linux /vmlinuz-linux" >> /boot/loader/entries/arch.conf
# AMD
echo "initrd /amd-ucode.img" >> /boot/loader/entries/arch.conf
# Intel
# echo "initrd /intel-ucode.img" >> /boot/loader/entries/arch.conf
echo "initrd /initramfs-linux.img" >> /boot/loader/entries/arch.conf
2021-12-11 22:09:29 +00:00
echo 'options root="LABEL=arch" rw' >> /boot/loader/entries/arch.conf
2021-12-11 18:35:28 +00:00
2021-12-11 18:22:56 +00:00
# Systemd-networkd (for wlan0)
echo "[Match]" >> /etc/systemd/network/25-wireless.network
echo "Name=wlan0" >> /etc/systemd/network/25-wireless.network
echo "\n" >> /etc/systemd/network/25-wireless.network
echo "[Network]" >> /etc/systemd/network/25-wireless.network
echo "DHCP=yes" >> /etc/systemd/network/25-wireless.network
systemctl enable systemd-networkd
systemctl enable systemd-resolved
useradd -m eichehome
echo eichehome:testen | chpasswd
2021-12-11 19:54:22 +00:00
usermod -aG libvirt eichehome
2021-12-11 18:22:56 +00:00
echo "eichehome ALL=(ALL) ALL" >> /etc/sudoers.d/eichehome
2021-12-12 20:29:14 +00:00
# Color /etc/pacman.conf
#
# ILoveCandy
2021-12-11 18:22:56 +00:00
printf "\e[1;32mDone: Type exit, umount -a and reboot.\n\e[0m"
2021-12-11 21:28:41 +00:00