forked from Lerc/notanos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pisetup.txt
executable file
·32 lines (26 loc) · 968 Bytes
/
pisetup.txt
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
#required packages
sudo apt-get install build-essential socat libpam-dev
#now we need to install node.js and a few node modules
cd
wget http://nodejs.org/dist/v0.10.26/node-v0.10.26-linux-arm-pi.tar.gz
cd /usr/local/lib/
sudo tar -xzf ~/node-v0.10.26-linux-arm-pi.tar.gz
cd ../bin/
sudo ln -s ../lib/node-v0.10.26-linux-arm-pi/bin/node node
sudo ln -s ../lib/node-v0.10.26-linux-arm-pi/bin/npm npm
cd
sudo npm install -g node-gyp
sudo npm install -g websocket
sudo npm install -g pty.js
#the server component
git clone https://github.com/Lerc/userserv
cd userserv
make all
sudo make install
#Make a link from ~/Notanos to wherever you unpacked the notanos directory
#if this file is ~/[something]/pisetup.txt then the notanos directory will be ~/[something]/notanos
ln -s ~/[something]/notanos ~/Notanos
#Launch the server from a root shell
sudo su -
userserv -n
#connect you your rasberrypi from a browser using https://x.y.z.x