Skip to content
Browse files

added readme and script to setup nitrogen, yaws, and sinan

  • Loading branch information...
1 parent bb0c968 commit 542d7c52da3d3303da85d92ec6bdba40efd2b068 @jwilberding jwilberding committed Sep 9, 2009
Showing with 82 additions and 0 deletions.
  1. +24 −0 README
  2. +58 −0 setup_node
View
24 README
@@ -0,0 +1,24 @@
+Install the following libraries:
+
+% sudo apt-get install erlang mysql
+
+*Note: Use temp4now as mysql server root password
+
+edit ~/.bashrc (both root and chatyeo user)
+export PATH=$PATH:/usr/local/erlware/bin
+export ERL_LIBS=/opt/erlang-libs/:/usr/lib/erlang/lib/:/usr/local/erlware/lib/
+
+source ~/.bashrc
+
+% wget http://faxien.googlecode.com/files/faxien-launcher-universal-0.3.4.py
+% sudo python faxien-launcher-universal-0.3.4.py
+(accept defaults, say (n)ew when asking about config files)
+
+% Setup yaws and other stuff
+
+% sudo ./setup_node
+
+Do the following each time you change the chatyeo code
+
+% ./deploy
+% ceug
View
58 setup_node
@@ -0,0 +1,58 @@
+#!/bin/bash
+
+## We assume for now erlang and faxien is already installed
+
+CWD=`pwd`
+
+## Make sure user has root perms
+
+ROOT_UID=0 # Only users with $UID 0 have root privileges.
+E_NOTROOT=67 # Non-root exit error.
+
+if [ $UID -ne $ROOT_UID ]
+then
+ echo "Must be root to run this script. Try sudo ./setup_node"
+ exit $E_NOTROOT
+fi
+
+## Install nitrogen
+
+if [ -d /opt/erlang-libs/nitrogen ]; then
+ echo "Nitrogen already installed"
+else
+ echo "Installing Nitrogen from github"
+ mkdir -p /opt/erlang-libs/
+ cd /opt/erlang-libs/
+ git clone git://github.com/diginux/nitrogen.git
+ cd nitrogen
+ make
+ cd $CWD
+fi
+
+## Install yaws
+
+if [ -d /opt/erlang-libs/yaws ]; then
+ echo "Yaws already installed"
+else
+ echo "Installing Yaws version 1.77"
+ mkdir -p /opt/erlang-libs
+ cd /opt/erlang-libs
+ wget http://yaws.hyber.org/download/yaws-1.77.tar.gz
+ tar zxvf yaws-1.77.tar.gz
+ cd yaws
+ ./configure
+ make
+ cd $CWD
+fi
+
+# Setup required apps for ceug
+
+echo Installing required apps for ceug
+
+echo Installing mysql app
+
+/usr/local/erlware/bin/faxien ia mysql
+
+echo Installing sinan
+
+/usr/local/erlware/bin/faxien ir sinan

0 comments on commit 542d7c5

Please sign in to comment.
Something went wrong with that request. Please try again.