Renamed some files

This commit is contained in:
eichehome 2022-01-18 23:43:46 +01:00
parent 4cf5dd5eff
commit 931d72a9db
4 changed files with 366 additions and 221 deletions

81
beispiel.sh Normal file
View file

@ -0,0 +1,81 @@
loadkeys de-latin1
pacman -S tamsyn-font
setfont Tamsyn10x20r
pacstrap /mnt base linux-lts linux-firmware git vim amd-ucode
arch-chroot /mnt
git clone https://gitlab.com/eflinux/arch-basic
# base.sh
ln -sf /usr/share/zoneinfo/Europe/Zurich /etc/localtime
xwclock --systohc
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
echo "arch" >> /etc/hostname
echo "127.0.0.1 localhost" >> /etc/hosts
echo "::1 localhost" >> /etc/hosts
echo "127.0.1.1 arch.localdomain arch" >> /etc/hosts
echo root:test | chpasswd
# You can add xorg to the installation packages, I usually add it at the DE or WM install script
# You can remove the tlp package if you are installing on a desktop or vm
pacman -S grub efibootmgr networkmanager network-manager-applet dialog wpa_supplicant mtools dosfstools reflector base-devel linux-lts-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 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 tamsyn-font
pacman -S --noconfirm xf86-video-amdgpu
# pacman -S --noconfirm nvidia nvidia-utils nvidia-settings
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
systemctl enable NetworkManager
systemctl enable bluetooth
systemctl enable cups.service
systemctl enable sshd
systemctl enable avahi-daemon
systemctl enable tlp # You can comment this command out if you didn't install tlp, see above
systemctl enable reflector.timer
systemctl enable fstrim.timer
systemctl enable libvirtd
systemctl enable firewalld
systemctl enable acpid
useradd -m eichehome
echo eichehome:testen | chpasswd
usermod -aG libvirt eichehome
echo "ermanno ALL=(ALL) ALL" >> /etc/sudoers.d/ermanno
printf "\e[1;32mDone! Type exit, umount -a and reboot.\e[0m"
vim /etc/mkinitcpio.conf
# MODULES=(amdgpu)
mkinitcpio -p linux-lts
pacman -S i3 terminator lxappearance nitrogen pcmanfm firefox dmenu
git clone https://aur.archlinux.org/ly
cd ly
makepkg -si
sudo systemctl enable ly.service
sudo vim /etc/default/grub
# add video=1920x1080
sudo grub-mkconfig -o /boot/grub/grub.cfg
cd .config/i3/
vim config
# saerch for terminal and change it to terminator
# add at the end:
# exec setxkbmap de
# exec xrandr --uotput Virtual-1 --mode 1920x1080
# exec nitrogen --restore
sudo pacman -S arc-gtk-theme archlinux-wallpaper
# set terminal
# wallpapers at /usr/share/backgrounds/archlinux
#=================
# $mod+enter=terminal
# $mod+shift+q=close
# $mod+d=dmenu(starter)
#=================
# .bashrc
# complete -cf doas
# shopt -s autocd

186
i3.sh
View file

@ -1,81 +1,145 @@
loadkeys de-latin1 ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
pacman -S tamsyn-font hwclock --systohc
setfont Tamsyn10x20r
pacstrap /mnt base linux-lts linux-firmware git vim amd-ucode
arch-chroot /mnt
git clone https://gitlab.com/eflinux/arch-basic
# base.sh # vim /etc/locale.gen
ln -sf /usr/share/zoneinfo/Europe/Zurich /etc/localtime
xwclock --systohc
sed -i 's/#\(de_DE.UTF-8\)/\1/' /etc/locale.gen sed -i 's/#\(de_DE.UTF-8\)/\1/' /etc/locale.gen
locale-gen locale-gen
echo "LANG=de_DE.UTF-8" >> /etc/locale.conf echo "LANG=de_DE.UTF-8" >> /etc/locale.conf
echo "KEYMAP=de-latin1" >> /etc/vconsole.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 echo "arch" >> /etc/hostname
# vim /etc/hosts
echo "127.0.0.1 localhost" >> /etc/hosts echo "127.0.0.1 localhost" >> /etc/hosts
echo "::1 localhost" >> /etc/hosts echo "::1 localhost" >> /etc/hosts
echo "127.0.1.1 arch.localdomain arch" >> /etc/hosts echo "127.0.1.1 arch.localedomain arch" >> /etc/hosts
echo root:test | chpasswd echo root:test | chpasswd
# You can add xorg to the installation packages, I usually add it at the DE or WM install script pacman -S base-devel linux-headers linux-lts-headers
# You can remove the tlp package if you are installing on a desktop or vm
pacman -S grub efibootmgr networkmanager network-manager-applet dialog wpa_supplicant mtools dosfstools reflector base-devel linux-lts-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 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 tamsyn-font # 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
# Laptop
pacman -S iwd bluez bluez-utils cups hplip
# Power
pacman -S acpi acpi_call tlp
# Video AMD
pacman -S --noconfirm xf86-video-amdgpu pacman -S --noconfirm xf86-video-amdgpu
# pacman -S --noconfirm nvidia nvidia-utils nvidia-settings
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB # System
grub-mkconfig -o /boot/grub/grub.cfg systemctl enable systemd-networkd
systemctl enable systemd-resolved
systemctl enable NetworkManager
systemctl enable bluetooth
systemctl enable cups.service
systemctl enable sshd systemctl enable sshd
systemctl enable avahi-daemon
systemctl enable tlp # You can comment this command out if you didn't install tlp, see above
systemctl enable reflector.timer systemctl enable reflector.timer
systemctl enable fstrim.timer
systemctl enable libvirtd
systemctl enable firewalld systemctl enable firewalld
systemctl enable acpid systemctl enable fstrim.timer
# Laptop
systemctl enable iwd
systemctl enable cups
systemctl enable bluetooth
useradd -m eichehome sed -i 's/MODULES=()/MODULES=(amdgpu)/' /etc/mkinitcpio.conf
mkinitcpio -p linux
mkinitcpio -p linux-ltp
bootctl install
# Bootloaderconfig
echo "timeout 5" > /boot/loader/loader.conf
echo "console max" >> /boot/loader/loader.conf
echo "default arch.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 rootflags=subvol=@ rw" >> /boot/loader/entries/arch.conf
# Entry Arch LTS
echo "title Arch Linux LTS" >> /boot/loader/entries/arch-lts.conf
echo "linux /vmlinuz-linux-lts" >> /boot/loader/entries/arch-lts.conf
# AMD
echo "initrd /amd-ucode.img" >> /boot/loader/entries/arch-lts.conf
# Intel
# echo "initrd /intel-ucode.img" >> /boot/loader/entries/arch-lts.conf
echo "initrd /initramfs-linux-lts.img" >> /boot/loader/entries/arch-lts.conf
echo "options root=LABEL=arch rootflags=subvol=@ rw" >> /boot/loader/entries/arch-lts.conf
# Entry Arch Fallback
echo "title Arch Linux Fallback" > /boot/loader/entries/arch-fallback.conf
echo "linux /vmlinuz-linux" >> /boot/loader/entries/arch-fallback.conf
# AMD
echo "initrd /amd-ucode.img" >> /boot/loader/entries/arch-fallback.conf
# Intel
# echo "initrd /intel-ucode.img" >> /boot/loader/entries/arch-fallback.conf
echo "initrd /initramfs-linux-fallback.img" >> /boot/loader/entries/arch-fallback.conf
echo "options root=LABEL=arch rootflags=subvol=@" >> /boot/loader/entries/arch-fallback.conf
# Entry Arch LTS Fallback
echo "title Arch Linux LTS Fallback" > /boot/loader/entries/arch-fallback.conf
echo "linux /vmlinuz-linux-lts" >> /boot/loader/entries/arch-lts-fallback.conf
# AMD
echo "initrd /amd-ucode.img" >> /boot/loader/entries/arch-lts-fallback.conf
# Intel
# echo "initrd /intel-ucode.img" >> /boot/loader/entries/arch-lts-fallback.conf
echo "initrd /initramfs-linux-lts-fallback.img" >> /boot/loader/entries/arch-lts-fallback.conf
echo "options root=LABEL=arch rootflags=subvol=@" >> /boot/loader/entries/arch-lts-fallback.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
useradd -mG wheel eichehome
echo eichehome:testen | chpasswd echo eichehome:testen | chpasswd
usermod -aG libvirt eichehome
echo "ermanno ALL=(ALL) ALL" >> /etc/sudoers.d/ermanno echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers.d/wheel_group
sed -i 's/#\(Color\)/\1/' /etc/pacman.conf
printf "\e[1;32mDone! Type exit, umount -a and reboot.\e[0m" # Umbruch notwendug
sed -i 's/#\(ParallelDownloads\s=\s5\)/\1\
vim /etc/mkinitcpio.conf ILoveCandy/' /etc/pacman.conf
# MODULES=(amdgpu)
mkinitcpio -p linux-lts
pacman -S i3 terminator lxappearance nitrogen pcmanfm firefox dmenu
git clone https://aur.archlinux.org/ly
cd ly
makepkg -si
sudo systemctl enable ly.service
sudo vim /etc/default/grub
# add video=1920x1080
sudo grub-mkconfig -o /boot/grub/grub.cfg
cd .config/i3/
vim config
# saerch for terminal and change it to terminator
# add at the end:
# exec setxkbmap de
# exec xrandr --uotput Virtual-1 --mode 1920x1080
# exec nitrogen --restore
sudo pacman -S arc-gtk-theme archlinux-wallpaper
# set terminal
# wallpapers at /usr/share/backgrounds/archlinux
#=================
# $mod+enter=terminal
# $mod+shift+q=close
# $mod+d=dmenu(starter)
#=================
# .bashrc
# complete -cf doas
# shopt -s autocd

