User Tools

Site Tools


arch:install

This is an old revision of the document!


#!/bin/bash
set -e

timedatectl set-timezone Europe/Berlin
timedatectl set-ntp true

echo ',,L,*' | sfdisk /dev/sda

mkfs.ext4 /dev/sda1
mount /dev/sda1 /mnt

pacstrap /mnt base linux linux-firmware vim

genfstab -U /mnt >> /mnt/etc/fstab

arch-chroot /mnt <<"EOT"
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
hwclock --systohc
echo "de_DE.UTF-8 UTF-8" > /etc/locale.gen
echo "de_DE ISO-8859-1" >> /etc/locale.gen
echo "de_DE@euro ISO-8859-15" >> /etc/locale.gen
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
echo "en_US ISO-8859-1" >> /etc/locale.gen
locale-gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf 
echo "KEYMAP=de-latin1" > /etc/vconsole.conf 
echo "vm51" > /etc/hostname
echo -e "sun\nsun" | passwd root >/dev/null 2>&1
yes | pacman -S grub intel-ucode
grub-install --target=i386-pc /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
echo "[Match]" > /etc/systemd/network/lan-verbindung.network
echo "Name=ens3" >> /etc/systemd/network/lan-verbindung.network
echo >> /etc/systemd/network/lan-verbindung.network
echo "[Network]" >> /etc/systemd/network/lan-verbindung.network
echo "Address=192.168.15.51/24" >> /etc/systemd/network/lan-verbindung.network
echo "Gateway=192.168.15.1" >> /etc/systemd/network/lan-verbindung.network
echo "DNS=192.168.15.1 8.8.8.8" >> /etc/systemd/network/lan-verbindung.network
systemctl enable systemd-networkd
rm /etc/resolv.conf
systemctl enable systemd-resolved 
yes | pacman -S openssh
systemctl enable sshd.service
echo "set enable-bracketed-paste off" >> /etc/inputrc
useradd -m -s /bin/bash ms
echo -e "sun\nsun" | passwd ms >/dev/null 2>&1
EOT
arch/install.1658251186.txt.gz · Last modified: 2023/01/11 20:30 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki