#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
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. |
#3
|
||||
|
||||
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 |
#4
|
|||
|
|||
Hi,
how do I install the patch from Zitmar? thanks |
#5
|
|||
|
|||
Would be nice to know, I have no clue how to get this to work,
automatic shutdown doesn't work for me in Ubuntu. |
#6
|
||||
|
||||
you have to setup your /etc/sudoers right that the shutdown command does not need password entering.
__________________
JD-Dev & Server-Admin |
#7
|
|||
|
|||
Ok, but how do you exactly do that?
Last edited by monogato; 12.10.2010 at 15:44. |
#8
|
|||
|
|||
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?
|
#9
|
|||
|
|||
Quote:
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. |
#10
|
|||
|
|||
Quote:
%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!!!!!! |
#11
|
|||
|
|||
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 |
Thread Tools | |
Display Modes | |
|
|