2014-01-28, 20:08
(2014-01-28, 05:40)1080pete Wrote: How do I edit the host file on raspbmc? Haven't a clue where to begin
Thank you
One way is to log into your raspberry pi with a ssh client such as Putty
default username: pi
default password: raspberry
Once you've logged in type the following command
sudo nano /etc/hosts
This will open the hosts file in the text editor nano with root privileges
Go to the first blank line in the file and add
192.241.136.149 nlsk.neulion.com
*with a tab between the ip and the url
Then press Ctrl+x to exit, it will ask you if you wish to save, say yes and when it prompts for the file name to write to just hit enter to save to the /etc/hosts file
To double check the changes were saved type
cat /etc/hosts
This should print the contents of the hosts file out and you should see your newly added line