Hostname

From KevinWiki

(Difference between revisions)
Jump to: navigation, search
Kevin (Talk | contribs)
(Created page with "Category:Network == Hostname == === Set Hostname === $ sudo echo "your-hostname" > /etc/hostname $ sudo hostname -F /etc/hostname If it exists, edit the file <code>/et...")
Newer edit →

Revision as of 14:00, 22 June 2011

Hostname

Set Hostname

$ sudo echo "your-hostname" > /etc/hostname 
$ sudo hostname -F /etc/hostname 

If it exists, edit the file /etc/default/dhcpcd to comment out the "SET_HOSTNAME" directive:

file: /etc/default/dhcpcd

SET_HOSTNAME='yes'
Personal tools