29 September 2016
Normally I don’t use the “print”-key on my keyboard. I woud like to use it to quickly create screenshots. So I’ll map the following command to my .fluxbox/keys-file:
sleep 5s && import /home/dr/Screenshots/`date +%F-%T`.jpg
After 5 seconds of idle-time this command will activate a screenshot. After the cursor changed I can select a window or a region on my screen. The screenshot will be saved with it’s date and time under /home/dr/Screenshots.
29 September 2016
I tried to create an Ubuntu-container on my Debian Jessie Server and I got the following error-message:
29 September 2016
I can really recommend to read this article about crashing systemd. I am still wondering why all the distris changed to systemd…
29 September 2016
Today I wanted to copy a disk-image to a Virtualbox-disk(VDI) using dd. In this article I am going to describe how I managed to access the disk from the Linux command-line, copied the image and mounted a VDI-disk-partition
16 September 2016
I am very slothful. I let computers do my work. That’s why I became a sysadmin. In this article I am going to describe how I lifted up my lazyness to the next level by triggering a command with my mind to install a new virtual machine with: MariaDB, Nginx and Wordpress.
20 August 2016
GNU parallel is an amazing command line tool for executing jobs in parallel using one or more machines. It has a lot of features and therefore a lot of options. Fortunately the manual page is full of examples.
Simulty revisited
Once I wrote an article about a very simple http-stress-tool simulty. It reads random urls from a file and executes multiple get-requests simultaneously to them. I wrote this script in ruby. Now I try to do the same with parallel:
while true; do awk "NR==$(($RANDOM % `wc -l urls.txt | cut -f 1 -d ' '` +1)){print}" urls.txt; done | parallel -j 100 curl -4
Just one line on the command-line.
6 August 2016
I tried to compile nvidia’s 367.35 driver on the newest Linux kernel 4.7-rc7 but I just got a bunch of compiler errors. It seems to be some kind of problem with the radix_tree-empty()-function. I found a patch for this problem here.
5 August 2016
apt-fast is a shellscript wrapper for apt-get and aptitude that can drastically improve apt download times by downloading packages in parallel, with multiple connections per package.