What's new

How to change the localhost name in ubuntu Linux?


n my previous post, i have explain how to change the localhost in windows operating systems.  This post is especially for ubuntu users.

apache server should be installed.

    * Open the Terminal
    * type this command and press enter

    sudo gedit /etc/hosts

hosts will be opened in notepad.
you can find this line :    localhost.localdomain    localhost

Just change the localhost to www.facebook.com
Restart the apache server.
Don't you know how to restart the server. nothing to worry just enter the following command in terminal:

    sudo /etc/init.d/apache2 restart

if you enter "www.facebook.com",then you will get this page in your browser.
Don't try to copy the contents! if you want to post in your website or blog.  Give me link as resource to this page.  Link should be hyperlink not a text.
Thanks for the help

Related Topics