4. Network configuration
Table of Contents
Set the host name
echo [myhostname] > /etc/hostname
Add matching entries to hosts
vim /etc/hosts
Write down the following configuration:
127.0.0.1 localhost ::1 localhost 127.0.1.1 [myhostname].localdomain [myhostname]
If your system has a permanent IP address, use it instead of “127.0.1.1”.
Set up the network manager
Edit the configuration file:
vim /etc/connman/main.conf
Disable hostname changes on the per network basis to avoid some unexpected behavior:
AllowHostnameUpdates = false
Prefer Ethernet to Wi-Fi by default if it is available:
PreferredTechnologies = ethernet,wifi
Allow for only one conection to be active at the same time:
SingleConnectedTechnology = true
Save the new configuration.
Enable network manager
systemctl enable connman.service