Tuesday, April 26, 2011

Thursday, April 21, 2011

Daily Linux Commands

find . -type d -exec chmod 755 {} \;

find . -type f -exec chmod 644 {} \;

mysqldump nuke | gzip > nuke.gz

gunzip -c survey.gz | mysql survey

#echo "1" > /sys/class/scsi_device/<device>/device/rescan

find -type d -maxdepth 1 -mindepth 1 -exec du -sh {} \;

grep "No such user (in reply to RCPT TO command);" /var/log/maillog | awk -F"[<>]" '/from/ || /to/ {print $4 "," $6 "\r\n"}' | awk '!($0 in a) {a[$0];print}'


Fix Lotus Notes 8.5.2, FP1, FP2 in Ubuntu 11.04

Download 2 files of Ubuntu 10.10
http://packages.ubuntu.com/maverick/i386/libgdk-pixbuf2.0-0/download
libgdk-pixbuf2.0-0_2.22.0-0ubuntu1_i386.deb
http://packages.ubuntu.com/maverick/i386/libgtk2.0-0/download
libgtk2.0-0_2.22.0-0ubuntu1_i386.deb

Extract the following files and save into /opt/ibm/lotus/notes

/opt/ibm/lotus/notes/libgdk_pixbuf-2.0.so.0
/opt/ibm/lotus/notes/libgdk_pixbuf-2.0.so.0.2200.0
/opt/ibm/lotus/notes/libgdk_pixbuf_xlib-2.0.so.0
/opt/ibm/lotus/notes/libgdk_pixbuf_xlib-2.0.so.0.2200.0
/opt/ibm/lotus/notes/libgdk-x11-2.0.so.0
/opt/ibm/lotus/notes/libgdk-x11-2.0.so.0.2200.0
/opt/ibm/lotus/notes/libgtk-x11-2.0.so.0
/opt/ibm/lotus/notes/libgtk-x11-2.0.so.0.2200.0

Wednesday, April 20, 2011

Enable tray icon and get back menu in App in Ubuntu 11.04

Run the following in Command:
gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"

Append the following before the command in the launcher:
env UBUNTU_MENUPROXY=

E.g. env UBUNTU_MENUPROXY= /opt/ibm/lotus/notes/framework/../notes %F