jeltsch's blog

Handbrake and protected DVDs

Ripping DVDs is a thing of the past, but occasionally I still need to do it. However, it happens so rarely that evertime I have either a new computer or a new Linux distribution and I need to install the necessary software. This time I am on Ubuntu 16.04. I usually use Handbrake and it is very comfortable, but handbrake sometimes fails to do the job. This time, I had to resort to MakeMKV. However MakeMKV only rips the video to an MKV container but it does not compress it.

ScanSnap iX100 support for Linux

Under Ubuntu 16.04, the ScanSnap iX100 is not supported yet by the sane package. In order to get it working, you need to install the ppa from Rolf Bensch:

sudo add-apt-repository ppa:rolfbensch/sane-git
sudo update
sudo upgrade

Automated reinstall of software from package list

If I need to reinstall a Ubuntu/Debian-based Linux OS (or mirror a software selection to another machine), this is how it can be done. On the source machine:

dpkg --get-selections > ~/Package.list
cp -R /etc/apt/sources.list* ~/
apt-key exportall > ~/repository.keys

Then just copy the files to the target machine:

Let's encrypt duplicated my log files

I have not been keeping log files for my web server until the beginning of 2016, when I needed to trace access to certain files (I started to use awstats, mostly because I was familiar with it since I had used it years ago when my site was still running on a Red Hat server). In March 2016 I luckily started to use Let's Encrypt. I had used another "free" service before, which got recently into big trouble as they apparently had not control over their own security.

How to start openvpn under Ubuntu 16.04

sudo systemctl start openvpn@client
The "client" is derived from the configuration file name (/etc/openvpn/client.conf). If your configuration file is server.conf, the command needs to be
sudo systemctl start openvpn@server

Batch renaming files on the command line

The default command line application for batch renaming files in Ubuntu 16.04 is called "rename":
rename 's/tk98i_/wt_tk98_/' *.tif
It uses Perl regular expressions with and the s/old/new/ syntax. The example above renames all files with the .tif extensions and replaces the th98i_ expression with wt_tk98_.
Here are some more examples:


Zircon - This is a contributing Drupal Theme
Design by WeebPal.