Rip DVD

Install

sudo apt install -y dvdbackup hdparm libdvd-pkg
sudo dpkg-reconfigure libdvd-pkg
 
sudo nice -n 19 dvdbackup -M && chmod a-w * -R && eject

GUI

# echo "deb http://de.archive.ubuntu.com/ubuntu $(lsb_release -cs) universe" >> /etc/apt/sources.list
echo "deb http://de.archive.ubuntu.com/ubuntu quantal universe" > /etc/apt/sources.list.d/quantal.list
apt-get update
apt-get install k9copy
# old # apt-get install dvd95

Console
http://dl.panticz.de/scripts/rip.sh

#!/bin/bash

# check parameter
if [ -n "$1" ]; then
   PARAM="-n $1"
fi

# mount target device (optional)
sudo mount /dev/sdc1 /mnt

# install libdvdcss2
wget https://raw.github.com/panticz/installit/master/install.libdvdcss.sh -O - | sudo bash -

# enable universe
sudo sed -i "s/# \(deb .* universe\)/\1/" /etc/apt/sources.list
sudo apt-get update

# check if apps already installed
sudo apt-get install -y dvdbackup hdparm

# check if /dev/dvd exists
[ -f /dev/dvd ] || ln -s /dev/sr0 /dev/dvd

# set dvd speed
sudo hdparm -E 255 /dev/sr0

# rip dvd
sudo nice -n 19 dvdbackup -M -o /mnt ${PARAM}

# eject dvd
sudo eject
>

Console

if [ $(dpkg -l dvdbackup | grep ii | wc -l) -eq 0 ]; then
   sudo apt-get install dvdbackup
fi
dvdbackup -M -o ~/Videos/

OPTIONAL: set region code on your DVD drive (fix Error cracking CSS key for)

if you get this error:
libdvdread: Error cracking CSS key for /VIDEO_TS/VTS_01_1.VOB (0x00123445)!!
 
sudo apt-get install -y regionset
regionset
Enter the new region number for your drive [1..8]:2  (2 = europe)
New mask: 0xFFFFFFFD, correct? [y/n]:y
Region code set successfully!

Directory to ISO

genisoimage -o output_image.iso directory_name

Links
http://dvd95.sourceforge.net/
http://k9copy.sourceforge.net/index.php
http://en.wikipedia.org/wiki/DVD_region_code