I want to my laptop running Ubuntu to the white list of an Android WiFi hotspot. Doing hostnamectl
returns, amongst other information, a Static hostname
, an Icon name
, a Machine ID
, and a Boot ID
. Which of these is the right one?
I got the MAC address of the wlan0
interface by doing ip addr
in the terminal and added it, together with the Static hostname
, to the white list, but the connection fails. Signal strength is very good and the WPA2 password is correct.
PS.: On a Windows 10 machine, you get the corresponding name by doing hostname
in the command line or looking it up in Settings > System > About
under "Device name".
The content of
/etc/hostname
is the hostname of the system.Easiest to get would be with
cat /etc/hostname
or just calling the programhostname
.hostnamectl
gives a lot of additional information (as you have seen) which can be confusing; it's better to use/etc/hostname
directly.