Friday, February 3, 2012

IBM Installation Manager record & silent install


to record:
./IBMIM -record was8-install.xml

to install:
./IBMIM --launcher.ini silent-install.ini -input ./was8-install.xml -acceptLicense

Saturday, December 24, 2011

VNC on SuSE and openSuSE

wanted to have VNC server installed on SUSE10 and openSUSE12
but it looks like both vino and Xvnc doesn't support copy & paste between local and remote...
found x11vnc works out of the box with copy & paste, to have to up running by default after server boots up:

cat /etc/SuSE-release 
openSUSE 12.1 (x86_64)
VERSION = 12.1
CODENAME = Asparagus

- x11vnc is in the repo of openSUSE12
zypper install x11vnc
x11vnc -storepasswd /etc/x11vnc.passwd
- add the following line to rclocal:
/usr/bin/x11vnc -sleepin 30 -o /var/log/x11vnc.log -forever -noncache -noxfixes -noxdamage -rfbauth /etc/x11vnc.passwd -display :0 -auth `ps -eaf | grep Xorg | awk {'print $15'}` &


cat /etc/SuSE-release 
SUSE Linux Enterprise Server 10 (x86_64)
VERSION = 10

- find x11vnc-0.9.2-1.guru.suse101.x86_64.rpm and install it
- add the following line to rclocal:
/usr/bin/x11vnc -sleepin 30 -o /var/log/x11vnc.log -forever -noncache -noxfixes -noxdamage -rfbauth /etc/x11vnc.passwd -display :0 -auth /var/lib/gdm/:0.Xauth &

Tuesday, December 20, 2011

rc.local on SuSE and openSuSE



create a file under:
/etc/rc.d/rclocal



--- USE the following header in the file content ---
#! /bin/sh
# Copyright (c) 1995-2000 SuSE GmbH Nuernberg, Germany.
#
# Author: Felix Wu
#
# /etc/init.d/rclocal
#
### BEGIN INIT INFO
# Provides: rclocal
# Required-Start: $network $remote_fs
# Required-Stop: $network $remote_fs
# Default-Start: 5
# Default-Stop: 0 1 2 3 6
# Description: Felix's rclocal
### END INIT INFO
--- EOF ---

to make it effective:
chmod 755 rclocal
chkconfig rclocal on

Thursday, December 8, 2011

# of threads in a process under Linux

How to check number of threads in a process under Linux? top doesn't show it, but option "m" in ps will.
I put a space in front and after PID so it doesn't grep longer PID that contains the shorter PID in same sequence.

ps -elm | grep " $PID " | grep -v grep | wc -l
e.g.

ps -elm | grep " 9919 " | grep -v grep | wc -l

Wednesday, December 7, 2011

speed up Notes under Linux

This is only tested under an eclipse based Notes in Linux.

I changed the following, adjust the memory size to fit your system:
/opt/ibm/lotus/notes/framework/rcp/deploy/jvm.properties
vmarg.Xmx=-Xmx768m
vmarg.Xms=-Xms512m

I see the following files for sametime and Symphony, so probably the same jvm parameters for those but I have not tested them:
/opt/ibm/lotus/Sametime/rcp/deploy/jvm.properties
/opt/ibm/lotus/Symphony/framework/rcp/deploy/jvm.properties

Thursday, December 1, 2011

meego 1.2 syslinux hang after boot

installed meego-netbook-ia32-chrome-1.2.0 on my very first AspireOne A110L
it randomly hangs when boot up, quite annoying that I need to power on and off several times to get pass by this...
the screen would show a SYSLINUX message then everything just frozen!

looks like some boot loader timing issue to me, the following change seems to do the trick:
/boot/extlinux/extlinux.conf
prompt 1

timeout 10

Wednesday, November 30, 2011

unlock desktop under openSUSE12

Not sure if this is just an openSUSE default gnome setting or a new gnome setting, but after you installed openSUSE12 with gnome desktop, the desktop is locked! cannot right click, cannot see any files/directories under your desktop, it is just weird.  To unlock it, run gnome-tweak-tool from terminal:


gnome-tweak-tool
Desktop -> Have file manager handle the desktop

Back to normal again :-)