WSL2: Ubuntu 20.04

WSL2 uses HyperV mechanism, thus they must be installed and activated. Example via PowerShell:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform

List installed WSL distributions, convert one of them to WSL2, and (optionally) set all future distributions to be installed as WSL2:

wsl --list --verbose
wsl --set-version Ubuntu-18.04 2
wsl --set-default version 2

WSL2 systems are connected (as a result of HyperV) to a separate network. Thus the Xserver tries to use access controls by default. A workaround is, to disable access control completely when starting VcXsrv. The display variable needs to be set to the Windows Host IP e.g. in ~/.bashrc:

if [ -z "$DISPLAY" ]; then
    export DISPLAY=

The Windows Host IP can also be extracted from /etc/resolv.conf.

Building Debian packages from package sources

apt-get build-dep package_name
apt-get source package_name
cd package_name

<modify source>

dpkg-buildpackage -us -uc -nc

Open issue: Package version should be changed.

Second variant:

apt-get build-dep package_name
apt-get source package_name
cd package_name

<modify source>

dpkg-source --commit

dpkg-buildpackage --unsigned-source --unsigned-changes

Extracting DVD tracks

To extract DVD tracks identify the actual tracks first:

HandBrakeCLI -Z "Very Fast 1080p30" -i DVD.ISO -o test.mp4 -t 0 |& grep -e title -e "+ duration"

After that run the following command with the wanted title number:

HandBrakeCLI -Z "Super HQ 720p30 Surround" --audio-lang-list deu -i DVD.iso -o filename.mp4 -t <track#>

Brother ADS-1100W FTP-Scanning setup

This document scanner can send documents directly to an FTP-Server. Install vsftp via aptitude install vsftpd and set /etc/vsftpd.conf as following:


This enables anonymous uploading for everyone! Create /data/ftp/incoming and chown it to ftp.ftp. Add the following section in /etc/samba/smb.conf to enable easy access to Windows clients:

   comment = Scans
   path = /data/ftp/incoming
   force user = ftp
   force group = ftp
   read only = No

Server Setup with Debian 10 (Buster)

Note: Basic networking is done via a Fritzbox, which provides IP-Address assignment and routing.

Run Debian setup with following choices:

  • Graphical Install
  • Language Settings
  • User with sudo to root
  • Guided crypted partioning with separated /home , /var & /tmp
  • Software selection: Basic system tools & SSH server

After the first reboot adapt sources.lst to include contrib and non-free repositories and install firmware for the usually built-in Realtek network chip:

sudo aptitude install firmware-realtek

Dynamic DNS is required to make the server available to the outside under a memorable name:

 @hourly wget -O -<id> >/dev/null 2>&1 

Setup services:

Additional things to do

Prevent console clearing after boot up

Add/edit /etc/systemd/system/getty@.service.d/noclear.conf


Run systemctl daemon-reload to let the changes becoming active.

Setup Eclipse on Linux and WSL with GTK2

The packaged version of Eclipse 3.8 does not work anymore on Ubuntu 18.04, thus a manual install of a newer version is required. Requirements: C++, Python, Git, SVN. I prefer the GTK2 version here as it is much more responsive than the current GTK3 version (Eclipse IDE 2019-09 R).

Basic Installation

  1. Install a JDK: sudo aptitude install default-jdk
  2. Install basic C++ development tooling: sudo aptitude install gcc g++ make
  3. Install GTK2 libraries: sudo aptitude install libgtk2.0-0
  4. Get one of the last GTK2 versions of “Eclipse IDE for C/C++ Developers”
    1. Eclipse IDE Photon R (4.8)
    2. Eclipse IDE 2018-09 R (4.9)
  5. Extract to /usr/local: sudo tar -C /usr/local/ -xf eclipse-cpp-2018-09-linux-gtk-x86_64.tar.gz
  6. Link executable to a known search path: sudo ln -s /usr/local/eclipse/eclipse /usr/local/bin/eclipse
  7. Set default GTK version via eclipse.ini by adding the following lines before the “appendVmargs” section (otherwise GTK3 will be used by default if libgtk3 is installed):
  1. Install libwebkitgtk to display markdown documents correctly: aptitude -R install libwebkitgtk-1.0-0


  1. Install python interpreter: sudo aptitude install python python3
  2. Install PyDev plugin: sudo unzip -d /usr/local/eclipse/dropins/pydev-7.4.0 “PyDev”
  3. For XML processing install lxml: sudo aptitude install python-lxml python3-lxml

