Mozekoze

Mozekoze

Wow, a blog..How original

Mozekoze RSS Feed
 
 
 
 

hpasmxld: Invalid Device: /dev/ipmi1

I had trouble restarting HP-Health on a server that had recently been upgraded to Centos 5.3, resulting in this error in /var/log/messages:
hpasmxld: Invalid Device: /dev/ipmi1

On this server only /dev/ipmi0 existed, even though a server with the same hardware running Centos 5.2 had both..All suggested solutions implied that this error was a result of having VMWare installed – which wasn’t correct in my case. I was able to start HP-Health successfully by editing /etc/init.d/HP-Health.
Search for “supports_quiesce_intfs” and change the succeeding line (in my case this was line number 250) so the if-clause looks like this:
if supports_quiesce_intfs; then
echo “/dev/ipmi0″
return
fi

Script to auto-ghost & identify at irc.freenode.net with Konversation

If you use Konversation as your IRC-client on the Freenode-network you’ll probably want to identify your username/nick as some channels require this. If you have to reconnect for some reason your old nick will still exist for a while making it impossible to both use the nick and identify.. For this you need the ghost-command, but you would also have to change your nick back to the one you want after doing so.

I just found a neat script that does just this, check it out:
http://konversation.kde.org/wiki/Ghosttrick

Now you will kick out your old nick, change your nick to the one you want and identify automatically when reconnecting. Cool.

Shared Exchange-mailboxes

Setting up shared mailboxes in Exchange can be handy, here are two links that could be useful:

http://knicksmith.blogspot.com/2007/03/exchange-2007-and-shared-mailboxes.html

http://support.microsoft.com/?kbid=972148

The first link show you how to create a shared mailbox (you have to use the Exchange Shell), while the other tries to address the “Sent”-folder problem,

which is that sent emails are stored in the Sent-folder of a user’s main account, not the shared account which the email was sent from. It worked for

me on a machine running Windows 7 but not so much on a Vista machine, if anyone knows of another solution I’d love to hear about it.

Delete old spam from spam-folder in virtual mailbox (Dovecot)

Here’s a little script I wrote to delete old emails in your spam-folder. It assumes that files are located in subfolders of /var/vmail/ called Maildir/.Spam/new and Maildir/.Spam/cur

#!/bin/bash

find /var/vmail -type d | sed ’s/ /\\ /g’ | grep “Maildir/.Spam/” |
while read line
do
find ${line}new/ -mtime +365 2>/dev/null -exec rm {} \;
find ${line}cur/ -mtime +365 2>/dev/null -exec rm {} \;

done

Make sure you understand what it does before you use it. Please notify me if you have improvements or corrections.

Send a fake spam-email to test Spamassassin

I just found this handy little thing called GTUBE – a string you put in an email to make it marked as spam, to test spamassassin (possibly other spam-solutions as well). Here are the details:

http://spamassassin.apache.org/gtube/

Using wine to install .msi files under Linux

Trying “wine filename.msi” won’t work. Instead you need to write

wine msiexec /i xyz.msi

Also, check http://wiki.jswindle.com/index.php/Wine_MSI for various info about .msi files and wine.

Entourage trouble with Postfix using Dovecot-authentication

For some reason Entourage requires the LOGIN-method of authentication, so if you try to telnet to your postfix-server on port 25 (or whatever port you use for SMTP) and see this after you EHLO:

250-AUTH PLAIN

250-AUTH=PLAIN

That probably means that Thunderbird, Outlook and everything else in the world except for Entourage will work with authentication. The fix is to alter the line containing “mechanisms =” in dovecot.conf to include login also. This is how mine looks right now:

mechanisms = plain login

ASCII-codes for arrow-keys

I needed to know which ASCII-codes represent the different arrow-keys, I found a listing here:

http://www.jguru.com/faq/view.jsp?EID=475275

They are:

  • 37(left arrow)
  • 38(up arrow)
  • 39(right arrow)
  • 40(down arrow)

Changing Docroot for Suexec

Standard docroot for Suexec on Centos 5 is /var/www/html which might not be appropriate for most setups. The solution? Compile Apache from SRPM, and change the parameter for suexec. How?

http://forums.fedoraforum.org/archive/index.php/t-2014.html

or

http://at-byte.com/technology/recompile-apache-srcrpm-change-suexec-docroot-home

Change domain on Windows Server 2003

Want to change which domain your W2K3-server is setup as? Try this neat little command:

%windir%\system32\rendom.exe

Here’s a more detailed explanation:

http://technet.microsoft.com/en-us/library/cc738208.aspx