Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Scripts used when creating a new machine
branch: master

This branch is 1 commit ahead of tUrG0n:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
LAMP
mongo
node/proxy
scripts
README.md

README.md

Table of Contents generated with DocToc


Manual Steps

Create a new user

  • Log in first using your root account.
  • Create a new user by following the directives stated here
  • Add your public ssh key into the machine's authorized_keys as shown here

Scripts

Important tools

Install needed packages (git, make, etc..):

curl https://raw.github.com/Lebanese-OSS/server-scripts/master/scripts/dev-packages | sh

Node related

Install nodejs:

curl https://raw.github.com/Lebanese-OSS/server-scripts/master/scripts/node-installer | sh

Install npm basic packages:

curl https://raw.github.com/Lebanese-OSS/server-scripts/master/scripts/npm-packages | sh

Mongodb

Install Mongodb:

curl https://raw.github.com/Lebanese-OSS/server-scripts/master/mongo/mongodb | sh

php apache mysql

Install php5, apache2 and mysql

curl https://raw.github.com/Lebanese-OSS/server-scripts/master/LAMP/php-apache-mysql | sh


Setting up a node

Suppose you want to use node-htto-proxy.

Use the following to add one in: ~/code/proxy/proxy.js

curl https://raw.github.com/Lebanese-OSS/server-scripts/master/node/proxy/install | sh


Troubleshooting

Apache

... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

Run the following:

sudo su
echo "ServerName localhost" >> /etc/apache2/httpd.conf
/etc/init.d/apache2 restart
Something went wrong with that request. Please try again.