This is just a place to park various scripts and stuff. The *nix philosophy embodies terseness, singleness of purpose, and economy in resources, so in that spirit I won't say much here for now. At some point in the future, I may rant my head off.
Feel free to download and try these, strictly at your own risk.
DUPEX – the duplicate extractor
You have a large mp3 collection and someone gives you a few dvds full of thousands of mp3s, or you download a large unknown batch. You think you already have some of these, but these might have been renamed. You suspect some files may be different but have the same names as some in your collection, and you don't want to accidentally overwrite any. How to automatically sift out the duplicates and same-name files?
Dupex to the rescue! Dupex hashes and compares files in different directory trees, then moves duplicates out and renames same-name (but different) files. Just the thing for adding to file collections without duplicating what you already have, or inadvertently overwriting files of the same name. No more tedious manual sifting, no wasted hard drive space and no more lost files. Works on any type of file and can filter for file extension category (graphics or audio).
On the negative side, it *is* a script and can take 30 minutes or so to run on a large volume of files (say 10GB on a 1.87GHz Centrino). So have a walk or a coffee. On smaller volumes of files it can run surprisingly fast.
TRIPL - single or multiple encryption with loop-aes-ciphers
Tripl is a front end to loop-aes v3.x and loop-aes-ciphers. With tripl, it's easy to setup a single or multiple-encrypted partition – just adjust the user settings to suit your needs, create a key(s) with tripl -mkkey, then run tripl -new. You can then mount with tripl -m and umount with tripl -u.
You don't even need to know what a loop is to use tripl, and you don't have to muck about with /etc/fstab or other system files. You do however need loop-aes-v3.x, loop-aes-ciphers and GnuPG properly installed on your system.
Tripl can use a separate detached gpg-encrypted key for each encryption layer, or if EMBED=yes is set in the user settings, only one external key is required (for the first encryption layer). tripl -new will create an individual embedded gpg key for every subsequent encryption layer and will nest this on the layer previous to that being set up, prompting the user for new passwords. This simplifies key management (only one key to worry about). Moreover, an attacker will have to crack the first encryption layer just to get to the encrypted key for the second, and so on.
The settings currently allow for single, double or triple encryption. However, remember that single encryption with a good cipher and a strong, well-chosen password is far better than triple encryption with weak passwords. Well-executed single encryption is probably more than sufficient for most needs. Also, remember that each added layer of encryption renders the encrypted data more friable ie prone to disintegration.
You need to backup all files on a sizeable directory tree or partition and you know it's not going to fit on one dvd or cd, so you'd like the job to be automatically split across the minimum number of dvds without wrecking the existing directory structure. You don't want to spend the next hour or so manually dividing subdirectories into piles for each dvd - only to forget what directories they originally came from - and you don't want to use some M$ program. You'd also like to have the option of securely encrypting the lot with a reputable cipher, without first writing archives in plain text to your hard drive, and be able to just mount the encrypted dvds on entering a password.
Multi-iso is an archiving script that will automatically optimize the distribution of subdirectories into preset-sized iso files for burning to cd or dvd, without dividing the subdirectory structure. The resulting disks can then be mounted and the contents just copied to a single tree, and you'll have all the original files back in their original directories. And you won't burn more disks than you need to (within a 22 per cent margin and usually much better). If desired, iso files can be securely encrypted with aes128 (Rijndael), using aespipe and 65-line gpg keys. Encrypted disks can then be mounted using loop-aes v3.x .
DSL2UNC – converts .dsl packages to .unc
This small script converts traditional packages for Damnsmalllinux, with extension ".dsl", to dsl v3.x ".unc" packages. Unc packages (called "extensions") are dsl-developer Robert Shingledecker's invention and work like this: the package is first cloop-mounted in /opt from a compressed iso9660 filesystem, then unionfs is used to create a union of the unc filesysten and the main system filesystem. Although the package files then appear to the system to have been installed, in fact they use none of the ramdisk at all, so ramdisk space is conserved. By contrast, the older .dsl packages cause large sections of the system filesystem to be copied to the ramdisk, after which the package files were written there.
dsl2unc can convert an entire directory full of .dsl packages to .unc packages in one run. Download dsl2unc here
Be sure to read the README enclosed in each tarball for usage instructions and other information. Suggestions, bugs and positive comments are very welcome: contact details are in the READMEs.
I like DamnSmallLinux, Debian, Fedora and whatever else gets installed on my hard drive without fear or favor. You can click to read the interminable saga of how I got FC4 running respectably on my HP laptop below.
Recently I was mortified to discover that my board name "WDef", chosen more or less at random, is also:
The name of a Macintosh virus
Some sort of MSBorg-compatible program
The name of some "family"-oriented radio station, whatever that may actually mean
Other things I think.
None of these should be taken to be associated with me and you'll be pleased to know that I have no connection, imagined or real, with any of the above, nor they with me.