Archive for the ‘Uncategorized’ Category

ESXi and SSH authorized keys

Wednesday, April 20th, 2011

When using ESXi, after every reboot the authorized keys are lost.
(more…)

Make Thunderbird 3 look & act like Thunderbird 2

Thursday, May 27th, 2010

Backup for me from http://getsatisfaction.com/mozilla_messaging/topics/make_thunderbird_3_look_act_like_thunderbird_2:

Here are some tips for making TB3 look & act like TB2:

(1) Switch to "All Folders" view. Use the little left and right arrows in the header bar at the top of the folder tree pane. Or go to Help --> Migration Assistant and then select 'use "all folders" mode'.

(2) Switch to the old, familiar toolbar. Go to Help --> Migration Assistant and then select "use original toolbar".

(3) Turn off indexing. Go to Tools --> Options --> Advanced --> General (tab) and uncheck the "Enable Global Search and Indexer" box.

(4) Open messages in new window (not a tab). Go to Tools --> Options --> Advanced --> Reading & Display (tab). Change the "Open messages in:" selection to "A new message window".

(5) Hide tabs when there is only 1. Go to Tools --> Options --> Advanced --> General (tab) and click the "Config Editor..." button. If a cautionary dialog box pops up then click the "I'll be careful, I promise!" button. Start typing in the filter line of the small window that opens. Type "mail.tabs.autoHide". You will see a seeting with this preference name in the list below. Double click it to change it to "true".

Doing both (4) and (5) will (mostly) turn off tabs.

My Thunderbird Extensions

Monday, January 18th, 2010

Just a reminder for myself:

Enable debugging with last Skype4Py

Thursday, December 10th, 2009

With last Skype4Py Arek changed a bit the logging. To enable it now you need to put the following in your script:

import logging
logging.basicConfig(level=logging.DEBUG)

Linux Skype: Participate in Pulic Chats

Tuesday, August 25th, 2009

Today I got some hint how to implement joining public chats via API in linux Skype.
(more…)

Debian Lenny Xen StepByStep

Monday, August 24th, 2009

on a plain Lenny with Grub as Boot Manager (Lilo doesn’t work with xen :( ):

  • apt-get install xen-hypervisor-3 xenwatch xen-tools linux-image-2.6-xen-amd64
  • /etc/xen/xend-config.sxp: "(network-script network-bridge)"
  • Edit /etc/xen-tools/xen-tools.conf
  • time xen-create-image --hostname=test --ip=10.0.0.11 --arch=amd64 --role=udev

Getting Program Version within a script

Friday, September 5th, 2008

Today I had the problem of displaying the version of the interpreter in a perl and a python script.

(more…)

VMware ESX 3.5 and nVidia MCP55 SATA Controller (usbid: 10de:037f)

Tuesday, August 5th, 2008

After installation of VMware ESX 3.5 on a SunFire X2100 the machine always faulted with a root-fs error.

Looking at the VMware forums, I found a post by rpartmann who provides a script to solve this issue[1].

With the help of his script I found the relevant steps to fix this issue for me:

  • Boot into troubleshooting mode (there the SATA controller works).
  • go to /etc/vmware/pciid
  • edit sata_nv.xml
  • As last entry before </vendor> I added:
    <device id=”037f”>
    <vmware label=”scsi”>
    <driver>sata_nv</driver>
    </vmware>
    <name>MCP55 SATA Controller</name>
    </device>
  • then I had to rebuild the PCI-ID Table:
    esxcfg-pciid
  • regenerate the boot-filesystems:
    esxcfg-boot -r
  • reboot

Then I could start without problem on my nVidia SATA chipset.

You might need to do the same procedure after an update of VMware. Haven’t been there so far.

[1] http://communities.vmware.com/message/1011087#1011087

Debugging exim delivery

Thursday, February 21st, 2008

This helps a lot:

exim4 -d+route -bt [email-address]

MySQL: Converting from latin-1 to utf-8

Thursday, February 7th, 2008

This week I had to switch a MySQL DB from a latin-1 host to a UTF-8 host (Webserver with Forum/CMS). I have never managed to make this work with only setting the codepages right.

I have put together a perl script that takes the databases and their tables from the one host, encodes it to UTF-8 and inserts the data in the new host.

I hope someone finds this useful: sqlcopyconv.txt

PS: You need to have all the Tables in the new DB created already. But without data.