maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   Ad blocking (https://talk.maemo.org/showthread.php?t=14729)

Redshift 2008-03-29 09:31

Re: Ad blocking
 
I'd tried that prior to posting, and yeah that still doesn't work. I even tried gaining root access. I really don't want to have to plug my Nokia into my desktop all the time just to move some files around.

GeneralAntilles 2008-03-29 11:18

Re: Ad blocking
 
Quote:

Originally Posted by Redshift (Post 161913)
I'd tried that prior to posting, and yeah that still doesn't work. I even tried gaining root access. I really don't want to have to plug my Nokia into my desktop all the time just to move some files around.

You're obviously still doing it incorrectly.

Besides, you can't access the rootfs via USB.

Redshift 2008-03-29 17:19

Re: Ad blocking
 
Not sure what happened, but I created a test subdirectory and moved it there, and then was able to move it to "/". Then I realized I had the target path wrong, it's /home/user/.mozilla/microb/chrome, although I'm still pretty sure it wasn't letting me move it to "/" or "/home" last night.

qwerty12 2008-04-07 09:26

Re: Ad blocking
 
Who finds that using a hosts file slows down the N800?

I'm using OS2008 51 and first time, I used a massive host list and the speed was unbearable.

Now, I'm using a 40 KB host file that I removed duplicates & changed ip to 0.0.0.0 and the speed has gone down of the whole N800.

brontide 2008-04-07 13:39

Re: Ad blocking
 
Quote:

Originally Posted by qwerty12 (Post 166147)
Who finds that using a hosts file slows down the N800?

I'm using OS2008 51 and first time, I used a massive host list and the speed was unbearable.

Now, I'm using a 40 KB host file that I removed duplicates & changed ip to 0.0.0.0 and the speed has gone down of the whole N800.

Hmmm... the dnsmasq daemon is only configured to cache 150 enteries, I wonder what would happen if you expanded that to be wc-l hosts + 150?

prk60091 2008-04-07 18:40

Re: Ad blocking
 
Quote:

Originally Posted by qwerty12 (Post 166147)
Who finds that using a hosts file slows down the N800?

I'm using OS2008 51 and first time, I used a massive host list and the speed was unbearable.

Now, I'm using a 40 KB host file that I removed duplicates & changed ip to 0.0.0.0 and the speed has gone down of the whole N800.

did you try using 127.0.0.1? i have a fairly large host file on my 810 and i find it quite speedy

danguyf 2008-04-08 09:46

Re: Ad blocking
 
I have a big hosts file and have seen no apparent slow-down resulting.

qwerty12 2008-04-08 09:50

Re: Ad blocking
 
Quote:

Originally Posted by prk60091 (Post 166398)
did you try using 127.0.0.1? i have a fairly large host file on my 810 and i find it quite speedy

I haven't come think of it. I thought 0.0.0.0 was supposed to be speedier but I'll try it out, thanks!

brontide 2008-04-08 12:51

Re: Ad blocking
 
Quote:

Originally Posted by qwerty12 (Post 166739)
I haven't come think of it. I thought 0.0.0.0 was supposed to be speedier but I'll try it out, thanks!

127.0.0.x, 0.0.0.0... try pinging them, they all get answered by 127.0.0.1

So I think the only real change would be the flush of all the buffers when you switched. Also has anyone tried using /etc/dnsmasq.conf rather than updating the hosts file directly?

Code:

# or if you want it to read another file, as well as /etc/hosts, use                                                                                                                                                                                                             
# this.                                                                                                                                                                                                                                                                           
addn-hosts=/etc/banner_ad_hosts

and I use this to populate the file

Code:

#!/bin/sh

wget -q -O - http://www.mvps.org/winhelp2002/hosts.txt | sed -e '/127\.0\.0\.1  localhost/ D' > /etc/banner_ad_hosts

All I do with the sed is yank the localhost line since it's not necessary.

If you make changes to dnsmasq.conf you need to restart the daemon '/etc/init.d/dnsmasq restart'

qwerty12 2008-04-08 13:12

Re: Ad blocking
 
Nice info brontide :)

I plan on shifting my host file.

brontide 2008-04-08 13:18

Re: Ad blocking
 
Right now I'm also playing with the ttl setting to see if that makes any difference. I can't tell yet, but in theory it should prevent some roundtrips between glibc and dnsmasq, but I'm not 100% positive.


All times are GMT. The time now is 11:15.

vBulletin® Version 3.8.8