-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_openhab.shack.log
More file actions
40 lines (36 loc) · 948 Bytes
/
install_openhab.shack.log
File metadata and controls
40 lines (36 loc) · 948 Bytes
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
sudo apt-get update
sudo apt-get upgrade
#install nodejs
sudo apt-get install g++ curl libssl-dev apache2-utils git-core joe make
cd /opt
sudo mkdir node
sudo chown -c ulrich /opt/node/
cd node
git clone https://github.com/joyent/node.git
cd node
./configure
make
sudo make install
#configure
sudo mkdir /opt/node-light
sudo chown -c ulrich /opt/node-light/
cp node-light/node-light.js /opt/node-light/
sudo cp node-light/etc/init.d/node-light /etc/init.d/
ls -l /etc/init.d/node-light
sudo update-rc.d node-light defaults
sudo /etc/init.d/node-light start
/etc/init.d/node-light status
sudo /etc/init.d/node-light stop
sudo apt-get install htop
htop
#install nginx
sudo apt-get install nginx
sudo joe /etc/nginx/sites-enabled/default
sudo nginx -s reload
sudo joe /usr/share/nginx/html/index.html
#06.04.2014
sudo apt-get update
sudo apt-get upgrade
#31.05.2015
#use the standard ubuntu nodejs
sudo apt-get install nodejs npm nodejs-legacy