Raspcontrol

From eLinux.org
Revision as of 10:16, 20 August 2012 by Bioshox (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Description

Raspcontrol is a control centre/information panel developed specifically for the Raspberry Pi, it is built using PHP and requires no other dependancies apart from PHP 5.4 installed to operate.

Installation

Getting the files

You can download Raspcontrol as a .zip from the GitHub Repository via the following link:

https://github.com/Bioshox/Raspcontrol/zipball/master

If you have Git installed you can clone the repo

git clone https://github.com/Bioshox/Raspcontrol.git

Getting it running

Raspcontrol is developed to be deployed with PHP 5.4, although it is possible to deploy it with any other HTTP server too.

Deploying with PHP 5.4

Navigate to the location you downloaded Raspcontrol to, from that location we need to give ./start.sh Read/Write/Execute Permissions

sudo chmod 0777 ./start.sh

Now we can deploy the server by running the command from the same location

sudo ./start.sh

You can now access Raspcontrol from localhost directly on your Pi, or the Internal IP from a different computer on your LAN and externally if you're using Port Forwarding. (Raspcontrol binds to the IP 0.0.0.0:80 by default)

This will work with PHP 5.4 ONLY you can check your PHP version by running the command

php -v

With Apache

Running Raspcontrol under Apache is considered insecure and not recomended.

Add www-data on Apache to the SUDOERS file

sudo VISUDO

On the last line add the following

www-data ALL=(ALL) NOPASSWD: ALL

Raspcontrol is not designed for production use, adding www-data to a SUDOERS file is dangerous and is not a permanent solution.

If you're accessing Apaches web avaliable directory on your Raspberry Pi (using startx) you can navigate to localhost/raspcontrol, if you're accessing it from another computer on your Network you will need to navigate to http://your.internal.ip/raspcontrol.

Setting up your account

Now you will be promted to setup a new account, this will create the initial user to login to the system.

Thanks!

Please feel free to contribute to this development!

raspcontrol.com | Raspcontrol GitHub