Author Topic: How to change the localhost name in ubuntu Linux?  (Read 679 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' />

 

* Post Updates

Re: Best Split PST Tools by Ashley Taylor
[Yesterday at 09:51:40 AM]


Re: How to join multiple PST Files ? by Ashley Taylor
[Yesterday at 09:46:02 AM]


Re: Export MBOX Files to Outlook PST Emails by Somit Vishwakarma
[November 28, 2020, 01:06:01 PM]

Inside: 3P Techies Blog

* Newest Techies

Get Updates


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

Get Hosting!

a Faster web hosting service

Copyright 3rd Planet Techies. All rights Reserved.

Top || Mobile || Privacy