Tsumobi Mobile applications have so far been nightmares to implement. It's often hard to gain adoption due to complicated installs and near impossible to get users to upgrade their version once the product has shipped. Tsumobi hopes to solve this problem by creating their own language. The new language will sit on top of J2ME and process applications downloaded (via URL) for Tsumobi enabled sites. This means that developers will be able to change Tsumobi applications on the fly and have Tsumobi enabled phones automatically get the updates just by visiting a link.That sounds very familiar... Hecl, maybe? On one hand, I'm sort of jealous that someone is getting paid to do something I did for free (and hang out with Paul Graham, to boot). On the other, it certainly validates the idea doesn't it?
Yesterday I received a Fulong Miniature Computer from China. This device
is produced by Lemote and is based on the Loongson chip, a MIPS-like CPU
developed in China and previously known as the Godson. The Fulong mini-PC
has a Loongson 2E CPU running at 666 Mhz, 256 MB RAM and a 2.5" 40 GB hard
drive. There are the usual I/O ports, such as USB, PS/2, Ethernet, audio,
VGA and TV out. The Fulong mini-PC ships with a customized version of
Debian.
I'm really excited about the Loongson because it promises to make MIPS
available on the desktop. In fact, the folks at Lemote already have a
laptop based on the same motherboard used in the Fulong mini-PC. Lemote is
also trying to establish a community around the Loongson. They have given
400 devices to partners and 600 to Loongson fans and developers in China.
It seems that the community is quite active, but it's hard to tell because
I don't read Chinese. Fortunately, there is a blog where regular updates
about Loongson are posted.
For now, I have taken some
pictures of the Fulong, but in the coming months I look forward to
integrating Loongson support into Debian.


The lunar eclipse, as seen from the Catalan countryside. Pics by Jordi Jover.
Many were quite tired by 3 or so, so we started setting up tents and went
to sleep by 4. Sunday was a slow day, dedicated to cleaning up our stuff and
eating leftovers cooked on a new fire. We were back in Val ncia at 8PM or so
and even after showering and cleaning my hair with shampoo, my head still
smelled like smoke. Actually, I think it might still smell a tiny bit
today.
In short, a lovely weekend, which I hope to repeat next year. Too bad
the lunar eclipse bit will be missing for quite a few more years. :)


