Now see, if you were using SuSE you could have used Yast2 to do that! Yep, has a CLI mode.![]()
Actually, the host name is set in /etc/sysconfig/network file rather than /etc/hosts. /etc/hosts is used for host name lookup locally.
Here is my /etc/sysconfig/network file looks like.
If you change the hostname part of it and reload networking module, you should be on your way.Code:NETWORKING=yes HOSTNAME='mysystem' GATEWAY=192.168.80.1
Now see, if you were using SuSE you could have used Yast2 to do that! Yep, has a CLI mode.![]()
for quite some time, RedHat had a CLI based one. Run /sbin/setup and it has tools for reconfiguring X, sound, NIC, and timezone.
Bookmarks