Linux Blog

Making ISO’s with dd

Filed under: General Linux — TheLinuxBlog.com at 4:59 pm on Monday, July 26, 2010

Creating an ISO Image under Linux from the command line is a really easy process. Fire up your favorite terminal and type the following:

dd if=/dev/cdrom of=<iso image name>

The if is for input file and the of for output file. There are lots of options for dd so check out the man page.

To mount the newly created image (as root) you can mount it as a normal device with the -o loop option:

mount -o loop <iso image name> /mnt/<dest dir>

Linux CD Ripping Utilities

Filed under: Linux Software — TheLinuxBlog.com at 12:33 am on Wednesday, January 21, 2009

CD Ripping with Linux doesn’t have to be the labor intensive task that it once was. No longer do we have the days of writing a hundred character command to rip a CD with the perfect options. Here are some utilities aimed at making your life of ripping your collection of CD’s to a digital format you can actually use.

First up for review is Grip. Grip is an gtk application that can play, rip and encode CD’s. It is really easy to use and is my CD ripping utility choice.

While the interface is not as pretty as it could be I guess its not hard to fool you that grip means business.

All you have to do to rip an entire CD is put it in, wait a couple of seconds and Bobs your uncle it found your track information from freedb.org. Next hop on over to the “Rip” tab and hit “Rip+Encode”. Since we didn’t select any tracks it should squawk and ask if you really wanted to try and rip no tracks, or if you just want to go ahead and rip the entire CD. I always hit entire CD and move along.

Before you get too excited and to a yum install grip and start ripping your entire collection keep in mind that you will have to install the dependencies (usually lame) and change the format under the “Config->Encode->Encoder” tab. This is not really a big deal and for your convenience grip will remember your settings. There are no sounds when a rip is finished (which can be frustrating either way,) but there it does eject your CDROM for you.

Goobox is next. Just as easy to install, just as easy to use and it’s also another gtk application. Goobox has a slightly more boring interface with less options. If your looking for a Gnome based CD ripper with a minimal interface this is the one to choose.

I think its about time for a KDE utility. KAudioCreator has an interface very similar to Goobox. You will first have to select an encoder from the “settings->encoder” tab. You can then pop a CD in and it works its magic just like the other CD rippers, well that is right after you hit the “Rip Selection” button which is the KDE gear.

Try them and let me know which one you like the best. GUI’s are nice but nothing can compare to a command line utility and this CD changing robot

thinkpad_handler ACPI Script for Lenovo T61 hotkeys

Filed under: Shell Script Sundays — TheLinuxBlog.com at 2:54 pm on Sunday, January 18, 2009

Lenovo T61 Thinkpad_Handler ACPI hotkey

This weeks shell scripting article showcases the modifications I have made to the thinkpad_handler script that normally resides in /usr/lib/acpid on an OpenSuse distribution. For any one not using a Lenovo T61 this may or may not be useful, however anyone interested in shell scripting can take a look at the file and see the simplicity of shell scripts that are used in production environments.

Here is my modified thinkpad_handler script

One of the reasons I chose to post this was because an OpenSuse upgrade broke my brightness keys support, so I figured it would be another good place to back it up while providing a reference. My modifications are very minimal at the moment, I still have a lot of work to do.

Here are my minor modifications:

Line 102 to add support for suspendon Fn+F4

Line 127 to eject /dev/cdrom on Fn+F9

I used to have a special script for Fn+F8 which enabled me to toggle support for the touchpad and track point mouse. Until I find that script I’ll endure excruciating mental anguish every time I accidentally hit the touchpad. I’ll have to make an update to this script once I change all of the other hotkeys for OpenSuse on the Lenovo T61 or other similar Lenovo notebook computer. I should also probably upgrade to OpenSuse 11.1 and see if that makes a difference in the keyboard shortcuts.

Until next week, happy scripting!