Go Back   NGOHQ.com / Software / General Software and Applications

Reply
 
Old July 19th, 2007, 02:41 AM   #1
Professional Member

Posts: 426
CPU: 1
GPU: 1
M/B: 1
RAM: 1
PSU: 1
Default EasyBlock Interface for linux

All you need is untar, ./configure, make. There is no need of make install, after make command just copy the binary located in /where/you/untared/src anywhere. In order to use it you'll need root privileges, because the program will need iptables and acess to /.
(Im already working on a installer)

MoBlock Description: It replaced peerguardian linux, its used to block ads and p2p.

Important: All the credits goes to peerguardian developers / moblock, all my program does is configure moblock scripts and arrange its folder.
You can find all moblock files / scripts here /usr/sbin/MoBlock and your lists / block logs here /etc/MoBlock.

If you want to add more lists, download them here: B.I.S.S. Forums Downloads
After downloading, untar and add them in this file: /etc/MoBlock/Guarding.p2p

(THIS IS NOT NEEDED ANYMORE IN THE BETA VERSIONS SINCE YOU CAN CHANGE THE LISTS YOU WANT TO USE)


I tryed to keep my code very simple, so even if you are a beginner at programming you'll be able to read / modify it to fit your needs.

What will you need:
Iptables; netfilter/iptables project homepage - The netfilter.org project
wxWidget 2.8.3 or better; wxWidgets
wget; GNU Wget
coreutils; Coreutils - GNU core utilities
kernel 2.6.9 or better ( 2.6.18 or better recommended) (if you built your own kernel it may require additional configuration); The Linux Kernel Archives
gcc 3.4.2 or better; GCC, the GNU Compiler Collection - GNU Project - Free Software Foundation (FSF)
make; GNU Make - GNU Project - Free Software Foundation (FSF)
unzip, zip; Info-ZIP Home Page

Dont worry most of this ( if not all ) can be downloaded / installed with your distro package management tools.

IMPORTANT: MOBLOCK WONT WORK WITH 2.6.23 OR NEWER KERNELS
Im looking for a solution for it, in the meantime avoid using moblock with those kernels.

Bug report can be found here: https://developer.berlios.de/bugs/?f...&group_id=2509

Testing MoBlock:
-Start EasyBlock Interface, download / update your lists and start MoBlock
-Open a console window
-Type in the console window "tail -f /etc/MoBlock/MoBlock.log" to watch what is going on with MoBlock - What is it blocking, internal errors, etc..
-Open another console window or a new console tab
-In the second console type "ping www.riaa.com" or "ping terra.com.br" (make sure you have the AD lists selected) --- Or open your browser and enter this link: RIAA or www.terra.com.br;
-Just watch them getting blocked in the MoBlock log file in your first open console, if its not blocking anything or it just throwed an error read it carefully to see what are you missing.
-If you cant find a solution for your problem post the problem.

It should work on any distro, just give it a try.
Any feedbacks or suggestions are welcome.

Remember using MoBlock is not 100% safe, nothing is safe.
Use it at your own risks.

UPDATE
Moving project to sourceforge...
http://sourceforge.net/projects/easyblockinterf/

