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:

How to use openssl to create a certificate (CER) and PFX file to connect to Azure using the App Controller

First create the certificate for upload to the Azure account via the Azure web page:
jonas@nyx:~$ openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout privateKey.key -out certificate.cer
It will ask for country, name, etc. Just enter something.

Next, create the pfx file required for the App Controller:
jonas@nyx:~$ openssl pkcs12 -export -in certificate.cer -inkey privateKey.key -out certificate.pfx

The App controller will also ask for Subscription ID This is listed under “settings” in your Azure account (far bottom on the left hand pane)

XenDesktop 7.5 mapped drive execute permission

By default it’s not possible to run executables (install software) from a client drive which has been mapped to a XenDesktop VM. A work around is to copy the files to a network share and run the installation from there, but it takes time and can be a fair bit of extra work.

Instead, it’s possible to enable execute permissions via a quick and simple registry modification on the VDA (the XenDesktop VM). No DDC or client PC changes are required.

  1. Start “regedit”
  2. Navigate to “HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\GroupPolicy\Defaults\”
  3. Add the key “CDMSettings”
  4. Add the following DWORD value: “ExecuteFromMappedDrive”
  5. Set “ExecuteFromMappedDrive” to “1”

A restart of the VM is required for the changes to take effect.

Tested on XenServer 6.2 with XenDesktop 7.5 on a Dell R720 with NVIDIA K2 GPU card (K240Q and K260Q vGPUs assigned to the VMs).


VMware default user names / logins and passwords

Consistency in user names and passwords would be nice, but unfortunately that isn’t always the case. While setting up VMware’s vCenter, vCOPS and vShield recently I came across a few default logins / passwords worth jotting down for reference:

VMware vCenter Operations Manager: UI VM console login

Admin account: admin

Password: admin

root account: root

Password: vmware

VMware vCenter Operations Manager: Web GUI login

User: admin

Password: admin


VMware vCenter appliance login (same for both local console and Web GUI):

User: root

Password: vmware


vCenter appliance URL for initial access and configuration

https://[vCenter IP]:5480


vCenter appliance URL for normal web access (the web client: alternative to using the vSphere client)

https://[vCenter IP]:9443


vShield Manager console:

User: admin

Password: default



Configuring iSCSI and management networks on a Dell EqualLogic PS-M4110 storage array

Quick instructions on setting up an EqualLogic PS-M4110 storage array.
In this case it’s a blade model located in a Dell M1000e chassis, slot 7 and 8.
Fabric B is the iSCSI fabric and fabric A is for management
We start by configuring fabric B, then A

Since there is no IP configured, we connect via serial.
Luckily the M1000e provides serial connectivity via the CMC as per the below:

SSH to CMC IP address:

Switch to the EQL serial interface (connect to the slot ID)

Log in (default user/pass: grpadmin/grpadmin)

Note: If creating a new group, just enter the desired group name and IP

Setting up the management network:

The array can now be accessed via the web:

Nagios3 – location of config and plugin directories with Crunchbang (debian squeeze)

apt-get install nagios3
apt-get install freeipmi

Access from http://localhost/nagios3/

Config files:
root@cruncher01:~# ls -l /etc/nagios3/conf.d/
total 32
-rw-r–r– 1 root root 1695 Nov  1 23:11 contacts_nagios2.cfg
-rw-r–r– 1 root root  418 Nov  1 23:11 extinfo_nagios2.cfg
-rw-r–r– 1 root root 1152 Nov  1 23:11 generic-host_nagios2.cfg
-rw-r–r– 1 root root 1803 Nov  1 23:11 generic-service_nagios2.cfg
-rw-r–r– 1 root root  678 Nov  1 23:11 hostgroups_nagios2.cfg
-rw-r–r– 1 root root 2167 Nov  1 23:11 localhost_nagios2.cfg
-rw-r–r– 1 root root  657 Nov  1 23:11 services_nagios2.cfg
-rw-r–r– 1 root root 1609 Nov  1 23:11 timeperiods_nagios2.cfg

Plugin directory:
root@cruncher01:~# ls -l /usr/lib/nagios/plugins/ | head
total 3588
-rwxr-xr-x 1 root root 108904 Jun 28  2012 check_apt
-rwxr-xr-x 1 root root   7262 Jul  3  2012 check_backuppc
-rwxr-xr-x 1 root root   2242 Jun 28  2012 check_breeze
-rwxr-xr-x 1 root root  51984 Jun 28  2012 check_by_ssh
-rwxr-xr-x 1 root root   1723 Jul  3  2012 check_cert_expire
lrwxrwxrwx 1 root root      9 Jun 28  2012 check_clamd -> check_tcp
-rwxr-xr-x 1 root root  35112 Jun 28  2012 check_cluster
-rwxr-xr-x 1 root root  51536 Jun 28  2012 check_dhcp
-rwxr-xr-x 1 root root  47568 Jun 28  2012 check_dig

How to enable NTP on the vCenter appliance

VMware vCenter Server Appliance Build 1235310
root@’s password:
Last login: Mon Oct  7 17:18:29 2013 from vrtx-vcenter
vrtx-vcenter:~ # yast2 ntp-client add server=

Cannot update the dynamic configuration policy.

vrtx-vcenter:~ # ls -l /etc/resolv.conf*
-rw-r–r– 1 root root  22 Oct  8  2013 /etc/resolv.conf
-rw-r–r– 1 root root 795 Oct  7 17:35 /etc/resolv.conf.netconfig
vrtx-vcenter:~ # cp -p /etc/resolv.conf /etc/resolv.conf.orig
vrtx-vcenter:~ # !ls
ls -l /etc/resolv.conf*
-rw-r–r– 1 root root  22 Oct  8  2013 /etc/resolv.conf
-rw-r–r– 1 root root 795 Oct  7 17:35 /etc/resolv.conf.netconfig
-rw-r–r– 1 root root  22 Oct  8  2013 /etc/resolv.conf.orig
vrtx-vcenter:~ # cat /etc/resolv.conf.netconfig > /etc/resolv.conf
vrtx-vcenter:~ # !ls
ls -l /etc/resolv.conf*
-rw-r–r– 1 root root 795 Oct  7 17:38 /etc/resolv.conf
-rw-r–r– 1 root root 795 Oct  7 17:35 /etc/resolv.conf.netconfig
-rw-r–r– 1 root root  22 Oct  8  2013 /etc/resolv.conf.orig
vrtx-vcenter:~ # yast2 ntp-client add server=
vrtx-vcenter:~ # yast2 ntp-client enable
vrtx-vcenter:~ # sntp -P no -r
vrtx-vcenter:~ # date
Mon Oct  7 17:39:25 JST 2013
vrtx-vcenter:~ # cp -p /etc/resolv.conf.orig /etc/resolv.conf
vrtx-vcenter:~ # !ls
ls -l /etc/resolv.conf*
-rw-r–r– 1 root root  22 Oct  8  2013 /etc/resolv.conf
-rw-r–r– 1 root root 795 Oct  7 17:35 /etc/resolv.conf.netconfig
-rw-r–r– 1 root root  22 Oct  8  2013 /etc/resolv.conf.orig
vrtx-vcenter:~ #