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 2 3 [4] 5 6 ... 14
46
Installation issues / Re: Issue with 12.4 video play back of mp4
« on: December 13, 2015, 02:22:54 pm »
 :) :) :) :) :) :) I've just rebooted the core and now the file is playing, make I thank my angels and the good lord above!

Thanks  phenigma for your help!

Cheers
Gov

47
Installation issues / Re: Issue with 12.4 video play back of mp4
« on: December 13, 2015, 02:13:08 pm »
Hi phenigma

Thanks for the reply, while I waited for the reply, I have upgraded to  14.4  snap shot LMCE-1404-20151205213931742-i386.iso

Still the same issue, I have installed mplayer, vlc player through the  lmce-admin  Software modules.

/etc/pluto/xine.conf  --> http://pastebin.com/TDrX1ict

/etc/asound.conf --> http://pastebin.com/5pkQgzgi

I will have to go through those mp4's that don't play and put them to one side for the moment unitl we can figure out why they wont play. most of my library  are mp4's

I can now test the rpi2 as a MD

Cheers
Gov


48
Installation issues / Re: Issue with 12.4 video play back of mp4
« on: December 12, 2015, 08:07:15 pm »
Hi Folks

Back at it again, using the latest snap shot of 12.4

http://linuxmce.iptp.org/snapshots/LMCE-1204-20151211114231752-i386.iso


For some reason most of my mp4 videos,  will not play on the MD

I have logged into the KDE desktop and open the video under dragon player,  dragon player asked for gstreamer0.10-ffmpeg to be installed, so I allowed it to be installed and mp4  file played perfect.

Xine player wont play the mp4 even when logged in to KDE


Boot up MD, open the same video file and now I just a get a blank screen and then it comes back to the main screen.

So I tried the below on both the MD & CORE 


sudo add-apt-repository ppa:mc3man/gstffmpeg-keep
sudo apt-get update
sudo apt-get install gstreamer0.10-ffmpeg
 AND

sudo apt-get install xine-ui libxine1-ffmpeg


Then I get
gstreamer0.10-ffmpeg is already the newest version.
The following packages were automatically installed and are no longer required:
  realpath libdmraid1.0.0.rc16 kpartx-boot archdetect-deb python-pyicu
  libdebian-installer4 kpartx rdate btrfs-tools localechooser-data apt-clone
  dpkg-repack libdebconfclient0 dmraid
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

AND

sudo apt-get install xine-ui libxine1-ffmpeg
Reading package lists... Done
Building dependency tree       
Reading state information... Done
xine-ui is already the newest version.
libxine1-ffmpeg is already the newest version.
The following packages were automatically installed and are no longer required:
  realpath libdmraid1.0.0.rc16 kpartx-boot archdetect-deb python-pyicu
  libdebian-installer4 kpartx rdate btrfs-tools localechooser-data apt-clone
  dpkg-repack libdebconfclient0 dmraid
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.



So I am now confused, it works when you are directly logged onto KDE.

Any suggestion as this command didn't work either

apt-get install --reinstall libxine2 libxine2-bin libxine2-ffmpeg libxine2-misc-plugins libxine2-plugins libxine2-x

So I am stuck with 10.4 for moment and unable to test the rpi2 for as MD

Cheers
Gov

49
Users / Has anyone tried this
« on: December 08, 2015, 01:39:02 pm »
Looking at buying one of these to use as MD

What are your taught's
 
http://www.gearbest.com/tv-box-mini-pc/pp_203674.html?vip=47996&utm_source=YGfacebook&utm_medium=WebsiteC&utm_campaign=FB1509


thanks in advance

Gov

50
Hi All
I started a little project for DansGuardian back several weeks ago to allow editing of configuration files such banned site list, exception ip list, etc.

I am looking for some testers and suggestion from the community.

The basic functions of the module is to allow editing of the configuration files without having to SSH into Linuxmce console.

The layout of the module is as followed.

A new folder called dansguardian is created inside the lmce-admin folder.

Inside of this folder contains several PHP scripts folders & two .sh files and one exported mysql  file.

On the initial setup the main index.php file checks the database to see if we have a database called dansgaurdian, If the database doesn’t exist, it will create it, and then import the exported mysql file.

