Sunday, December 22, 2013

k9copy on Ubuntu 13.10


k9copy is no longer available after Ubuntu 12.10, simply because the author does not believe in Linux anymore due to the war between different desktop & distro :-(
http://k9copy.sourceforge.net/web/index.php/en/nouveautes/12-theend
Thank you Jean-Michel for this wonderful program!

If you want to use k9copy, you can use the deb from 12.10:
64-bit:
sudo wget http://launchpadlibrarian.net/103736674/k9copy_2.3.8-3_amd64.deb

32-bit:
sudo wget http://launchpadlibrarian.net/103714201/k9copy_2.3.8-3_i386.deb

sudo apt-get -f install

Enjoy!

Friday, December 20, 2013

Picasa for Linux

Picasa for Linux was no longer supported by Google since years ago, I'm sure there are still a few people on Linux using it but they don't even provide the download files for the older version anymore. 

You can find them here:
http://packages.linuxmint.com/pool/import/p/picasa/

If the above link is no longer available, try google for the following files:
picasa_3.0.5724-01_amd64.deb2008-Oct-27 12:21:3929.7Mapplication/x-debian-package
picasa_3.0.5724-01_i386.deb2008-Oct-27 12:20:1229.8Mapplication/x-debian-package
picasa_3.0.5744-02_amd64.deb2011-Jan-24 08:59:3330.3Mapplication/x-debian-package
picasa_3.0.5744-02_i386.deb2011-Jan-24 09:00:1630.3Mapplication/x-debian-package

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