Dienstag, 21. Juni 2011

UFW and IPv6 on debian (squeeze)

After one hard hour I figured out that ufw (the uncomplicated firewall, https://launchpad.net/ufw) blocks all IPv6 traffic (even outgoing ICMPv6 and NDP). All you have to do to enable IPv6 is




service ufw restart

Donnerstag, 9. Juni 2011

Etherpad installation on debian

I installed Etherpad 1.1 via the debian repo http://apt.etherpad.org. After answering questions about the database connection I had to change some scripts.

First /etc/init.d/etherpad:


Simple reason: etherpad is not located in /usr/local...

Second /usr/share/etherpad/etherpad/bin/run-local.sh:

"ps auxww|grep etherpad" returns (after running "/etc/init.d/etherpad start") something like this:

etherpad 18919 191 10.6 1389780 216948 ? Sl 13:39 1:39 /usr/lib/jvm/java-6-sun/bin/java -classpath appjet-eth-dev.jar:data:lib/dnsjava-2.0.6.jar:lib/jbcrypt-0.3.jar:lib/jcommon-1.0.15.jar:lib/jfreechart-1.0.12.jar -server -Xmx903M -Xms903M -Djava.awt.headless=true -XX:MaxGCPauseMillis=500 -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:CMSIncrementalSafetyFactor=50 -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:./data/logs/backend/jvm-gc.log -Dappjet.jmxremote=true net.appjet.oui.main --configFile=./etc/etherpad.local.properties --maxThreads=225

I was wondering about --configFile (especially the leading dot). This led to:


Next, I recognized that there is no /etc/etherpad.local.properties but a /etc/etherpad/etherpad.local.properties (See https://github.com/ether/pad/issues/196). So a simple "ln -s /etc/etherpad/etherpad.local.properties /etc/" did the rest.

Last but not least the server got a "/etc/init.d/etherpad restart" and everything works fine.

Update: CPU usage is at 100% because of headless soffice process. What I tried is editing /etc/etherpad.local.properties:

-etherpad.soffice = /usr/bin/soffice
+etherpad.soffice = /usr/share/etherpad/soffice

/usr/share/etherpad/soffice is an emtpy executable.

The result: 100%, soffice process still running. It turned out, that this is a very static call:


-exec /usr/bin/soffice -headless -nofirststartwizard -accept="socket,host=localhost,port=8100;urp;StarOffice.Service" &
+#exec /usr/bin/soffice -headless -nofirststartwizard -accept="socket,host=localhost,port=8100;urp;StarOffice.Service" &

OpenOffice.org export will not work with this setting but load average is fine.