Skip to content

bassamseif/server-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/tUrG0n/server-scripts/master/scripts/dev-packages | sh

Node related

Install nodejs:

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

Install npm basic packages:

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

Mongodb

Install Mongodb:

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

php apache mysql

Install php5, apache2 and mysql

curl https://raw.github.com/tUrG0n/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/tUrG0n/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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published