Raspcontrol - A Web Control Centre for the Pi


179 posts   Page 1 of 8   1, 2, 3, 4, 5 ... 8
by Bioshox » Tue Jul 24, 2012 4:11 pm
Hello Everybody!

Over the past few weeks I have been developing a Web Control Centre especially for the Raspberry Pi!

It's been developed with the people in mind who are running their Pi's 'headless' or as a server, but it's awesome for everybody! :D

As an overview it gives you a low down on the status of your hardware such as Uptime, CPU Info and Load, RAM Usage and even SD Card Usage too. And we wan't it to do even more!

You can also invoke commands from the Dashboard such as source package upgrading, rebooting the Pi, installing the firmware updater and running it (from Hexxeh) and we hope to build so many more features into it like controlling Apache and setting up VHosts, to fully automating a Firewall setup.

If you'd like to get involved with the project or try it out for yourself, you can find it on GitHub: https://github.com/Bioshox/Raspcontrol

Please feel free to raise suggestions, feedback, concerns or bugs here or in the issue tracker over on GitHub!

Here's a screen shot for the curious: http://fusionstrike.com/wp-content/uploads/2012/07/Screen-Shot-2012-07-24-at-9.15.29-AM1.png

Thanks,
Bioshox.

I'll also begin replying to this post with further updates and features that get implemented into it!
Owner of: http://www.fusionstrike.com - I make gorgeous Raspberry Pi Tutorials :)
Posts: 100
Joined: Sun May 27, 2012 12:18 pm
Location: Manchester, United Kingdom.
by maui » Wed Jul 25, 2012 8:50 am
aloha,

your raspcontrol is verry nice :)

could you add some htop like task manager? I want to see how many users are logged in and what programms are running


keep up the good work :)
Posts: 25
Joined: Sun Jul 08, 2012 10:10 am
by Bioshox » Wed Jul 25, 2012 9:00 am
That sound's like a good feature, I've added it into the milestone for the next release!

