LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   launching apps in wine only works in user session not in root (http://www.linuxquestions.org/questions/linux-newbie-8/launching-apps-in-wine-only-works-in-user-session-not-in-root-757732/)

ubume2 09-25-2009 09:54 AM

launching apps in wine only works in user session not in root
 
I am trying PCLINUXOS. I am used to using Ubuntu and am the sole user.

I installed a wine app under user session in PCLINUX. In a root session the wine app files do not show up nor am I able to executive the file under root.

This is probably a basic linux question. How can I run apps (esp wine) under root, if I want to? Or the question may be why can't I?

Thanks

MS3FGX 09-25-2009 10:02 AM

You aren't supposed to be running anything as root, you are supposed to run everything through the normal user account and just use sudo for anything that requires higher permissions.

This is how Ubuntu works (in fact, Ubuntu doesn't even have the root account enabled), so it should be what you are already accustomed to.

i92guboj 09-25-2009 10:25 AM

You don't need to use root for that. You shouldn't be using root for that. If you run windows programs as root there's little point in using Linux at all.

ubume2 09-25-2009 10:54 AM

re:launching apps in wine only works in user session
 
I understand one shouldn't be in root to run apps etc. But that wasn't really my question.

I made the point moot by giving user (me) ALL root privileges.


I like to try out new distros and I have not run into one that required a separate login to configure files. Being used to Ubuntu, all I had to do was sudo. Ubuntu is still my workhorse. Windows, I use 5% of the time.

Thanks

i92guboj 09-25-2009 11:03 AM

Quote:

Originally Posted by ubume2 (Post 3696896)
I understand one shouldn't be in root to run apps etc. But that wasn't really my question.

True. But at least in my case, I am not giving anyone a driving license without first checking that s/he can drive a car, because then they come complaining about how unreliable and insecure Linux is, or what is worse, blaming me because they broke their OS doing silly things.

Quote:

I made the point moot by giving user (me) ALL root privileges.
Well, it's your box... But I think that you are just trying to imitate some other OS instead of learning how to correctly use the one at hand.

Quote:

I like to try out new distros and I have not run into one that required a separate login to configure files. Being used to Ubuntu, all I had to do was sudo.
I don't understand this paragraph at all. What files are you talking about? What are you trying to configure?

About the Wine question above: why do you want to run it as root? And, in any case, if you truly want to do so, you are going to have to provide more details. Simply a "wine doesn't work as root" tells us exactly nothing about the problem.

Open a terminal as root and run wine <whatever.exe>, then report us what the concrete problem is, what the output looks like, etc. etc. etc. We need info, we can't just guess out of thin air.

ubume2 09-25-2009 11:44 AM

re: launching apps --using linux
 
Quote:

Originally Posted by MS3FGX (Post 3696852)
This is how Ubuntu works (in fact, Ubuntu doesn't even have the root account enabled), so it should be what you are already accustomed to.

You're right. I just tried to log in to Ubuntu as root, and couldn't.

Quote:

Originally Posted by i92guboj (Post 3696901)
Well, it's your box... But I think that you are just trying to imitate some other OS instead of learning how to correctly use the one at hand.

About the Wine question above: why do you want to run it as root? And, in any case, if you truly want to do so, you are going to have to provide more details. Simply a "wine doesn't work as root" tells us exactly nothing about the problem.

Open a terminal as root and run wine <whatever.exe>, then report us what the concrete problem is, what the output looks like, etc. etc. etc. We need info, we can't just guess out of thin air.

As far as the wine app question, I guess it boils down to why does the .wine file look different in root than under user? As root, basically no apps are there. I don't necessarily want to run it in root.

Remember, this is a linux newbie forum.

As far as imitating other systems, I guess I would ask what you mean by that? Hasn't linux progressed over the years to become more user friendly? If over 15-20 years it has become more user friendly, is that imitating other systems?

If Linux hadn't progressed then it would be used by a very few devotees, and server administrators, and not really available to us part timers who like to learn new stuff. Linux is a great system as it has progressed. Hope to be able erase Windows soon.

i92guboj 09-25-2009 11:58 AM

Quote:

Originally Posted by ubume2 (Post 3696932)
As far as the wine app question, I guess it boils down to why does the .wine file look different in root than under user? As root, basically nothing is there.

The ~/.wine directory will be different for each user, and the root user is not an exception. When you run wine the first time, the ~/.wine folder is created for that user. When you install something in wine with a given user, it's installed in the ~/.wine folder of that user. So, it's not strange at all that the ~/.wine dirs of your regular user and root do not contain the same stuff.

ubume2 09-25-2009 12:41 PM

Quote:

Originally Posted by i92guboj (Post 3696942)
The ~/.wine directory will be different for each user, and the root user is not an exception. When you run wine the first time, the ~/.wine folder is created for that user. When you install something in wine with a given user, it's installed in the ~/.wine folder of that user. So, it's not strange at all that the ~/.wine dirs of your regular user and root do not contain the same stuff.

Thanks


All times are GMT -5. The time now is 10:40 AM.