Stand einckecken
This commit is contained in:
parent
8c738b59d6
commit
3ea70d97e3
4 changed files with 123 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
*.swp
|
56
base.sh
Normal file
56
base.sh
Normal file
|
@ -0,0 +1,56 @@
|
|||
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
|
||||
|
||||
|
||||
# Wish
|
||||
# pacman -S --noconfirm efibootmgr dialog iwd mtools doasfstools reflector base-devel linux-headers avahi nss-mdns xdg-user-dirs xdg-utils inetutils dnsutils bluez bluez-utils cups hplip alsa-utils pipewire pipewire-alsa pipewire-pulseaudio pipewire-jack pavucontrol bash-completion openssh rsync acpi acpi_call tlp virt-manager qemu qemu-arch-extra edk2-ovmf bridge-utils dnsmasq vde2 openbsd-netcat iptables-nft ipset firewalld sof-firmware acpid os-prober ntfs-3g tamsyn-font
|
||||
# i3
|
||||
pacman -S --noconfirm efibootmgr dialog iwd mtools doasfstools reflector base-devel linux-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 acpi acpi_call tlp virt-manager qemu qemu-arch-extra edk2-ovmf bridge-utils dnsmasq vde2 openbsd-netcat iptables-nft ipset firewalld sof-firmware acpid os-prober ntfs-3g
|
||||
|
||||
# All
|
||||
# pacman -S --noconfirm efibootmgr dialog <iwd>/<wpa_supplicant> mtools doasfstools reflector base-devel linux-headers <avahi> xdg-user-dirs xdg-utils <gvfs gvfs-smb nfs-utils> inetutils dnsutils bluez bluez-utils cups <hplip> alsa-utils pipewire pipewire-alsa pipewire-pulseaudio pipewire-jack pavucontrol bash-completion openssh rsync 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> treminus-font
|
||||
|
||||
pacman -S --noconfirm xf86-video-amdgpu
|
||||
|
||||
systemctl enable bluetooth
|
||||
systemctl enable cups.service
|
||||
systemctl enable sshd
|
||||
systemctl enable avahi-deamon
|
||||
systemctl enable reflector.timer
|
||||
systemctl enable fstrim.timer
|
||||
systemctl enable libvirtd
|
||||
systemctl enable firewalld
|
||||
systemctl enable acpid
|
||||
systemctl enable iwd
|
||||
|
||||
# Systemd-networkd (for wlan0)
|
||||
echo "[Match]" >> /etc/systemd/network/25-wireless.network
|
||||
echo "Name=wlan0" >> /etc/systemd/network/25-wireless.network
|
||||
echo "\n" >> /etc/systemd/network/25-wireless.network
|
||||
echo "[Network]" >> /etc/systemd/network/25-wireless.network
|
||||
echo "DHCP=yes" >> /etc/systemd/network/25-wireless.network
|
||||
|
||||
systemctl enable systemd-networkd
|
||||
systemctl enable systemd-resolved
|
||||
|
||||
useradd -m eichehome
|
||||
echo eichehome:testen | chpasswd
|
||||
<usermod -aG libvirt eichehome>
|
||||
|
||||
echo "eichehome ALL=(ALL) ALL" >> /etc/sudoers.d/eichehome
|
||||
|
||||
printf "\e[1;32mDone: Type exit, umount -a and reboot.\n\e[0m"
|
24
mod.sh
Normal file
24
mod.sh
Normal file
|
@ -0,0 +1,24 @@
|
|||
sed -i 's/MODULES=()/MODULES=(amdgpu)/' /etc/mkinitcpio.conf
|
||||
# sed -i 's/MODULES=()/MODULES=(nvidia)/' /etc/mkinitcpio.conf
|
||||
# sed -i 's/MODULES=()/MODULES=(i915)/' /etc/mkinitcpio.conf
|
||||
|
||||
mkinitcpio -p linux
|
||||
# mkinitcpio -p linux-lts
|
||||
|
||||
bootctl install # be aware of Problems by dualbooting
|
||||
|
||||
# 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
|
||||
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="LABLE=arch" rw' >> /boot/loader/entries/arch.conf
|
42
pre.sh
Normal file
42
pre.sh
Normal file
|
@ -0,0 +1,42 @@
|
|||
# setfont ter-132n
|
||||
localectl set-keymap de-latin1
|
||||
|
||||
ip -c a
|
||||
# iwctl
|
||||
# rfkill unblock wifi
|
||||
packman -Sy #check if we can reach the repos
|
||||
|
||||
packman -S tamsyn-font
|
||||
setfont Tamsyn10x20r
|
||||
|
||||
timedatectl set-ntp true
|
||||
|
||||
fdisk /dev/vda
|
||||
# UEFI/GPT
|
||||
# /dev/vda1 300M EFI
|
||||
# /dev/vda2 4G SWAP
|
||||
# /dev/vda3 20G /
|
||||
# /dev/vda4 Rest /home
|
||||
# BIOS/MBR
|
||||
|
||||
mkfs.fat -F32 /dev/vda1
|
||||
mkswap /dev/vda2
|
||||
swapon /dev/vda2
|
||||
mkfs.ext4 /dev/vda3 -L arch # For reference by the Boot-entry
|
||||
mkfs.ext4 /dev/vda4
|
||||
|
||||
mount /dev/vda3 /mnt
|
||||
mkdir /mnt/{boot,home}
|
||||
mount /dev/vda1 /mnt/boot
|
||||
mount /dev/vda4 /mnt/home
|
||||
|
||||
# Linux/AMD
|
||||
pacstrap /mnt base linux linux-firmware vim amd-ucode git
|
||||
# Linux/Intel
|
||||
# pacstrap /mnt base linux linux-firmware vim intel-ucode git
|
||||
|
||||
# pacstrap /mnt base linux <linux-lts> linux-firmware vim <git> <amd-ucode>/<intel-ucode>
|
||||
# tamsyn-font
|
||||
genfstab -U /mnt >> /mnt/etc/fstab
|
||||
|
||||
arch-chroot /mnt
|
Loading…
Reference in a new issue