JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 14.08.2010, 02:16
zukacoco
Guest
 
Posts: n/a
Default JD Shutdown in Ubuntu 10.04

Hi!. Could anyone tell me how to shutdown JDownloader in Ubuntu 10.04? I have enabled the plugin, but JD never turn off the computer. I know I can do it if I run JD as root (sudo ./jd.sh), but I want to be able to do it without running JD as root. Is this posible?

Thanks.

Last edited by Jiaz; 18.08.2010 at 13:32.
Reply With Quote
  #2  
Old 14.08.2010, 14:40
zitmar
Guest
 
Posts: n/a
Default

Hi,
I submitted a patch to solve this,
http://board.jdownloader.org/showthread.php?t=14917
http://svn.jdownloader.org/issues/2220

Last edited by zitmar; 14.08.2010 at 16:23.
Reply With Quote
  #3  
Old 18.08.2010, 13:32
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

you need yourself to sudoers
http://jdownloader.org/knowledge/wik...tdown?s=lng_en

running jd as root is BAD BAD IDEA
__________________
JD-Dev & Server-Admin
Reply With Quote
  #4  
Old 22.08.2010, 13:52
kmiller
Guest
 
Posts: n/a
Default

Hi,

how do I install the patch from Zitmar?
thanks
Reply With Quote
  #5  
Old 23.08.2010, 20:24
kmiller
Guest
 
Posts: n/a
Default

Would be nice to know, I have no clue how to get this to work,
automatic shutdown doesn't work for me in Ubuntu.
Reply With Quote
  #6  
Old 23.08.2010, 20:44
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

you have to setup your /etc/sudoers right that the shutdown command does not need password entering.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #7  
Old 12.10.2010, 15:11
monogato
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Jiaz View Post
you have to setup your /etc/sudoers right that the shutdown command does not need password entering.
Ok, but how do you exactly do that?

Last edited by monogato; 12.10.2010 at 15:44.
Reply With Quote
  #8  
Old 13.10.2010, 15:07
CameronPoe
Guest
 
Posts: n/a
Default

Yes, how do you exactly do that?! Some new Linux users (like me) have no clue about it and would appreciate if someone explains it simply (step by step) how to install that JDShutdown.patch and explain what to exactly do with the /etc/sudoers?
Reply With Quote
  #9  
Old 13.10.2010, 16:48
monogato
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by CameronPoe View Post
Yes, how do you exactly do that?! Some new Linux users (like me) have no clue about it and would appreciate if someone explains it simply (step by step) how to install that JDShutdown.patch and explain what to exactly do with the /etc/sudoers?
I got it!

Enter "sudo visudo"
add the line "%admin ALL = NOPASSWD: /sbin/shutdown"
save it (normaly with control+O and enter)

regards!!! and sorry for my English, XD.
Reply With Quote
  #10  
Old 13.10.2010, 20:54
CameronPoe
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by monogato View Post
I got it!

Enter "sudo visudo"
add the line "%admin ALL = NOPASSWD: /sbin/shutdown"
save it (normaly with control+O and enter)

regards!!! and sorry for my English, XD.
I have add:
%admin ALL = NOPASSWD: /sbin/shutdown
IT IS NOT WORKING!
then I tried different:
%users ALL= NOPASSWD: /sbin/shutdown
and then replaced with:
users ALL=NOPASSWD:/sbin/shutdown
and even:
quinn ALL= NOPASSWD: /sbin/shutdown -h now
(quinn is my user name)
AND THEY ALL NOT DOING THE JOB! :(
In the console window after 60 seconds auto-shutdown JDownloader asks for root password and even if I enter root's password it still gives me this line:
ShutDownHook: normal shutdown event, nothing to do.
...and it really does nothing beside closing itself :(
What do I do wrong? PLEASE HELP!!!!!!
Reply With Quote
  #11  
Old 15.10.2010, 01:49
CameronPoe
Guest
 
Posts: n/a
Default

I've solved it !!!!!!!!!!
In openSuSE 11.3 in order to avail of JDShutdown plug-in in JDownloader you have to:

1. copy 'shutdown' file from catalog /sbin to the /home/quinn/bin catalog (where 'quinn' is my own user name so yours may be different) ...but remember it has to be coppied into 'bin' sub-catalog not just user's home catalog...
and then

2. you have to enter this new line:

quinn ALL= NOPASSWD: /home/quinn/bin/shutdown

just under these two lines:

# User privilege specification
root ALL=(ALL) ALL

in the 'sudoers' file which is in the /etc catalog
(where two times 'quinn' is the name of my own user name so instead of them you put your own user name ofcourse)
So, inside my sudoers file (part of it) it looks like:
...

# User privilege specification
root ALL=(ALL) ALL
quinn ALL= NOPASSWD: /home/quinn/bin/shutdown

...
It is vital not to put this '%' sign at the beginning of entered line because otherwise automatic shutdown in JDownloader won't work!
And remember to save the change you made in that sudoers file
By the way you can do this change in the sudoers file with KWrite program but only if you run it as root
or instead you can open console and type commands:
su
(your own root's password)
visudo
...and then hit 'insert' key to be able to edit and enter that new line and after you type the new line as explained above you hit 'esc' key to leave editing and then press and hold the 'shift' key and while pressing it down hit the 'z' key twice to save and leave visudo editor. Now you can close the console and finally avail of JDShutdown plug-in in JDownloader
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

All times are GMT +2. The time now is 06:29.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.