View Full Version : Changing the hostname
lazyilmaz
07-12-2005, 09:08 AM
I have to change the hostname to get internet acces, anyone knows how to do this?
Weixiong
07-12-2005, 10:01 AM
/etc/rf.conf file, second like from the top:
hostname="WHATEVER.localhost"
Change to whatever your hostname is.
lazyilmaz
07-12-2005, 03:09 PM
Ok i'll try this. Thanks :D
scottro
07-12-2005, 03:16 PM
Note that the changes won't take effect until the system rereads /etc/rc.conf. You can do this by shutting down to single user mode then exiting it. In other words (after saving everything that you need saving) as root
shutdown now
The system will gradually shut to single user mode and you'll then be told to hit enter for the default shell, sh
Then type
exit
The system will exit single user mode and go back to normal. At that point your hostname should be changed. You can check this by simply typing at a command prompt
hostname
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.