https://github.com/Bioshox/Raspcontrol/issues/33
https://github.com/Bioshox/Raspcontrol/issues/34
Owner of: http://www.fusionstrike.com - I make gorgeous Raspberry Pi Tutorials :)
Posts: 100
Joined: Sun May 27, 2012 12:18 pm
Location: Manchester, United Kingdom.
by fabi280 » Wed Jul 25, 2012 2:21 pm
It kinda reminds me of Webmin (http://webmin.com/).
The functions are quite similar.
You can take a look here: http://webmin.com/demo.html
Posts: 17
Joined: Wed May 30, 2012 5:36 am
by Bioshox » Wed Jul 25, 2012 3:48 pm
fabi280 wrote:It kinda reminds me of Webmin (http://webmin.com/).
The functions are quite similar.
You can take a look here: http://webmin.com/demo.html


The system is designed to be a much lighter version of Webmin oriented for the Raspberry Pi, whereas Webmin would normally have lots of modules available even when the dependancies don't exist, lots of difficult to understand config options which could potentially break a setup if the user wasn't sure on what those options did.

I hope to develop features into Raspcontrol that automate many tasks such as setting up File Servers, Media Centres, Firewalls and many other difficult tasks, then being able to maintain them from within Raspcontrol.

I'd also love people to learn from the code and contribute to it too, after all the Raspberry Pi is all about education!

Also, Raspcontrol is developed using only PHP, which means it won't take any resource from the Pi itself apart from when the script is being executed, leaving resource for other tasks and services running, and it only requires a HTTP server and PHP, no other modules or dependancies.
Owner of: http://www.fusionstrike.com - I make gorgeous Raspberry Pi Tutorials :)
Posts: 100
Joined: Sun May 27, 2012 12:18 pm
Location: Manchester, United Kingdom.
by urfankhaliq » Thu Jul 26, 2012 1:07 am
Hi I have followed the instructions and can browse to the raspcontrol page but when I go to setup.php and try to create a user it says "cannot open file"

Any ideas?
Posts: 63
Joined: Wed Apr 11, 2012 4:06 pm
by Bioshox » Thu Jul 26, 2012 6:41 am
Have you added www-data to your Sudoers list?? (sudo visudo)
Owner of: http://www.fusionstrike.com - I make gorgeous Raspberry Pi Tutorials :)
Posts: 100
Joined: Sun May 27, 2012 12:18 pm
Location: Manchester, United Kingdom.
by psx2p » Thu Jul 26, 2012 9:25 am
Is it possible to get this to be displayed within my homepage without a user login?

Edit: I would like this information available in a sidebar or along the bottom of the page in the footer and available to the general public (minus the reboot/control options of course)
Posts: 6
Joined: Wed Jul 11, 2012 11:35 pm
Location: Michigan, US
by Bioshox » Thu Jul 26, 2012 10:28 am
Yes this is possible.

Download Raspcontrol from GitHub: http://www.github.com/bioshox/Raspcontrol

Upload it to your server, set up your admin account and login.

Now you have Raspcontrol setup only for whoever you give access to.

Now, create a public file somewhere in your site, for example public_pistats.php

Now, in your Raspcontrol Directory copy and paste main.php into public_pistats.php (as the example file)

At the top of your new copied-pasted file you will see

Code: Select all
<?php session_start();

if($_SESSION['username'] == ""){
   require('index.php');
   die;
}

?>


REMOVE THIS

On the next few lines you will see:

Code: Select all
<?php    
   require('app/classes/_ram.php');
   require('app/classes/_hdd.php');
   require('app/classes/_cpu.php');
   require('app/classes/_uptime.php');
   require('app/includes/_header.php');
    require('app/classes/_network.php');
?>


From this you MUST REMOVE require('app/includes/_header.php');

Now insert the following code below it, load your public_pistat.php in your web browser, then valla! Done!

Code: Select all
<?php $uptime = new systemUptime; $getSystemUptime = $uptime->getSystemUptime();?>
<?php $load = new cpuLoad; $getLoad = $load->getCpuLoad();?>
<?php $ram = new ramPercentage; $percentage = $ram->freeMemory(); $percentage = $ram->freeSwap();?>
<?php $hdd = new hddPercentage; $storagepercentage = $hdd->freeStorage();?>
<?php //$net = networkUsage(); echo "Received: ".$net['rx']." Megabytes Sent: ".$net['tx']." Megabytes Total: ".($net['rx']+$net['tx'])." Megabytes"; ?>
<?php $network = new network; $networkUseage = $network->networkUsage(); ?>
Owner of: http://www.fusionstrike.com - I make gorgeous Raspberry Pi Tutorials :)
Posts: 100
Joined: Sun May 27, 2012 12:18 pm
Location: Manchester, United Kingdom.
by urfankhaliq » Thu Jul 26, 2012 11:59 am
Bioshox wrote:Have you added www-data to your Sudoers list?? (sudo visudo)


That's what was missing lol. My bad for not reading the instructions properly! Lol

When you click update sources or update firmware does it give you any progress indicator?

I love the idea of managing it via web page makes it easy to keep on top of it especially as I run it headless

Any upgrades planned for it in the near future?
Posts: 63
Joined: Wed Apr 11, 2012 4:06 pm
by Bioshox » Thu Jul 26, 2012 12:20 pm
urfankhaliq wrote:
Bioshox wrote:Have you added www-data to your Sudoers list?? (sudo visudo)


That's what was missing lol. My bad for not reading the instructions properly! Lol

When you click update sources or update firmware does it give you any progress indicator?

I love the idea of managing it via web page makes it easy to keep on top of it especially as I run it headless

Any upgrades planned for it in the near future?


Pleanty, infact you can have a look at whats in the pipeline here: https://github.com/Bioshox/Raspcontrol/ ... state=open

And we're working on a way to give feedback on those update scripts!

Thanks, enjoy using!
Owner of: http://www.fusionstrike.com - I make gorgeous Raspberry Pi Tutorials :)
Posts: 100
Joined: Sun May 27, 2012 12:18 pm
Location: Manchester, United Kingdom.
by urfankhaliq » Thu Jul 26, 2012 2:11 pm
That all looks very promising!

So how will we be able to update our install when you have updates to the raspcontrol?
Posts: 63
Joined: Wed Apr 11, 2012 4:06 pm
by Bioshox » Thu Jul 26, 2012 3:19 pm
It will automate a git pull if it has been downloaded directly form the Repo using Git Clone from GitHub, if not the script will remove the entire Raspcontrol Directory and then Download the latest version from a central server.

You'll notice there is already an automatic update checker that lets you know if theres a new version available on GitHub!
Owner of: http://www.fusionstrike.com - I make gorgeous Raspberry Pi Tutorials :)
Posts: 100
Joined: Sun May 27, 2012 12:18 pm
Location: Manchester, United Kingdom.
by urfankhaliq » Thu Jul 26, 2012 3:21 pm
Sorry I dont get what you mean?

What is the automatic update checker?

I just have update sources and update firmware?
Posts: 63
Joined: Wed Apr 11, 2012 4:06 pm
by bastian94 » Thu Jul 26, 2012 3:51 pm
Does this works with windows
Posts: 64
Joined: Fri Jun 08, 2012 7:57 pm
Location: Sweden
by Bioshox » Thu Jul 26, 2012 4:19 pm
bastian94 wrote:Does this works with windows


Yep, as long as you have a web browser.

All you need to do is upload it to the web accessible directory from your HTTP Server you have running your Pi and then from any computer on the network navigate to it and set it up.
Owner of: http://www.fusionstrike.com - I make gorgeous Raspberry Pi Tutorials :)
Posts: 100
Joined: Sun May 27, 2012 12:18 pm
Location: Manchester, United Kingdom.
by Bioshox » Thu Jul 26, 2012 4:19 pm
urfankhaliq wrote:Sorry I dont get what you mean?

What is the automatic update checker?

I just have update sources and update firmware?


Sorry I might of misunderstood your question!! :cry:

Can you just refine it a little for me

Thanks!
Owner of: http://www.fusionstrike.com - I make gorgeous Raspberry Pi Tutorials :)
Posts: 100
Joined: Sun May 27, 2012 12:18 pm
Location: Manchester, United Kingdom.
by urfankhaliq » Thu Jul 26, 2012 4:23 pm
Yeah basically I wanted to find out when you add new features to the raspcontrol as you are working on through github, how would I be able to get these new features on my raspcontrol install?
Posts: 63
Joined: Wed Apr 11, 2012 4:06 pm
by Bioshox » Thu Jul 26, 2012 4:27 pm
urfankhaliq wrote:Yeah basically I wanted to find out when you add new features to the raspcontrol as you are working on through github, how would I be able to get these new features on my raspcontrol install?


You can do it one of two ways

If you cloned the GitHub Repo

Just do a git pull on the directory Raspcontrol is installed within.

If you downloaded the master .zip from GitHub

Just head over to http://www.github.com/bioshox/Raspcontrol and download the .zip again, delete your old raspcontrol directory and then replace it with your newly downloaded one :)

This won't affect your login as that's stored within the /etc/ folder in the OS :).
Owner of: http://www.fusionstrike.com - I make gorgeous Raspberry Pi Tutorials :)
Posts: 100
Joined: Sun May 27, 2012 12:18 pm
Location: Manchester, United Kingdom.
by urfankhaliq » Thu Jul 26, 2012 4:32 pm
OK thanks. I thought there might be an automated way of updating the files. I think I downloaded the zip on my Mac and then copied them onto the pi via a samba share then ssh'd onto the pi and copied them from the samba share to the correct folder

long winded but the only way i knew how to! lol
Posts: 63
Joined: Wed Apr 11, 2012 4:06 pm
by Bioshox » Thu Jul 26, 2012 5:29 pm
You can use SFTP if you have SSH enabled, just get a tool like FileZilla :)

