FUN WITH LINUX

Suricata Ruby-Gem

11 October 2016

I wrote a Ruby-Gem for suricata. It offers classes to parse suricata-logs and ships with a nagios-plugin

Read more..
Creating screenshots using imagemagick

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.

Read more..
LXC: Problems with the ubuntu-template in Debian Jessie

29 September 2016

I tried to create an Ubuntu-container on my Debian Jessie Server and I got the following error-message:

Read more..
Crashing systemd

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…

Read more..
How to access a Virtualbox VDI-Disk

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

Read more..
HackADay: Controlling computers and stuff with the mind

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.

Read more..
Vim 8 released

16 September 2016

Best Editor Of The World

Bram Moolenaar announced the new vim 8 release.

Among the new features are:

Read more..
GNU parallel

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.

Read more..
Build errors for NVIDIAs 367.35 driver on Linux 4.7-rc7

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.

Read more..
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution 3.0 Unported License.

Copyright 2015-present Hoti