JDownloader Community - Appwork GmbH
 

Go Back   JDownloader Community - Appwork GmbH > English Support > General Discussion
Reply
 
Thread Tools Display Modes
  #1  
Old 26.09.2010, 17:16
jule_
Guest
 
Posts: n/a
Default [ubuntu 10.04] jdownloader requires sudo to start

I am running JDownloader on my Ubuntu 10.04 machine. JDownloader was installed via Synaptic Package Manager using the **External links are only visible to Support Staff****External links are only visible to Support Staff** lucid main repository.

I can not run JDownloader as a non-root user.

When I type "jdownloader" in the terminal I get:

Code:
10 9/26/10 5:01:51 PM - INFO [jd.Main(main)] -> Start JDownloader
JAR
10 9/26/10 5:01:51 PM - FINEST [jd.utils.JDUtilities(getJDClassLoader)] -> Create Classloader: for: /home/jessica/.jdownloader
10 9/26/10 5:01:52 PM - FINEST [jd.JDClassLoader(<init>)] -> rootDir:/home/jessica/.jdownloader
/home/jessica/.jdownloader
 file:/home/jessica/.jdownloader/jd
10 9/26/10 5:01:52 PM - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /home/jessica/.jdownloader/plugins/JDExternInterface.jar
10 9/26/10 5:01:52 PM - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /home/jessica/.jdownloader/plugins/JDWebinterface.jar
10 9/26/10 5:01:52 PM - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /home/jessica/.jdownloader/plugins/JDPackageCustomizer.jar
10 9/26/10 5:01:52 PM - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /home/jessica/.jdownloader/plugins/JDUnrar.jar
10 9/26/10 5:01:52 PM - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /home/jessica/.jdownloader/plugins/JDChat.jar
10 9/26/10 5:01:52 PM - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /home/jessica/.jdownloader/plugins/JDShutdown.jar
10 9/26/10 5:01:52 PM - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /home/jessica/.jdownloader/plugins/JDHJMerge.jar
10 9/26/10 5:01:52 PM - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /home/jessica/.jdownloader/plugins/JDHTTPLiveHeaderScripter.jar
10 9/26/10 5:01:52 PM - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /home/jessica/.jdownloader/plugins/JDFolderWatch.jar
10 9/26/10 5:01:52 PM - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /home/jessica/.jdownloader/plugins/schedule.jar
10 9/26/10 5:01:52 PM - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /home/jessica/.jdownloader/plugins/JDRemoteControl.jar
10 9/26/10 5:01:52 PM - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /home/jessica/.jdownloader/plugins/JDLangFileEditor.jar
10 9/26/10 5:01:52 PM - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /home/jessica/.jdownloader/plugins/JDInfoFileWriter.jar
10 9/26/10 5:01:52 PM - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /home/jessica/.jdownloader/plugins/JDGrowl.jar
10 9/26/10 5:01:52 PM - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /home/jessica/.jdownloader/plugins/JDTray.jar
10 9/26/10 5:01:52 PM - FINER [jd.JDClassLoader(<init>)] -> Jar file loaded: /home/jessica/.jdownloader/JDownloader.jar
[...] (skipped other Look and Feel entries)
10 9/26/10 5:01:53 PM - FINER [jd.JDClassLoader(<init>)] -> Look and Feel JAR loaded: /home/jessica/.jdownloader/libs/laf/syntheticaOrangeMetallic.jar
and then it holds and nothing happens.

When I go "sudo jdownloader" the program starts normally and after the

Code:
10 9/26/10 5:01:53 PM - FINER [jd.JDClassLoader(<init>)] -> Look and Feel JAR loaded: /home/jessica/.jdownloader/libs/laf/syntheticaOrangeMetallic.jar
comes

Code:
10 9/26/10 12:39:18 AM - FINER [jd.config.DatabaseConnector(<init>)] -> Loading database
10 9/26/10 12:39:18 AM - FINER [jd.config.DatabaseConnector(checkDatabaseHeader)] -> Checking database
10 9/26/10 12:39:19 AM - INFO [jd.Main(main)] -> init Splash
But I don't want to run JDownloader as root. I am guessing it is some kind of permission problem, but I am quite new to Linux so I have no idea where to start looking.

Can anybody give me a hint or provide a solution?


tia,

jule_
Reply With Quote
  #2  
Old 27.09.2010, 11:38
remi
Guest
 
Posts: n/a
Default

You're right. For security reasons it's better not to run jD as root.

I'm not a linux expert, but I've 2 suggestions for you :-

1) If you installed jD with root/su privileges, I would re-install it without root/su privileges.

2) Try to use a theme other than "syntheticaOrangeMetallic" and see what that gives.
Reply With Quote
  #3  
Old 30.09.2010, 21:13
jule_
Guest
 
Posts: n/a
Default

remi, thanks for the reply, although it does not really help me.

I installed JDownloader as regular user via the Ubuntu GUI (of course I had to enter the superuser-password to open the Update Manager).

And I set "Synthetica Standard" as style. I guess syntheticaOrangeMetallic.jar is just the *last* theme loaded, and not the *active* one.


Can somebody tell me where in the filesystem "jd.config.DatabaseConnector(<init>)" is trying to load the database from? Maybe it has a permission problem there.


Running JDownloader as root is quite annoying, because the files it downloads and extracts have root ownership and permissions, so I can't move or delete them with my regular user


More hints please?
Reply With Quote
  #4  
Old 01.10.2010, 09:59
remi
Guest
 
Posts: n/a
Default

Use the "chmod" command? See "http://en.wikipedia.org/wiki/Chmod".
Reply With Quote
  #5  
Old 01.10.2010, 13:06
jule_
Guest
 
Posts: n/a
Default

Thanks, remi, I am familiar with the chmod command.

My question was where in the system the database is. In other words, I do not know what to chmod or chown.


br,

jule_
Reply With Quote
  #6  
Old 01.10.2010, 13:49
remi
Guest
 
Posts: n/a
Default

The database is in the jD\config folder. What about the recursive (-R) application of chmod?
Reply With Quote
  #7  
Old 06.10.2010, 23:58
jule_
Guest
 
Posts: n/a
Thumbs up [solved] [ubuntu 10.04] jdownloader requires sudo to start

All the files in my /home/.jdownloader directory were owned by root (and not by my regular user). I did a "sudo chown -R *" on all files, now they are owned by my regular user but I still got the same error when starting jDownloader.

When I "sudo jdownloader" the "database.log" and "database.properties" in the config folder are recreated with the owner root.

Anyways, I uninstalled/purged jdownloader and after a re-install via Synaptic everything works as it should.


-> solved. (edit: how do I add the [solved] prefix to the topic?)

Last edited by jule_; 07.10.2010 at 00:00. Reason: how do I add the [solved] prefix to the topic?
Reply With Quote
  #8  
Old 30.10.2010, 14:57
remi
Guest
 
Posts: n/a
Default

I'm glad you solved it.

Adding a [solved] "tag" is the privilege of a few official jD developers/supporters.
Reply With Quote
Reply


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 05:36.
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 - 2024, Jelsoft Enterprises Ltd.