The lunar eclipse, as seen from the Catalan countryside. Pics by Jordi Jover.
Many were quite tired by 3 or so, so we started setting up tents and went
to sleep by 4. Sunday was a slow day, dedicated to cleaning up our stuff and
eating leftovers cooked on a new fire. We were back in Val ncia at 8PM or so
and even after showering and cleaning my hair with shampoo, my head still
smelled like smoke. Actually, I think it might still smell a tiny bit
today.
In short, a lovely weekend, which I hope to repeat next year. Too bad
the lunar eclipse bit will be missing for quite a few more years. :)
buffer_get_ret: trying to get more bytes 4 than in buffer 0 buffer_get_int: buffer errorstraight after what looked like a successful connection, and then the SSH connection got terminated. I did a pile of Google searching, and found people had to disable environment variable sending, and agent forwarding to get this to stop happening. Interestingly, I can't find a way to disable SendEnv on a per-host basis with OpenSSH, if it's been set in /etc/ssh/ssh_config, which is kind of annoying. So after solving the problem of gaining SSH access to the iLO, I then battled with the remote console. The host already had a throwaway Linux installation on it, but the remote console kept freaking out about the console being in graphics mode. I figured this was because it was using a frame-buffer. No problem, I just needed to boot with vga=normal. Problem was, GRUB was configured with hiddenmenu so I had 3 seconds to hit Escape before it charged off and booted up. Not that big a deal you'd think, except to get out of the remote console and back to the iLO prompt, you have to hit Escape (, so the iLO eats Escape keys for breakfast. After having a bit of debate with some mainly Red Hat-oriented sysadmins on #sage-au, it turned out that RHEL has a patch so that GRUB accepts any key, not just Escape to present the menu. That was no use to me, as the box wasn't running RHEL. And all I was asking for was if anyone had any iLO experience, no whether or not "any key" was the equivalent of Escape. Sheesh. It turned out that I needed to press Escape twice in that initial 3 seconds, with probably sufficient pause between the two presses for it to register properly, in order for an Escape character to be sent to GRUB. Fun.
ODBCRelnotesUS.htm that I
probably can't put online without their consent) say that they're implemented
since ages, but
SQLSetStmtAttr always
tells me that the driver does not support it. Maybe I have to enable it
somewhere? Maybe it's a bug?
I could have found out with one hour browsing this driver's source code, but
that wasn't available. Instead, I had to spend a whole day of trial and error,
google searching with all sort of keyword combinations, looking at strings
output on the .so libraries, and in the end I still don't
know.
That porting project is now stuck indefinitely, and my customers had to pay for
a full day of fruitless work.
So, here's the reminder: If you base on 3rd party proprietary software, you
can't provide a serious service.
sudo grml-crypt start /media/usb4/cryptoloop $MOUNTPOINTGotcha: don’t confuse sudo’s “password” prompt with grml-crypt’s “Enter LUKS passphrase” prompt, the cryptoloop password won’t bring you anywhere on the sudo prompt. Preparing the CA directory For the CA, create a dedicated directory in the mounted cryptoloop file system. You’re originally supposed to copy the entire EasyRSA directory tree in there, but I’d recommend to only link the files from your system’s EasyRSA directory to automatically take advantage of distribution updates. You’ll need at least these links:
lrwxrwxrwx 1 mh mh 56 Dec 25 23:23 openssl.cnf -> /usr/share/doc/openvpn/examples/easy-rsa/2.0/openssl.cnf lrwxrwxrwx 1 mh mh 52 Dec 25 23:22 pkitool -> /usr/share/doc/openvpn/examples/easy-rsa/2.0/pkitool lrwxrwxrwx 1 mh mh 60 Dec 25 23:23 whichopensslcnf -> /usr/share/doc/openvpn/examples/easy-rsa/2.0/whichopensslcnf
Configuring your CA The only thing you cannot link is the vars file which contains your CA’s local settings:ln -s /usr/share/doc/openvpn/examples/easy-rsa/2.0/openssl.cnf . ln -s /usr/share/doc/openvpn/examples/easy-rsa/2.0/pkitool . ln -s /usr/share/doc/openvpn/examples/easy-rsa/2.0/whichopensslcnf .
Comments have been removed from this file. Better copy the file from /usr/share/doc/openvpn/examples/easy-rsa/2.0/vars and edit it to your needs. I added the two PKCS11 variables since you won’t otherwise be able to issue certificate requests. Creating the CA Next, decide on a shell instance where you will do most operations, and source vars in there. Next, run /usr/share/doc/openvpn/examples/easy-rsa/2.0/clean-all. If you do this in a directory of an already-in-use EasyRSA CA, you’ll need to restore your backup. To actually initialize the CA, run pkitool --initca --pass. If you do not give the --pass parameter, you’ll create a CA that can issue certificates without asking for a passphrase, which might not be a brilliant idea. Choose a reasonably secure pass phrase. Creating Certificates - the simple and suboptimal way You can now simply proceed to create an arbitrary number of pairs of “private” keys and associated certificate by simply calling pkitool <clientname> and/or pkitool --server <servername>. Depending on your security policy, you can mandate the private keys to be protected by a passphrase (adding --pass to the command lines), but you’ll have the expense of being asked for the passphrase every time you start a new openvpn daemon. Creating Certificates the Right Way I have put the “private” in quotes since the keys created this way are not really private: The key was created on the box hosting the CA, was stored on the local (crypted) file system and needs to be moved to the target system via a secure channel. Doing so the right way is harder than expected, so it is usually the better way to keep the private key really private by creating it directly on the target system. On the target system, you need OpenVPN installed, and openssl. After the certificate was created, you can remove openssl again. Creating a private key is part of a key-pair generation process that also leaves a certificate request. The contents of the certificate request is public, and you can safely move it to the CA box and convert it to a certificate by signing the request. You only need to make sure that nobody exchanges your target system’s certificate request for her own before you sign it as you might end up certifying a wrong identity. For the rest of this document we’re going to assume that you have ssh access to the target system and have verified the ssh host key, so that you can be reasonably sure to be connected to the right system. To create a certificate request, you can use this script, which I have called create-easyrsa-cert-req:export EASY_RSA=“$(pwd)” export OPENSSL=“openssl” export PKCS11TOOL=“pkcs11-tool” export GREP=“grep” export KEY_CONFIG=$($EASY_RSA/whichopensslcnf $EASY_RSA) export KEY_DIR=“$EASY_RSA/keys” # Issue rm -rf warning echo NOTE: If you run ./clean-all, I will be doing a rm -rf on $KEY_DIR export KEY_SIZE=1024 export CA_EXPIRE=3650 export KEY_EXPIRE=3650 export KEY_COUNTRY=“DE” export KEY_PROVINCE=“” export KEY_CITY=“” export KEY_ORG=“Zugschlus.de” export KEY_EMAIL=“mh+easyrsa-mh-openvpn@zugschlus.de” export PKCS11_MODULE_PATH=“dummy” export PKCS11_PIN=“dummy”
When called without parameters, it creates a certificate request for an OpenVPN client certificate, and when you call it with “server” as parameter, it will create a server certificate request. In any case, it will leave two files in the current directory. They are named after the current host name, and have the extensions .csr and .key. The .key file is your private key. keep it private! The .csr file is the certificate request which you can now move to the keys subdirectory of your CA directory via scp or other means such as an USB stick. To do the actual signing, invoke pkitool --sign <hostname> and enter the CA passphrase. You can ignore the error message that there was no .key file to chmod. Gotcha, when signing a server certificate, use pkitool --server --sign <hostname>. Move Certificate to the target host You can now move the certificate to the target system. Since you’re probably going to need the root certificate and the certificate revocation list as well, you can move the .key file (if created on the CA system), the .crt file, and ca.crt to the target system. These files are public, so there is no need for a secure channel. Revoking Certificates Since an OpenVPN server’s only means of authentication is to check whether the certificate presented by a client is signed by the “right” CA, the only way to revoke VPN access is to revoke the certificate. This is also done on the CA system by calling /usr/share/doc/openvpn/examples/easy-rsa/2.0/revoke-full <client-name>. This creates a crl.pem file which contains a list of all revoked certificates. You need to have a mechanism to distribute that list to all systems that might need it, and it is recommended to have this automated. Remember, if you do not distribute the .crl file, the systems are not going to know about revoked certificates.#!/bin/bash set -u TMPDIR=“/tmp” export OPENSSL=“openssl” export PKCS11TOOL=“pkcs11-tool” export GREP=“grep” export KEY_CONFIG=“/usr/share/doc/openvpn/examples/easy-rsa/2.0/openssl.cnf” export KEY_DIR=“$TMPDIR/keys.$$” mkdir -p $KEY_DIR export KEY_SIZE=1024 export KEY_EXPIRE=3650 export KEY_COUNTRY=“DE” export KEY_PROVINCE=“” export KEY_CITY=“” export KEY_ORG=“Zugschlus” export KEY_OU=“$(hostname --fqdn)” export KEY_EMAIL=“mh+$(hostname)-ovpn-cert@zugschlus.de” export DEBUG=1 umask 077 if [ “$ 1:-foo ” != “server” ]; then /usr/share/doc/openvpn/examples/easy-rsa/2.0/pkitool --csr $(hostname) else /usr/share/doc/openvpn/examples/easy-rsa/2.0/pkitool --csr --server $(hostname) fi mv $TMPDIR/keys.$$/* . rm -rf $TMPDIR/keys.$$
Next.