Zum Inhalt

Schlagwort: linux

How to remove all backups in Plesk for Linux

If you ever find yourself confronted with a Plesk system that is running out of disk space, and you just want to get rid off all the misconfigured "keep forever" backups, here's how to remove them all from the command line:

/usr/local/psa/admin/bin/pmm-ras --get-dump-list | egrep "name=\".*.xml" | awk -F '"' '{ print $2 }' | xargs -I {} /usr/local/psa/admin/bin/pmm-ras --verbose --debug --delete-dump --dump-specification={} --session-path=/var/log/plesk/PMM
Leave a Comment

Fix errors when compiling Linux Kernel 4.12 with GCC 8


In file included from arch/mips/kernel/syscall.c:17:
./include/linux/syscalls.h:196:18: Fehler: »sys_mips_mmap« Alias zwischen unverträglichen Funktionstypen »long int(long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, off_t)« {alias »long int(long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int, long int)«} und »long int(long int, long int, long int, long int, long int, long int)« [-Werror=attribute-alias]


echo "KBUILD_CFLAGS += -Wno-error=attribute-alias" >> Makefile

Leave a Comment

Gentoo GNU/Linux on an SGI Octane

UPDATE: gentoo/octane is released. CLICK HERE!


More info will be coming soon. Just come teaser to get you interested 😉

I AM running Linux 4.12 in full 64 bits, gcc 8, a current glibc, and all the modern software. WITH audio. WITH accellerated graphics. And my root volume is on 3x147GB SCSI Software RAID-0 stripeset goodness. And yes, I do have multiple backups. Boom!

