Skip to main content

Posts

Ubuntu: starting db2 at bootup

I installed db2 express 9.5 under ubuntu 8.04. After installation of several packages, it installed well. Only, after installation, it did not automatically start at boot. Setting db2set autostart=yes (by db2inst1 user) did not help. So in the end, I added a /etc/init.d/db2 script: http://www.tldp.org/HOWTO/DB2-HOWTO/ubuntu704.html#AEN794 #!/bin/sh # # Script to start DB2 instances on bootup. # set -e . /lib/lsb/init-functions case "$1" in start) /opt/ibm/db2exc/V9.1/instance/db2istrt ;; stop|restart|reload) ;; esac exit 0 Then I installed bum package, and ran System-Administration-Bootup Manager to activate the db2 script at startup.

Websphere 6.1 administrative security + self signed certificates

I installed websphere 6.1 and chose the default "enable administrative security". Once I finished my installation, I noticed I could not login under https://localhost:9043/admin/console. I got a message about a certificate not being trusted. First I discovered, that I had renamed my machine, but that /etc/hosts still had old entries for 127.0.0.1. Because of that, my node and cell names were still deduced from the old machine name. I fixed that and reinstalled. At login I got the failure: invalid security certificate. My browser did not trust the self signed certificate that the websphere server uses. I did following to fix that: In /bin, started keyman: sudo ./ikeyman.sh Opened jks file under profiles/AppSrv01/etc/DummyClientTrustFile.jks, password is WebAS. there I looked up the default_signer, and selected the extract option. I exported cert.arm as base64 ascii. under firefox, preferences, advanced, view certificates I imported the CA certificate I restarted firefox. The ...

Installing websphere 6.1 under hardy-heron

I had problems to get websphere installed on Ubuntu 8.04. The install did work, but the configuration of profiles failed. In the end it turned out, that /bin/sh points to /bin/dash instead of /bin/bash. I executed following commands: sudo unlink /bin/sh sudo ln -s /bin/bash /bin/sh During installation I set an admin console username/password. When I start the server, and go to the console page http://localhost:9060/ibm/console/ I get redirected to https://localhost:9043/ibm/console/ and get an error that my self signed certificate is not trusted.

Dual screen for Dell D830

My Dell D830 uses an Intel Graphic Card GM965. To use dualscreen, you must use the package xrandr. As a normal user you can see your current configuration with: xrandr -q When you connect a second monitor (docking station), then by default you will get both screens displaying the same. Example: jan@southfork:~$ xrandr -q Screen 0: minimum 320 x 200, current 3600 x 1200, maximum 3600 x 1200 VGA disconnected (normal left inverted right) LVDS connected 1920x1200+0+0 (normal left inverted right) 331mm x 207mm 1920x1200 60.0*+ 1280x800 60.0 1280x768 60.0 1024x768 60.0 800x600 60.3 640x480 59.9 TMDS-1 connected 1680x1050+0+0 (normal left inverted right) 434mm x 270mm 1680x1050 59.9*+ 1280x1024 75.0 59.9 1152x864 74.8 1024x768 75.1 60.0 800x600 75.0 60.3 640x480 75.0 60.0 720x400 70.1 TV disconnected (normal left inverted right) In my example above you will see that both screens start their output ...

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.

Deploying weblogic 9.2 with openldap

Install weblogic 9.2 Installed under /usr/local/bea Admin console: http://localhost:7001/console Start / stop By default weblogic comes with some preinstalled examples: /usr/local/bea/weblogic92/samples/domains/wl_server To start/stop a weblogic domain: bin/startWebLogic.sh bin/stopWebLogic.sh You can also stop weblogic by killing the pid. Also in the admin console, environment, servers. Quick start /usr/local/bea/weblogic92/common/bin/quickstart.sh Domains Create domain Create a new domain with the configuration wizard /usr/local/bea/weblogic92/common/bin/config.sh create a new domain generate automatically for weblogic server username/password weblogic/weblogic development mode, sun sdk 1.5 additional configuration: yes Adminserver defaults: 7001 Add managed server: name ms1, 7001 No clusters No specific machines domain name domain_oraxe, location /usr/local/bea/user_projects/domains Delete a domain Delete the directory /usr/local/bea/user_projects/domains/<do...

deployment of ejb under jboss

Jboss deployment of HelloWorld EJB example Deployment under jboss is relatively simple: pack classes and deployment descriptors in jar create ear copy ear into deploy directory of jboss Then to run the client: create client java file that calls util class of HelloWorld ejb example create client jar with proper jndi.properties call client To create the jar/ear we need to add the following to our build.xml file: <!-- =================================================================== --> <!-- Deployment --> <!-- =================================================================== --> <target name="jar" depends="compile">     <mkdir dir="${samples.jar.dir}" />     <jar jarfile="${samples.jar.dir}/ejb-hello.jar">     <fileset dir="${samples.classes.dir}" includes="**" excludes="**/client/*...