You can find a unstable beta version there, the new version is working somewhat faster using more native code rather than bash commands. (I'm still replacing the native linux programs with native code functions, this should speed up things and give me more control on what is happening.)

My main problems now:
- Lack of time - Im only working on this on the weekends
- Bluetack files are getting new mirrors, so I have to keep refreshing the code to keep up with the links in the right place.
- MoBlock hasnt released a version with a fix for the 2.6.23 kernel bug, Im going to fix it myself, but I'll need someone that knows shell scripting very well (it doesnt matter if its bash or sh, but sh should be better).
Attached Thumbnails
Easy MoBlock for linux-emb.png  

Last edited by xiaomhome; April 12th, 2008 at 02:19 AM..
xiaomhome is offline   Reply With Quote
Old July 19th, 2007, 03:16 AM   #2
Stuck in "April 1st"

Posts: 3,199
CPU: Intel E8400
GPU: Geforce 8800GT
M/B: Asus Rampage Formula
RAM: G.Skill 2x2GB PI Black
PSU: PCP&C Silencer 750w
Default

Just downloaded it. I'm looking forward to dissecting the source code.
__________________
IQ, when aggregated, follows Ohm's law.

Unixlord is offline   Reply With Quote
Old July 24th, 2007, 04:29 AM   #3
Newbie

Posts: 5
CPU: e6600 C2duo
GPU: 2x 8800GTSOC
M/B: Fata1ity FP-I9 SLI
RAM: 4GB Super Talent 667
PSU: 800W
Default

My hats off to you on this awesome app. You may want to post this on Phoenixlabs and Ubuntu Forums as well. I see no reason why it would not work on any other distro.
opieum is offline   Reply With Quote
Old July 24th, 2007, 05:40 AM   #4
Professional Member

Posts: 426
CPU: 1
GPU: 1
M/B: 1
RAM: 1
PSU: 1
Default

Hi opieum,
Im happy to see you liked my application, if you want to tell other people about this go ahead, but if someone really got interested in this kind of program they would have already found it. I would not feel confortable in any other forum, because of my incomplete or informal english.

Yes it should work in any other distro, i think the main problem is getting dependencies up and running to compile the program.
xiaomhome is offline   Reply With Quote
Old July 24th, 2007, 12:36 PM   #5
Stuck in "April 1st"

Posts: 3,199
CPU: Intel E8400
GPU: Geforce 8800GT
M/B: Asus Rampage Formula
RAM: G.Skill 2x2GB PI Black
PSU: PCP&C Silencer 750w
Default

Well I've found a bunch of minor spelling/grammer mistakes in the mouseover texts. I haven't had time for a proper look at the code but form what I've seen it's very clean and just dying to be tweaked. Are you interested in expanding the program to be a complete config tool?
__________________
IQ, when aggregated, follows Ohm's law.

Unixlord is offline   Reply With Quote
Old July 24th, 2007, 12:41 PM   #6
Extreme Member
 

Posts: 6,005
CPU: E6550
GPU: Gainward Bliss 9600GT
M/B: GA-X38-DQ6
RAM: 4G OCZ Reaper X DDR2
PSU: Corsair CMPSU-520HX
Default

Any editing you guys need help with as far as spelling and grammar let me know if I can help
__________________
"People who live in glass houses shouldn't cast stones"
Mac Daddy is offline   Reply With Quote
Old July 24th, 2007, 06:25 PM   #7
Professional Member

Posts: 426
CPU: 1
GPU: 1
M/B: 1
RAM: 1
PSU: 1
Default

Quote:
Originally Posted by Unixlord View Post
Well I've found a bunch of minor spelling/grammer mistakes in the mouseover texts. I haven't had time for a proper look at the code but form what I've seen it's very clean and just dying to be tweaked. Are you interested in expanding the program to be a complete config tool?
Yes, I would like to expand the program, but i think there is no need of tweaking more the code, although i can reduce it for the next version. The last thing i want is make it more complicated with threads, so im avoiding it. I was thinking in adding a log viewer, but since there are no multiple threads user would have to click a refresh button to see the lastest events in the log file, what do you think about it?
Thanks for you Unixlord and Mac Daddy for the answers.

Edit: One question, How to ensure that the user is running the app as root?

Last edited by xiaomhome; July 24th, 2007 at 09:22 PM..
xiaomhome is offline   Reply With Quote
Old July 25th, 2007, 01:19 AM   #8
Stuck in "April 1st"

Posts: 3,199
CPU: Intel E8400
GPU: Geforce 8800GT
M/B: Asus Rampage Formula
RAM: G.Skill 2x2GB PI Black
PSU: PCP&C Silencer 750w
Default

Quote:
How to ensure that the user is running the app as root?
I'm not sure what you mean by ensure. Do you mean to stop the user from running as anything other than root or just making things easier?
Well this can be looked at from a number of angles. If the app is going to remain as source a simple readfirst.txt can warn the user to run as root. If you create an app launcher it's as simple as adding "gksu" to the head of the command. I'm not sure I've answered your question but I was thinking along the lines: A simple installation script that compiles the source and generates a launcher with an icon that asks for the root password (Since the app is about user friendliness because it's a gui to do what you would normally do via text).
__________________
IQ, when aggregated, follows Ohm's law.

Unixlord is offline   Reply With Quote
Old July 25th, 2007, 02:45 AM   #9
Site Staff
 

Posts: 13,453
CPU: Intel Core i7-965
GPU: ATI Radeon HD 5770
M/B: Intel DX58SO
RAM: Mixed
PSU: X-Spice 630w
Default

Well done. This thread has been sticked, and I will have a word with some guys in other sites, maybe they will like it too. You can host it here via the attachment tab, Rapidshare sucks.
Regeneration is online now   Reply With Quote
Old July 25th, 2007, 02:46 AM   #10
Professional Member

Posts: 426
CPU: 1
GPU: 1
M/B: 1
RAM: 1
PSU: 1
Default

Quote:
Originally Posted by Unixlord View Post
I'm not sure what you mean by ensure. Do you mean to stop the user from running as anything other than root or just making things easier?
Well this can be looked at from a number of angles. If the app is going to remain as source a simple readfirst.txt can warn the user to run as root. If you create an app launcher it's as simple as adding "gksu" to the head of the command. I'm not sure I've answered your question but I was thinking along the lines: A simple installation script that compiles the source and generates a launcher with an icon that asks for the root password (Since the app is about user friendliness because it's a gui to do what you would normally do via text).
Friendliness thats the point, sure I could do that but sadly I dont know how to edit the makefile(Im used to Windows when programming - Maybe i should make an installaler for it instead?). Sorry for my misinformation - and yes the application MUST be run as root since it will need acess to iptables and /usr/sbin + /etc folders right to write.

Edit: Sorry i didnt see your reply Regeneration: Thank you, it would be great. Ill attach it here soon.
Edit2: I cant attach files with bz2 extension, so i renamed it .zip.
Edit3: New beta im testing, works on opensuse and gentoo

Last edited by xiaomhome; July 31st, 2007 at 02:02 AM..
xiaomhome is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off







eXTReMe Tracker

Copyright © NGOHQ.com - All rights reserved
Reproduction in whole or in part in any form or medium
without written permission of the site's owners is prohibited.
Powered by vBadvanced and vBulletin from Jelsoft
Copyright © 2000-2007 Jelsoft Enterprises Limited
Search Engine Friendly URLs by vBSEO 3.3.2

Contact Us - Archive - NGOHQ.com - NGOHQ.org - NGOHQ.net - Disclaimer - Top