There will be a way to receive automatic updates in a future release!
Owner of: http://www.fusionstrike.com - I make gorgeous Raspberry Pi Tutorials :)
Posts: 100
Joined: Sun May 27, 2012 12:18 pm
Location: Manchester, United Kingdom.
by recantha » Thu Jul 26, 2012 5:53 pm
I installed it. Very useful interface.
My Raspberry Pi blog with all my latest projects and links to articles
http://raspberrypipod.blogspot.com. +++ Current project: PiPodTricorder - lots of sensors, lots of mini-displays, breadboarding, bit of programming.
Posts: 209
Joined: Mon Jun 25, 2012 10:41 am
by khh » Thu Jul 26, 2012 6:50 pm
Isn't it much simpler to just get a new version from the command line?
Code: Select all
sudo rm -r raspcontrol
sudo wget https://github.com/Bioshox/Raspcontrol/zipball/master
sudo unzip master
sudo mv Bioshox-Raspcontrol-* raspcontrol
sudo rm master

You could even add those commands (minus the sudos) to a shellscript and just run sudo update-raspcontrol.sh

The program looks pretty good, but I don't like that it stores passwords in cleartext. At the very least I'd use a salted hash.
Posts: 49
Joined: Thu Jul 26, 2012 12:16 am
by Dark » Thu Jul 26, 2012 7:20 pm
Cool app, installed and working via lighttpd. (After allowing www-data to do sudo commands without password)
Posts: 21
Joined: Thu May 10, 2012 4:39 pm
by Bioshox » Thu Jul 26, 2012 7:39 pm
khh wrote:Isn't it much simpler to just get a new version from the command line?
Code: Select all
sudo rm -r raspcontrol
sudo wget https://github.com/Bioshox/Raspcontrol/zipball/master
sudo unzip master
sudo mv Bioshox-Raspcontrol-* raspcontrol
sudo rm master

You could even add those commands (minus the sudos) to a shellscript and just run sudo update-raspcontrol.sh

The program looks pretty good, but I don't like that it stores passwords in cleartext. At the very least I'd use a salted hash.


I'll be implementing a more secure way to store the passwords in the next update, and also a very identical script to the ones you proposed to update the software :)
Owner of: http://www.fusionstrike.com - I make gorgeous Raspberry Pi Tutorials :)
Posts: 100
Joined: Sun May 27, 2012 12:18 pm
Location: Manchester, United Kingdom.