Scripts for customised Arch Linux installation
NO, it might not be the perfect script yet and probably will be improved in future, but it works perfectly.
NO, it's not the perfect configuration for everybody. It's adjusted to my needs.
-
Boot the computer or VM from an Arch Linux ISO image.
-
Set up the disk
gdisk /dev/sda
. The provided scripts expect legacy BIOS and the following partitions:
/dev/sda1 , root partition, hex code: 8300
/dev/sda2 , swap partition, hex code: 8200
/dev/sda3 , boot partition, hex code: ef02, 3MB -
Setup internet connection
dhcpcd
.
- If DHCP is not configured:
ip addr add <host ip>/<netmask> dev <dev name>
ip route add default via <gateway>
ip link set <dev name> up
echo "nameserver <dns>" >> /etc/resolv.conf
-
Download and start the first script
curl -O http://a.jkoehn.de/installScript.sh
chmod +x installScript.sh
./installScript.sh
-
Download and start the second script
curl -O http://a.jkoehn.de/installScript2.sh
chmod +x installScript2.sh
./installScript2.sh
-
When you are asked to, enter the desired hostname and root password.
-
Unmount the file system and reboot.
exit
umount /dev/sda1
reboot
If you didn't remove the Arch Linux stick/CD, now choose "Boot existing OS" in the menu. -
Log in as "root" with the password set before.
-
Run the third script
/configScript.sh
. -
Enter name and password for an user account. This user has sudo permissions after running the script.