Current OS = Mandriva 2009.1

INTRO

The aim of this blog. You know how something challenges you and you google away, find a fix with some 'trial and error' and then in the future someone asks about how you did it, or you need to alter/re-do it at a later date but you have forgotten what little trick you did to accomplish it ? Well my aim is to keep a track of what I am working on and methods I have used here. And now, I can access it easily, it can be google indexed for others and I will have a URL to send others for problems I cant recall off hand how I fixed them. I hope you find this site useful.

06-01-2010 13:27

LDIF -> vCard

http://www.iac.ethz.ch/staff/maeder/mailtool.php
I wish I could have found an offline script to do this rather then uploading all of my contacts to some place I do not know.

Posted by DaveQB | Permanent Link | Categories: IT

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.

http://www.openplug.org/plugwiki/index.php/Serial_terminal_program#Linux

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

28-09-2009 11:38

Rsync exclude

/dir/ means exclude the root folder /dir
/dir/* means get the root folder /dir but not the contents
dir/ means exclude any folder anywhere where the name contains dir/
Examples excluded: /dir/, /usr/share/mydir/, /var/spool/dir/
/dir means exclude any folder anywhere where the name contains /dir
Examples excluded: /dir/, /usr/share/directory/, /var/spool/dir/
/var/spool/lpd//cf means skip files that start with cf within any folder
within /var/spool/lpd


Posted by DaveQB | Permanent Link | Categories: IT

03-09-2009 10:35

Rid that man-in-middle warning

I have looked for a solution for years, but nothing could do it totally. Well here it is:

http://linuxcommando.blogspot.com/2008/10/how-to-disable-ssh-host-key-checking.html

So basicly, the options you need are:

 
	NoHostAuthenticationForLocalhost yes
        StrictHostKeyChecking no


Posted by DaveQB | Permanent Link | Categories: IT

25-08-2009 09:07

Top 5 Video Editors on Linux. [link]

Nice summary for video editing apps on Linux. I use Cinelerra and Avidemux myself. Great pair.

http://www.cyberciti.biz/faq/top5-linux-video-editing-system-software/


Posted by DaveQB | Permanent Link | Categories: IT

12-08-2009 12:13

Tabs in VIM

Yes I am trying to make better use of my screen and also needed to edit two files concurrently.

http://linux.com/archive/feature/59533


Posted by DaveQB | Permanent Link | Categories: IT

12-08-2009 11:19

Splitting Screen and VIM

http://daveg.outer-rim.org/entries/2006/01/11/split-vim-gnu-screen-sessions/
"To split a screen in screen, its ctrl+a S, then ctrl+a tab to jump between the screens. In vim, its ctrl+w s to split the screen horizontally, ctrl+w v to split the screen vertically and then ctrl+w w to jump between the screens in vim."

Also, to resize the tab, you hit C-a and then type :resize n (n is the number of lines, also +n and -n to add or remove lines).


Posted by DaveQB | Permanent Link | Categories: IT

19-06-2009 15:18

Internode for urpmi

http://forums.whirlpool.net.au/forum-replies-archive.cfm/749341.html

Posted by DaveQB | Permanent Link | Categories: IT

27-05-2009 11:27

Dell into Linux

Well I didn't know Dell was that keen.... http://linux.dell.com/projects.shtml


Posted by DaveQB | Permanent Link | Categories: IT
HERE!