Installer EtherPad

Connaissez-vous etherpad ? C’était une sorte d’éditeur multiutilisateur en ligne, racheté par google car il concurrençait Wave, fermé, mis en logiciel libre.

C’est très dommage pour etherpad.com… mais très pratique pour les utilisateurs.

J’avais par exemple commencé à créer ma propre solution (quelques hacks javascript collés ensembles, mais intéressants pour comprendre le problème) lorsque le code source fut ouvert.

Pour l’installer chez vous sur une debian, suivez-donc ces conseils :

# mercurial

apt-get install mercurial

file libdb4.5 libmagic1 libsqlite3-0 mercurial mercurial-common mime-support

python python-beaker python-minimal python-sqlalchemy python-support

python2.5 python2.5-minimal rcs ucf

# get the source

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

# mysql

apt-get install mysql-server

bsd-mailx exim4 exim4-base exim4-config exim4-daemon-light libdbd-mysql-perl

libdbi-perl libhtml-template-perl liblockfile1 libmysqlclient15off

libnet-daemon-perl libpcre3 libplrpc-perl libterm-readkey-perl mailx

mysql-client-5.0 mysql-common mysql-server mysql-server-5.0 perl

perl-modules psmisc

# mysql connector

wget http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.10.tar.gz/from/http://mirrors.ircam.fr/pub/mysql/

# java 1.6

apt-get install sun-java6-jdk

avahi-daemon bind9-host dbus dbus-x11 defoma gsfonts gsfonts-x11 java-common

libasound2 libavahi-common-data libavahi-common3 libavahi-core5 libbind9-40

libcap2 libdaemon0 libdbus-1-3 libdns45 libexpat1 libfontenc1 libfreetype6

libice6 libisc45 libisccc40 libisccfg40 libltdl3 liblwres40 libnss-mdns

libsm6 libxfont1 libxi6 libxml2 libxt6 libxtst6 odbcinst1debian1 sgml-base

sun-java6-bin sun-java6-jdk sun-java6-jre unixodbc xfonts-encodings

xfonts-utils xml-core

# Si etch:

echo “deb http://ftp.debian.org/debian/ unstable main non-free”>>/etc/apt/sources.list

echo ” 1. APT::Cache-Limit “100000000”;”>> /etc/apt/apt.conf.d/70debconf

cat >/etc/apt/preferences <EOF

Package: *

Pin: release a=stable

Pin-Priority: 700

Package: *

Pin: release a=unstable

Pin-Priority: 600

EOF

# scala

wget http://www.scala-lang.org/downloads/distrib/files/scala-2.7.7.final.tgz

# add the hostname

vi src/etherpad/globals.js

# replace isProDomainRequest by return true

vi src/etherpad/pro/utils.js

vi src/etherpad/utils.js

# create the database

vi ./bin/setup-mysql-db.sh

mysql=”mysql -p”

# export the environment

export JAVA_HOME=”/usr/lib/jvm/java-6-sun-1.6.0.12/”

export SCALA_HOME=”/Etherpad/scala-2.7.7.final”

export JAVA=”$JAVA_HOME/bin/java”

export SCALA=”$SCALA_HOME/bin/scala”

export PATH=”$JAVA_HOME/bin:$SCALA_HOME/bin:$PATH”

export MYSQL_CONNECTOR_JAR=”/Etherpad/jar/mysql-connector-java-5.1.10-bin.jar”

# recompile Java and Scala libraries into a single JAR

./bin/rebuildjar.sh

# chose a standard port : 9000->80

vi etc/etherpad.localdev-default.properties

# now run:

bin/run-local.sh

# if you need to edit the homepage

vi templates/main/home.ejs

Advertisements

About guylhem

guylhem.com
This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s