Automatically mount SMB / CIFS / Windows share on Debian at startup

As root user, create a credentials file.
Note that <user> and <password> should be entered without “<>” brackets.
root@Erebus:~# cat > .smbcredentials
username=<user>
password=<password>

Add a line to your /etc/fstab:
Specify the local machine username which you will access the share as
//<server-IP>/<server-share> <local-mount-point> cifs uid=<local-username>,credentials=/root/.smbcredentials,iocharset=utf8,sec=ntlm 0 0

In my case it looks like this:
//192.168.2.200/DATA /media/BIGBOX1 cifs uid=jonas,credentials=/root/.smbcredentials,iocharset=utf8,sec=ntlm 0 0

If things don’t work, try mounting the share manually first. Also, ensure that cifs-utils is installed.

Examples of backing up DVD’s with Handbrake / HandbrakeCLI

Backup with default language:
HandBrakeCLI –main-feature -i /dev/cdrom -o movie.mp4 -e x264 -b 1000 -B 192

Backup with 2nd language:
For example English language DVD with additional Japanese audio track. The switch “-a” and then the number for the audio track desired will replace the default audio in the resulting mp4 file.
HandBrakeCLI –main-feature -i /dev/cdrom -o movie.mp4 -e x264 -b 1000 -B 192 -a 2

Backup with default language and subs:
HandBrakeCLI –main-feature -i /dev/cdrom -o movie.mp4 -e x264 -b 1000 -B 192 -N jpn

NOTE: The “–main-feature” results in an initial scan of the media to find and correct inconsistencies. This is helpful if the DVD authors have anticipated the media to be copied and therefore randomly scrambled the order of the chapters.

Enabling DVD backup / playback on Debian Wheezy

First ensure that apt has access to the relevant sources. My /etc/apt/sources.list is as follows (please update to reflect your local mirror – I’m in Japan, hence the “jp”):
deb http://ftp.jp.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.jp.debian.org/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib
deb http://ftp.jp.debian.org/debian/ wheezy-updates main contrib non-free
deb-src http://ftp.jp.debian.org/debian/ wheezy-updates main contrib
deb http://www.deb-multimedia.org wheezy main non-free

Run update:
apt-get update

Install the deb-multimedia keyring:
apt-get install deb-multimedia-keyring

Run update:
apt-get update

Run dist-upgrade:
apt-get dist-upgrade

Install all libdvdcss packages:
apt-get install libdvdcss*

Try it out with vlc or Handbrake or your favorite player

If there are issues, try installing libavcodec-extra:
apt-get install libavcodec-extra-53

Building HandbrakeCLI from source on Debian Wheezy

Install prerequisite packages for the build:
sudo apt-get install subversion yasm build-essential autoconf libtool zlib1g-dev libbz2-dev libxml2-dev libogg-dev libvorbis-dev libsamplerate-dev libfribidi-dev libfreetype6-dev libfontconfig1-dev libass-dev libmp3lame-dev libx264-dev intltool libglib2.0-dev libdbus-glib-1-dev libgtk-3-dev libgudev-1.0-dev libwebkitgtk-3.0-dev libnotify-dev libappindicator-dev libtheora-dev

Checkout the code from svn:
svn checkout svn://svn.handbrake.fr/HandBrake/trunk hb-trunk

Enter the directory and run configure:
cd hb-trunk/
./configure –disable-gtk –launch

Enter build directory and run make:
cd build
sudo make install

We’re done! Run Handbrake and try it out:
HandBrakeCLI