Monday 5 September 2011

Linux hostname

This shouldn't have taken me so long. My husband wouldn't name his new laptop after a popular British F1 driver, until I managed to change the desktop hostname to that of his team-mate. The desktop was previously so named because it was so fast (ha ha oh).

Anyway, the answer was to add
HOSTNAME="F1driver"
to /etc/sysconfig/network (since it wasn't already there for me to change). Alternatively, I could have done
sysctl kernel.hostname=F1driver
as superuser.

It's a win.

1 comment:

midibu said...

I have recently set up an Ubuntu server, on which to run several virtual servers. The host is called 'maestro' and the first guest is 'mozart'. :)