![]() |
Re: Blocking ads on N9 (Custom hosts file HOW-TO)
Quote:
The download and transfer of file to /etc/hosts works but the $(cat /etc/hostname) didn't put RM696 into the hosts file... See: Code:
127.0.0.1 localhost Code:
:~# ls -al /etc/hostname I had deleted the same hosts file that I already had prior to your post so its a fresh test... Edit: Why not replace (cat /etc/hostname) with (uname -n)? Edit 2: Replacing with (uname -n) in your command didn't do the change too; will check and report... |
Re: Blocking ads on N9 (Custom hosts file HOW-TO)
fixed:
Code:
wget -O ~/hosts http://www.mvps.org/winhelp2002/hosts.txt && echo "127.0.0.1 RM696 localhost" > /etc/hosts && tr -d '\015' < ~/hosts >> /etc/hosts I cannot imagine why: Code:
echo "127.0.0.1" $(uname -n) "localhost" |
Re: Blocking ads on N9 (Custom hosts file HOW-TO)
Are you sure it works correctly with uname -n?
Doing: Code:
~# wget -O ~/hosts http://www.mvps.org/winhelp2002/hosts.txt && echo "127.0.0.1" $(uname -n) "localhost" > /etc/hosts && tr -d '\015' < ~/hosts >> /etc/hosts Edit: Would you know how to instead in the above commands replace the contents of line 23 with the echo command instead? Edit 2: Ah just realized my stupidness...The uname echo can remain as first line; it won't make any difference... |
This works like a charm to speed up the browser! Are there any new host files to update with?
|
Re: Blocking ads on N9 (Custom hosts file HOW-TO)
Quote:
Code:
wget -O ~/hosts http://winhelp2002.mvps.org/hosts.txt && echo "127.0.0.1" $(uname -n) "localhost" > /etc/hosts && tr -d '\015' < ~/hosts >> /etc/hosts E: If you just recently ran the one-liner then you are surely updated as the updates are just pushed to the same URL ;) |
Re: Blocking ads on N9 (Custom hosts file HOW-TO)
I guess that on N950 you need to replace RM696 with RM680, right?
|
Re: Blocking ads on N9 (Custom hosts file HOW-TO)
Quote:
|
Re: Blocking ads on N9 (Custom hosts file HOW-TO)
Quote:
the one liner should be put into the op. Or maybe a deb on apps for meego! :) |
Re: Blocking ads on N9 (Custom hosts file HOW-TO)
Quote:
|
Re: Blocking ads on N9 (Custom hosts file HOW-TO)
I have a strange issue with that.
I downloaded the ad-blocking hosts file from the link given and changed 127.0.0.1 localhost to 127.0.0.1 RM696 localhost manually with kate (I'm on Kubuntu). Then I transferred the new hosts file to my Downloads directory and replaced the original /etc/hosts (I made a copy before). Everything works fine except the fact that I am not able to access any website when I am in my wireless home network:eek: What is really strange about this issue that I got it working back again when I changed my hosts file back to the standard one. When I tried out the ad-blocking hosts file again it didn't work again for me. But now my old hosts file does not work too! Any tips? Edit: Well, obviously this could not be caused by the hosts file. there was some encryption error, I changed b&g to b and then to auto108mbps and now it is working again. Very strange. yesterday I downloaded some maps through my wifi...:confused: |
All times are GMT. The time now is 13:54. |
vBulletin® Version 3.8.8