Author Topic: How to change the localhost name in ubuntu Linux?  (Read 709 times)

0 Members and 1 Guest are viewing this topic.

Offline ebenzunlimited

  • Lead Admin
  • *****
How to change the localhost name in ubuntu Linux?
« on: May 24, 2012, 07:07:05 PM »
n my previous post, i have explain how to change the localhost in windows operating systems.  This post is especially for ubuntu users.

Requirements:
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 :

    127.0.0.1    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.
Copyrights:
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
Insane I Lived♥ Sane I Died♥<img src='http://i253.photobucket.com/albums/hh74/reallytired2/family%20pictures/buckeye%20stuff/clap.gif' />

 

How to Change the ICON of .EXE file or any program files icon ?

Started by ebenzunlimited

Last post June 06, 2012, 01:54:06 AM
by ebenzunlimited
How To Change an 8GB SD Card to RAM Memory

Started by ebenzunlimited

Last post April 04, 2013, 11:30:56 PM
by DE_Light
Linux get not viruses.

Started by haddin19

Last post October 12, 2012, 04:40:18 PM
by zeal

* Newest Techies

Inside: 3P Techies Blog

Get Updates


Sign up to get latest updates delivered to your inbox. No Spam, We Promise!


Copyright 3rd Planet Techies. All rights Reserved.

Top || Mobile || Privacy