Skip to content

Instantly share code, notes, and snippets.

@chreniuc
Created April 30, 2018 20:45
Show Gist options
  • Save chreniuc/f613d4ac1d090bc443f9fcb12a4985d9 to your computer and use it in GitHub Desktop.
Save chreniuc/f613d4ac1d090bc443f9fcb12a4985d9 to your computer and use it in GitHub Desktop.
Configure Artix Linux Part 2
#!/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