FUN WITH LINUX

Happy Sysadmin-Day

29 July 2016

Today is sysadmin-day: Special thanks to all system administrators: you do a great job!

Read more..
Using pushd/popd

23 July 2016

Most linux-users know $OLDPWD. It’s an environment variable to get the recently used directory. Sometimes it would be nice to remember more visited directories. In such cases pushd and popd would be a good choice..

Most common shells do have a directory stack. By looking in the man-page of bash I found the following description of the DIRSTACK:

Read more..
Linux: emergency reboot or shutdown with magic commands

8 July 2016

This article explains how to use sysrq for emergency reboots or shutdowns.

Read more..
Using ssh-keygen

8 July 2016

ssh-keygen is a very handy tool for managing ssh-keys. By far the most common use of ssh-keygen is for generating ssh-keys. But this tool can do a bit more..

Read more..
Fairphone2 has a problem with 2 sim cards

8 July 2016

Today I inserted another sim card in my fairphone 2. I want to use LTE with this card, but I wasn’t able to configure 4G/3G/2G. 2G was selected and the button was disabled. So I just had 2G. The other card worked as expected and I was able to choose 4G/3G/2G. This bothered me the whole day.

In the evening I figured out how to fix the problem:

Read more..
Installing cronjobs out of scripts

26 June 2016

Sometimes it’s necessary to install cronjobs out of scripts. It’s not a good idea to directly write to /var/spool/cron/crontabs. Various things might happen like permission problems or simply problems with the format. It’s better to make this in two steps.

Read more..
Weather in...

21 June 2016

http://wttr.inis a very nice Weather-Site. It’s possible do download the result via curl in a colorful format for the command-line:

curl -4 http://wttr.in/Wien

http://wttr.in/Wien

Or even the moonphase:

http://wttr.in/Moon

Read more..
Tiva cc3200: Get serial port working under Linux

18 June 2016

Tiva cc3200 is a small board with an integrated wifi-chip. The Linux-kernel needs a few configs to be able to talk to this board using a serial console( via usb):

Read more..
Recording terminal-sessions

13 June 2016

Recording any terminal session to a gif is easy. I use ttyrec to record a session and ttygif to convert it to GIF.

Read more..
Starting vim in english

13 June 2016

There are plenty of settings for the language in vim. Regarding to vim’s documentation there is a very simple way to set the language for a vim-session to english:

env LANG=en_US.UTF-8 vim
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