Category: linux
Recompile and Test
When writing scripts or playing with new C++ language features I find it helpful if the code gets recompiled and executed as soon as I change a file in the source directory. I wrote a simple bash function that produces the desired effect and can be used independent of a […]
Resize QEMU-Image
5GB are not enough for the root partition you have allocated for a VM? No problem! Lets fix it. You need to run all commands with root permissions and you need to change vm_image.qcow2 and /dev/vda to values that match your system. # all command need to be run as […]
Starting gparted on Debian
It seems that there has been some change in the X11 permission. This change prevents starting gparted when sued to root. As debian and ubuntu have remove gksu people need to handle the permissions themselves. The following command sequence will allow you to run `gparted`.
Show ISO Time-Stamps in Thunderbird
In order to fix the recent brokenness of Thunderbird’s displayed time you need to run as root the following commands: optionally (once Thunderbird is fixed the setting shown below should suffice): Go to Thunderbird’s advanced options Edit -> Preferences -> Advanced -> Config Editor and add a new key intl.locale.requested […]
How to Install SSL Certificates
In Debian the standard SSL cert directory is /etc/ssl/certs. Certs whose hash is symlinked here (format: XXXXXXXX.n | X in hex, n in N) will be found system-wide. When a look-up for a domain is done, then this domain is hashed in the same way to determine the file the […]
install kubernetes on debian sid
install distribution provided run-time-dependencies used by minikube: apt-get install qemu-kvm libvirt-daemon-system virtualbox virtualbox-dkms install minikube and dependencies: curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.25.0/minikube-linux-amd64 chmod +x minikube mv minikube /usr/local/bin/ latest=”$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)” curl -LO “https://storage.googleapis.com/kubernetes-release/release/${latest}/bin/darwin/amd64/kubectl” chmod +x kubectl mv kubectl /usr/local/bin/ # kvm only curl -LO https://storage.googleapis.com/minikube/releases/latest/docker-machine-driver-kvm2 chmod +x docker-machine-driver-kvm2 mv docker-machine-driver-kvm2 […]
Allow NAT to localhost
In order to allow routing of a local port to an external interface you need to enable route_localnet for the interface: echo 1 > /proc/sys/net/ipv4/conf/<iface>/route_localnet
FIX: QEMU – console not visible
When the curses console of QEMU does not become visible, then you can try the following settings in the virtual machine: /etc/default/grub should contain GRUB_CMDLINE_LINUX=”console=tty0 console=ttyS0″ /etc/modprobe.d/bochs_drm.conf should contain install bochs_drm /bin/true
perf – linux performance
Recently I came along Brendan D. Gregg’s Homepage who is doing really awesome stuff to find performance bottlenecks. As it does not make sense to repeat everything here from perf_events, probes to flamegraphs. I really recommend to take a look at his work. Some Notes to myself: For stack traces […]