Showing posts with label Hostname. Show all posts
Showing posts with label Hostname. Show all posts

Thursday, May 12, 2016

Ubuntu: Changing the Hostname to "remote"

Command 1 (Only temporarily until restart):

$ sudo hostname remote

Command 2 (Permanent):

$ sudo vi /etc/hostname

$ cat /etc/hostname
remote
#old-host-name

$ sudo vi /etc/hosts

$ cat /etc/hosts
#127.0.0.1              old-host-name
127.0.0.1                remote
xxx.xxx.xxx.xxx    xxx-xxx-xxxxx.vs.sakura.ne.jp       xxx-xxx-xxxxx

# The following lines are desirable for IPv6 capable hosts
::1        localhost     ip6-localhost    ip6-loopback
ff02::1  ip6-allnodes
ff02::2  ip6-allrouters