nginx Password-Authentification without apache2-tools

If you have already installed nginx and are thinking about adding a password-protection (like the apache .htaccess).
If you google, you will find a lot of answers using apache2-tools.
I don’t want to install anything more than already is installed, so I found a solution with openssl:

okay, so first create a new filder:

mkdir -p /etc/nginx/passwd/

Then let’s add a username.
I assume we call the user “username”.
We will write this into the file for_webpage in the newly created folder.

You need to be root to do this.

sh -c "echo -n 'username:' >> /etc/nginx/passwd/for_webpage"
sh -c "openssl passwd -apr1 >> /etc/nginx/passwd/for_webpage"

in the second line it will ask you for your password. Just type it in.

if you look into the file it should now look like this:


Now just add it into your webpage-settings from nginx.
find the location / and add it below the try-files like this:

    location / {
        try_files $uri $uri/ =404;
        auth_basic "Restricted Content";
        auth_basic_user_file /etc/nginx/passwd/for_webpage;

reload nginx and open your site.
you will now see the site requestion your credentials.

pecl shtool does not exist

Just got another problem with my debian server:
I can’t install anything with pecl, it always says

shtool at '/tmp/pear/xxxx/build/shtool' does not exist or is not executable. 
Make sure that the file exists and is executable and then rerun this script. 

On debian it’s an executable-issue within the tmp-folder.

so all that is to do is remount the /tmp/ like this:

mount -o remount,exec /tmp/

After you have installes, what you need, disable the executinon -flags again. (it’s a security feature – so it’s advised to do this)

mount -o remount,noexec /tmp/

XenCenter for Mac

So, now what do we have.
A Mac and some Citrix XenServer. If we want to manage it, we normally need to use XenCenter – which is a windows-only software.

This is somewhat inconvenient.
Luckily after a few minutes of googeling, I found OpenXenManager, which should work on OS-X.
Here you can download the latest Version:

Strange Numpad behaviour on VNC

Yet another problem.

i watend to access my debian system via VNC –  so far so good.
The only Problem war: Why the f*** does the numpad not work as intended.

If i press 4 it deletes the first char and then writes a 4
if i press 7 it deletes the whole line and writes 7

so after googeling, it seems like, this is a known bug
(sorry i’m unable to find the reference here)

After some more googeling i found a nice solution: Using xmodmap

The Program should already be present on your system, if you have installed a default X11 environment.