I wrote a pretty simple shell script that rips an audio CD as a single FLAC file with embedded cuesheet for Linux. It ensures secure rip by ripping a disc three times with cdparanoia and comparing their checksums. It has been tested on Ubuntu 12.04 Precise, but it should work for any Linux system such as Fedora.

Usage

Just run the script in your shell prompt, it will retrieve the ID of the disc and generate a <DISCID>.flac

Required packages

Install the following packages first:

apt-get install cd-discid cdrdao cuetools flac cdparanoia

Install the ripper script

Put the following script into your path (e.g. /usr/local/bin). You might want to change the DEVICE variable (e.g. /dev/cdrom). If you want even more secure rip, you can set the COPIES variable to a greater value (e.g. 5).

Fill metadata

Unfortunately, the script does not fill the metadata such as track information and cover art. I usually rip a bunch of discs first using this script and then fill their metadata in Windows. Here’s the steps I take: