Ubuntu Surfstation

For a public surfstation available for free we needed to have a system, that just simply always works. No user should be able to reset any configuration-settins, change the wallpaper, modify favorites or anything like that. The decision of the operating system was easy: Linux! The needed tasks to install this system are the following: [...]

VMWare: Debian NICs don’t come up after removing and adding virtual network card

A long time has passed after the last post to this blog. But I’m still alive and today there will be another. Yesterday I stumbled upon some problems in our virtual infrastructure regarding the Debian Linux Servers. For several reasons (most important is a dedicated network for NFS) i needed to add another virtual network [...]

Posted in: Uncategorized by Thorsten No Comments , ,

Connecting to MSSQL databases with PHP from Linux

I needed to get some data from existing MSSQL databases with PHP. Connecting to such servers is a bit more tricky than mysql, because the mssql extension from php needs also a correctly configured TDS installation. But we’re lucky, there is an opensource implementation of the tds protocoll called FreeTDS. If you don’t want to [...]

Posted in: Uncategorized by Thorsten 1 Comment , , ,

Tunneling Rsync through SSH for ABS updates

As I told on my previous post I’m currently using Archlinux here at work. Archlinux has beside it’s ‘normal’ package management system pacman (similar to apt-get) a ports-like application-repository called the ‘Arch Build System’ (ABS). In order to use the ABS software repository and to be able to install software from it, you need to [...]

Posted in: Uncategorized by Thorsten 1 Comment , , , ,

Speeding up Arch Linux

Currently I’m using Arch Linux on my desktop-machine at work. As I’m still at the evaluation phase i read trough some forums, wikis and blogs about Arch Linux. One very interesting article I found was this one: http://www.cywhale.de/arch-linux-optimieren-booten-in-16-sekunden/ It describes how the booting time can be speeded up with some nice tricks. I did not [...]

Posted in: Uncategorized by Thorsten 4 Comments , ,

200 days Uptime!

Today I received an email from the uptime daemon on my machine:

Uptimed noticed an uptime event!

The uptime of www.schmalenegger.com has reached a milestone:	200 days, 00:00:00 (two hundred days)

Congratulations!

Wow! 200 days on a vserver is really quite okay. Thanks to my server - keep on rocking :-) 
Posted in: Uncategorized by Thorsten 3 Comments , ,

Monitoring of max open files in a vserver

Running services on a virtual server sometimes causes problems. I often faced such porblems by reaching the maximum amount of open files. In that case applications like Apache or Postfix fill up their logs with lines like this:

"Too many open files in system"

I wanted to be able to monitor the amount of open files on my server (OpenVZ/ Virtuozzo) to easily see when there were and also when there might be problems. I decided to give Munin a try. Installation and basic Configuration was really simple and what I like very much is that custom plugins can be written very quickly with basic knowlegde of bash or perl.

Attached is my munin plugin. Just copy it to /etc/munin/plugins (in the default installation of munin) and rename it to vserver_open_files. Also add following lines to the file /etc/munin/plugin-conf.d/munin-node, because this plugin needs to run with root privileges.

http://www.schmalenegger.com/files/vserver_open_files.sh

 


GeSHi Error: GeSHi could not find the language quotbashquot (using path /wwwdata/schmalenegger.com/wp-content/plugins/codecolorer/lib/geshi/) (code 2)

 
 
[img_assist|nid=79|title=vserver open files|desc=|link=none|align=center|width=496|height=276] 

 

Posted in: Uncategorized by Thorsten 6 Comments , , ,

using msmtp with mutt

Since a few days ago i only used mutt directly on my server where the fully-loaded and configured postfix was running. The setup always worked and still works fine, but i wanted to use mutt also on a different machine and still be able to send mail via smtp through my postfix on the server.

As I don’t want to use postfix for this simple “mail-forwarding” job, i googled a bit through the interface and found msmtp.

Posted in: Uncategorized by Thorsten No Comments , , ,

monkey HTTP Server debianized

The “”famous” monkey http server has made it to the Debian Sid repository.
You can find it’s website here: http://packages.debian.org/sid/monkey

Thanks to Romain Beauxis from rastageeks.org and of course Eduardo Silva – the upstream developer.

 

Posted in: Uncategorized by Thorsten No Comments , ,

vimdiff essentials

Change window: Twice Ctrl+W
Scale both windows to the same size: Ctrl+W,=
Put “Diff” to the other window (“diff put”): dp
Get “Diff” from other window (“diff obtain”): do

Posted in: Uncategorized by Thorsten No Comments , ,