116 lines
4.4 KiB
Bash
116 lines
4.4 KiB
Bash
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
|
|
hwclock --systohc
|
|
|
|
# vim /etc/locale.gen
|
|
sed -i 's/#\(de_DE.UTF-8\)/\1/' /etc/locale.gen
|
|
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
|
|
|
|
git clone https://aur.archlinux.org/paru-bin
|
|
cd paru-bin
|
|
makepkg -si
|
|
cd /
|
|
|
|
#AUR
|
|
pacman -S base-devel linux-headers linux-lts-headers
|
|
|
|
paru -S zramd
|
|
|
|
# bind = dnsutils (dig, etc.)
|
|
pacman -S dialog reflector xdg-user-dirs xdg-utils inetutils bind bash-completion openssh rsync iptables-nft ipset firewalld lynx
|
|
|
|
pacman -S efibootmgr mtools dosfstools
|
|
#pacman -S grub os-prober efibootmgr mtools dosfstools sof-firmware os-prober
|
|
|
|
pacman -S iwd plasma kde-applications sddm bluez bluez-utils cups hplip alsa-utils pipewire pipewire-docs pipewire-alsa pipewire-pulse pipewire-jack helvum pavucontrol
|
|
|
|
#Power
|
|
pacman -S acpi acpi_call tlp
|
|
|
|
# Video AMD
|
|
pacman -S --noconfirm xf86-video-amdgpu
|
|
|
|
# System
|
|
systemctl enable systemd-networkd
|
|
systemctl enable systemd-resolved
|
|
systemctl enable sshd
|
|
systemctl enable reflector.timer
|
|
systemctl enable firewalld
|
|
systemctl enable fstrim.timer
|
|
# Laptop
|
|
systemctl enable iwd
|
|
systemctl enable sddm
|
|
systemctl enable cups
|
|
|
|
sed -i 's/MODULES=()/MODULES=(amdgpu)/' /etc/mkinitcpio.conf
|
|
|
|
mkinitcpio -p linux
|
|
|
|
bootctl install
|
|
|
|
# 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 Arch
|
|
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
|
|
echo 'options root="LABEL=arch" rw' >> /boot/loader/entries/arch.conf
|
|
|
|
# Netzwerk
|
|
# Ethernet
|
|
echo "[Match]" >> /etc/systemd/network/20-ethernet.network
|
|
echo "Name=en*" >> /etc/systemd/network/20-ethernet.network
|
|
echo "Name=eth*" >> /etc/systemd/network/20-ethernet.network
|
|
echo "" >> /etc/systemd/network/20-ethernet.network
|
|
echo "[Network]" >> /etc/systemd/network/20-ethernet.network
|
|
echo "DHCP=yes" >> /etc/systemd/network/20-ethernet.network
|
|
echo "IPv6PrivacyExtensions=yes" >> /etc/systemd/network/20-ethernet.network
|
|
echo "" >> /etc/systemd/network/20-ethernet.network
|
|
echo "[DHCPv4]" >> /etc/systemd/network/20-ethernet.network
|
|
echo "RouteMetric=100" >> /etc/systemd/network/20-ethernet.network
|
|
echo "" >> /etc/systemd/network/20-ethernet.network
|
|
echo "[IPv6AcceptRA]" >> /etc/systemd/network/20-ethernet.network
|
|
echo "RouteMetric=100" >> /etc/systemd/network/20-ethernet.network
|
|
# Wlan
|
|
echo "[Match]" >> /etc/systemd/network/20-wlan.network
|
|
echo "Name=wl*" >> /etc/systemd/network/20-wlan.network
|
|
echo "" >> /etc/systemd/network/20-wlan.network
|
|
echo "[Network]" >> /etc/systemd/network/20-wlan.network
|
|
echo "DHCP=yes" >> /etc/systemd/network/20-wlan.network
|
|
echo "IPv6PrivacyExtensions=yes" >> /etc/systemd/network/20-wlan.network
|
|
echo "" >> /etc/systemd/network/20-wlan.network
|
|
echo "[DHCPv4]" >> /etc/systemd/network/20-wlan.network
|
|
echo "RouteMetric=600" >> /etc/systemd/network/20-wlan.network
|
|
echo "" >> /etc/systemd/network/20-wlan.network
|
|
echo "[IPv6AcceptRA]" >> /etc/systemd/network/20-wlan.network
|
|
echo "RouteMetric=600" >> /etc/systemd/network/20-wlan.network
|
|
# Wwan (Mobilefunk)
|
|
echo "[Match]" >> /etc/systemd/network/20-wwan.network
|
|
echo "Name=ww*" >> /etc/systemd/network/20-wwan.network
|
|
echo "" >> /etc/systemd/network/20-wwan.network
|
|
echo "[Network]" >> /etc/systemd/network/20-wwan.network
|
|
echo "DHCP=yes" >> /etc/systemd/network/20-wwan.network
|
|
echo "IPv6PrivacyExtensions=yes" >> /etc/systemd/network/20-wwan.network
|
|
echo "" >> /etc/systemd/network/20-wwan.network
|
|
echo "[DHCPv4]" >> /etc/systemd/network/20-wwan.network
|
|
echo "RouteMetric=700" >> /etc/systemd/network/20-wwan.network
|
|
echo "" >> /etc/systemd/network/20-wwan.network
|
|
echo "[IPv6AcceptRA]" >> /etc/systemd/network/20-wwan.network
|
|
echo "RouteMetric=700" >> /etc/systemd/network/20-wwan.network
|