View file

@ -1,158 +0,0 @@
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 plasma-wayland-session kde-applications sddm bluez bluez-utils cups hplip alsa-utils pipewire pipewire-docs pipewire-alsa pipewire-pulse pipewire-jack helvum pavucontrol packagekit-qt5
#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
systemctl enable bluetooth
sed -i 's/MODULES=()/MODULES=(amdgpu)/' /etc/mkinitcpio.conf
mkinitcpio -p linux
mkinitcpio -p linux-ltp
bootctl install
# Bootloaderconfig
echo "timeout 5" > /boot/loader/loader.conf
echo "console max" >> /boot/loader/loader.conf
echo "default arch.conf" >> /boot/loader/loader.conf
#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 rootflags=subvol=@ rw" >> /boot/loader/entries/arch.conf
# Entry Arch LTS
echo "title Arch Linux LTS" >> /boot/loader/entries/arch-lts.conf
echo "linux /vmlinuz-linux-lts" >> /boot/loader/entries/arch-lts.conf
# AMD
echo "initrd /amd-ucode.img" >> /boot/loader/entries/arch-lts.conf
# Intel
# echo "initrd /intel-ucode.img" >> /boot/loader/entries/arch-lts.conf
echo "initrd /initramfs-linux-lts.img" >> /boot/loader/entries/arch-lts.conf
echo "options root=LABEL=arch rootflags=subvol=@ rw" >> /boot/loader/entries/arch-lts.conf
# Entry Arch Fallback
echo "title Arch Linux Fallback" > /boot/loader/entries/arch-fallback.conf
echo "linux /vmlinuz-linux" >> /boot/loader/entries/arch-fallback.conf
# AMD
echo "initrd /amd-ucode.img" >> /boot/loader/entries/arch-fallback.conf
# Intel
# echo "initrd /intel-ucode.img" >> /boot/loader/entries/arch-fallback.conf
echo "initrd /initramfs-linux-fallback.img" >> /boot/loader/entries/arch-fallback.conf
echo "options root=LABEL=arch rootflags=subvol=@" >> /boot/loader/entries/arch-fallback.conf
# Entry Arch LTS Fallback
echo "title Arch Linux LTS Fallback" > /boot/loader/entries/arch-fallback.conf
echo "linux /vmlinuz-linux-lts" >> /boot/loader/entries/arch-lts-fallback.conf
# AMD
echo "initrd /amd-ucode.img" >> /boot/loader/entries/arch-lts-fallback.conf
# Intel
# echo "initrd /intel-ucode.img" >> /boot/loader/entries/arch-lts-fallback.conf
echo "initrd /initramfs-linux-lts-fallback.img" >> /boot/loader/entries/arch-lts-fallback.conf
echo "options root=LABEL=arch rootflags=subvol=@" >> /boot/loader/entries/arch-lts-fallback.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
useradd -m eichehome
echo eichehome:testen | chpasswd
echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers.d/wheel_group
sed -i 's/#\(Color\)/\1/' /etc/pacman.conf
# Umbruch notwendug
sed -i 's/#\(ParallelDownloads\s=\s5\)/\1\
ILoveCandy/' /etc/pacman.conf

158
kde.sh
View file

@ -0,0 +1,158 @@
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 plasma-wayland-session kde-applications sddm bluez bluez-utils cups hplip alsa-utils pipewire pipewire-docs pipewire-alsa pipewire-pulse pipewire-jack helvum pavucontrol packagekit-qt5
#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
systemctl enable bluetooth
sed -i 's/MODULES=()/MODULES=(amdgpu)/' /etc/mkinitcpio.conf
mkinitcpio -p linux
mkinitcpio -p linux-ltp
bootctl install
# Bootloaderconfig
echo "timeout 5" > /boot/loader/loader.conf
echo "console max" >> /boot/loader/loader.conf
echo "default arch.conf" >> /boot/loader/loader.conf
#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 rootflags=subvol=@ rw" >> /boot/loader/entries/arch.conf
# Entry Arch LTS
echo "title Arch Linux LTS" >> /boot/loader/entries/arch-lts.conf
echo "linux /vmlinuz-linux-lts" >> /boot/loader/entries/arch-lts.conf
# AMD
echo "initrd /amd-ucode.img" >> /boot/loader/entries/arch-lts.conf
# Intel
# echo "initrd /intel-ucode.img" >> /boot/loader/entries/arch-lts.conf
echo "initrd /initramfs-linux-lts.img" >> /boot/loader/entries/arch-lts.conf
echo "options root=LABEL=arch rootflags=subvol=@ rw" >> /boot/loader/entries/arch-lts.conf
# Entry Arch Fallback
echo "title Arch Linux Fallback" > /boot/loader/entries/arch-fallback.conf
echo "linux /vmlinuz-linux" >> /boot/loader/entries/arch-fallback.conf
# AMD
echo "initrd /amd-ucode.img" >> /boot/loader/entries/arch-fallback.conf
# Intel
# echo "initrd /intel-ucode.img" >> /boot/loader/entries/arch-fallback.conf
echo "initrd /initramfs-linux-fallback.img" >> /boot/loader/entries/arch-fallback.conf
echo "options root=LABEL=arch rootflags=subvol=@" >> /boot/loader/entries/arch-fallback.conf
# Entry Arch LTS Fallback
echo "title Arch Linux LTS Fallback" > /boot/loader/entries/arch-fallback.conf
echo "linux /vmlinuz-linux-lts" >> /boot/loader/entries/arch-lts-fallback.conf
# AMD
echo "initrd /amd-ucode.img" >> /boot/loader/entries/arch-lts-fallback.conf
# Intel
# echo "initrd /intel-ucode.img" >> /boot/loader/entries/arch-lts-fallback.conf
echo "initrd /initramfs-linux-lts-fallback.img" >> /boot/loader/entries/arch-lts-fallback.conf
echo "options root=LABEL=arch rootflags=subvol=@" >> /boot/loader/entries/arch-lts-fallback.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
useradd -mG wheel eichehome
echo eichehome:testen | chpasswd
echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers.d/wheel_group
sed -i 's/#\(Color\)/\1/' /etc/pacman.conf
# Umbruch notwendug
sed -i 's/#\(ParallelDownloads\s=\s5\)/\1\
ILoveCandy/' /etc/pacman.conf