Belasting aangifte doen op een 64-bit Debian machine

Ik heb pasgeleden proberen aangifte inkomstenbelasting 2012 d.m.v. de 'gz download' te doen op mijn 64-bit Debian Wheezy machine, maar dat bleek niet te werken.
Maar ik heb ook de oplossing ervoor gevonden en die zal ik hieronder beschrijven.

Installing and configuring MySQL on Debian

A lot of (web-)applications store their data in a database and MySQL is quite often used for that. From a security perspective it is advisable to create a separate database and database-user per application. In this blog post I'll describe how to install and configure the MySQL server on a Debian system and then how to create a database and database-user for use by an application.

Reducing the size of your VirtualBox virtual disk file

When you've used a virtual machine for a while, adding/removing packages/files/etc your virtual disk may occupy a lot more space then is needed to hold the current contents. In order to reclaim that wasted space, you can shrink/compact your virtual disk so that it takes (a lot) less space on your host. The VirtualBox CLI interface has a command for that:

vboxmanage modifyhd <yourvirtualdiskfile>.vdi --compact

But in order to get some real results you need to prepare your guest first and in this blog I'll show you how.

Creating a VirtualBox image with a Debian guest

Whenever I want to experiment with Debian, I like to make a virtual machine (VM) with VirtualBox to do so. It's not hard to do so by using it's GUI. But I configure the hardware usually in the same way, so that's a candidate for automation. Fortunately VirtualBox supports that through the vboxmanage command. In this blog, I'll show you how to do that with a bash script.

Update an iso with jigdo

From time to time Debian has a new point release, which is an update to their stable version.
The current stable release is 5.0 with codename Lenny and recently Debian was updated from 5.0.4 to 5.0.5.
I have both the i386 as the amd64 image of DVD 1 of that release, so now I want to update both iso images from version 5.0.4 to 5.0.5. I could download both iso image via the website, but that would make me download 2 x 4.4 GB. While not a problem, there is an other way to get those image to version 5.0.5 and it uses jigdo.

Enable secure email communication in Tomcat

When you want to use secure email communication in Nexus, you need to tell Java where to find the appropriate key.
In my case, I was using a non-official certificate to my mail host (I use dreamhost).
So what needed to be done is obtain and 'trust' the server's public key.

In order to get the public key, you need to make a connection to it from a terminal:
$ openssl s_client -connect mail.example.org:imaps

Package management

In order to install or remove software from Debian, you'd use a package manager. Central in Debian's package management is the Advanced Package Tool, better known as apt. Apt is not a single program but a collection of various tools that together provide the package manager functionality. A diagram of the apt system can be found here: http://algebraicthunk.net/~dburrows/blog/entry/apt-system-diagram/

Debian

In this section of my site, I'll write about Debian, my favorite GNU/Linux distribution.

Searching with aptitude

The default way to search with aptitude would be
aptitude search <keyword>
But lets say you want to search for packages that start with alsa. The previous syntax would find all packages which contain the word alsa.
But if we change that to
aptitude search ^alsa
That would find only packages starting with alsa. You can also specify to search for the name of the package (the default), by changing that line to
aptitude search ~n^alsa

Syndicate content