Feb 28 2010

Host files on Ubuntu

Category: .opensourceAmit Bahree @ 3:12 pm

If you are newish to Linux (like me) from Windows, then some of the simple things which come quite naturally to you on Windows is a little embarrassing and challenging.

For example, I got a new WHS and wanted to mount the music drive and wanted to create a new host file entry to point to the new WHS. Now on Windows this is quite simple and can be found in YOUR-OS-DRIVE\Windows\system32\drivers\etc\hosts. But on Linux you will find this in \etc\hosts. If you want to edit it you will need to type something like this a shell:

sudo gedit /etc/hosts

sudo is required as you need admin privileges to modify the file. gedit is the graphical editor; you can replace that with another editor of your choice.

Share
Similar posts to check out:
  • February 28, 2012 -- Less than Symbol in Latex (0)
    If you want to show a simple less than symbol (i.e. <) in Latex, you are in for a surprise as you cannot use that character as is. If you are in math mode and writing this part of a formula then you might be still OK, but if you are in text mode then it is quite difficult. Surprisingly, searching for this online also did not provide any obvious answers (perhaps I was searching for the wrong thing). Anyways, I did figure it out in the end, and I needed to use the \textless directive for la...
  • May 22, 2011 -- Hadoop in Azure (0)
    My dear friend Mario has finally got around to blogging and one of his latest posts shows, it is possible to run Hadoop (which if you are not familiar with, can be thought of as an open source version of Google’s MapReduce) in Azure. You need to setup a typical configuration of nodes (Name Nodes, Tracker and Slaves). Sure, there are a number of dependencies some you would expect, others not (e.g. Cygwin – cringe!; but hopefully that will go away with Hadoop 0.22). I wonder what overheard the C...
  • March 4, 2011 -- Twitter Trends (0)
    I was excited to find that Twitter had a JSON (Javascript Object Notation) endpoint for the current trending topics and decided to write a simple consumer which can read this and then spit it out in a simple console. And JSON being so simple and more or less “universal” meant that there are multiple implementations for .NET. Of course if you got lots of bandwidth you can roll out your own parser. I ended up using Json.NET, which in addition to being OpenSource is also one of the most robust u...

Tags:

Leave a Reply

*

Get Adobe Flash player