Inhaltsverzeichnis

Braindump

SSH

sshd: error: Failed to allocate internet-domain X11 display socket.

/etc/ssh/sshd_config:
AddressFamily inet

http://forums.fedoraforum.org/showthread.php?t=270333

Upgrade your SSH keys!

https://blog.g3rt.nl/upgrade-your-ssh-keys.html

Mozilla OpenSSH Security Guidelines

https://wiki.mozilla.org/Security/Guidelines/OpenSSH

DHCP Server mit dnsmasq

dnsmasq --no-daemon --log-dhcp --dhcp-range=192.1.1.100,192.1.1.150 --dhcp-option=option:router,192.1.1.1 --dhcp-option=option:dns-server,192.1.1.10

Linux Performance Analyse

Various

DDoS protection using Netfilter/iptables

http://rhelblog.redhat.com/2014/04/11/mitigate-tcp-syn-flood-attacks-with-red-hat-enterprise-linux-7-beta/ http://people.netfilter.org/hawk/presentations/devconf2014/

Exchange EWS Provider (Thunderbird)

https://github.com/Ericsson/exchangecalendar/releases

reredirect (dynamically redirect outputs of a running program)

https://github.com/jerome-pouiller/reredirect/

reptyr (Reparent a running program to a new terminal)

https://github.com/nelhage/reptyr

OOM relation to vm.swappiness=0 in new kernel

https://www.percona.com/blog/2014/04/28/oom-relation-vm-swappiness0-new-kernel/

/proc/meminfo

http://blog.famzah.net/tag/procmeminfo/

AsItHappens (real-time network statistic collector and grapher)

http://www.abrahams.co.nz/asithappens/

BGP for SPAM blacklist distribution

http://www.bgp-spamd.net/index.html http://www.debian-administration.org/article/715/Preventing_SPAM_connections_with_bird.

MySQL: restore single table from dump

sed -n -e '/Table structure for.*`mytable/,/Table structure for/p' whole.sql > mytable.sql

MySQL: restore single database from dump

sed -n -e '/Current Database: `mydatabase/,/Current Database: `/p' whole.sql > mydatabase.sql

The art of command line

https://github.com/jlevy/the-art-of-command-line

Froscon 2015

Linux Storage Stack

Linux Netzwerk Stack

Various

ctypes (Funktionen in C libs aus bash ausführen)

ctypes.sh is a bash plugin that provides a foreign function interface directly in your shell. In other words, it allows you to call routines in shared libraries from within bash. http://ctypes.sh/

The TTY demystified

http://www.linusakesson.net/programming/tty/index.php

exiftool: strip all EXIF data

exiftool -all= -overwrite_original <file.jpg>

dehydrated deb mit fpm bauen

https://github.com/lukas2511/dehydrated

fpm --input-type dir --output-type deb --name dehydrated --version $(git show --date=short --no-patch --format=format:'%ad-git%H' HEAD) --architecture all --depends curl ./dehydrated=/usr/bin/ ./docs/=/usr/share/doc/dehydrated $(mktemp -d)/=/etc/dehydrated

minio deb mit fpm bauen

wget https://dl.minio.io/server/minio/release/linux-amd64/minio
chmod +x minio
fpm --input-type dir --output-type deb --name minio --version $(./minio version | awk '/^Version/ { print $2 }') ./minio=/usr/bin/

iptables debugging (TRACE target)

http://backreference.org/2010/06/11/iptables-debugging/

iproute2 cheat sheet

http://baturin.org/docs/iproute2/

IT Landscape for sysadmins

https://sysadmin.it-landscape.info/

Moneyplex FP3 in CSV wandeln

xmlstarlet sel --text --template --match 'preparedreport/previewpages/page0/b2' --value-of "concat(substring(m27/@u, 1, 10),';',m21/@u,';',m24/@u)" --nl INPUTFILE.fp3

JavaCard

Photomatix: Ubuntu 24.04 Container

buildah from --name ubuntu-photomatix ubuntu:24.04
wget 'https://www.hdrsoft.com/download/linux/ubuntu/PhotomatixLinux2.0.1_Ubuntu23_24.deb'
buildah add ubuntu-photomatix PhotomatixLinux2.0.1_Ubuntu23_24.deb

buildah run ubuntu-photomatix /bin/bash
apt update
apt install sudo libglib2.0-bin libcurl4t64 libgomp1 dbus-x11 dconf-cli strace
apt install /PhotomatixLinux2.0.1_Ubuntu23_24.deb 
dbus-run-session dconf write '/apps/photomatix/license-key' "'the-license-key-goes-here'"

buildah commit ubuntu-photomatix ubuntu-photomatix

podman run -v /tmp/.X11-unix:/tmp/.X11-unix -v /run/user/1000:/run/user/1000 -v $HOME/tmp:/media/tmp --security-opt=label=type:container_runtime_t -e DISPLAY -e XAUTHORITY -e WAYLAND_DISPLAY -e XDG_RUNTIME_DIR localhost/ubuntu-photomatix photomatix