# Ripping on Linux

Make sure to install the latest version of [Whipper](https://github.com/whipper-team/whipper#package) for your distribution.

!!! tip
	Skip to [**Ripping**](#ripping) if you already have everything setup and wish to skip to the ripping part of the guide.

## Setup

The following should be done once when setting up the program.

1. Configure drive settings.

	```sh
	$ whipper drive analyze

	INFO:whipper.command.drive:cdparanoia can defeat the audio cache on this drive
	INFO:whipper.command.drive:adding drive cache behaviour to configuration file
	```

2. Insert the most popular disc you own in the drive and configure AccurateRip.

	```sh
	$ whipper offset find

	INFO:whipper.command.offset:checking device /dev/sr0
	Track 1 finished, found 5 Q sub-channels with CRC errors
	Track 2 finished, found 18 Q sub-channels with CRC errors
	INFO:whipper.command.offset:trying read offset 6...
	INFO:whipper.command.offset:offset of device is likely 6, confirming...

	Read offset of device is: 6.
	INFO:whipper.command.offset:adding read offset to configuration file
	```

!!! tip
	If the offset could not be configured, find the offset for your drive from the [AccurateRip Drive Offsets](https://accuraterip.com/driveoffsets.htm) page and manually set `read_offset = [num]` in `whipper.conf`.

	Possible locations for `whipper.conf` include:

	* `$XDG_CONFIG_HOME/whipper/whipper.conf`
	* `~/.config/whipper/whipper.conf`
	* `~/snap/whipper/...`

## Ripping

Insert a disc and start ripping.

```
$ whipper cd rip

INFO:whipper.command.cd:using configured read offset 6
INFO:whipper.command.cd:checking device /dev/sr0
CDDB disc id: 1303e803
MusicBrainz disc id EnkfN07oqHBl9RvvfY7LTcZoa_U-
MusicBrainz lookup URL https://musicbrainz.org/cdtoc/attach?toc=1+3+75204+150+25647+47289&tracks=3&id=EnkfN07oqHBl9RvvfY7LTcZoa_U-
Disc duration: 00:16:40.720, 3 audio tracks

Matching releases:

Artist  : Galileo Galilei
Title   : 青い栞
Duration: 00:16:39.960
URL     : https://musicbrainz.org/release/08155df6-e5a8-490c-94bb-509717809864
Release : 08155df6-e5a8-490c-94bb-509717809864
Type    : Single
Barcode : 4547557009446
Cat no  : SECL-975

output directory ./single/Galileo Galilei - 青い栞 is a finished rip
```

!!! tip
	If the disc is a CD-R, add the **--cdr** flag.

	```
	$ whipper cd rip --cdr
	```

!!! tip
	If the disc has multiple matches, specify one with the **-R [release_id]** flag.

	```
	$ whipper cd rip -R [release_id]
	```

!!! abstract
	If the release does not exist on [MusicBrainz](https://musicbrainz.org/search), you can add it yourself.

### Postrip

* Check the rip log with a logchecker. <small>See&nbsp;[Ripping&nbsp;CDs](/guides/ripping-cds)</small>
* Add a high quality cover. <small>See&nbsp;[Finding&nbsp;Artwork](/guides/finding-artwork)</small>
* Make scans of your physical release. <small>See&nbsp;[Scanning&nbsp;Releases](/guides/scanning-releases)</small>



{{ pageinfo(authors="Salty", created="2021/10/28", updated="2021/10/30") }}
