Category Archives: Linux & BSD

Building OpenGL SDK: compile error “X11/extensions/XInput.h”

If you get this error: src/freeglut_internal.h:111:39: fatal error: X11/extensions/XInput.h: No such file or directory This might save you some time searching for the correct dev packages to install. The package it is in in the Debian repositories is called x11proto-input-dev, but it contains the file XI.h which contains the correct headers freeglut is including. Symlink […]

Also posted in Development | Tagged , | 5 Responses

Flow charts in code: enter graphviz and the “dot” language

If you’re like me, you like gui’s as long as they don’t push you in a direction other than your train of thought. Whenever the tool tends to distract you from the task you are performing, you get annoyed. Stuff like “why am I searching for such an over-obvious functionality”, or “why didn’t they think […]

Also posted in Development | Tagged , , | 5 Responses

Using a .pfx to install an SSL certificate

Got a .pfx file and need to install an SSL certificate with this? Here’s how I did it. You’ll need to extract the signed public certificate (public key) and the private key without passphrase.

Posted in Linux & BSD | Tagged , , | 8 Responses

Failure in a bash script usually means failure of the script

So, when you write a bash script that does a certain amount of tasks for you, but you don’t want the script to keep running after some command inside the script failed, simply add a line to the script.

Posted in Linux & BSD | Tagged , | 1 Response

Apply low priority to low priority processes

My transmission client was hogging my machine. Then I realized I never really use process priorities for CPU and/or IO, which is actually a pretty bad thing, considering some processes just are there to get some job done, but don’t need priority at all. Then I realized I also never use it for backup and […]

Posted in Linux & BSD | Tagged , | Leave a comment

Automate sudo nano; something I should’ve done a loooong time ago

Remember those countless times you’ve edited a file with nano, didn’t notice that you weren’t root at the time, and carefully made your configuration changes and saved the file, only to find out that you weren’t root and you have no rights to modify the file?

Posted in Linux & BSD | Tagged , , | 5 Responses

Password-less authentication SSH

I use this a lot, and you should too. It saves lots of time, but you should also be aware that password-less authentication (and it’s ease) imposes a security risk on your behalf. You should be very cautious when you’re connecting to the remote machines (whether they are testing, staging or production environments, in ascending […]

Posted in Linux & BSD | Tagged , , | Leave a comment

Bash control structures have redirection too

I found out a useful thing today. You can redirect output of bash control structures as well. Typically useful for for loops, which would need a buffer of some kind otherwise to have it’s output sorted, for example.

Posted in Linux & BSD | Tagged , , | 1 Response

Binding keyboard volume buttons to mixer control

Here’s how to bind your specific buttons (such as + and – controls for volume and the mute button) to controlling your mixer in openbox. Open your ~/.config/openbox/rc.xml in your favorite editor. Also open a terminal window. In the terminal window start xev to find out what keys you are pressing:

Posted in Linux & BSD | Tagged , | Leave a comment

Raising windows in stead of opening new ones

This is a pretty useful utility script for EWMH-compliant window managers, such as openbox. Since I use my terminal a lot, I don’t want to get stuck with 500 terminal windows at the end of the day because of all the terminal shortcuts (W+T) I used. So, let’s add a modifier to the shortcut to […]

Posted in Linux & BSD | Tagged , | Leave a comment