Compare commits

..

3 commits

View file

@ -4,9 +4,9 @@
# Einfache Version #
####################
# processor manufacturer: amd
# processor micricode: amd-ucode|intel-ucode
MICROCODE="amd-ucode"
# kernel: linux
# kernel: linux|linux-lts|linux-zen
KERNEL="linux"
# hostname: arch
HOSTNAME_NEW="arch"
@ -16,7 +16,7 @@ ROOTPASSWORD="testen"
USERNAME="eichehome"
# userpassword: testen
USERPASSWORD="testen"
# graphics card: amd
# graphics card: amd|intel|nvidia
GRAPHICS_CARD="amd"
# timezone: Europe/Berlin
TIMEZONE="Europe/Berlin"
@ -44,7 +44,7 @@ mount /dev/vda1 /mnt/boot
#ln -sf /run/systemd/resolve/stub-resolv.conf /mnt/etc/resolv.conf # tmpfiles.d macht das
pacstrap /mnt base linux-firmware vim git "${KERNEL}" "${MICROCODE}" #dracut
pacstrap -i /mnt base linux-firmware vim git "${KERNEL}" "${MICROCODE}" #dracut
#arch-chroot /mnt
# ln -sf "/usr/share/zoneinfo/${TIMEZONE}" /etc/localtime -> L /etc/localtime - - - - "/usr/share/zoneinfo/${TIMEZONE}"
@ -75,20 +75,20 @@ EOF
arch-chroot /mnt chpasswd <<< "root:${ROOTPASSWORD}"
#echo root:"${ROOTPASSWORD}" | chpasswd
pacstrap /mnt base-devel "${KERNEL}-header"
pacstrap /mnt opendoas firewalld iptables-nft openssh bash-completion man-db man-pages reflector xdg-user-dirs
pacstrap -i /mnt base-devel "${KERNEL}-header"
pacstrap -i /mnt opendoas firewalld iptables-nft openssh bash-completion man-db man-pages reflector xdg-user-dirs
#pacman -S iwd dialog reflector xdg-user-dirs xdg-utils inetutils ldns bash-completion openssh rsync iptables-nft ipset firewalld lynx man-db man-pages texinfo opendoas pacman-contrib rebuild-detector
pacstrap /mnt efibootmgr mtools dosfstools
pacstrap -i /mnt efibootmgr mtools dosfstools
if [[ ${GRAPHICS_CARD} == "amd"]]; then
pacstrap /mnt xf86-video-amdgpu
elif [[ ${GRAPHICS_CARD} == "nvidia"]]; then
pacstrap /mnt nvidia nvidia-utils nvidia-settings
if [[ "${GRAPHICS_CARD}" == "amd" ]]; then
pacstrap -i /mnt xf86-video-amdgpu
elif [[ "${GRAPHICS_CARD}" == "nvidia" ]]; then
pacstrap -i /mnt nvidia nvidia-utils nvidia-settings
fi
# GNOME installieren
pacstrap /mnt gnome gnome-extras gdm avahi bluez bluez-utils pipewire pipewire-audio pipewire-alsa pipewire-pulse pipewire-jack pipewire-zeroconf pipewire-v4l2 pipewire-docs pipewire-roc helvum wireplumber gstreamer gst-plugin-pipewire gst-libav gst-plugins-good gst-plugins-base xdg-desktop-portal-gnome networkmanager modemmanager networkmanager-openconnect networkmanager-openvpn networkmanager-pptp networkmanager-vpnc power-profiles-daemon plymouth libreoffice-fresh-de
pacstrap -i /mnt gnome gnome-extras gdm avahi bluez bluez-utils pipewire pipewire-audio pipewire-alsa pipewire-pulse pipewire-jack pipewire-zeroconf pipewire-v4l2 pipewire-docs pipewire-roc helvum wireplumber gstreamer gst-plugin-pipewire gst-libav gst-plugins-good gst-plugins-base xdg-desktop-portal-gnome networkmanager modemmanager networkmanager-openconnect networkmanager-openvpn networkmanager-pptp networkmanager-vpnc power-profiles-daemon plymouth libreoffice-fresh-de
#################################################################
@ -125,11 +125,11 @@ arch-chroot /mnt systemctl enable gdm
arch-chroot /mnt systemctl enable avahi-daemon
arch-chroot /mnt systemctl enable bluetooth
if [[ ${GRAPHICS_CARD} == "amd" ]]; then
if [[ "${GRAPHICS_CARD}" == "amd" ]]; then
sed -i 's/MODULES=()/MODULES=(amdgpu)/' /mnt/etc/mkinitcpio.conf #AMD
elif [[ ${GRAPHICS_CARD} == "intel" ]]; then
elif [[ "${GRAPHICS_CARD}" == "intel" ]]; then
sed -i 's/MODULES=()/MODULES=(i915)/' /mnt/etc/mkinitcpio.conf #Intel
elif [[ ${GRAPHICS_CARD} == "nvidia" ]]; then
elif [[ "${GRAPHICS_CARD}" == "nvidia" ]]; then
sed -i 's/MODULES=()/MODULES=(nvidia)/' /mnt/etc/mkinitcpio.conf #Nvidia
fi
@ -157,4 +157,4 @@ arch-chroot /mnt useradd -mG wheel "${USERNAME}"
arch-chroot /mnt chpasswd <<< "${USERNAME}:${USERPASSWORD}"
#echo "${USERNAME}:${USERPASSWORD}" | chpasswd
exit(0)
exit 0