rephlex@octane ~ $ uname -a && cat /etc/*release && cat /proc/cpuinfo && df -h && free -m
Linux octane 4.12.0 #2 SMP Fri Dec 14 21:41:04 CET 2018 mips64 R12000 V2.3 FPU V0.0 SGI Octane GNU/Linux
Gentoo Base System release 2.2
system type : SGI Octane
machine : Unknown
processor : 0
cpu model : R12000 V2.3 FPU V0.0
BogoMIPS : 449.02
wait instruction : no
microsecond timers : yes
tlb_entries : 64
extra interrupt vector : no
hardware watchpoint : yes, count: 0, address/irw mask: []
isa : mips1 mips2 mips3 mips4
ASEs implemented :
shadow register sets : 1
kscratch registers : 0
package : 0
core : 0
VCED exceptions : not available
VCEI exceptions : not available

processor : 1
cpu model : R12000 V2.3 FPU V0.0
BogoMIPS : 449.02
wait instruction : no
microsecond timers : yes
tlb_entries : 64
extra interrupt vector : no
hardware watchpoint : yes, count: 0, address/irw mask: []
isa : mips1 mips2 mips3 mips4
ASEs implemented :
shadow register sets : 1
kscratch registers : 0
package : 0
core : 0
VCED exceptions : not available
VCEI exceptions : not available

Dateisystem Größe Benutzt Verf. Verw% Eingehängt auf
/dev/root 133G 3,1G 123G 3% /
devtmpfs 10M 0 10M 0% /dev
tmpfs 62M 224K 62M 1% /run
shm 310M 0 310M 0% /dev/shm
/dev/md127 269G 7,9G 247G 4% /home
gesamt benutzt frei gemns. Puffer/Cache verfügbar
Speicher: 619 123 63 0 432 471
Swap: 7999 3 7996

1 Comment

Create a video clip from a set of images using ffmpeg

imagine your image folder looks like this:

rephlex@hera:[~/Schreibtisch/gna]: ls -1 * | head


This is the command you're looking for:

ffmpeg -framerate 25 -start_number 37679 -i G00%05d.JPG -c:v libx264 -profile:v high -crf 20 -pix_fmt yuv420p output.mp4

Leave a Comment

Installing Brother DCP Scanner Drivers in Ubuntu

Start a Terminal using CTRL+ALT+T. Install some depencencies and frontend scanner tools using

sudo apt-get install xsane sane-utils simple-scan lib32stdc++6

Now download the drivers. In case brother loses them, I mirrored them here. Alternatively use the wget commands down below.

wget http://download.brother.com/welcome/dlf006646/brscan4-0.4.4-4.i386.deb -O brscan4-0.4.4-4.i386.deb
wget http://download.brother.com/welcome/dlf006651/brscan-skey-0.2.4-1.i386.deb -O brscan-skey-0.2.4-1.i386.deb
wget http://download.brother.com/welcome/dlf006654/brother-udev-rule-type1-1.0.2-0.all.deb -O brother-udev-rule-type1-1.0.2-0.all.deb

Now install the drivers you just downloaded:

sudo dpkg -i –force-architecture brscan.deb brother-udev-rule.deb

And restart your udev service:

sudo systemctl restart udev.service

All i had to do was unplug and plug in my DCP, and i could immediately scan using simple-scan in Gnome.

Leave a Comment

my PS1

export PS1="\[\033[38;5;11m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\]@\h:\[$(tput sgr0)\]\[\033[38;5;6m\][\w]:\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]"


and it looks like this:

Leave a Comment

Example Netplan dual stack network configuration for Ubuntu 18.04

(08-15 example) srv01 ~ # cat /etc/netplan/01-netcfg.yaml 
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
  version: 2
  renderer: networkd
      addresses: [, "2a02:708:xx:xx::2/64"]
      gateway6: 2a02:708:xx:xx::1
        addresses: [, "2001:4860:4860::8888"]
      addresses: []

to apply the settings, use

netplan apply

to list your network interfaces (and their names) use

ip addr
1 Comment

DisplayLink-Driver / i-teck Docking Station Driver for Debian and Ubuntu

Long story short:


local mirror here (dated 2018/03/13)

See it in Action:

root@nb-fpanzer:~# ./displaylink-debian.sh

————————— displaylink-debian —————————-

DisplayLink driver installer for Debian based Linux distributions:

* Debian GNU/Linux
* Ubuntu
* Elementary OS
* Linux Mint
* Kali Linux
* Deepin



Select a key: [i/u/r/q]: I


Checking dependencies

unzip is installed
linux-headers-4.15.0-10-generic is installed
dkms is installed
lsb-release is installed
dpkg-query: Paket »linux-source« ist nicht installiert und es ist keine Information verfügbar
Verwenden Sie dpkg –info (= dpkg-deb –info) zum Untersuchen von Archiven
und dpkg –contents (= dpkg-deb –contents) zum Auflisten ihres Inhalts.
linux-source not found! Install? [Y/n] Y
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen…. Fertig
Die folgenden zusätzlichen Pakete werden installiert:
Vorgeschlagene Pakete:
libncurses-dev | ncurses-dev kernel-package libqt3-dev
Die folgenden NEUEN Pakete werden installiert:
linux-source linux-source-4.15.0
0 aktualisiert, 2 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 129 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 144 MB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] J
Holen:1 http://de.archive.ubuntu.com/ubuntu bionic/main amd64 linux-source-4.15.0 all 4.15.0-10.11 [129 MB]
Holen:2 http://de.archive.ubuntu.com/ubuntu bionic/main amd64 linux-source all [2.272 B]
Es wurden 129 MB in 30 s geholt (4.278 kB/s).
Vormals nicht ausgewähltes Paket linux-source-4.15.0 wird gewählt.
(Lese Datenbank … 288228 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von …/linux-source-4.15.0_4.15.0-10.11_all.deb …
Entpacken von linux-source-4.15.0 (4.15.0-10.11) …
Vormals nicht ausgewähltes Paket linux-source wird gewählt.
Vorbereitung zum Entpacken von …/linux-source_4. …
Entpacken von linux-source ( …
linux-source-4.15.0 (4.15.0-10.11) wird eingerichtet …
linux-source ( wird eingerichtet …

Platform requirements satisfied, proceeding …


Please read the Software License Agreement
available at http://www.displaylink.com/downloads/file?id=1123
and accept here: [Y]es or [N]o: Y

Downloading DisplayLink Ubuntu driver:

–2018-03-13 15:55:17– http://www.displaylink.com/downloads/file?id=1123
Auflösen des Hostnamens www.displaylink.com (www.displaylink.com)…,,, …
Verbindungsaufbau zu www.displaylink.com (www.displaylink.com)||:80 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 303 See Other
Platz: http://assets.displaylink.com/live/downloads/software/f1123_DisplayLink%20USB%20Graphics%20Software%20for%20Ubuntu%204.2.zip?AWSAccessKeyId=AKIAJHGQWPVXWHEDJUEA&Expires=1520953530&Signature=NCBPWabnNZOkbSctW5sv5a4ksAE%3D [folgend]
–2018-03-13 15:55:17– http://assets.displaylink.com/live/downloads/software/f1123_DisplayLink%20USB%20Graphics%20Software%20for%20Ubuntu%204.2.zip?AWSAccessKeyId=AKIAJHGQWPVXWHEDJUEA&Expires=1520953530&Signature=NCBPWabnNZOkbSctW5sv5a4ksAE%3D
Auflösen des Hostnamens assets.displaylink.com (assets.displaylink.com)…
Verbindungsaufbau zu assets.displaylink.com (assets.displaylink.com)||:80 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: 14112877 (13M) [application/octet-stream]
Wird in »DisplayLink_Ubuntu_4.2.zip« gespeichert.

DisplayLink_Ubuntu_4.2.zip 100%[===================================================================================================================================>] 13,46M 3,70MB/s in 3,7s

2018-03-13 15:55:21 (3,62 MB/s) – »DisplayLink_Ubuntu_4.2.zip« gespeichert [14112877/14112877]


Preparing for install

Archive: DisplayLink_Ubuntu_4.2.zip
inflating: 4.2/displaylink-driver-4.2.29.run
inflating: 4.2/LICENSE
creating: 4.2/__MACOSX/
inflating: 4.2/__MACOSX/._LICENSE
Creating directory displaylink-driver-4.2.29
Verifying archive integrity… 100% All good.
Uncompressing DisplayLink Linux Driver 4.2.29 100%

## NO suitable EVDI source found ##


Installing driver version: 4.2

DisplayLink Linux Software 4.2.29 install script called: install
Distribution discovered: Ubuntu Bionic Beaver (development branch)
Configuring EVDI DKMS module
Registering EVDI kernel module with DKMS
Building EVDI kernel module with DKMS
Installing EVDI kernel module to kernel tree
EVDI kernel module built successfully
Installing x64-ubuntu-1604/DisplayLinkManager
Installing libraries
Installing firmware packages
Installing licence file
Adding udev rule for DisplayLink DL-3xxx/5xxx devices

Please read the FAQ


Performing post install steps

Created symlink /etc/systemd/system/multi-user.target.wants/dlm.service → /lib/systemd/system/dlm.service.


Performing clean-up
Removing redundant: "DisplayLink_Ubuntu_4.2.zip" file
Removing redundant: "4.2" directory


Install complete, please reboot to apply the changes