From 055facf36d273f382cbee68493e8f89cfe682435 Mon Sep 17 00:00:00 2001 From: jysperm Date: Wed, 14 May 2014 18:25:46 +0800 Subject: [PATCH] INSTALL --- INSTALL.md | 37 +++++++++++++++++++++++++++++-------- plugin/ssh/INSTALL.md | 2 +- 2 files changed, 30 insertions(+), 9 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index b4f42a6..fe64d0d 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -1,11 +1,15 @@ ## Ubuntu 14.04 amd64 +### Core apt-get install python-software-properties software-properties-common add-apt-repository ppa:chris-lea/node.js apt-get update apt-get upgrade - apt-get install nodejs git mongodb memcached nginx python g++ make + + apt-get install nodejs git mongodb memcached nginx postfix + apt-get install python g++ make screen git wget zip unzip iftop unrar-free axel vim emacs subversion subversion-tools curl tmux mercurial + apt-get install ntp quota quotatool adduser rpadmin usermod -G rpadmin -a www-data @@ -22,18 +26,35 @@ rm /etc/nginx/sites-enabled/default cat > /etc/nginx/sites-available/rpadmin - server { - listen 80 default_server; - listen [::]:80 default_server ipv6only=on; + server { + listen 80 default_server; + listen [::]:80 default_server ipv6only=on; - server_name DOMAIN; + server_name DOMAIN; - location / { - proxy_pass http://unix:/home/rpadmin/rootpanel.sock:/; + location / { + proxy_pass http://unix:/home/rpadmin/rootpanel.sock:/; + } } - } ln -s /etc/nginx/sites-available/rpadmin /etc/nginx/sites-enabled service nginx restart + vi /etc/fstab + + usrquota + + reboot + + ln -s /dev/xvda /dev/root + quotacheck -am + quotaon -au + make start + +### Runtime + + apt-get install golang + + apt-get install python python3 python3-pip python-dev python3-dev + pip install django tornado markdown python-memcached web.py mongo uwsgi virtualenv virtualenvwrapper flask gevent jinja2 requests diff --git a/plugin/ssh/INSTALL.md b/plugin/ssh/INSTALL.md index 02b6c4b..32be2d7 100644 --- a/plugin/ssh/INSTALL.md +++ b/plugin/ssh/INSTALL.md @@ -1,3 +1,3 @@ vi /etc/sudoers - rpadmin ALL=(ALL) NOPASSWD: ALL + rpadmin ALL=(ALL) NOPASSWD: ALL