bash script to rip a DVD to XviD – auto-rip when insert media (gnome)

introduction – or why post so late?

as you will see in the script header comments i initially created it back in august 2012 .. as i saw the article on how to autorip dvds with windows on lifehacker i just had to reply …

the problem/challenge

i started writing this script because i wanted a ripping-solution which anybody could use. i did not want to write a howto for windows/linux but a solution that is truly auto-magic .. and then sends you an email when it’s done …

the solution

my approach for linux is a bash-script (now hosted on github) which can take one parameter for the dvd mount point. if no parameter is given it will go for “/dev/dvd”. it uses “mencoder” for the ripping, “mail” to send an email and “volname” to get the dvd volume name.

i then set this script to run as default action whenever a dvd video is inserted on my (atom) server, which is still running linux mint 9 with gnome. i did not have the time yet to set it up with LMDE but will post an update when i’ve done that.

the script

unfortunately i could not find an easy way to embed the source .. therefore please go check it out over at github

gnome: set a script to be run whenever a dvd video is inserted

in nautilus selecet “edit > preferences”


then select the “Media” tab and set the script as default action for “DVD Video”



libdvdread4 error – no VTS_TMAPT ?? on linux mint using mplayer or mencoder

when trying to rip a video dvd using mencoder i got the error:

Please send bug report - no VTS_TMAPT ??

after a bit of googling it turnes out this is a well known bug .. and that it’s fixed in “libdvdread 4.1.3-10ubuntu3” so i double checked that the version i was using was the latest via aptitude …

as i did not get an update i searched for a new version and found this one for ubuntu precise:

so i just downloaded the .deb-file (to both my linux mint 10 and linux mint 9 boxes) and installed it with GDebi …

after this ripping and playback works again …

howto format a usb thumb flash drive

to format a usb thumb drive you need a software called “gparted”.

installing gparted

to install it use the following command:

sudo aptitude install gparted

or you may also use the “Software Manager”,

search for “gparted” and install it.

run gparted

after the installation run it either by starting it with the command

gparted &

using the terminal or you may also find it in the mint menu listed in the group “Administration”

or just type “gparted” into the search box.


select the device you want to format from the dropdown list in the top right corner

when you made sure you have selected the correct device right-click the partition and select “Unmount”

then right-click the partition again and select the format you want the thumb drive to have from the sub-menu “Format to”

apply the changes by clicking on the ‘return’-button “Apply All Operations”

you have to confirm the operations to take effect

once the thumb drive is formatted you may close all windows and mount it by clicking on it in a nautilus window.

workaround: slow printing pdf documents and images on the hp 2200 dtn

i tried everything to fix the slow printing of the hp 2200 dtn but nothing really helped .. the only thing seems to be to replace it with a different one (according to this forum post .. the third from the bottom) …

i have the fit-pc2 running 24/7 and there is also running windows xp in virtualbox on it .. so i thought why not configure the printer in windows xp and share it …

using this shared windows printer the pages are printed in no time …

beep on suspend hibernate

lately i was wondering why my laptop was beeping when going to hibernate or suspend mode .. it turned out that i decreased the volume pushing the volume-minus button until (i thought) it would be mute …

but you have to push the mute button to mute the laptop .. minimizing the volume does not result in mute (like in windows) but beep sounds …

Remmina Remote Desktop Manager Vnc Rdp

after trying grdesktop, vino and vinagre .. which all worked but you had to use one program for each protocol .. i was looking for something similar to

finding this blog entry showed me that there is a programme to do just what i wanted …

installing remmina as usual

sudo aptitude install remmina

and if you are missing the symbol in the systray you can install the following package …

sudo aptitude install remmina-gnome

to add it to the taskbar right-click on the taskbar, choose “Add to Panel…” and select “Remmina Remote Desktop Client Applet”

Disable Wireless (Wifi) By Default On Startup

booting the machine with the physical wireless switch enabled the wifi was always enabled but the wwan was not …

as i would like to choose whether or not to enable any wireless connection i wanted to disable it by default …
i started by disabling the option “Connect automatically” at my wireless connection .. but that would not stop the wireless to start up enabled …

finding this forum post describing how to enable it .. it was just a matter of switching the boolean

open /etc/rc.local

sudo gedit /etc/rc.local

and add the following line right after the last line starting with a “#” and just before “exit 0”

dbus-send --system --type=method_call --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.DBus.Properties.Set string:org.freedesktop.NetworkManager string:WirelessEnabled variant:boolean:false