This is a simple process ... But again, probably you dont know it since you are looking for it.
2 Places to Change:
/etc/sysconfig/network, Edit the
HOSTNAME=.
This will be available even after a reboot.
A quicker way - Edit
/proc/sys/kernel/hostname.
But that won't be saved when you reboot.
Nice guide, it could help me on my openSuse box![]()
Thank you for such nice sharing !
Isn't this distro-specific. I mean the HOSTNAME even when exported once is not remembered in some distros after reboot...
Is there any universal way which will work irrepective of the distro being used ?
Regards,
Nikhil Khullar
since different distro's place the hostname file in different places, on a ubuntu setup, it is /etc/hostname file to alter.
you could do a grep -R "your hostname" /etc which should find out where the file is.
CodingfriendsCode:int coffeePerDay = 10; // need to cut down!!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks