How do I change the default system hostname

From Salix OS
Jump to: navigation, search

If you completed a FULL mode Salix installation, the default hostname is set to (inherited from Slackware). If you need to change the hostname you can edit the /etc/hosts and /etc/HOSTNAME files accordingly. For example:


# hosts		This file describes a number of hostname-to-address
#		mappings for the TCP/IP subsystem.  It is mostly
#		used at boot time, when no name servers are running.
#		On small systems, this file can be used instead of a
#		"named" name server.  Just add the names, addresses
#		and any aliases to this file...
# By the way, Arnt Gulbrandsen <> says that
# should NEVER be named with the name of the machine.  It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
# For loopbacking.		localhost mypc

# End of hosts


Or, easier, you can use the Salix system tool gtkhostsetup