Telnet SSL

If you want to test a SSL connexion (like “telnet <host> 80”), you can use this command :

openssl s_client -connect <host_ssl>:443

Thanx to skanx !

Posted in Dev

Install new kernel on Sheevaplug

Follow these steps to install new kernel to your sheevaplug :

sudo modprobe ftdi_sio vendor=0x9e88 product=0x9e8f

dmesg (to get wich ttyUSB)

kermit -l /dev/ttyUSB1 -b 115200

> connect

> root / nosoup4u

> reboot

> [during UBoot, cancel boot with a key]

> follow instruction of one new kernel

If you need to reset your uboot environnement : http://www.plugcomputer.org/plugwiki/index.php/Factory_Default_u-Boot_Environment

Kernel with dm_crypt support : http://photon123.dyndns.org/sheeva/README-2.6.31-06466-g4c203e00

courier-imap-ssl : malloc issue

If you get this issue :

Starting Courier IMAP-SSL server:/etc/init.d/courier-imap-ssl: xmalloc: ../bash/make_cmd.c:99: cannot allocate 555 bytes (0 bytes allocated)

Simply edit /etc/courier/imapd and change :

IMAP_ULIMITD=131072

Mysql Migration Toolkit : UTF8 conversion issue

Mysql Migration Toolkit has an issue with varchar different from varchar(255) : it considers that it is not useful to force utf8 for these fields !

Here is a solution, found here :

Dans la fenêtre “Source Database”, activer le bouton “Advanced” et compléter le champ “Connection string” avec :
jdbc:jtds:sqlserver://server:1433/database;user=user;password=password;useUnicode=true;domain=

Dans la fenêtre “Target Database”, activer le bouton “Advanced” et compléter le champ “Connection string” avec :
jdbc:mysql://server:3306/?user=user&password=password&useServerPrepStmts=false&useUnicode=true

,en remplaçant bien sur “server” et “database” par leurs valeurs respectives.

Ensuite, ne pas modifier les options qui permettent de changer l’encodage des caractères : les valeurs par défaut font l’affaire. Et voilà !

Posted in Dev