Set a Hostname Permanently

Posted: September 29, 2010 in Linux
Tag:, , , , ,

1. A Hostname files is saved at “/etc/sysconfig/network”

2. Open and change the hostname in “network” files like :
[root@localhost ~]# vim /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
#HOSTNAME=localhost
HOSTNAME=tarigan

3. Save

4. Logout First and Login again
[root@localhost ~]# logout
[root@tarigan ~]# <== DONE

©.dat-2010

Iklan

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s