I recently spent 3 weeks in hotels in China and realized I should share some insights and recommendations..
The roads are noisy and distracting, bring speakers/headphones/ear plugs.
It gets wet so bring short socks / sandles
If you have a hotel pool, bring a swimming hat
The Internet might be filtered, preload maps and/or organize a VPN
Lots of beer is bottled, bring a bottle opener
Words worth remembering..
Nee how – Hello
Ching Dao – A brand of beer..
Shey shey – Thank you
Dong La – I understand
I’d recommend learning the Chinese way of saying your hotel name. Each hotel will have a business card with their address in both English and Chinese, pick a handful of your hotels business cards up..
I’d recommend learning the name of the KTV nearest to your hotel, these are usually used as great reference points.. KTV = Karaoke joint..
apt-get install build-essential python libssl-dev git-core git libsqlite3-dev gzip curl
# you will be prompted to press Y
Part 2 – Installing nodeJS and NPM
mkdir ~/local
cd ~/local
wget http://nodejs.org/dist/v0.6.12/node-v0.6.12.tar.gz
tar -zxvf node-v0.6.11.tar.gz
cd node-v0.6.11
./configure --prefix=$HOME/local/node
make
make install
echo 'export PATH=$HOME/local/node/bin:$PATH' >> ~/.profile
echo 'export NODE_PATH=$HOME/local/node:$HOME/local/node/lib/node_modules' >> ~/.profile
source ~/.profile
Part 3 – Installing Etherpad Lite and running it
git clone git://github.com/Pita/etherpad-lite.git
etherpad-lite/bin/run.sh
# You will be prompted to type Etherpad Lite rocks my socks.
You are now finished installing and Etherpad Lite should be running, you should be able to access it on http://localhost:9001
Only if you have an old version of Debian (Lenny) or Ubuntu then you will need to install sqllite from backports. To do open /etc/apt/sources.list and add:
deb http://backports.debian.org/debian-backports lenny-backports main
Add the following line as a source in your graphical package manager (In Ubuntu: System->Administration->Synaptic package manager; then Settings->Repositories and then finally Third party software), or edit the file /etc/apt/sources.list and add it there.
deb http://apt.etherpad.org all .
apt-get update
apt-get install etherpad
Answer the questions (if any, depends on your system settings)
/etc/init.d/etherpad start
Other Linux distributions
Download the .tgz and unpack it
Follow instructions in README 🙂
BELOW IS THE OLD GUIDE for Etherpad V1 released by Google
In Windows:
– Install Java, Scala, MySQL, mysqlconnector and Mercurial under Windows.
– JAVA should be set to the java executable.
– JAVA_HOME should be set to the main jdk directory.
– SCALA should be set to the scala executable.
– SCALA_HOME should be set to the main scala distribution directory.
– PATH should contain $JAVA, $SCALA, and mysql
– MYSQL_CONNECTOR_JAR should be set to the mysql-connector JAR file included in the mysql-connector download.
– Install Cygwin.
These Files are needed in /etherpad/trunk/ since the archive holds files both in the etherpad and the infrastructure subfolder.
Make a backup of your bin folder
Extract the contents of the above .Rar file to the bin folder
Run bin/rebuildjar.sh
After installation run bin/run-local.sh
Full docs coming later. Post questions as comments and I should be able to answer.
All props goto Jutsi for discovering the solution. Feeling confident without the full docs? Follow the unix docs for config settings and you should be good to go.
We assuming have already configured nrpe on your nagios box and you are sudo’d/root
Steps:
adduser nagios (set the password) cd /home/nagios wget http://prdownloads.sourceforge.net/sourceforge/nagios/nrpe-2.12.tar.gz * If this step fails visit http://www.nagios.org/download/addons for the latest URL
tar -zxvf nrpe-2.8.tar.gz cd nrpe-2.12 apt-get install gcc gawk openssl apt-get install make apt-get install libssl-dev apt-get install nagios-plugins ./configure make all make install-plugin make install-daemon make install-daemon-config echo “only_from = 0.0.0.1” >> /usr/local/nagios/etc/nrpe.cfg * Remember to replace 0.0.0.1 with your the IP address of your nagios server