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

Reply
 
Old July 30th, 2007, 11:21 AM   #11
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

Archive is corrupt (won't open). Didn't notice you'd uploaded until now. In the DownloadButton section are you need to:
system("rm -rf ads-trackers-and-bad-pr0n.gz");
system("rm -rf nipfilter.dat.gz");
Since you're moving the folders without cleaning up.
__________________
IQ, when aggregated, follows Ohm's law.

Unixlord is offline   Reply With Quote
Old July 30th, 2007, 11:20 PM   #12
Professional Member

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

Sorry Ill fix this soon, Im adding some exception checks. Expect more changes for the next time I upload (Ill keep my code commented). Thanks for noticing that.

I dont see any problems there, you should only get that kind of error when wget wont finish download, and when it tries to clean up you may get that message, Im not moving folders, im moving only the files we extract with gzip, bzip or zip, try those commands manually they wont leave the .bz2, .gz or .zip compressed files only the extracted file.

Edit: I reduced the number of random pointers, now its only using 3 pointers for reading / writing files. Just made it more readable.

Last edited by xiaomhome; August 3rd, 2007 at 06:11 PM..
xiaomhome is offline   Reply With Quote
Old July 31st, 2007, 12:43 AM   #13
Extreme Member
 

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

Keep up the good work guys Cheers
__________________
"People who live in glass houses shouldn't cast stones"
Mac Daddy is offline   Reply With Quote
Old August 1st, 2007, 08:17 PM   #14
Professional Member

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

I just added some Exception checks (too much thing to mention here, check it by yourself in the source code) to avoid problems when handling the lists, I removed the DownloadButton in the Control Panel tab since its now deprecated by the Update button in the Lists Settings tab, but if it looks worst than before tell me, or if you want it back by yourself edit the source code, uncomment the downloadbutton lines (dont forget to remove the spacer that is taking downloadbutton's place). If you find any english errors e-mail me or PM me here (Im sure you'll find).

Ill be adding some kind of logger reader soon, so if you want to check what is being blocked or whats going on with moblock type this in console: tail -f /etc/MoBlock/MoBlock.log All suggestion are welcome, just dont ask impossible things like adding a Cassino Online tab.

For more information look README or INSTALL files located in the extracted source's folder. Remember always to run the program as root, ill be adding some kind of root check soon. I dont recommend new users to use beta programs, but it seems this one is better than the first release.

Last edited by xiaomhome; August 3rd, 2007 at 06:11 PM..
xiaomhome is offline   Reply With Quote
Old August 1st, 2007, 10:35 PM   #15
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:
Remember always to run the program as root, ill be adding some kind of root check soon.
Haven't tried this but is:
system("gksu");
Upon initial run not viable? Ah I'm being lazy better edit and try it out myself. Don't worry about the cleanness of the code. I've seen coding that would make you weep, refuse to eat minced meat for a year and dye your hair orange.
__________________
IQ, when aggregated, follows Ohm's law.

Unixlord is offline   Reply With Quote
Old August 2nd, 2007, 02:24 AM   #16
Professional Member

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

No that would not work, it would be just a single console output, would only work for one command, and if i use it in every system() it would annoy the user pretty much (gnome keyring is broken, and it wont work with kde, kde uses kdesu).
xiaomhome is offline   Reply With Quote
Old August 2nd, 2007, 01:11 PM   #17
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 that goes back to the heavy script-like reliance on system commands. Only once would suffice for Gnome. Sorry I forgot about KDE users . Maybe the answer lies within the nVIDIA driver script (That too checks for root privileges)? Got any KDE equivalents? The worst one could do is a big notice to run as root if the user isn't root.
Quote:
if i use it in every system() it would annoy the user pretty much
Following Microsoft's lead in annoying the user to death.
__________________
IQ, when aggregated, follows Ohm's law.

Unixlord is offline   Reply With Quote
Old August 2nd, 2007, 10:55 PM   #18
Professional Member

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

No nVidia drivers dont check for root privileges, but if you want to use its xorg config generation through console or CP you'll need root privileges. If you are running the CP as normal user and try to add a resolution with the CP the new xorg configuration wont be saved - no one noticed that...
I found a way to make the program unusable for non-root users, when you try to run it as normal user the program wont launch, but if you have root privileges it will. I'll be posting here soon, maybe tomorrow, Im still doing some tests.
xiaomhome is offline   Reply With Quote
Old August 2nd, 2007, 11:49 PM   #19
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

I actually meant the nVIDIA installer. If you're not root it shows a dialog box asking you to run it as root and exits when you press OK. Unfortunately while you can see the initial procedures that part is binary BS.
Quote:
I found a way to make the program unusable for non-root users, when you try to run it as normal user the program wont launch, but if you have root privileges it will.
That's better than launching but not working but not as good as asking for the password.
__________________
IQ, when aggregated, follows Ohm's law.

Unixlord is offline   Reply With Quote
Old August 3rd, 2007, 12:32 AM   #20
Professional Member

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

Quote:
Originally Posted by Unixlord View Post
I actually meant the nVIDIA installer. If you're not root it shows a dialog box asking you to run it as root and exits when you press OK. Unfortunately while you can see the initial procedures that part is binary BS.

That's better than launching but not working but not as good as asking for the password.
Ill make an installer that will create shortcuts, thats just to avoid user from running it from console without root privileges (since the console is the only way to see the download progress for now...).

nVidia drivers for linux are a problem to install too, but when you are installing it you always will need root privileges, since you need to shutdown (X) (G) (K) dm and acess to /usr/src/linux folder to compile the modules on your kernel.

Edit: I removed the old betas, the new beta with the root check is here.

Edit2: Read the first post. The lastest beta is there.

Last edited by xiaomhome; August 27th, 2007 at 08:36 PM..
xiaomhome is offline   Reply With Quote
Reply

Bookmarks


LinkBacks (?)
LinkBack to this Thread: http://www.ngohq.com/general-software-and-applications/11532-easy-moblock-for-linux.html
Posted By For Type Date
MoBlockGUI deb - Ubuntu Forums This thread Refback November 16th, 2009 02:44 PM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On







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