Author Archives: Thorsten

Disk check script

It has been a while since my last update to this site. Now the time has come for another post. :-)

A few days ago I visited UDS-r in Copenhagen Denmark. I met a lot of nice people and got the chance to hear about the plans for the next release of Ubuntu.

The trip to UDS was fantastic but on my way home i got mail from my server telling me that one disk had failed. Bummer! That ruined the day for me. Lost a few files because i had not taken a backup for a couple of weeks.

Continue reading

Time Machine for Linux – Bash and Rsync

Recently i made “the switch”! Not in the way you might imagine though. Ever since 2003 i have been a passionate mac user. I still use macs at home and work and am still passionate about them.

Before 2003 i was playing a lot of games. Linux was and is something that i have been working/playing around with since 1996. To make a long story short: I wanted to use Linux and also play games (read dual boot linux/windows). The price tags on new macs ware also something that got me thinking about building a new shiny i7 based PC.

I am now back on a PC with Ubuntu Linux 9.04 and Windows 7. So far so god. One thing that i enjoy with Linux is that i am able to customize it to my needs. With Linux now being my primary OS (by choice) i had to fix some kind of backup for photos and all that other stuff on my PC that i would not like to loose in case of an accident. The first thing that came to my mind was rsync.

I used rsync to mirror my files on to an usb-disk. But after a few days i started to miss Time Machine which i was using when i had a Mac as my primary computer at home. Just mirroring files was not enough to give me that warm and cozy feeling. I needed to go back in time!

Continue reading

Shell Script Examples: case, count, for, if, while and User input

If you, like so many other people these days, switch to Linux you will come in contact with something called unux scripts, shell scripts or bash scripts. These scripts are text-files that execute commands just like bat-files in Windows. I prefer shell-scripts because i think they are more powerful then bat-files but that is just my opinion.

Some things you should know:
#!/bin/bash usually is the first line in a bash script. It is called shebang (also called a hashbang, hashpling, or pound bang) and specifies in which shell to execute the code that follows below.

Everything after a # is a comment and does not get executed.

Below you will find examples of a few things that you can do with shell scripts on Linux and other Unixes. If you have questions: have a look at the man page of the command or post a comment and I will try to explain.

Continue reading

New theme and move to web hosting

Recently I discovered that the old theme of this blog was a bit to popular for my taste. So I switched. I hope you like the new look.

My thanks go out to mg12 who created the theme I am using now. I like it.

Since Isabella was borne I have had a lot of things to do. Therefore I felt that there was just not enough time to maintain my server at home. There was also the bandwidth issue. At the moment the fastest internet access I can get at home has only a 1 Mbit/s up-link. A bit to slow in my opinion. Therefore I started searching for a good web hosting company that could host

After a long period of reading and asking friends i found A small web-hosting company with good service and low prices. I spoke to their support staff a couple of times before i signed up with them. The support staff could answer all of my questions so I guess that they are quite competent :)

I have only been a customer of for a couple of days but so far everything is going according to my expectations (they ware quite high). has c-panel which lets you configure your mail server, spamassassin your web server and so on. It works well and is easy to learn.

If you are looking for a good and affordable web-hosting company I can recommend

Enjoy the bandwidth