damien.h

如何从Ubuntu Gutsy顺利升级到Hardy

前两天终于决定把机器上的Gutsy升级到Hardy了。没有第一时间升级就是因为从Gutsy发布开始已经把全部工作环境搬到了Gutsy上,用了半年的环境要折腾一下是需要一定决心的。况且,从Dapper开始,每次升级都没有成功过,只是因为Ubuntu下没什么重要数据,后来都是重新安装的。好在之前咨询的一些尝鲜的朋友都没什么问题的升级成功,所以决定在备份了/home以后开始升级。
果然,Hardy的升级过程非常顺利。除了若干小问题,升级完成以后重启一下马上就回到了熟悉的工作环境,终于松了一口气。看来Ubuntu经过这么多版本的改进,确实已经相当成熟了。那这次升级值得写一下的就只有碰到的个别问题了。

Firefox 2和Firefox 3共存

Hardy默认安装了Firefox 3,但是很多插件还没法装,所以很多人都希望用回Firefox 2。装Firefox 2本身其实很简单,源里就有firefox-2的包。但是升级前如果用的是firefox 2,就一定要先备份好数据,推荐用FEBE完整备份profile。因为升级后Firefox 3会直接使用升级前Firefox 2默认的profile,这样再装回Firefox 2的话,原来的profile在ff2下也不能用了。所以推荐的做法是升级完成后为ff2和ff3各自新建一个profile,然后把ff2备份数据导入,就恢复原样了。

Sun JVM 1.6在64位Hardy下造成Eclipse经常崩溃

对这个问题已经开出了bug报告,而且据说用了OpenJDK 7同样有问题。目前我用的解决办法是在eclipse.ini里添加以下一行内容:

-XX:CompileCommand=exclude,org/eclipse/core/internal/dtree/DataTreeNode,forwardDeltaWith

这样改完以后都没再崩溃过了。另外还可以改用IBM JDK,据说是没有问题的。

无法注销/重启/关机的问题

这个现象可能只有少数人才能碰到,注销/重启/关机到一半就没反应了,需要重启一下x,然后才会继续下去。问题是出在KeyTouch上。把KeyTouch拆了就好了。这个Bug也已经在修复中了,暂时不用KeyTouch也没什么问题。

其他

其实值得提的基本就这些了^^ 升级以后,本来坏了总无法启动的OOo恢复正常了,有时候莫名死机的问题也没有了。总之,这是一次非常成功的升级。Ubuntu向着完美桌面的目标又进了结实的一步。

Installing Guake on Ubuntu Gutsy (with Compiz Fusion)

I’m a fan of FPS games (like Quake) and always fancy having the Quake style drop-down consoles for the operating system I use. Luckily there are some good ones for Linux. I used to use Tilda but it’s kind of flakey under Ubuntu with Beryl/Compiz.

Lately I switched to Guake, a new FPS style console that’s claimed to “meld the best of them (Yakuake and Tilda) into a single GTK-based application”. Having used it for a while now, I can tell that Guake is really promising, and it plays very nice with Compiz Fusion under my Gutsy amd64.

But the installation of Guake has several glitches to overcome and the home page has few information as of now. So here are my tips about the installation.

1. For Ubuntu Gutsy you need to have the following packages first.

python-dev,libgtk2.0-dev,libx11-dev,python-notify

2. There are two ways to install Guake from source: Download and install the 0.1 package or install from git.

If you download the 0.1 tarball, just follow the usual routine of “./configure && make” and “sudo make install” to get it installed. But before Guake will work, you must perform one additional step.

gconftool-2 –install-schema-file=/usr/local/etc/gconf/schemas/guake.schemas

If you install from git, the steps are

sh autogen.sh./configure && make

sudo make install

The finishing steps also include the above one final step for tarball installation. But somehow the latest git version fails to copy some graphic files during the install. So you have to do that yourself.

sudo cp /path/to/guake/data/pixmaps/* /usr/local/share/pixmaps/guake/

Notes 8在Ubuntu Gutsy下启动崩溃问题和解决

Notes 8在Gutsy下已经运行的不错了,除了用scim不能输入中文。但是今天在一次意外退出以后,Notes每次启动都会提示出错,错误号CLFRJ00010E(毫无意义的出错信息并不是m$专利)。Google以后终于找到这篇文章,经过尝试以后我的解决方法是这样的。

sudo rm ~/lotus/notes/data/~notes.lck
ps -ef | grep lotus

如果看到还有notes进程的话,比如
user 22514 1 0 10:19 ? 00:00:01 /opt/ibm/lotus/notes/taskldr /opt/ibm/lotus/notes/taskldr

pkill -9 taskldr

以上两步就可以让notes重新启动成功了,并不需要清空workspace。

P.S. 2008第一贴,祝各位新年快乐!

Tags: ,

Running Lotus Notes 8 on Ubuntu Feisty

My struggle of getting Lotus Notes 8 to run on Ubuntu Feisty has finally come to an almost perfect end. I feel awfully guilty if I don’t blog it and share with you.

My journey started with installing Notes, of course. This part of the story has already been covered very well by other folks. I recommend this particular post to follow.

It’s the running Notes part that’s really frustrating. It actually stuck me for weeks. First, whenever I start Notes, the splash will freeze at some point and a ridiculous jvm crash dialog will show, whose height well exceeds my screen’s and I can’t even see the whole message.

After numerous failure and with despair, I started into a failsafe gnome session and…man! It runs in failsafe gnome! That could be a close enough workaround, but I can’t live with failsafe all my life. So here’s the way that finally got Notes to run happily without failsafe.

  1. Start Notes with regular gnome. When the jvm crash dialog shows, select all the text and copy it to a new text file.
  2. Remove the first line, which should be like “JVM terminated. Exit code=160”.
  3. Remove all the carriage returns in the remaining messages. This is actually the startup script to run Notes.
  4. Add these lines at the top of the script.
    export MOZILLA_FIVE_HOME=/usr/lib/xulrunner-1.8.0.1-lwp
    export LD_LIBRARY_PATH=/opt/ibm/lotus/notes:$MOZILLA_FIVE_HOME
  5. If you don’t have a /usr/lib/xulrunner-1.8.0.1-lw directory, you can either install a xulrunner package, or if you have Firefox, use this instead.
    export MOZILLA_FIVE_HOME=/usr/lib/firefox
  6. Then you need to find this line
    /opt/ibm/lotus/notes/framework/rcp/eclipse/plugins/com.ibm.rcp.j2se.linux.x86_1.5.0.SR4-200707311521/jre/bin/notes2w

    And add this line next to it.
    -Dswt.library.path=$LD_LIBRARY_PATH
  7. Finally, save the file as “notes.sh”. To run Notes, simply run the sh file.

Below is the script I use to start Notes. To use it for your own, replace all occurrences of “houyr” with your own account name and it probably will work.

export MOZILLA_FIVE_HOME=/usr/lib/xulrunner-1.8.0.1-lwp
#export MOZILLA_FIVE_HOME=/usr/lib/firefox
export LD_LIBRARY_PATH=/opt/ibm/lotus/notes:$MOZILLA_FIVE_HOME
/opt/ibm/lotus/notes/framework/rcp/eclipse/plugins/com.ibm.rcp.j2se.linux.x86_1.5.0.SR4-200707311521/jre/bin/notes2w -Dswt.library.path=$LD_LIBRARY_PATH -Xmx512m -Xquickstart -Xjit:noResumableTrapHandler -Dosgi.framework.extensions=com.ibm.rcp.core.logger.frameworkhook,com.ibm.cds -Xscmx64m -Xshareclasses:name=xpdplat%g,groupAccess,keep,nonfatal -Drcp.home=/opt/ibm/lotus/notes/framework -Drcp.data=/home/houyr/lotus/notes/data/workspace -Dosgi.splashPath=platform:/base/../shared/eclipse/plugins/com.ibm.notes.branding,platform:/base/../shared/eclipse/plugins/com.ibm.notes.branding.nl1,platform:/base/../shared/eclipse/plugins/com.ibm.notes.branding.nl2,platform:/base/../shared/eclipse/plugins/com.ibm.notes.branding.nl3 -Dcom.ibm.rcp.install.id=1189233555789 -Drcp.install.config=multiuser -Declipse.registry.nulltoken=true -Dautopd.logfile.generations=3 -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeAwareParserConfiguration -Dautopd.instance.area=/home/houyr/lotus/notes/data/workspace/autopd/ -Disa.ignoreESR=true -Djava.util.logging.config.class=com.ibm.rcp.core.internal.logger.boot.LoggerConfig -Dcom.ibm.pvc.webcontainer.port=0 -Disa.ignorePortableCollector=true -Disa.ignoreFeedback=true -Disa.ignoreUpdate=true -Dderby.stream.error.file=/home/houyr/lotus/notes/data/workspace/logs/derby.log -Djava.security.properties=file:/opt/ibm/lotus/notes/framework/rcp/eclipse/plugins/com.ibm.rcp.base_6.1.1.200707311521/rcp.security.properties -Djava.protocol.handler.pkgs=com.ibm.net.ssl.www.protocol -Dosgi.hook.configurators.exclude=org.eclipse.core.runtime.internal.adaptor.EclipseLogHook -Drcp.osgi.install.area=/opt/ibm/lotus/notes/framework/eclipse -Xbootclasspath/a:/opt/ibm/lotus/notes/framework/rcp/eclipse/plugins/com.ibm.rcp.base_6.1.1.200707311521/rcpbootcp.jar -jar /opt/ibm/lotus/notes/framework/rcp/eclipse/plugins/com.ibm.rcp.base_6.1.1.200707311521/launcher.jar -os linux -ws gtk -arch x86 -launcher /opt/ibm/lotus/notes/framework/rcp/eclipse/plugins/com.ibm.rcp.base_6.1.1.200707311521/linux/x86/eclipse -name IBM Lotus Notes -showsplash 600 -exitdata 35801c -nl en_US -dir ltr -personality com.ibm.rcp.platform.personality -product com.ibm.notes.branding.notes -data /home/houyr/lotus/notes/data/workspace -configuration /home/houyr/lotus/notes/data/workspace/.config -plugincustomization /opt/ibm/lotus/notes/framework/rcp/plugin_customization.ini -vm /opt/ibm/lotus/notes/framework/rcp/eclipse/plugins/com.ibm.rcp.j2se.linux.x86_1.5.0.SR4-200707311521/jre/bin/notes2w -vmargs -Xmx512m -Xquickstart -Xjit:noResumableTrapHandler -Dosgi.framework.extensions=com.ibm.rcp.core.logger.frameworkhook,com.ibm.cds -Xscmx64m -Xshareclasses:name=xpdplat%g,groupAccess,keep,nonfatal -Drcp.home=/opt/ibm/lotus/notes/framework -Drcp.data=/home/houyr/lotus/notes/data/workspace -Dosgi.splashPath=platform:/base/../shared/eclipse/plugins/com.ibm.notes.branding,platform:/base/../shared/eclipse/plugins/com.ibm.notes.branding.nl1,platform:/base/../shared/eclipse/plugins/com.ibm.notes.branding.nl2,platform:/base/../shared/eclipse/plugins/com.ibm.notes.branding.nl3 -Dcom.ibm.rcp.install.id=1189233555789 -Drcp.install.config=multiuser -Declipse.registry.nulltoken=true -Dautopd.logfile.generations=3 -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeAwareParserConfiguration -Dautopd.instance.area=/home/houyr/lotus/notes/data/workspace/autopd/ -Disa.ignoreESR=true -Djava.util.logging.config.class=com.ibm.rcp.core.internal.logger.boot.LoggerConfig -Dcom.ibm.pvc.webcontainer.port=0 -Disa.ignorePortableCollector=true -Disa.ignoreFeedback=true -Disa.ignoreUpdate=true -Dderby.stream.error.file=/home/houyr/lotus/notes/data/workspace/logs/derby.log -Djava.security.properties=file:/opt/ibm/lotus/notes/framework/rcp/eclipse/plugins/com.ibm.rcp.base_6.1.1.200707311521/rcp.security.properties -Djava.protocol.handler.pkgs=com.ibm.net.ssl.www.protocol -Dosgi.hook.configurators.exclude=org.eclipse.core.runtime.internal.adaptor.EclipseLogHook -Drcp.osgi.install.area=/opt/ibm/lotus/notes/framework/eclipse -Xbootclasspath/a:/opt/ibm/lotus/notes/framework/rcp/eclipse/plugins/com.ibm.rcp.base_6.1.1.200707311521/rcpbootcp.jar -jar /opt/ibm/lotus/notes/framework/rcp/eclipse/plugins/com.ibm.rcp.base_6.1.1.200707311521/launcher.jar
rm -rf ~/lotus/notes/data/workspace/logs/javacore*.txt
rm -rf ~/lotus/notes/data/workspace/logs/core*.dmp

**Update**

Yeah I got Notes to “run”, technically. But getting it to fully work is another thing. Now I’ve found a new problem. Whenever I create a new memo, or reply or forward a mail, a little dialog called “NSD is running” will show, and Notes freezes. In the console window behind, a lot of error is generated by this nsd.sh, which is actually a dumping script.

Anyone has any insight on this issue?

Browse Happy logo

My tweets

2016年二月
« 八    
1234567
891011121314
15161718192021
22232425262728
29  

分类目录

Articles

Fancy Stats