(For news and changes see the bottom of this post)
Let's be straighforward. Is anyone interested in an automatical script that takes screenshtos and makes thumbnails of them and uploads them to your ftp server right away?
I'm one of those who needs such a script. So I was looking for one for quite a while, having found nothing suitable, I decided to write my own one. Yesterday I began with this, got it working... Feel free to try it out and supply me with critics and suggestions on how to extend it.
Technical description:
Dependencies:
1. app-shells/bash
2. net-ftp/ftp
3. media-gfx/imagemagick
Going to add also support for lftp and scrot (if you know of other screenshot taking apps that can also resize the images taken, please let me know of them
Abilities (so far):
Taking several screenshots, acquiring their thumbnails and uploading them all (or per choice) to a remote server.
The utility is quite configurable (check the config file). The current release 0.0.4 is what I brought it to yesterday in a few hours (to be honest, my first bash script
Resources and thanksgiving:
1. neenee (for description of what such a script could look like)
2. http://www.tldp.org/LDP/abs/html/ - great How-To (I used some of the ideas from there)
Notes:
1. Currently only the interactive mode is working but I'm going to script a fully automatical one (you'd only need o execute a one-word command, namely the script self).
2. Colors: if you get bad looking colors, don't worry, I'll replace those color codes with original RGB values.
3. Dependencies: so far bash, ftp and imagemagick. I'll write patches for lftp and scrop, maybe some more - please let me know of what you'd like to use.
4. Ebuild: I do have a ready ebuild I wrote yesterday for netshot, but I gotta first check it out and adjust a little bit. In future all patching will be done via USE flags (i.e. bash/php/perl/python, ftp/lftp, imagemagick/scrop and so on).
5. Programming languages: for now BASH, a Perl version is in development, a PHP version will be also done (I do have much more experience with PHP than any other scripting language), and possibly Python. Don't think we need a C/C++ implementation thereof (but if yet, please let me know).
6. The script will work from everywhere, just make sure you have done chmod 755 netshot-0.0.4.sh
7. The supplied configuration file is required
8. Localization: for now only English, I'll also make German localization.
9. License: GNU GPL (although, I guess BSD would suit it better)
Downloads:
1. Script self
2. Configuration file
3. Ebuild file
Configuration (without an ebuild yet):
1. Create a configuration directory and copy the config file there:
Code: Select all
$ mkdir ~/.netshot && cp $PATH_TO_CONF/netshot.conf ~/.netshotCode: Select all
$ $EDITOR ~/.netshot/netshot.confRequest:
Please post all your critics, suggestions and comments here in this thread or send me a PM, contact me on IRC (neonik) or send me an email (root[at]neonik[dot]net). If you'd like to make changes to the application and let me know of them, please also submit a patch (via diff) against the original files.
Thank you in advance for all helpful information and trying it out.
Update (20040418-1621):
Current version: 0.0.7-bash
Notes:
1. automated mode complete
2. some little fixes
3. netshot.conf updated a bit
Update (20040415-1225):
Current version: 0.0.6-bash
Notes:
1. updated handling of already existing files (no overwrite any longer)
2. thumbnail numbers are ordered in accordance with the numbers of screenshots
3. some more little fixes
4. netshot.conf updated a bit
Update (20040412-2030):
Current version: 0.0.5-bash
All -current's are available directly at http://www.neonik.net/projects/netshot/ ... {sh,php,pl}
All milestone releases are available also there with their version numbers ( http://www.neonik.net/projects/netshot/netshot-0.0.5.sh for current, *-0.0.4.sh for prior ).
Notes:
1. the configuration file has also been updated
2. few minor bug fixes
Edit:
1. added the ebuild (if anyone can improve the build, please let me know how, I would really appreciate this
2. version bump to 0.0.5-bash. Will upload shortly (many things fixed)
3. according to the recent version bump download links updated (net-misc/netshot-0.0.5)
4. new version (0.0.6-bash), updating links; see notes; ebuild not updated yet
5. ebuild updated (version 0.0.6-bash) - rewritten
6. automated mode complete
7. updated links for version 0.0.7-bash

