Apr 4
Extract an RPM
This is one of those things I only do occasionally, so here’s a note on how to do it.
rpm2cpio rpmarchive.rpm | cpio -idmv
This should extract the entire rpm into the current dir, so make sure you are in a clean dir before you do this. The rpm2cpio command should be available on any distro that uses rpm.
Mar 10
Amazon’s MP3s Available for Linux Now
Some months ago, launched a huge, DRM-free catalog of songs and albums available in MP3 format. Now they have released their download client for Linux in native formats for Ubuntu, Debian, Fedora and OpenSUSE. The client is not required to download individual songs, but only for entire albums. I’ve already downloaded a couple of albums as well as individual tracks with no problems on Fedora 8.
Their terms of service appear to be somewhat heavy-handed, but I don’t really see how they could effectively enforce them with no DRM involvement. For the foreseeable future, this will become my primary means of music purchase, finally replacing CDs.
No commentsNov 16
Found: Unix/Linux Gold
I stumbled upon this invaluable gem:
http://souptonuts.sourceforge.net/how_to_linux_and_open_source.htm
It is a page of over 200 tips and tricks for all sorts of *nix and opensource goodies, like this:
TIP 70:
Generating Random Numbers.
$ od -vAn -N4 -tu4 < /dev/urandom
3905158199
This guide is full of stuff that you may only do occasionally but you can never remember how to do it (like configuring Spamassassin (tip 92)). There’s also a lot of handy shell programming hacks, like this:
TIP 179:
history - bash command to get a history of all commands typed. But, here is a way
that you can get date and time listed as well.
$ HISTTIMEFORMAT="%y/%m/%d %T "
Defining the environment variable above give you the date/time info when you
execute history:
$ history
...
175 05/06/30 12:51:46 grep '141.162.' mout > mout2
176 05/06/30 12:51:48 e mout2
177 05/06/30 12:56:59 ls
178 05/06/30 12:57:02 ls
179 05/06/30 12:57:39 ls
180 05/06/30 12:57:49 ls -l
181 05/06/30 13:01:10 history
182 05/06/30 13:01:20 HISTTIMEFORMAT="%y/%m/%d %T "
183 05/06/30 13:01:23 history
...
Learn it! Live it! Love it!
Whatever.
No commentsNov 7
Support for non-Krita (PNG, JPG, etc.) Files in Krita
On FC5 (don’t have FC6 yet), if you don’t have the rpm for “koffice-filters” installed, you won’t be able to open up anything except native Krita files. I believe that these filters are packaged separately because they are maintained separately from Krita, since they are used by other KOffice applications. Makes sense if you think about it, but I had to do some searching to figure it out.
No commentsNov 4
Merging PDFs
Need to make multiple PDFs into one? Here is an easy way to do it with Ghostscript:
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=finished.pdf file1.pdf file2.pdf
After scanning a few documents, I converted the resulting individual PNGs into PDFs and then used the command above to make a single, multi-page PDF.
Here’s a few other apps I discovered for manipulating for manipulating PDFs:
No comments