Monday, November 30, 2009

Our New Anthem - Eish :-|

VPN Issues on Ubuntu

Well this one has been causing me to pull my hair out for a couple of weeks. I was using the Cisco VPN client for Linux put got really tried of having to recompile it every time I did a Kernel update. So I switched over to vpnc the VPN stuff which works under network manager in Ubuntu. At first it seemed to work nice, but I found the connection was 'freezing' after I sshed into a server over the VPN. An example of this would be ssh to server, then run ls which works fine, then run ls -l and the connection 'freezes'. If I open another terminal sesssion to the server it would open fine, but ls and then ls -l would 'freeze' the connection. So after some digging our found out it had have something to do with my MTU setting. I still have a Windows VM and tested out the VPN their and used putty to ssh to the server and had no issues. I tried setting the MTU on my eth0 or wlan0 but no joy. Finally I found I needed to set the MTU on the tun0 connection like this to get it to work:

sudo ifconfig tun0 mtu 576

This mtu is very small, but I think its a setting on their side that maybe someones forgot to update since the days of dail-up connections. I am also glad to report the VPN connection is now working 'sharp-sharp'. :-)

Thursday, November 26, 2009

How to rename file extentions in Linux

This is a nice command to basically rename all .csv files in a directory to .bak

for x in *.csv; do mv "$x" "${x%.dot}.bak"; done

Wednesday, November 11, 2009

Axis 2 get client's IP address

This seems to be the easiest way to do it:

MessageContext msgContext = MessageContext.getCurrentMessageContext();
String ip = (String) msgContext.getProperty(MessageContext.REMOTE_ADDR);


Also required:

import org.apache.axis2.context.MessageContext;

Eclispe Button Problem on Ubuntu 9.10

Had a problem with Eclipse where I could not click on the buttons after upgrading to 9.10

This fixed it:

#!/bin/bash
export GDK_NATIVE_WINDOWS=1
/opt/eclipse-3.5/eclipse



Source: http://www.norio.be/blog/2009/10/problems-eclipse-buttons-ubuntu-910

Thursday, August 13, 2009

Netgear Router DGN 2000 piece of CRAP

Just a word of warning don't touch this piece of hardware, all I can say is it is guaranteed to give you a head ache and it uses this crapy url to setup itself
www.routerlogin.com/start.htm

PS Good luck with all the DNS issues you'll have too, and no wait there's no firmware update to fix any of there issues, just work arounds :-o

Ubuntu Cisco VPN

It works nice:

Here's my post on the keyring issue "Invalid VPN Secrets "

http://ubuntuforums.org/showthread.php?t=1193786&page=2

New version of GFS on the way?

Nice:

http://queue.acm.org/detail.cfm?id=1594206

http://doc.cat-v.org/plan_9/4th_edition/papers/venti/

Saturday, August 8, 2009

Disable PC Speaker on Ubuntu

The pc speaker can be a pain, here's what to do to disable it:

sudo modprobe -r pcspkr

sudo vi /etc/modprobe.d/blacklist

and at the line:

blacklist pcspkr

Wednesday, August 5, 2009

Eclipse and Axis 2

This sorted my problem:


http://osdir.com/ml/axis-dev-ws.apache.org/2009-06/msg00169.html


in fact i saw after than in web.xml that the class AxisAdminServlet class has
change of package



org.apache.axis2.webapp.AxisAdminServlet

but after I've got a new error :

Thursday, July 30, 2009

VMware Server 1.0.x on SLES 11

vmware config does not run
you need to do get patch from here ->
wget -c http://www.insecure.ws/warehouse/vmware-update-2.6.27-5.5.7-2.tar.gz
install the rpm
and then run runme.pl from the downloaded file

also make sure you have
gcc
gcc c++
and kernerl-source installed

still having major issues with VMware Server 2 aaarrrgg

Sunday, June 28, 2009

Convert FLV 2 DVD

Some really cool software, to convert FLV to DVD -> DeVeDe

http://www.rastersoft.com/programas/devede.html

Thursday, June 25, 2009

Some Cool XPATH Examples

I will add as I find more, but this is a start:

http://wiki.novell.com/index.php/XPATH_Examples

Followers