Active Topics

 


Reply
Thread Tools
allnameswereout's Avatar
Posts: 3,397 | Thanked: 1,212 times | Joined on Jul 2008 @ Netherlands
#31
Originally Posted by pelago View Post
Thanks for this package. On my desktop Firefox, I like to roll-my-own Adblock rules rather than subscribe to any lists. Has anyone got any recommendations for how to easily sync (i.e. periodically copy) my desktop Adblock rules to the Maemo device? I would only need one-way sync, as I wouldn't need to edit the rules on the device (there's no UI for that anyway, as I understand it!).
Ideally, with Mozilla Weave. IMO..

For now, on N900 set up OpenSSH server. On client install a SSH client.

In crontab add

rsync ~/.mozilla/firefox/*.default/patterns.ini user@n900_hostname_or_ip:~/.mozilla/microb/adblockplus

Space is delimiter. First argument is source. Second argument is destination.

On Windows use Windows-type paths for local path, get ofcourse rsync.exe for Windows, and use Windows Scheduler.

This setup is not passwordless while crond cannot get your password input. You can use SSH keys to set up passwordless, key-based SSH authentication SSH entry on Maemo wiki may help but keep in mind its written from perspective of N900 being client.

In that regard, you could set the above up from N900 too. Then you must install OpenSSH server on your desktop.

There may be GUIs for rsync.

You could also make a .bat or .sh instead of using Cron or Windows Scheduler.
__________________
Goosfraba! All text written by allnameswereout is public domain unless stated otherwise. Thank you for sharing your output!
 

The Following 2 Users Say Thank You to allnameswereout For This Useful Post:
pelago's Avatar
Posts: 2,121 | Thanked: 1,540 times | Joined on Mar 2008 @ Oxford, UK
#32
Originally Posted by zerojay View Post
Just do what the first post in the thread says to do.
Thanks. I saw that, but it was the auto-updating that I was wondering about. allnameswereout's post was v. helpful.
 
allnameswereout's Avatar
Posts: 3,397 | Thanked: 1,212 times | Joined on Jul 2008 @ Netherlands
#33
Yes, it works, but its far from ideal.

Ideally, you'd push the update automagically right after its made, and only if the device is connected.

Perhaps using a SVN server on desktop (or Internet) to host the file, and then using SVN client on N900 to grab it, is a better idea. Revisioning is bonus.

I also assume Maemo Browser must be restarted to reload the patterns.ini

To work around that, some kind of notification the file got updated (both SVN and Rsync know) may be useful.

Anyway, it is only 1 config file, so it is still manageable for a Mortal
__________________
Goosfraba! All text written by allnameswereout is public domain unless stated otherwise. Thank you for sharing your output!
 
zerojay's Avatar
Posts: 2,669 | Thanked: 2,555 times | Joined on Apr 2007 @ Halifax, Nova Scotia, Canada
#34
Looking into writing a control panel app to allow users to select which subscriptions they want to use as well as update frequency/connection, maybe more. Ideas?
 
Posts: 1,283 | Thanked: 370 times | Joined on Sep 2009 @ South Florida
#35
Originally Posted by zerojay View Post
I've implemented the package and aside from one minor error in the packaging itself which no one will notice, it's working fine.

After installing it, you may have to reboot once or twice before it stops working.

The package has been sent to the autobuilder and built ok. You should be able to find it within extras-devel sometime in the next few hours.

A huge thanks to qole for figuring out that this was even remotely possible.
Quick semi related question.

Can you reboot with init 6 or shutdown -r now?
 
zerojay's Avatar
Posts: 2,669 | Thanked: 2,555 times | Joined on Apr 2007 @ Halifax, Nova Scotia, Canada
#36
Originally Posted by les_garten View Post
Quick semi related question.

Can you reboot with init 6 or shutdown -r now?
I think I have a way around the reboot now so it's not that much of a big deal anymore. Next version of the package will have my workaround.
 
Posts: 1,283 | Thanked: 370 times | Joined on Sep 2009 @ South Florida
#37
Originally Posted by zerojay View Post
I think I have a way around the reboot now so it's not that much of a big deal anymore. Next version of the package will have my workaround.
Still would like to know if those commands will do a reboot, or if there's any other command line reboot commands?
 
zerojay's Avatar
Posts: 2,669 | Thanked: 2,555 times | Joined on Apr 2007 @ Halifax, Nova Scotia, Canada
#38
Originally Posted by les_garten View Post
Still would like to know if those commands will do a reboot, or if there's any other command line reboot commands?
reboot - works
shutdown -r now - accepted by the program but does nothing.
init 6 - works, does the exact same thing as reboot.
 

The Following User Says Thank You to zerojay For This Useful Post:
Posts: 40 | Thanked: 265 times | Joined on Aug 2007
#39
Check this (About adblock 1.1.1 installation):
http://browser.garage.maemo.org/news/12/

Also this about themes
http://browser.garage.maemo.org/news/11/
 

The Following 3 Users Say Thank You to romaxa For This Useful Post:
allnameswereout's Avatar
Posts: 3,397 | Thanked: 1,212 times | Joined on Jul 2008 @ Netherlands
#40
Originally Posted by zerojay View Post
reboot - works
shutdown -r now - accepted by the program but does nothing.
init 6 - works, does the exact same thing as reboot.
Strange. According to my manual of reboot(8) it calls by default shutdown(8) unless -f argument is used or its running in runlevel 0 or 6. Then it invokes reboot(2) system call. Maybe Maemo has different versions of this software, perhaps BusyBox related.
__________________
Goosfraba! All text written by allnameswereout is public domain unless stated otherwise. Thank you for sharing your output!
 
Reply

Tags
adblock, fremantle, hack, microb


 
Forum Jump


All times are GMT. The time now is 23:46.