Linux

Attention: open in a new window. PDFPrint

vmware: No space left on device

Last Updated on Saturday, 23 January 2010 00:23 Friday, 22 January 2010 21:32

Uhh. Some days ago, I had some really nasty vmware server experience. I just updated to a new vmware-server 2 version. Just after the update I was not able to start my Windows XP guest system and it took me quite some time to figure out, why it stopped working.

After starting the virtual machine, I just got a very useless message on my web frontend saying just

"Power On Virtual Machine" failed to complete

If these problems persist, please contact your system administrator.
Details:

Could not open paging file for 768 MB:
"No space left on device".
Failed to allocate main memory.
Module MainMem power on failed. 

Checking my systems memory and disk space told me, that everything looks fine. After some research I found out what vmware was actually complaining about:

The virtual machine I tried to start seemes to have crashed the last time I used it before I updated vmware. So there were plenty of lockfiles (.lck) in the virtual machines directory. I remember that some older versions complained that the virtual machine is currently opened but vmware server 2 seems to complain about a lack of free memory. So calling

rm -Rf *.lck

within the virtual machines directory has done the job for me and I have been able to start the virtual machine without any further issues.

 
Attention: open in a new window. PDFPrint

How To: forwarding ports to an other server

Sunday, 10 January 2010 12:10

As I decided to move all my domains I am currently hosting, I was in the need to find a way, to keep the downtime of my mailserver as low as low as possible. This is not that hard to archieve if you are using POP3 accounts only:

Just run the mail server on both hosts, the old and the new one and read the mail input from both hosts. As publishing a new DNS entry may need some days to reach every DNS on the internet, just keep polling the mails from the old server for about five days and everything should work fine.

It gets more complicated if you are using IMAP accounts on your mailserver. As you most likely do not want to lose any mail you will need to keep both systems in sync using the trick above which is not that easy to archive. I also had the problem that not all domains could be transferred at the same time as my domains are hosted on different DNS servers. So I looked out for an other way to keep my maildirs in sync.

Read more: How To: forwarding ports to an other server

   
Attention: open in a new window. PDFPrint

How to rip CDs on your terminal including CDDB information

Wednesday, 30 December 2009 23:42

As I decided to rip all my CDs I own to MP3 files to be able to carry them along on my mobile (and may be to hear them) I used a way to rip them on my command line environment. I did not want to use any of thees graphical userinterfaces as I just wanted to convert a whole bunch of CDs. So I searched for I way I just have to put in a CD and wait until it is thrown out to put in the next one. So I started searching the web for a tool doing exactly this and I found out, that I could simply use cdda2wav to rip the CD into wave files and download the CDDB information at the same time without caring about theese fancy CD identification hashes on my own.

The command line arguments I used to read the CDDB information while ripping the CD to wave files is

 

Read more: How to rip CDs on your terminal including CDDB information

   
Attention: open in a new window. PDFPrint

Read It Linewise

Last Updated on Thursday, 31 December 2009 00:31 Thursday, 05 November 2009 13:29

Ever been in the need to read a text file linewise using a bash script?

I mostly perform line operations using awk or sed but from time to time there are some problems I have to solve that are to hard to solve using this tools. For this, there is a simple way to read a file linewise using a simple bash script:

# get one filename
FILENAME="Just A Filename"

# backup the old ifs and set it to newline
OIFS="$IFS"
IFS=$'\n'

for LINE in $(cat "$FILENAME"); do
# process your lines here
done

# reset the ifs variable
IFS="$OIFS"

The IFS-variable changes the behaviour of the for-loop an whitespaces. Normally the for loop would use any whitespace (tabulator, space, linebreak) as token delimiter. By setting the IFS to \n we only use the newline token as token delimiter and we can read our file linewise.

 

 

   
Attention: open in a new window. PDFPrint

My Pidgin Talkes To Me

Last Updated on Wednesday, 30 September 2009 13:19 Tuesday, 29 September 2009 09:59

I recently played aroud with the festival TTS (text-to-speech) plugin for pidgin. All in all, it is a nice idea but has a little problem:

It uses festival which currently only contains language support for english languages. As I am a german speaker, I tried to find a way to combine pidgin with a german TTS. After some minutes of googleing, I foudn a TTS system supporting several languages like german, french, english and many other languages. it is called eSpeak Text To Speech. The TTS engine is developed under GPL. As I was not able to find any existing for eSpeak integration in Pidgin out there, I decided to develop my own solution and created a small perl plugin. It is not some well planned solution but a little (hackish) perl script just calling the eSpeak executeable. As eSpeak itself is not able to play any sound on my system, I added support for pipeing the wave-output provided by eSpeak into aplay (of the alsa-utilities package).

 

Read more: My Pidgin Talkes To Me

   
Attention: open in a new window. PDFPrint

Yet another mail filtering article

Last Updated on Saturday, 23 January 2010 21:42 Thursday, 20 August 2009 10:48

Why such a tutorial again?

Well… I know that there are tons of tutorials out there, how you get mail filtering running on your mailserver using courier imap, maildrop, spamassassin and clamav. So this might look like an other: "Hey, look, I've got it running post...".

I do not want to reeplain, how to configure spamassassin or clamav or something like this. I just want to show you in a brief article, how you can call spamassassin and clamav directly from a maildrop script. My problem with most of the solutions out there has been, that I use a mysql database for account management and vmail on my server which allows transport daemon selection per domain or account. So it is no option for me to use spamassassin before maildrop in the mail handling queue. An other reason most descriptions did not fit is, that I did not want to change my mailservers configuration ("never touch a running system"). So just updating the filter script was the easiest option for me.

Read more: Yet another mail filtering article

   

Page 2 of 2