Created
April 30, 2018 20:45
Configure Artix Linux Part 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Source https://paul.grozav.info/2018/04/13/artix-linux/ | |
# By now you should have done everything from `Configure Artix Linux Part 1`: | |
# Set timezone: | |
ln -sf /usr/share/zoneinfo/Europe/Bucharest /etc/localtime | |
hwclock --systohc | |
# Set locale | |
echo "LANG=en_US.UTF-8" > /etc/locale.conf | |
# Set hostname | |
echo "Set hostname: " | |
read hostname | |
echo "hostname=\"$hostname\"" > /etc/conf.d/hostname | |
echo "127.0.0.1 localhost.localdomain localhost" >> /etc/hosts | |
echo "::1 localhost.localdomain localhost" >> /etc/hosts | |
echo "127.0.1.1 $hostname.localdomain $hostname" >> /etc/hosts | |
# Init.d scripts: | |
rc-update add udev boot | |
rc-update add elogind boot | |
rc-update add dbus default | |
# Set root password | |
passwd | |
# Install grub bootloader: | |
pacman -S grub | |
grub-mkconfig -o /boot/grub/grub.cfg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment