From 2ef80981f2fae33dea50de3efd76542f38117f2f Mon Sep 17 00:00:00 2001 From: eichehome Date: Fri, 13 Jan 2023 01:16:34 +0100 Subject: [PATCH] Ordnerumstrukturierung --- base-temp.sh => Vorher/base-temp.sh | 0 beispiel.sh => Vorher/beispiel.sh | 0 i3-part2.sh => Vorher/i3-part2.sh | 0 i3-temp.sh => Vorher/i3-temp.sh | 0 i3.sh => Vorher/i3.sh | 0 kde-temp.sh => Vorher/kde-temp.sh | 2 +- laptop.sh => Vorher/laptop.sh | 0 paru-bin.sh => Vorher/paru-bin.sh | 0 paru.sh => Vorher/paru.sh | 0 pre-temp.sh => Vorher/pre-temp.sh | 0 swayland.sh => Vorher/swayland.sh | 0 zramd.sh => Vorher/zramd.sh | 0 alt/alles_nach_reboot.sh | 24 +++ alt/alles_vor_reboot.sh | 150 ++++++++++++++++++ alt/desktop.sh | 0 ...-btrfs-systemd-boot-encrypted-timeshift.sh | 67 ++++++++ kde.sh => alt/kde.sh | 0 alt/login.sh | 0 prep-Ext4-UEFI.sh => alt/prep-Ext4-UEFI.sh | 0 wayfire.sh => alt/wayfire.sh | 0 base.sh | 12 +- 21 files changed, 251 insertions(+), 4 deletions(-) rename base-temp.sh => Vorher/base-temp.sh (100%) rename beispiel.sh => Vorher/beispiel.sh (100%) rename i3-part2.sh => Vorher/i3-part2.sh (100%) rename i3-temp.sh => Vorher/i3-temp.sh (100%) rename i3.sh => Vorher/i3.sh (100%) rename kde-temp.sh => Vorher/kde-temp.sh (99%) rename laptop.sh => Vorher/laptop.sh (100%) rename paru-bin.sh => Vorher/paru-bin.sh (100%) rename paru.sh => Vorher/paru.sh (100%) rename pre-temp.sh => Vorher/pre-temp.sh (100%) rename swayland.sh => Vorher/swayland.sh (100%) rename zramd.sh => Vorher/zramd.sh (100%) create mode 100644 alt/alles_nach_reboot.sh create mode 100644 alt/alles_vor_reboot.sh create mode 100644 alt/desktop.sh create mode 100644 alt/kde-btrfs-systemd-boot-encrypted-timeshift.sh rename kde.sh => alt/kde.sh (100%) create mode 100644 alt/login.sh rename prep-Ext4-UEFI.sh => alt/prep-Ext4-UEFI.sh (100%) rename wayfire.sh => alt/wayfire.sh (100%) diff --git a/base-temp.sh b/Vorher/base-temp.sh similarity index 100% rename from base-temp.sh rename to Vorher/base-temp.sh diff --git a/beispiel.sh b/Vorher/beispiel.sh similarity index 100% rename from beispiel.sh rename to Vorher/beispiel.sh diff --git a/i3-part2.sh b/Vorher/i3-part2.sh similarity index 100% rename from i3-part2.sh rename to Vorher/i3-part2.sh diff --git a/i3-temp.sh b/Vorher/i3-temp.sh similarity index 100% rename from i3-temp.sh rename to Vorher/i3-temp.sh diff --git a/i3.sh b/Vorher/i3.sh similarity index 100% rename from i3.sh rename to Vorher/i3.sh diff --git a/kde-temp.sh b/Vorher/kde-temp.sh similarity index 99% rename from kde-temp.sh rename to Vorher/kde-temp.sh index 2f140c4..d989404 100644 --- a/kde-temp.sh +++ b/Vorher/kde-temp.sh @@ -55,7 +55,7 @@ systemctl enable bluetooth sed -i 's/MODULES=()/MODULES=(btrfs amdgpu)/' /etc/mkinitcpio.conf mkinitcpio -p linux -mkinitcpio -p linux-ltp +mkinitcpio -p linux-lts bootctl install diff --git a/laptop.sh b/Vorher/laptop.sh similarity index 100% rename from laptop.sh rename to Vorher/laptop.sh diff --git a/paru-bin.sh b/Vorher/paru-bin.sh similarity index 100% rename from paru-bin.sh rename to Vorher/paru-bin.sh diff --git a/paru.sh b/Vorher/paru.sh similarity index 100% rename from paru.sh rename to Vorher/paru.sh diff --git a/pre-temp.sh b/Vorher/pre-temp.sh similarity index 100% rename from pre-temp.sh rename to Vorher/pre-temp.sh diff --git a/swayland.sh b/Vorher/swayland.sh similarity index 100% rename from swayland.sh rename to Vorher/swayland.sh diff --git a/zramd.sh b/Vorher/zramd.sh similarity index 100% rename from zramd.sh rename to Vorher/zramd.sh diff --git a/alt/alles_nach_reboot.sh b/alt/alles_nach_reboot.sh new file mode 100644 index 0000000..d3cf7e4 --- /dev/null +++ b/alt/alles_nach_reboot.sh @@ -0,0 +1,24 @@ +paru -S zramd + +sudo systemctl enable --now zramd +###### +paru -S ly + +sudo systemctl enable ly.service +###### +sudo pacman -S bluez bluez-utils cups hplip print-manager system-config-printer + +sudo systemctl enable cups +sudo systemctl enable bluetooth +###### +sudo pacman -S pipewire pipewire-docs pipewire-alsa pipewire-pulse pipewire-jack alsa-utils helvum pavucontrol qjackctl + +sudo pacman -S plasma kde-applications kio kio-extras kio-fuse packagekit-qt5 plasma-wayland-session kde-pim kdeconnect sshfs + +#sudo pacman -S akonadi kdepim-addons + +sudo pacman -S phonon-qt5-gstreamer gst-libav gst-plugins-good gst-plugins-ugly gst-plugins-bad + +sudo pacman -S alacritty + +paru -S powerdevil-light \ No newline at end of file diff --git a/alt/alles_vor_reboot.sh b/alt/alles_vor_reboot.sh new file mode 100644 index 0000000..879a6c9 --- /dev/null +++ b/alt/alles_vor_reboot.sh @@ -0,0 +1,150 @@ +# Vor Reboot +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 + +pacman -S base-devel linux-headers linux-lts-headers + +pacman -S iwd dialog reflector xdg-user-dirs xdg-utils inetutils ldns bash-completion openssh rsync iptables-nft ipset firewalld lynx + +pacman -S efibootmgr mtools dosfstools + +pacman -S --noconfirm xf86-video-amdgpu +# pacman -S --noconfirm nvidia nvidia-utils nvidia-settings + +systemctl enable systemd-networkd +systemctl enable systemd-resolved +systemctl enable systemd-timesyncd +systemctl enable sshd +systemctl enable reflector.timer +systemctl enable firewalld +systemctl enable fstrim.timer +systemctl enable iwd + +sed -i 's/MODULES=()/MODULES=(amdgpu)/' /etc/mkinitcpio.conf #AMD +# sed -i 's/MODULES=()/MODULES=(nvidia)/' /etc/mkinitcpio.conf #Nvidia +# sed -i 's/MODULES=()/MODULES=(i915)/' /etc/mkinitcpio.conf #Intel + +mkinitcpio -p linux +mkinitcpio -p linux-lts + +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 "%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 + +#git clone https://aur.archlinux.org/paru-bin +#cd paru-bin +#makepkg -si +#cd .. + +touch /etc/profile.d/sway.sh +echo "export WLR_NO_HARDWARE_CURSORS=1" >> /etc/profile.d/sway.sh +echo 'if [ "$XDG_SESSION_TYPE" == "wayland" ]; then' >> /etc/profile.d/sway.sh +echo " export MOZ_ENABLE_WAYLAND=1" >> /etc/profile.d/sway.sh +echo ' export QT_QPA_PLATFORM="wayland;xcb"' >> /etc/profile.d/sway.sh +echo "fi" >> /etc/profile.d/sway.sh \ No newline at end of file diff --git a/alt/desktop.sh b/alt/desktop.sh new file mode 100644 index 0000000..e69de29 diff --git a/alt/kde-btrfs-systemd-boot-encrypted-timeshift.sh b/alt/kde-btrfs-systemd-boot-encrypted-timeshift.sh new file mode 100644 index 0000000..151dbc9 --- /dev/null +++ b/alt/kde-btrfs-systemd-boot-encrypted-timeshift.sh @@ -0,0 +1,67 @@ +lsblk +gdisk (/dev/vda) +#Command n +#Partitionnumber 1(default) +#Fist Sector default +#Last Sector +300M +#Code ef00 +#Command n +#Partitionnummber 2(default) +#First Sector default +#Last Sector default +#Code 8300(default) +#Command w y + +mkfs.fat -F32 (/dev/vda1) + +cryptsetup --cipher aes-xts-plain64 --hash sha512 --use-random --verify-passphrase luksFormat (/dev/vda2) + +cryptsetup luksOpen (/dev/vda2) root + +mkfs.btrfs /dev/mapper/root + +mount /dev/mapper/root /mnt + +cd /mnt + +btrfs subvolume create @ + +btrfs subvolume create @home + +cd ~ + +umount /mnt + +mount -o noatime,space_cache=v2,compress=zstd,ssd,discard=async,subvol=@ /dev/mapper/root /mnt + +mkdir /mnt/{boot,home} + +mount -o noatime,space_cache=v2,compress=zstd,ssd,discard=async,subvol=@home /dev/mapper/root /mnt/home + +mount /dev/vda1 /mnt/boot + +pacstrap /mnt base linux linux-firmware git vim amd-ucode + +genfstab -U /mnt >> /mnt/etc/fstab + +arch-chroot /mnt + +vim /etc/mkinitcpio.conf #HOOKS=(... encrypt filesystem ...) + +mkinitcpio -p linux + +--- +base.sh (Packages etc): +n -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime +hwclock --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.localedomain arch" >> /etc/hosts +echo root:test | chpasswd + +--- \ No newline at end of file diff --git a/kde.sh b/alt/kde.sh similarity index 100% rename from kde.sh rename to alt/kde.sh diff --git a/alt/login.sh b/alt/login.sh new file mode 100644 index 0000000..e69de29 diff --git a/prep-Ext4-UEFI.sh b/alt/prep-Ext4-UEFI.sh similarity index 100% rename from prep-Ext4-UEFI.sh rename to alt/prep-Ext4-UEFI.sh diff --git a/wayfire.sh b/alt/wayfire.sh similarity index 100% rename from wayfire.sh rename to alt/wayfire.sh diff --git a/base.sh b/base.sh index 0bcec80..7b570c5 100644 --- a/base.sh +++ b/base.sh @@ -18,7 +18,7 @@ echo root:test | chpasswd pacman -S base-devel linux-headers linux-lts-headers -pacman -S iwd dialog reflector xdg-user-dirs xdg-utils inetutils bind bash-completion openssh rsync iptables-nft ipset firewalld lynx +pacman -S iwd dialog reflector xdg-user-dirs xdg-utils inetutils ldns bash-completion openssh rsync iptables-nft ipset firewalld lynx pacman -S efibootmgr mtools dosfstools @@ -27,13 +27,14 @@ pacman -S --noconfirm xf86-video-amdgpu systemctl enable systemd-networkd systemctl enable systemd-resolved +systemctl enable systemd-timesyncd systemctl enable sshd systemctl enable reflector.timer systemctl enable firewalld systemctl enable fstrim.timer systemctl enable iwd -sed -i 's/MODULES=()/MODULES=(amdgpu)/' /etc/mkinitcpio.conf +sed -i 's/MODULES=()/MODULES=(amdgpu)/' /etc/mkinitcpio.conf #AMD # sed -i 's/MODULES=()/MODULES=(nvidia)/' /etc/mkinitcpio.conf #Nvidia # sed -i 's/MODULES=()/MODULES=(i915)/' /etc/mkinitcpio.conf #Intel @@ -134,4 +135,9 @@ 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 \ No newline at end of file +ILoveCandy/' /etc/pacman.conf + +git clone https://aur.archlinux.org/paru-bin +cd paru-bin +makepkg -si +cd .. \ No newline at end of file