Skip to main content

Posts

Showing posts from 2007

VPNC

On Ubuntu 7.10, install vpnc package. /etc/vpnc/netscreen.conf IPSec gateway xxx.xxx.xxx.xxx IPSec ID "XXXXXXXXXXXXX" IPSec secret xxxxxxxxxxxx Vendor netscreen Perfect Forward Secrecy dh2 Xauth username xxxxxxxx Xauth password xxxxxxxx #Debug 3 In /etc/vpnc/vpnc-script Put following before set -x INTERNAL_IP4_DNS= CISCO_SPLIT_INC=1 CISCO_SPLIT_INC_0_ADDR=xxx.xxx.xxx.0 CISCO_SPLIT_INC_0_MASK=255.255.252.0 CISCO_SPLIT_INC_0_MASKLEN=22 CISCO_SPLIT_INC_0_PROTOCOL=0 CISCO_SPLIT_INC_0_SPORT=0 CISCO_SPLIT_INC_0_DPORT=0 Create a version for /etc/resolv.conf.thuis, /etc/resolv.conf.sungard. Create aliases: alias sungard-vpn-down='sudo /usr/sbin/vpnc-disconnect; sudo cp /etc/resolv.conf.thuis /etc/resolv.conf' alias sungard-vpn-up='sudo /usr/sbin/vpnc /etc/vpnc/netscreen.conf; sudo cp /etc/resolv.conf.sungard /etc/resolv.conf'

jboss with embedded derby in network mode

Embedding derby into Jboss In this post I want to show how you can start jboss with an embedded derby network database. The aim is, that when jboss starts: it will start derby open port 1527 for derby to receive jdbc calls create a new database if there is none existing create a datasource inside jboss You can now use any derby jdbc client to communicate with the database, and use derby datasource inside jboss as well. I had to implement three components: an mbean to start the derby network server a datasource to connect to derby database with option create=true an mbean that will get an initial connection so that database gets created Jboss mbean In Jboss you can deploy mbeans, which automatically get started on deployment. The implementation of an Mbean is very simple: you must create an interface that ends with Mbean and has methods start() and stop(), and implement a class for this interface that shares the same name without the Mbean part. Then you create an xml with a reference t
Installing ubuntu 7.10 behind a proxy I installed my laptop Dell D830 behind a proxy with a password. After putting in the install CD, I get a tryout system that shows me how ubuntu will look like. In this system I already set the proxy, else I will get problems during installation that it cannot find the deb repositories. I made proxy settings under System - Preference - Network Proxy, and, under Synaptic - Preferences - Network. I think the latter is most important. This will make the installation work. After the installation I needed to set these proxy settings again.
Updated Blogger Finally got a bit further with blogger. It seems that usernames had to be updated, before blog clients would work. Now I am curious whether xmls will work. That was my problem last time I used it: I could not paste in build.xml files.