Recent Posts

Pages: 1 ... 4 5 [6] 7 8 ... 10
Developers / Re: PHP to execute sudo command
« Last post by Govo on August 27, 2015, 01:30:18 am »
Hi Posde & Phenigma

Thanks for the replies.

The problem wasn't the PHP script, you had to allow access in the visudo  ( Posde thanks for pointing me in right the direction ), according to a topic on the the internet the permission is

# Cmnd alias specification
Cmnd_Alias DANSGUARDIAN = /etc/init.d/dansguardian, /usr/sbin/dansguardian

# User privilege specification
root ALL=(ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

This allowed PHP to executed the command to restart DansGuardian.

You can see it working in this quick video, to get around the error of no response received from the server after submitting the command,  I put in a 10 second delay, and  then a finish button to bring you back home.

In order for the PHP scripts to work,  visudo has to be edited with the above code, writes access given to the dansguardian LISTS folder.

I have written a  PHP script to check if the database exists, if not, create the database and import the tables.

Here's a short video of it creating the database and then importing the sql file

I am working on this as a plugin, it has its own folder inside  the /var/www/lmce-admin, this allows me to move it to any version of LMCE, the only cache is, DansGuardian and squid3 have to be installed first and some editing done to the IP-tables.

On that note, thanks for the replies I will keep you posted!

Users / Re: Need some dedicated testers.
« Last post by golgoj4 on August 27, 2015, 01:13:01 am »
They are tagged correctly. I remember tschak saying, They Wohle eventuelle Benachrichtigungen selectable by show, season, episode....something like that.

Dunno what that means, but I will try to make the filters clearer..

Developers / Re: PHP to execute sudo command
« Last post by phenigma on August 26, 2015, 07:57:26 pm »
fyi all, we're in the AgoControl section here.  But just wanted to add that in LinuxMCE apache will permit script execution from the /usr/pluto/bin directory.  Put your scripts there and they will be executable from php under apache.

To explain a bit more about what phenigma is doing (phenigma, please correct me, as I will most likely be wrong on small details):

Our install process has been _very_ ad-hoc.

LinuxMCE depends on and utilizes many packages, many of them not only from our own repositories (for the DCE devices, the DCERouter, and the many scripts that frame them), but the many dependencies that each of these devices need in order to function.

Furthermore, many of these dependencies from the Ubuntu side are intended to be configurable, and can potentially be configured in ways that create unnecessary obstacles to LinuxMCE integration, so these things have needed to be pre-seeded in the past, and lots of little tweaks have been needed along the way.

Phenigma is doing some MUCH needed work, to clean this up. It's long, it's grimy, parts of it are freaky, and other parts will invariably cause hair loss, but what will come out of this is literally the ability to do:

Code: [Select]
# apt-get install lmce-core
# apt-get install lmce-hybrid
# apt-get install lmce-disked-md


and have LinuxMCE install itself and its needed dependencies to the point where the next boot then falls into the AV Wizard, and subsequently into a functional LinuxMCE system.

This leads into a refactoring of the whole start-up process, to use systemd. Whether you like it or not, systemd has become the accepted standard for the start-up of system and user services, and it is in our best interest to ensure that LinuxMCE starts and stops itself in a way that can cleanly be expressed in systemd.

As always, if anyone out there can help phenigma in his quest to vastly improve the plumbing of the system (which will ripple all the way up to the user experience), please contact him. This is important work.

Developers / Re: PHP to execute sudo command
« Last post by posde on August 26, 2015, 09:48:23 am »
yvw - thanks for working on LinuxMCE
Users / Re: Stopwatch / timer in events?
« Last post by posde on August 26, 2015, 09:47:51 am »
As always, feedback is appreciated. If everybody is happy with it, we might make it a must-have device and can amend the security plugin for the camera and lighting with it.
Users / Re: Stopwatch / timer in events?
« Last post by phenigma on August 26, 2015, 06:21:00 am »
This is awesome!  I have not had a chance to test this but I have been looking for this type of thing for some time.  For me I see it as a perfect use case with motion detectors and lighting.  As long as motion is detected the on-time is extended.  When the detection no longer occurs for a period of time it is turned off.  Very handy!

Mhm, this was all working, but the June DVD is quite old at this point.  I don't think we've pressed a dvd for 1404 for a bit now.  NetInstall is a good option.

The entire installation system is under overhaul and has seen a lot of changes over the last week.  This will continue for... likely another few days to a week before things settle down a little across all the different installation methods.

Thanks again for testing!

Installation issues / Re: 12.04 31133/31187/31214
« Last post by phenigma on August 26, 2015, 06:15:54 am »
Thanks for the feedback.  Sorry for that.  I'll see if I can figure out what I did that caused that  ::)

Developers / Re: Slow and steady ... moving from Trac to Gitlab
« Last post by phenigma on August 26, 2015, 06:14:08 am »
I think this is a great idea... once I understand step one of git.   :o  I think we are still at the initial goal of getting most of svn migrated (at least the current stuff).  I'm not sure yet if any one of us has even tried to clone the git repo...  heh.  That aside I am setting up a new builder to try and migrate our existing build scripts from svn to git.  mkbrown perhaps you want to get involved a little bit more at the early stages here and take the lead on developing a workflow wiki page for git.  I for one could benefit from any additional knowledge I can get my hands on.

Pages: 1 ... 4 5 [6] 7 8 ... 10