View Single Post
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: