Sharing Firefox bookmarks through your Next/ownCloud/whatever ?

Recent changes in Firefox makes bookmark and password cloud apps a pain to set up, with obligatory fiddling in about:config and removed config on upgrade or else.

An alternative would be to use Firefox Sync. But I am not using only Firefox and I do not like the notion of using a solution tied to one browser. Plus, installing Firefox Sync on your own software is, last time I checked, neither properly documented or made to use existing cloud authentication.

Password-wise, I switched over KeePassXC. I am not documenting my setup now because it still experimental and I know password managers are subject to hostile hacks. So I’d would not encourage people to use an half-baked setup.

Bookmark-wise, I tried a few things. You can fiddle around places.sqlite but it changes so much that any sync of this file on a cloud is bound to generate lot of useless trafic in best scenario, conflicts otherwise.

However, Firefox save automatically backups of bookmarks in .json (simingly compressed with lz4, though package liblz4-tool in Devuan/Debian is not helpful is decompressing them) in .mozilla/firefox/random.default/bookmarkbackups/  and this directory can easily be synced.

Then, on another client, when you open the bookmarks window, you are presented with the option to load such backups, telling how many entries are within each backup. The process is half automated  – far from perfect but much less broken than anything I tried so far.

I am sure it could be possible to improve this to a fully automated solution (adding new entries is easy to handle, noticing removal a bit less, it would require some database).  I’d be interested in any alternative.

Advertisements

Synchronizing your (Roundcube) webmail and (KDE) desktop with a (Android) phone

So I finally got an Android-based phone. I thought waiting for Ubuntu/Firefox stuff to be released but my current one (Bada-based: never ever) died.

First, I learned that actually you need to lock your phone with a Google account for life. It just confirmed that the sane proper first steps with this is too remove anything linked to Google.

First place to go is to F-Droid. From there, instead of getting tons of shitty freeware from Google Play/Apps/whatever, you get Free Software, as in freedom even though I like free beer.

Using ownCloud? From F-Droid, get DavDroid. Yes, that works perfectly and is easy to set up, unlike the Dav-related crap on Google Apps. The only thing you have to take care of, if your SSL certificate (trendy topic theses days) is self signed, is to make a certificate the specific way Android accepts them. For now, they recommends to do it like:

#http://vimeo.com/89205175

KEY=fqdn.servername.net

openssl req -new -x509 -days 3550 -nodes -out $KEY.pem -keyout $KEY.key
openssl x509 -in $KEY.pem -outform der -out $KEY.crt

Apart from that, everything is straight-forward. You just add your IMAPS, CalDav and CardDav info like you did with KDE and Roundcube. And can obviously also use mozilla sync through your ownCloud.

 

Update: As described in this recent post, it’s best to use options -newkey rsa:4096 -sha512.