-
Notifications
You must be signed in to change notification settings - Fork 2
/
install.sh
60 lines (49 loc) · 1.54 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/sh
##############################################################
#
# Author: Ruslan Khissamov, email: [email protected]
#
# http://apptob.org/
#
##############################################################
# Add MongoDB Package
echo 'Add MongoDB Package'
echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" >> /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
echo 'MongoDB Package completed'
# Update System
echo 'System Update'
apt-get -y update
echo 'Update completed'
# Install help app
apt-get -y install libssl-dev git-core pkg-config build-essential curl gcc g++
# Download & Unpack Node.js - v. 0.6.2
echo 'Download Node.js - v. 0.6.2'
mkdir /tmp/node-install
cd /tmp/node-install
wget http://nodejs.org/dist/v0.6.2/node-v0.6.2.tar.gz
tar -zxf node-v0.6.2.tar.gz
echo 'Node.js download & unpack completed'
# Install Node.js
echo 'Install Node.js'
cd node-v0.6.2
./configure && make && make install
echo 'Node.js install completed'
# Install Node Package Manager
echo 'Install Node Package Manager'
curl http://npmjs.org/install.sh | sudo sh
echo 'NPM install completed'
# Install Forever
echo 'Install Forever'
npm install forever -g
echo 'Forever install completed'
# Install MongoDB
echo 'Install MongoDB'
apt-get -y install mongodb-10gen
echo 'MongoDB install completed.'
# Install Wildcloud storage
cd ~
git clone git://github.com/marekjelen/wildcloud-storage.git
# Start Wildcloud storage
# cd ~/wildcloud-storage
# forever start -v -o logs/out.log -e logs/err.log server.js