Next, it checks to see if there is any IP address belonging to the MD’s in the pluto_main/ Device table and if there is any IP address, then export and import them into dansguardian/ exceptioniplist.

This check allows our entire MD’S to have full access to the internet.

The android app is just a font end to the module and allows you to easy  add and edit blocked/exceptional  ips and websites,  also  any changes made to the scripts in the back end, the app is updated on the next re-opening.

If you’re interested in testing or have any suggestion then follow the below.

You a can also see screen shots and video clips here  https://www.dropbox.com/sh/b4kwchpa153e6sr/AADbS964eH9DpuBLFCEKSON6a?dl=0

**Please note, I can't be held responsible if this back your system**.

I have  tested this on my live machine of 10.4 and it should work with 8 & 12 system, but I haven't tested it on 8.10 system.

Sudo commands maybe different on different systems.

To get started follow these instructions.
*** You must have DansGuardian & Squid3(transparent)installed first ***


Before we start, lets create a back up
SSH into your LMCE
mkdir /etc/dansguardianBACKUP
cp -r /etc/dansguardian/* /etc/dansguardianBACKUP
Check to see  if the backup is OK
cd /etc/dansguardianBACKUP
type dir  you should the files and folder then
cd
continue to install below



1.   SSH into your LMCE
2.   chown your username -R /var/www/lmce-admin
3.   cd /var/www/lmce-admin/
4.   wget http://www.woodart.ie/dansguardian.tar
5.   tar -xzf dansguardian.tar
6.   Check to see if the folder was extracted and created type dir
7.   you will see a folder called dansguardian in the lmce-admin folder.
8.   Type cd
9.   To ensure the folder and files is writable type
10.   chown your username -R /var/www/lmce-admin/dansguardian/
11.   type cd
12.   The Below command copies the scripts to enable and disable filtering
13.   cp /var/www/lmce-admin/dansguardian/setupfiles/*.sh /usr/pluto/bin/
14.   visit http://192.168.80.1/lmce-admin/dansguardian/index.php OR  http://dcerouter/lmce-admin/dansguardian/
15.   You should get all systems good to go if the install went correctly
16.   Download the android app from here https://www.dropbox.com/s/s1yatre9iv7x6pq/LMCE.apk?dl=0


Warning Note:
if you are testing the filter by categories do not enable the categories that have a red warning.

If you have installed the blacklist correctly you will have a green tick against the each category.
 
This green tick tells you are good to enable.

If you enable a red warning dansguardian won't restart  and all internet will be down and you will have to edit the file manually and then  remove the all of the categories that were  enabled.

I use nano you may be using VI

nano /etc/dansguardian/lists/bannedsitelist

scroll down to the to the categories list  and crtl + k to cut the text  (ie nano) crtl + o to save and crtl+x to exit

restart Dans
/etc/init.d/dansguardian start or /etc/init.d/dansguardian reload

Then revisit filter by categories in the drop down menu. disable all and update Dans Guardian, other wise every time you update the file, it will hang the system because the database was not told to disable the category, and you will have to repeat the above steps.

You can see it in action by disabling the filter  and watching the log using this command  tail -f /var/log/squid3/access.log

Once disabled the log does not move or update.

any issues let me know in real time seanmcgovern626@yahoo.com or in this topic.

Cheers
Gov

51
Developers / Re: PHP to execute sudo command (CLOSED) NEW TOPIC OPEN
« on: October 08, 2015, 12:17:59 pm »
This topic is closed !

52
Developers / Re: PHP to execute sudo command
« on: October 07, 2015, 09:44:57 pm »
Will do !

53
Developers / Re: PHP to execute sudo command
« on: October 05, 2015, 09:25:46 pm »
Just posting a quick update .I now have an App working for this project.

Can anyone confirm the blacklist work? For DansGuardian.

Thanks in  advance .
Gov

54
Developers / Re: PHP to execute sudo command
« on: October 04, 2015, 11:42:29 pm »
Hi Guy's.

Back at it again this time with success, last time the exceptioniplist just wouldn't work if you updated the file with an ip address and reload the system, never less to say it was line of code in the php script that was causing the problem and when the file wrote, it wrote as Converted DOS-Formatted, so simple option was to remove the normal jazz and just write out the ip address. and she's now allowing exceptional ip's.

I have made some changes to the script as it didn't want to work with  8.10, the changes are, instead of restarting Dan's, I now have it reloading, which is a lot quicker, created a new bash script to reload Dan's  and  copy the files from /var/www/lmce-admin/dansguardian/files to /etc/dansguardian/lists/.

Now  showing the command on reload
Quote
* Reloading DansGuardian configuration...... Reloading DansGuardian configuration files. ...done.
so you can now see it loading instead of waiting 10 seconds for it to restart




Still a working process, but it's working.


Cheers
Gov


 

55
Developers / Re: PHP to execute sudo command
« on: August 31, 2015, 07:34:49 pm »
Hi Posde

Nothing out of normal shown in the DansGuardian log, expect the site is denied. see log here http://pastebin.com/nXTWtJgp

Here's a 4 minute video to review if you have the time. nothing better then a video to explain stuff.
https://www.dropbox.com/s/jkh3b710hmqhl69/Exception%20IP%20error.mp4?dl=0

Basically I have purged the DansGuardian and reinstalled it.

I change the /etc/DansGuardian/Lists  to chown www-data:root /etc/dansguardian/lists/*

Edited  bannedsitelist via nano  and added grabone.ie as a blocked site.

Restarted DansGuardian visited the site and its blocked.

Edited the exceptioniplist via nano, added my IP restarted, revisited the site and site was allowed.

I then go to my scripts to update DansGuardian to remove the IP, revisit the site and its blocked.

I enter my IP, update DansGuardian, revisit the site and it's still blocked.

As you can see I in the video, when I edited under nano  it works, and when I execute my php scripts it doesn't.

I see you are on the IRC ...are you availabe to chat.


Cheers
Gov!

56
Developers / Re: PHP to execute sudo command
« on: August 31, 2015, 10:49:12 am »
Hi Posde

Current file permissions shows  http://pastebin.com/HEz97MuQ  and when changed to  www-data for /etc/dansguardian/lists shown here http://pastebin.com/cFvWFDT0

the files get the same write permissions as root, if change www-data for /etc/dansguardian/lists/* all files have the same write permissions.

Even if you  change  it back to chown root:root /etc/dansguardian/lists/* and edit the file via nano and restart, the list does not execute.

Because you have made changes you can't undo  unless you --purge it from the system.


It's head wrecking, checking the file permissions  on the  files that worked, under Bitvise SSH, I see  they have a group ID 0 & owner ID 0 and are set to 644.

I cannot understand why DNG won't allow this file to be executed when written by www-data, www-data is in the same group as root, them only difference I see is the owner ID is 33  not  0

But as stated above, if you change it back it still doesn't work, crazy tough that the bannedsitelist executes without any issues.

Please advise if I am checking the commands right

compgen -u (shows list of users)
compgen -g (shows list of groups)
ls -la  (shows current owner of directory and file permissions)
getent group www-data (returns the below in bold)
www-data:x:33:gov,root

Is there something I am missing ???


Cheers
Gov!

57
Developers / Re: PHP to execute sudo command
« on: August 31, 2015, 12:57:09 am »
Hi Folks

I need a big  help Please :)
 
I have hit a brick wall with this project. I have spent 10 hours googling and try difference access types but have failed to understand why the exception IP List does not  execute.

Basically, the Exception IP file updates with the correct IP address and DNG restarts no errors, but if you visit the blocked website  you have no access even if you are in the exception list.

These are the options I have tried

sudo apt-get remove dansguardian --purge

reinstalled
sudo apt-get install dansguardian

Edited nano /etc/dansguardian/dansguardian.conf

Restarted, added a domain to block via nano under sudo, restarted, domain blocked, edit the exception ip list via nano under sudo, restarted  website allow.

On clean install it works, but if I run my php scripts it creates the file perfectly, but DNG does execute it.

So I decided to  add www-data to sudo group  as the files are owned by root and then made a change using chown www-data:root /etc/dansguardian/lists/exceptioniplist

restart, website still blocked. everything else works fine so far.

So I purge again for 100 hundred time,  this time  I told the dansguardian.conf to pull from /var/www/lmce-admin/dansguardian/exceptioniplist. restarted still blocked.

So I  cp  -r /etc/dansguardian/lists/exceptioniplist /var/www/lmce-admin/dansguardian restarted and it worked.

It seems to be a permission error, if you cp the from /etc/ the permissions are copied across to the /var  allowing the file to be execute.

I  have even tried  adding  it to the sudoers

%sudo ALL=NOPASSWD: /etc/dansguardian/lists/*
%www-data ALL=(root) NOPASSWD: /etc/dansguardian/lists/*

Still no Joy.

Maybe I am doing something,,,, Any help would be great as the wife is doing her nut in with no access to certain sites.

Once this  has the correct file permissions then I can move on.

So Please  Please help!   


Cheers
Gov!

58
Developers / Re: PHP to execute sudo command
« on: August 30, 2015, 02:29:05 pm »
Sneak preview of DansGuardian config file,  https://www.dropbox.com/s/ve728b7qvlfyefs/dnsg%20config%20file.mp4?dl=0

You will be able to update the configuration file in a nice rich PHP format, instead of having use  VI OR Nano  the terminal.

Cheers
Gov!

59
Developers / Re: PHP to execute sudo command
« on: August 30, 2015, 12:32:38 pm »
Hi Folks

Just given a quick update.

Quote
In the video I didn't update DansGurdian on the categories section as some of the blacklist files are missing, and in return DansGurdian won't restart as it cannot include the files.

I have updated the blacklist folder from the below url  this even and after extracting more files and folders  are missing.
http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&file=bigblacklist

Update,  I have put in check  to see if the folder exist, if the folder doesn't highlight in RED warning else give a green tick that every is OK to enable

see screen shot here https://www.dropbox.com/s/3dolzlwtweh6520/category%20warning%20.png?dl=0

Update 2
I have now added in a new section to add categories to the database, so if you are updating from http://urlblacklist.com ensure to check their live list taken from the category description file in the last build of the blacklist, if you missing some just add the name  of  the one missing, it will create it and save it as disabled by default.

screen shot here  https://www.dropbox.com/s/5er1oao9k8sv4rc/addcategory.png?dl=0


Update 3
Quote
Import MD IP address to the exception IP address from the pluto_main database.

I have now got this to import MD IP address on first setup.



Cheers
Gov!

60
Developers / Re: PHP to execute sudo command
« on: August 30, 2015, 12:11:35 am »
Hi Folks

First, I would like to say to Alblasco well done on working on the web-filter and proxy, I had a look at your php scripts and to be honest, they are way to complicated for my PHP skills, but great work tough,  I really need to understand global php verbs.!

I have done great progress in my own project, have fully understood how to execute  sudo commands in PHP, Phenigma, /usr/pluto/bin  is the correct place for .sh files, thanks for the advice.

On that Note..let me get to were  it is.

I can now disable & enable categories .ie blacklist folder,  I can disable and enable the filtering on & off for the system at the click of button, great for when you are web designing and stuff.

So the project is going so good,  with a click of a button I can

Blocked & delete websites 
Add & delete exception IP address
Add & delete exceptional file types
Add & delete  allowed websites
Enabled & disable Categories  .ie blacklist

Check out the this short video clip to  see it in action. https://www.dropbox.com/s/scxmtf8datd2t1m/enable%20and%20disable%20filters%20%20plus%20categories.mp4?dl=0


In the video I didn't update DansGurdian on the categories section as some of the blacklist files are missing, and in return DansGurdian won't restart as it cannot include the files.

I have updated the blacklist folder from the below url  this even and after extracting more files and folders  are missing.
http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&file=bigblacklist

When testing this morning I was only missing the below list , but after updating some of them are back and some of them are gone.

Adult
childcare
forums
Publicite
redirector
ringtones
Violence
virus Infected

So if anyone has a full list/backup please zip it and give me a link to download them so I can fully test it, I would be great full.


To do
Allow time access
Import MD IP address to the exception IP address from the pluto_main database.
Create an Android app for access to the site, for now the browser works well
Add login and password box.

Overall its going good and thanks for reading ...!

Gov





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