View Single Post
Posts: 334 | Thanked: 616 times | Joined on Sep 2010
#17
Originally Posted by balisingh View Post
if i just grab the hostfile from my android tab, see attached zip file, which uses the latest block list, and put it on the n9, will that work? i know i ambeing lazy but can you check?
I copied mine originally from Android (AdFree application), so I think it's ok.

In the beginning of the file I would replace the line
127.0.0.1 localhost
with
127.0.0.1 RM696 localhost
to be on the sure side. Not that I've tested one without; it would be hard to do that properly since any application may depend on resolving hostname through hosts file and you'd find out only when you met one.

I've also tried one found here:
http://winhelp2002.mvps.org/hosts.htm
but it needs conversion with dos2unix command that can be found in either harmattan-dev or rzr repos (can't remember which). Also the file contains a lot of explanations about sites thus making it heavier to handle and checking it with plain grepping is more cumbersome. So it is faster to use one from android-land.

WARNING: To plain Windows people out there: Do not use Windows Notepad to edit the file, and I wouldn't use Wordpad either even when the latter actually shows the lines properly; there is more to end of lines and newlines.
http://en.wikipedia.org/wiki/Newline#Common_problems

In Windows land Notepad++ should be safe, not that I've tested it lately.

Last edited by Manatus; 2012-02-09 at 13:18. Reason: Adding a warning