Guides HOWTO : Hostname change without reboot

M

MrDoob

Guest
Original poster
Without restart:

1.) login as root user !!!
{ root not sudo-user!! }

change hostname in

2.) nano /etc/hostname

3.) nano /etc/hosts accordingly

4.) sudo sysctl kernel.hostname={your new host name here}

Check your current hostname with

5.) hostname -f

6.) exit the terminal and relogin

And well done
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.


Members online

Maintenance Donations

Recommend NewsGroups

      Up To a 58% Discount!

Trending