Thomas Perl made a proposal for creating a command line sharing plugin for the n900. I had already planned to implement something like that so I joined the project.
I pushed the first “proof-of-concept” quality implementation to the GIT a month ago. I’ve been using it with the Irssi script (in the scripts
directory) to get http URLs with meta information to IRC. The Irssi script needs to be modified to match the directories and IRC servers in use and both the script and the sharing plugin are still missing most of the error checking and extra functionality. Nevertheless, they’ve worked for me for the past weeks.
For the sharing plugin I’ve given something like the following command line:
scp %s kulve@foo.bar.fi:~/photos_incoming/%s
There’s two times the %s
as the local temporary file name doesn’t match the actual file name to be copied. And that assumes the SSH keys have been exchanged so that no passwords will be asked.
The Irssi script polls the incoming directory for new images. For each new file, it moves the file to public WWW tree, gets the meta information with exiftool and prints something like this to the specified IRC channel:
Title: Description [tags] (GPS coordinates) http://foo.bar.fi/~kulve/imagename.jpg
I modified the Irssi script a bit before pushing it to the GIT, so no guarantees it works. And that’s my first Irssi script ever, so it may do something odd ;)
There’s no debian packages yet as neither the script nor the plugin have been tested properly. Comments, testing and patches are welcome.
When i travel, i get connected somewhere (WiFi) and run this:
rsync –rsh=ssh -s –progress –size-only MyDocs/DCIM /media/mmc/DCIM user@homeserver /travel
Simple rsync over ssh to backup my daily new pictures and videos to homeserver.
PixelPipe also support ftp transfer straight from PictureManager
This is awesome.
Is there a GUI ssh-askpass implementation for Maemo 5? I can only share if I ssh-add my private key to my ssh-agent (which was not easy to set up, let me tell you that) from a terminal before I attempt image sharing.
At least I’m not aware of that tool for Maemo but I haven’t really been looking for one either. I just exchanged unsecure passwordless ssh keys and been happily using that approach.
Thanks so much for this. Now I’m finally able to upload photos easily and quickly to my server.
It would nice though if there was a way to have different names for different commands – e.g. “copy to server”, “copy to laptop”, “copy to work computer”.
I think the latest patches from Nguyễn Hồng Quân addresses that issue:
https://garage.maemo.org/plugins/ggit/browse.php/?p=sharing-cli
Unfortunately I’m not an n900 user anymore but maybe you could ask from Nguyá»…n Hồng Quân about the multiple instances.