Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Govo

Pages: 1 ... 3 4 [5] 6 7 ... 14
Developers / Re: PHP to execute sudo command
« on: August 27, 2015, 11:13:31 pm »
Hi phenigma

No problem at all, I will try and hook up in IRC, it would great if the LMCE users went this, I am offer this for free when I am finish.

What I got done to day is added in the categories to database  and then allow them to be enabled through buttons,  tomorrow I will finish this section off so that it updates the DSG. this was  huge file to get in!

Check this short video clip.

I have also found away to disable filtering and enable it again, but it brings me back visudo to get the command to executed, I go at that tomorrow.

Time to call it night for now  !

Cheers Gov

Developers / Re: PHP to execute sudo command
« 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!


Developers / Re: PHP to execute sudo command
« on: August 25, 2015, 01:57:49 pm »
Ah spot on, done some research last night and got it to work, just need to figure out why the page returns an error of no response back from server.

other than that, the project goes. on.

I can now update  blocked sites, added exceptional Ip address and allow  exceptional file types such as .mp3 .zip.

Thanks for the advice Posde much appreciated


Developers / PHP to execute sudo command
« on: August 24, 2015, 10:38:21 pm »
Hi Folks

Working on a little project for dansguardian and squid3, mostly dansguardian,  but have ran into a problem,  is there away for PHP to execute sudo command.

I need to execute  /etc/init.d/dansguardian restart using PHP, I have seen the command in some php files in lmce-admin, but I just  can't get it to work. do I need to include some files belonging to LMCE?

Once I get pass this part my project will rolling, here is a quick video of what I have achieved so far

I have made some changes since this video..etc added in a delete button to remove blocked sites.

Any help would be great,

Installation issues / Re: Issue with 12.4 video play back of mp4
« on: August 17, 2015, 09:18:41 pm »
I never had an issue with the play back of these files on 8.10, I'll do some home work,

Do you know of any other sites other then yifi !


Installation issues / Re: Volume levels drop on MD
« on: August 02, 2015, 06:59:03 pm »

This seems to have resolved itself on the last update,

the command was ssh DCErouter  - ssh moon(DEVICE) - alsamixer  --then increase volume.

but its working now .

Installation issues / Re: Issue with 12.4 video play back of mp4
« on: August 02, 2015, 06:15:23 pm »

This is the best I can do, 50MB

I you wanted hole film you can grab a copy at yifi movies .


Installation issues / Re: Volume levels drop on MD
« on: July 26, 2015, 02:27:46 pm »
My apologizes, just trying to keep track of my issues in one place. I see the topic you raised

Kind regards

Hi Alblasco1702

Completed the upgrade.

There is  no option to port_forward and the only boxes that allow input is  source port, Limit to IP*

Destination Port and Destination IP are not editable and do not allow you input your data, such as the Ip address .

Please advise

Kind regards

Installation issues / Firewall issues (was: Volume levels drop on MD)
« on: July 19, 2015, 01:48:44 pm »
Just going to jump on the back of my topic.

FIREWALL is not posting to mysql, when I added a new port forward it does not save.

Please advise.

Kind regards
LMCE 12.4

Installation issues / Re: Volume levels drop on MD
« on: July 17, 2015, 01:36:41 pm »

Installation issues / Volume levels drop on MD
« on: July 15, 2015, 11:29:57 pm »
Hi folks

Don't know if this is an bug, but every time I power on my MD  I have to increase the volume through ssh

So its clear, my MD'S work with with 8.10 prefect I am currently running 12.4.

I also don't want to come across a moan, but I am testing and reporting issues back to that we can all benefit.

As every one's hard ware is different.

The volume was increase on the initial setup under Av wizard  to 100%, but every time I boot up the MD the volume is low and I have to ssh into MD and up it.

let me know  if there is a command I can run to report the issue in more detail.



Installation issues / Re: Remotes behaving badly.
« on: July 15, 2015, 11:14:40 pm »
Hi Folks

Just wanted  to say I was having the issue for 12.4, and above post resolved the issues.

The issues I  had it was skipping every second title in the movie list, and I had to press up and down several times, before it  would stop on the correct title.

also when pressing next on the remote, it would not skip to the next 20 titles, I had to press down until i reached the last title to get to the next 20 titles.

follow above post and it worked prefect now ....

still having issues with certain play back of mp4 video's, but hey just have to wait for a response   back from Thom!

   bustype : BUS_USB
   vendor  : 0x1784
   product : 0x1
   version : 0
   name    : "Media Center Ed. eHome Infrared "
   phys    : "usb-0000:00:1d.1-1"
   bits ev : EV_SYN EV_KEY EV_MSC EV_REP

   bustype : (null)
   vendor  : 0x0
   product : 0x0
   version : 0
   name    : "MCE IR Keyboard/Mouse (mceusb)"
   phys    : "/input0"


Installation issues / Re: Owncloud loses LMCE configuration.
« on: July 13, 2015, 08:16:59 pm »
Hi Folks

Thanks for the reply, downgrade completed, every is working OK.

there is a typo error in   chmox +x ./

It  should be  chmod +x ./

Can this be edited in wiki page too!

Hey were only human!

Thanks again .

Installation issues / Re: Owncloud loses LMCE configuration.
« on: July 13, 2015, 12:20:18 pm »
Hi polly

If I understand you correctly, you want me to downgrade to 8.0.3

The owncloud of 8.1 is working see below sceen shot. its just missing the LMCE configuration as stated above.

anyways, I will downgrade to see if it works.



Pages: 1 ... 3 4 [5] 6 7 ... 14