2007年10月11日 星期四

HOSTNAME changed (Linux)

--- table beginning ---






表格標題#01, 格線:0
列一行一列一行二
列二行一列二行二
列三行一列三行二








表格標題#02, 格線:0
列一行一列一行二
列二行一列二行二
列三行一列三行二


--- table ending ---


將 Account改變成: root

接著,在 etc/sysconfig 目錄, "編輯"檔案"network" (偏好愛用 joe 編輯器)。
HOSTNAME的預設字串: "localhost.localdomain"

依個人喜好, 將HOSTNAME刻意改成:
"maumaubug.alienspace"

restart Fedora CORE3 (Linux) system, done!!

============================================
To change hostname in Ubuntu or any Debian variant Linux, modify the /etc/hostname and /etc/hosts.

sudo vi /etc/hostname

Change the old hostname to a new hostname.

sudo vi /etc/hosts

Also, change the oldhostname to a new hostname,

192.168.1.100 newhostname

After done, changing the /etc/hostname and /etc/hosts, you need to restart the hostname service.

sudo /etc/init.d/hostname.sh stop

sudo /etc/init.d/hostname.sh start