Forget IP Addresses! Use /etc/hosts!
Written by Matt on August 16, 2008 – 12:13 pm -After realizing the endless possibilities of having a Linux server in my home, I quickly set one up (using Ubuntu Server Edition). Now I have a server with SSH, HTTP, FTP, and NFS setup in my basement. I love using all these features, but I can’t stress enough that typing the internal IP address of the server (192.168.1.250) got old very fast. So I found a quick and easy solution: /etc/hosts
Simply open /etc/hosts in your favorite text editor (you’ll need root priviliges), go to the bottom line, and follow this format:
192.168.1.250 Server
The first option is the IP address of whatever you’d like to add a name to, and the second option is the name. So after saving this file, I can now type Server instead of 192.168.1.250 anytime I’d like to access my server. So now I can SSH into my server by typing “ssh Server”. Have an HTTP server setup? Open Firefox and simply type “Server” in the address bar! How simple is that?
Posted in Usability Tips | 6 Comments »
View blog reactions
Transmission .96 Deb File
December 31, 2007 – 1:03 pmTransmission is a fast, easy, and free multi-platform BitTorrent client ...
1 Comment »Liberation Fonts Installation Script
December 16, 2007 – 5:35 pmAfter you've installed a Linux distro ...
No Comments »