Martikos / server-scripts

Scripts used when creating a new machine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Scripts used when creating a new machine


Languages

Language:Shell 65.5%Language:JavaScript 34.5%