LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 09-25-2009, 10:54 AM   #1
ubume2
Member
 
Registered: Oct 2006
Distribution: Ubuntu
Posts: 65

Rep: Reputation: 15
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
 
Old 09-25-2009, 11:02 AM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
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.
 
Old 09-25-2009, 11:25 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,049

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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.
 
Old 09-25-2009, 11:54 AM   #4
ubume2
Member
 
Registered: Oct 2006
Distribution: Ubuntu
Posts: 65

Original Poster
Rep: Reputation: 15
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

Last edited by ubume2; 09-25-2009 at 11:56 AM. Reason: add
 
Old 09-25-2009, 12:03 PM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,049

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Quote:
Originally Posted by ubume2 View Post
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.
 
Old 09-25-2009, 12:44 PM   #6
ubume2
Member
 
Registered: Oct 2006
Distribution: Ubuntu
Posts: 65

Original Poster
Rep: Reputation: 15
re: launching apps --using linux

Quote:
Originally Posted by MS3FGX View Post
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 View Post
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.

Last edited by ubume2; 09-25-2009 at 01:14 PM. Reason: clarify
 
Old 09-25-2009, 12:58 PM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,049

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Quote:
Originally Posted by ubume2 View Post
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.
 
Old 09-25-2009, 01:41 PM   #8
ubume2
Member
 
Registered: Oct 2006
Distribution: Ubuntu
Posts: 65

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by i92guboj View Post
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
 
  


Reply

Tags
root, wine


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
launching graphical programs from root as $USER iiv Slackware 18 08-31-2007 12:40 PM
launching app under wine only works in root mtdew3q Linux - Newbie 3 04-22-2007 10:22 PM
Error launching gnome apps as root: " Failed to contact configuration server" Kropotkin Fedora 1 12-16-2005 12:11 PM
Launching apps under Root User Name MDBlueIce Linux - Software 2 08-20-2004 06:15 AM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 05:14 PM


All times are GMT -5. The time now is 10:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration