Installing Etherpad on Debian

Install prereqs

echo "deb http://ftp.de.debian.org/debian sid main non-free" >> /etc/apt/sources.list
apt-get update
apt-get install sun-java6-jdk

If the above fails then do not continue.  The output of

java -version

Should read..

java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
apt-get install scala mysql-server libmysql-java mercurial

Paste the below to /etc/profile

export PATH
export JAVA_HOME="/usr/lib/jvm/java-6-sun"
export SCALA_HOME="/usr/share/java"
export JAVA="/usr/bin/java"
export SCALA="/usr/bin/scala"
export PATH="/usr/bin:/usr/bin:/usr/local/mysql/bin:$PATH"
export MYSQL_CONNECTOR_JAR="/usr/share/java/mysql-connector-java-5.1.10.jar"
export JAVA_HOME SCALA_HOME JAVA SCALA MYSQL_CONNECTOR_JAR PATH
umask 022

Download the etherpad source to /usr/local/etherpad

hg clone https://etherpad.googlecode.com/hg/ /usr/local/etherpad

Set the environment variables

export JAVA_HOME="/usr/lib/jvm/java-6-sun"
export SCALA_HOME="/usr/share/java"
export JAVA="/usr/bin/java"
export SCALA="/usr/bin/scala"
export PATH="/usr/bin:/usr/bin:/usr/local/mysql/bin:$PATH"
export MYSQL_CONNECTOR_JAR="/usr/share/java/mysql-connector-java-5.1.10.jar"

Add your domain to the superdomain section


nano /usr/local/etherpad/trunk/etherpad/src/etherpad/globals.js

Search for etherpad.com and replace it with your domain (confused? You will figure it out)

Create the etherpad mysql db and privelidges

mysql -u root -p

Enter your password when prompted

create database etherpad;
grant all privileges on etherpad.* to 'etherpad'@'localhost' identified by 'password';
quit
cd /usr/local/etherpad/trunk/etherpad/
ln -s /usr/share/java /usr/share/java/lib
bin/rebuildjar.sh
bin/run-local.sh

Wait quite a while while it builds.

Test by browsing to your server at http://hostnameofserver:9000
Making pro work…
Make sure it doesn’t redirect to etherpad.com for pro
Edit /usr/local/etherpad/trunk/etherpad/src/main.js
Replace all instances of Etherpad.com with yourdomain.com
Edit /usr/local/etherpad/trunk/etherpad/src/static/crossdomain.xml
Add to the obvious section
<allow-access-from domain="yourdomain.com" to-ports="*"/>
<allow-access-from domain="*.yourdomain.com" to-ports="*"/>
Edit /usr/local/etherpad/trunk/etherpad/src/etherpad/pro/pro_utils.js

Replace

var fromDomain = 'etherpad.com';
with
var fromDomain = 'yourdomain.com';

Note: Originally published on the 19th of Dec 2009, Revised on the 10th of March 2010

New home

It was time for change :) Welcome to our new home, hosted by Primary Blogger and powered by wordpress

Etherpad CentOS installation

Nuba has written a fantastic guide for installing Etherpad onto CentOS – I recommend you follow that before reading this.

My problem is that the JAR wouldn’t compile on my box.

I ran into a problem, my box wouldn’t let me use fsc (Fast Scala Compiler) so I had to change the fsc references to use scalac(Scala Compiler) then I could compile the JAR.  I also had to use JAR instead of FastJAR

This isn’t a guide as such, just an overview of how I fixed the problems I had.

Apple products will revolutionize your #fail


Such a knowledge #fail Posted on Becta Public ICT Forum

Want to go ethical and buy an ipad?  Here is 1 reason not to published just this week.

The thought of teachers writing apps for the ipad cracks me up…

My response read:

Graham are you aware that to develop an app for an ipad/phone/touch you need an apple laptop/workstation?  How are pupils/teachers going to start making apps if in you have replaced their computer?

I disagree entirely that these devices will replace workstations/netbooks/notebooks/laptops (whatever) – they will complement your existing technology.

Finally, in my opinion apple won’t win out in the tablet market, why would they when you could buy a HP tablet and already have a wealth of learning tools available or even an open source device that is android powered and have a mass market of free excellent tools?

RE the environmental issue, in the words of our favourite mayor, what a “load of codswobble”

Drag and drop in flash objects on android

Does anyone know if its possible to drag and drop in flash on android.  I want to play a flash game on my phone and it appears that the click and drag functionality doesn’t exist or isn’t supported?

Am I missing something?

The HTC Hero comes shipped with Flash Lite, sound and video works although some games are a bit too heavy for the graphics processor to handle.