Git + SVN

  1. Install versioning tools and required libraries: sudo aptitude install subversion git
  2. Install EGIT and Subclipse plugins (4.2.4 is the last with SVN 1.9 support):
    1. sudo unzip -d /usr/local/eclipse/dropins/egit-5.5.1
    2. sudo rm -v /usr/local/eclipse/dropins/egit-5.5.1/*.*
    3. sudo unzip -d /usr/local/eclipse/dropins/subclipse-4.2.4
    4. sudo rm -v /usr/local/eclipse/dropins/subclipse-4.2.4/*.*
    5. sudo aptitude install libsvnkit-java
  3. set GIT_SSH to local ssh binary to make it use the authentication agent in .basrc: export GIT_SSH=/usr/bin/ssh

Shell scripts

Install the dynamic languages toolkit (dltk) 5.10 for shell syntax highlighting: sudo unzip -d /usr/local/eclipse/dropins/dltk-R-5.10

Eclipse 4.13 + GTK3

Install GTK3 libs (sudo aptitude install libgtk-3-0), rest as above.

Eclipse 4.17 (2020-09-R)

Tested on Ubuntu 20.04: with PyDev 8.0.1 & Subclipse 4.3.2

  • Sublipse does not seem to pickup any SVN interface
  • No separate EGIT installation required anymore
  • dltk releases 6.* do not contain ShellEd anymore, but re-using release 5.10 seems to work as well

Raspberry + BME280


Make the script executable and run it. If the BME280 is wired up correctly, following output should appear:

Chip ID     : 96
Version     : 0
Temperature :  23.18 C
Pressure :  994.415458604 hPa
Humidity :  33.6359104061 %

Raspberry Zero + Raspbian Stretch Lite + I2C


Write new image to SD-Card (replace ‘?’ with actual drive) and configure WLAN and SSH:

cp 2018-11-13-raspbian-stretch-lite.img /dev/sd?
mount dev/sd?1 /mnt
touch /mnt/ssh # starts ssh without further ado
echo "country=DE
}" > /mnt/wpa_supplicant.conf
umount /mnt

Put the card now into the Raspberry Pi and boot it up. It should appear now in your DHCP-Server leases where you can get the IP address of it.


Log into it and change its hostname to something suitable, reboot afterwards.

ssh pi@<ip-address> # default password is 'raspberry'
sudo vi /etc/hostname
sudo reboot

Add the following lines to the respective files to enable i2c:



Afterwards install necessary tools to check if i2c is working

sudo apt-get install i2c-tools


Running i2cdetect -y 0 shows that a device on address 0x76 was detected (in this case a BME280 sensor):

pi@raspberry0-0:~ $ sudo i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- 76 --

APC Back-UPS XS 650CI & apcupsd


aptitude install apcupsd


In the default /etc/apcupsd/apcupsd.conf disable the DEVICE entry in line 90:

# DEVICE /dev/ttyS0

Restart daemon systemctl restart apcupsd and check working connection with apcaccess status.


  • Reset battery date with apctest (stop apcupsd before) with View/Change battery date
  • Change alarm behaviour with apctest (stop apcupsd before) with View/Change alarm behavior
  • Replacement battery type: APCRBC110

Compaq Evo N800v & Debian 8 (Jessie)

How to get Debian 8 (Jessie) running properly on an ancient Compaq Evo N800v machine

Installing required packages:

aptitude install firmware-amd-graphics

Touchpad works out of the box: Enable clicking and scrolling on the touchpad via mouse settings. (Mate-Desktop)

Unresolved issued

  • Standby may freeze cursors occasionally
  • Hibernation results in graphic glitches