November 2009 Archives

22-11-2009 19:41

Recover the SheevaPlug

So you have a nice new shiny Marvell Sheeva Plug computer and you do something [no I wouldn't do experiemental things with mine] that breaks it enough you can no longer gain access over the network. So remedy this, run this command

modprobe ftdi_sio vendor=0x9e88 product=0x9e8f
and plug in the Plug to you computer viz the supplied USB cable. That will create /dev/ttyUSB0 by default. No use a serial terminal smulator to gain access. Minicom is what Marvell suggests in the manual, but gtkterm seems to be better. The best though, I find is good old scree. Yep screen. Just run:
screen /dev/ttyUSB0 115200
and you're in! You may find your device is on /dev/ttyUSB1 or up, just trial and error to get that sorted.

Posted by DaveQB | Permanent Link | Categories: IT

02-11-2009 15:40

Roundcube and default identity

So when a user logs onto Roundcube for the first time, they are added to the roundcube database, with the default identity. This identity is <username>@localhost. They can, of course, change this and setup more identities in the Settings, but they shouldn't have to. So I found a patch online and modied it slightly to detect the domainname used to get to roundcube and use that as the default domain. Its simply this:

// replace $rcmail_config['mail_domain'] = '';   with:
$rcmail_config['mail_domain'] = preg_replace("/^[a-zA-Z]*\./i", "", $_SERVER['HTTP_HOST']);
Pretty neat huh?

Posted by DaveQB | Permanent Link | Categories: IT