Skip to main content

Network

Set up the default host name of the machine as well as localhost:

NOTE: sebin-desktop is used as an example here. Use whatever you like.

# Define an environment variable containing the desired hostname
export HOSTNAME='sebin-desktop'

# Set the hostname of the machine
echo "$HOSTNAME" > /etc/hostname

# Set localhost to resolve to the machine's loopback address
echo "127.0.0.1	localhost" >> /etc/hosts
echo "::1		localhost" >> /etc/hosts
echo "127.0.1.1	$HOSTNAME.localdomain	$HOSTNAME" >> /etc/hosts

Enable Network Manager to start at boot:

systemctl enable NetworkManager

Set wireless region

If your machine has WiFi it is advisable to set the region for wireless radio waves to comply with local regulations:

# Install crda
pacman -S crda

# Set the wireless region, e.g. Germany
iw reg set DE