Created
October 3, 2010 00:19
-
-
Save fairchild/608135 to your computer and use it in GitHub Desktop.
setup ubuntu instance to run etherpad
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#keeping track of steps to install etherpad on Ubuntu 10.04 | |
echo "deb http://archive.canonical.com/ lucid partner">>/etc/apt/sources.list | |
apt-get update | |
sudo apt-get -y install sun-java6-jdk | |
update-java-alternatives -s java-6-sun | |
sudo apt-get install scala mysql-server mysql-client libmysql-java git | |
sudo groupadd etherpad | |
sudo useradd -g etherpad etherpad | |
git clone http://github.com/ether/pad.git | |
cd pad | |
echo " | |
export JAVA_HOME=/usr/lib/jvm/java-6-sun | |
export JAVA=$JAVA_HOME/bin/java | |
export SCALA_HOME=/usr/share/java | |
export SCALA=/usr/bin/scala | |
export PATH=$JAVA_HOME/bin:$PATH | |
export MYSQL_CONNECTOR_JAR=/usr/share/java/mysql-connector-java.jar | |
">/etc/profile.d/etherpad | |
. /etc/profile.d/etherpad | |
sudo ./etherpad/bin/setup-mysql-db.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment