Tuesday, February 7, 2012

picasa on linux cannot gmail

first of all, I don't know why Google doesn't offer picasa linux version download anymore! it's really annoying.  Good that I kept a .deb file downloaded somewhere from the past.  With picasa installed on Ubuntu 11.10, I had problems sending out pictures through my gmail!

looking at the logs, it doesn't tell you much...
[173601742] id 1: Attempting connection type 0 (attempt 0)
[173601765] InternetQueryOption failed (87)
[173601775] Proxy information for connection: LAN Connection
Using direct connection
[173601777] InternetQueryOption failed (87)
[173601779] Proxy information for default connection:
Using direct connection
[173601786] id 1: Stream summary:
POST request: https://www.google.com/accounts/ClientAuth (0)
Modified request headers:
 Added header: Content-Type: application/x-www-form-urlencoded; charset=utf-8
Added header: Accept-Encoding: gzip

BindStatus messages received: 70,
Request made via proxy
Post data size: 112
[173601788] id 1: Error: HttpOpenRequest failed (12157)
[173601789] id 1: Failed to establish connection.  will retry if possible
[173601791] id 1: Attempting connection type 1 (attempt 1)
[173601796] id 1: Stream summary:
POST request: https://www.google.com/accounts/ClientAuth (0)

It turns out on my Ubuntu11 it's got libssl1.0.0 installed, but picasa is looking for
libssl0.9.8, so just install it picasa would work again through gmail!

apt-get install libssl0.9.8

UPDATE:
on 64-bit Ubuntu 13.10 , install the 32-bit
apt-get install libssl0.9.8:i386
also install:
apt-get install lib32nss-mdns

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