Compare commits
5 commits
a5029337d2
...
1c91698dbc
Author | SHA1 | Date | |
---|---|---|---|
1c91698dbc | |||
b10651126b | |||
ed44ab1824 | |||
a2736bb15e | |||
33d7ac21c6 |
1 changed files with 43 additions and 39 deletions
82
install.uefi
82
install.uefi
|
@ -45,24 +45,26 @@ 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
|
||||
arch-chroot /mnt
|
||||
#arch-chroot /mnt
|
||||
|
||||
# ln -sf "/usr/share/zoneinfo/${TIMEZONE}" /etc/localtime -> L /etc/localtime - - - - "/usr/share/zoneinfo/${TIMEZONE}"
|
||||
ln -sf "/usr/share/zoneinfo/${TIMEZONE}" /etc/localtime
|
||||
arch-chroot /mnt hwclock --systohc
|
||||
arch-chroot /mnt rm -rf /mnt/etc/localtime
|
||||
arch-chroot /mnt ln -sf "/usr/share/zoneinfo/${TIMEZONE}" /mnt/etc/localtime
|
||||
|
||||
sed -i 's/#\(Color\)/\1/' /etc/pacman.conf
|
||||
sed -i 's/#\(Color\)/\1/' /mnt/etc/pacman.conf
|
||||
# Umbruch notwendug
|
||||
sed -i 's/#\(ParallelDownloads\s=\s5\)/\1\
|
||||
ILoveCandy/' /etc/pacman.conf
|
||||
ILoveCandy/' /mnt/etc/pacman.conf
|
||||
|
||||
sed -i "s/#\(${LANG}\)/\1/" /etc/locale.gen
|
||||
locale-gen
|
||||
sed -i "s/#\(${LANG}\)/\1/" /mnt/etc/locale.gen
|
||||
arch-chroot /mnt locale-gen
|
||||
|
||||
echo "LANG=${LANG}" > /etc/locale.conf
|
||||
echo "KEYMAP=${KEYMAP}" > /etc/vconsole.conf
|
||||
echo "${HOSTNAME_NEW}" > /etc/hostname
|
||||
echo "LANG=${LANG}" > /mnt/etc/locale.conf
|
||||
echo "KEYMAP=${KEYMAP}" > /mnt/etc/vconsole.conf
|
||||
echo "${HOSTNAME_NEW}" > /mnt/etc/hostname
|
||||
|
||||
cat > /etc/hosts << EOF
|
||||
cat > /mnt/etc/hosts << EOF
|
||||
127.0.0.1 localhost
|
||||
::1 localhost
|
||||
127.0.1.1 ${HOSTNAME_NEW}.localedomain ${HOSTNAME_NEW}
|
||||
|
@ -70,35 +72,36 @@ EOF
|
|||
#echo "127.0.0.1 localhost" > /etc/hosts
|
||||
#echo "::1 localhost" >> /etc/hosts
|
||||
#echo "127.0.1.1 ${HOSTNAME_NEW}.localedomain ${HOSTNAME_NEW}" >> /etc/hosts
|
||||
echo root:"${ROOTPASSWORD}" | chpasswd
|
||||
arch-chroot /mnt chpasswd <<< "root:${ROOTPASSWORD}"
|
||||
#echo root:"${ROOTPASSWORD}" | chpasswd
|
||||
|
||||
pacman -S base-devel "${KERNEL}-header"
|
||||
pacman -S opendoas firewalld iptables-nft openssh bash-completion man-db man-pages reflector xdg-user-dirs
|
||||
pacstrap /mnt base-devel "${KERNEL}-header"
|
||||
pacstrap /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
|
||||
|
||||
pacman -S efibootmgr mtools dosfstools
|
||||
pacstrap /mnt efibootmgr mtools dosfstools
|
||||
|
||||
if [[ ${GRAPHICS_CARD} == "amd"]]; then
|
||||
pacman -S xf86-video-amdgpu
|
||||
pacstrap /mnt xf86-video-amdgpu
|
||||
elif [[ ${GRAPHICS_CARD} == "nvidia"]]; then
|
||||
pacman -S nvidia nvidia-utils nvidia-settings
|
||||
pacstrap /mnt nvidia nvidia-utils nvidia-settings
|
||||
fi
|
||||
|
||||
# GNOME installieren
|
||||
pacman -S 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 /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
|
||||
|
||||
#################################################################
|
||||
|
||||
sed -i 's/#\(CHARACTER_SET:\).*/\1utf-8/' /etc/lynx.cfg
|
||||
sed -i 's/#\(CHARACTER_SET:\).*/\1utf-8/' /mnt/etc/lynx.cfg
|
||||
|
||||
cat > /etc/xdg/reflector/reflector.conf << EOF
|
||||
cat > /mnt/etc/xdg/reflector/reflector.conf << EOF
|
||||
--save /etc/pacman.d/mirrorlist
|
||||
--country Germany
|
||||
--protocol https
|
||||
--latest 5
|
||||
EOF
|
||||
|
||||
cat > /etc/doas.conf << EOF
|
||||
cat > /mnt/etc/doas.conf << EOF
|
||||
permit :wheel
|
||||
permit persist eichehome as root
|
||||
EOF
|
||||
|
@ -108,40 +111,40 @@ EOF
|
|||
doas -C /etc/doas.conf && echo "config ok" || echo "config error"
|
||||
sleep 1
|
||||
|
||||
cat > /etc/systemd/resolved.conf.d/disable-multicastDNS.conf << EOF
|
||||
cat > /mnt/etc/systemd/resolved.conf.d/disable-multicastDNS.conf << EOF
|
||||
[Resolve]
|
||||
MulticastDNS=no
|
||||
EOF
|
||||
|
||||
systemctl enable systemd-resolved
|
||||
systemctl enable systemd-timesyncd
|
||||
systemctl enable reflector.timer
|
||||
systemctl enable firewalld
|
||||
systemctl enable fstrim.timer
|
||||
systemctl enable gdm
|
||||
systemctl enable avahi-daemon
|
||||
systemctl enable bluetooth
|
||||
arch-chroot /mnt systemctl enable systemd-resolved
|
||||
arch-chroot /mnt systemctl enable systemd-timesyncd
|
||||
arch-chroot /mnt systemctl enable reflector.timer
|
||||
arch-chroot /mnt systemctl enable firewalld
|
||||
arch-chroot /mnt systemctl enable fstrim.timer
|
||||
arch-chroot /mnt systemctl enable gdm
|
||||
arch-chroot /mnt systemctl enable avahi-daemon
|
||||
arch-chroot /mnt systemctl enable bluetooth
|
||||
|
||||
if [[ ${GRAPHICS_CARD} == "amd" ]]; then
|
||||
sed -i 's/MODULES=()/MODULES=(amdgpu)/' /etc/mkinitcpio.conf #AMD
|
||||
sed -i 's/MODULES=()/MODULES=(amdgpu)/' /mnt/etc/mkinitcpio.conf #AMD
|
||||
elif [[ ${GRAPHICS_CARD} == "intel" ]]; then
|
||||
sed -i 's/MODULES=()/MODULES=(i915)/' /etc/mkinitcpio.conf #Intel
|
||||
sed -i 's/MODULES=()/MODULES=(i915)/' /mnt/etc/mkinitcpio.conf #Intel
|
||||
elif [[ ${GRAPHICS_CARD} == "nvidia" ]]; then
|
||||
sed -i 's/MODULES=()/MODULES=(nvidia)/' /etc/mkinitcpio.conf #Nvidia
|
||||
sed -i 's/MODULES=()/MODULES=(nvidia)/' /mnt/etc/mkinitcpio.conf #Nvidia
|
||||
fi
|
||||
|
||||
sed -i 's/^HOOKS=(.*)/HOOKS=(base systemd keyboard plymouth autodetect sd-vconsole modconf kms block filesystems fsck)/' /etc/mkinitcpio.conf
|
||||
sed -i 's/^HOOKS=(.*)/HOOKS=(base systemd keyboard plymouth autodetect sd-vconsole modconf kms block filesystems fsck)/' /mnt/etc/mkinitcpio.conf
|
||||
|
||||
mkinitcpio -p "${KERNEL}"
|
||||
arch-chroot /mnt mkinitcpio -p "${KERNEL}"
|
||||
|
||||
bootctl install
|
||||
cat > /boot/loader/loader.conf << EOF
|
||||
arch-chroot /mnt bootctl install
|
||||
cat > /mnt/boot/loader/loader.conf << EOF
|
||||
timeout 5
|
||||
console-mode max
|
||||
editor yes
|
||||
default *
|
||||
EOF
|
||||
cat > /boot/loader/entries/arch.conf << EOF
|
||||
cat > /mnt/boot/loader/entries/arch.conf << EOF
|
||||
title Arch Linux
|
||||
version 0.1
|
||||
linux /vmlinuz-${KERNEL}
|
||||
|
@ -150,7 +153,8 @@ initrd /initramfs-${KERNEL}.img
|
|||
options quiet rw
|
||||
EOF
|
||||
|
||||
useradd -mG wheel "${USERNAME}"
|
||||
echo "${USERNAME}:${USERPASSWORD}" | chpasswd
|
||||
arch-chroot /mnt useradd -mG wheel "${USERNAME}"
|
||||
arch-chroot /mnt chpasswd <<< "${USERNAME}:${USERPASSWORD}"
|
||||
#echo "${USERNAME}:${USERPASSWORD}" | chpasswd
|
||||
|
||||
exit(0)
|
Loading…
Reference in a new issue