piControl is allow reboot and shutdown from browser in local network. It's using node.js.
cd /usr/src
sudo wget http://nodejs.org/dist/v0.8.18/node-v0.8.18.tar.gz
sudo tar xvzf node-v0.8.18.tar.gz
cd node-v0.8.18
sudo ./configure
sudo make
sudo make install
The make process can take quite a while, well over a hour in most case.
If you want to install node.js automatically , call
sudo sh ./install.sh
npm install forever -g
sudo mkdir /opt/piControl/
Copy all files to /opt/piControl/
or you can make git clone
cd /opt
sudo git clone git://github.com/saturngod/piControl.git piControl
Open the pictlnode.
Edit forever and APP path.
sudo cp /opt/piControl/pictlnode /etc/init.d/pictlnode
sudo chmod +x /etc/init.d/pictlnode
update-rc.d pictlnode defaults
sudo insserv pictlnode
reboot
After reboot , check your ip first.
ifconfig
After you know the IP , call http://[your_ip_address]:1337 from any browser in your local network.
Recommend to use static IP to control the raspberry pi.
http://[yourip]:1337/shutdown
http://[yourip]:1337/restart
http://[yourip]:1337/freedisk
- Make installer like
npm install picontrol
and everything done.