View Single Post
SubCore's Avatar
Posts: 850 | Thanked: 626 times | Joined on Sep 2009 @ Vienna, Austria
#26
Originally Posted by maya View Post
ok, writed the command, opened in notepad and I replace the lines with:
no, just these 3 lines
Code:
127.0.0.1 Nokia-N900-51-1 localhost
195.113.232.88 downloads.maemo.nokia.com
195.113.232.91 downloads.maemo.nokia.com
the other two lines are from the xterm, they look similar on your device. and "subcoren900" just happens to be my hostname


and yes, it seems the easy way of editing in place with osso_notes doesn't work. i tried before i posted it and it worked, but apparently only for the first time. sorry for that.

usually, one uses "vim" to edit system files in place - there are a few other methods, but all of them are a bit too much to describe here, so i'll once again use echo. it's just the least complicated way

Code:
echo "127.0.0.1 Nokia-N900-51-1 localhost" > /etc/hosts
echo "195.113.232.88 downloads.maemo.nokia.com" >> /etc/hosts
echo "195.113.232.91 downloads.maemo.nokia.com" >> /etc/hosts
echo just outputs everything between the " ", we use > in the first command to overwrite the target file, and >> in the other two to append to the newly created file instead of overwriting it again.

if you input exactly these 3 commands as root, you should have a correct /etc/hosts file with 3 lines.

edit:
just to be sure - you know you can copy & paste from the browser into the x terminal, right?
__________________
"What we perceive is not nature itself, but nature exposed to our method of questioning."
-- Werner Karl Heisenberg

Last edited by SubCore; 2010-01-26 at 22:35.