Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-20-2006, 06:37 PM
|
#1
|
LQ Newbie
Registered: Feb 2005
Distribution: Slackware 10
Posts: 27
Rep:
|
Can't run paticular programs as root terminal -- Slack 10.2
When I'm on my personal account (/home/user), I run my terminal client and run some programs from there -- they work fine. But when I log in as root in the terminal while still in my windows manager, I can't run paticular programs that were installed on the initial setup. For example, I can't run KATE, java, kedit and a couple others I can't think of at the moment, as root in terminal -- but while still in my personal account. THis is true for me when logged in on my personal account when using KDE or fluxbox. But when I log into my windows manager as root, they work just fine. I would search for this and find the answer myself, but I don't know what to call this.
|
|
|
01-20-2006, 07:31 PM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep:
|
I assume you're using `su` to login as root, but you don't say what the error is. Are you getting command not found errors or something like 'Xlib: connection to ":0.0" refused by server'? For the first one, your path isn't the same when you su - you may have to type in the full command (e.g. /usr/local/jdk/bin/java).
For the second one, you don't have permission, even as root, to use your user account's X display. Try running the following after you su to root (substitute your username):
Code:
/usr/X11R6/bin/xauth merge ~username/.Xauthority
I sometimes end up with the ownership on ~username/.Xauthority changed to root when I do this - so check it after you run the merge.
|
|
|
03-30-2006, 03:35 AM
|
#3
|
Member
Registered: Mar 2003
Distribution: Debian 8
Posts: 74
Rep:
|
Hi there, I have the same problem and I couldn't solve it
with:
Quote:
/usr/X11R6/bin/xauth merge ~username/.Xauthority
|
When I try to run apps from konsole as root I get this
error:
Quote:
[root@darkstar]:# airfart
Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
(airfart:9019): Gtk-WARNING **: cannot open display:
|
I also tried some other techniques that I found here in LQ,
that didn't help too.
Please help me.
|
|
|
03-30-2006, 04:35 AM
|
#4
|
Senior Member
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 current
Posts: 1,649
Rep:
|
Try to start it with giving full path. If I su to root and do kate it is not in my path, when typing /opt/kde/bin/kate it starts without a problem.
|
|
|
03-30-2006, 04:39 AM
|
#5
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep:
|
If you get cannot open display errors try adding -display :0.0 to your command line
|
|
|
03-30-2006, 01:11 PM
|
#6
|
Member
Registered: Jun 2004
Location: West Virginia
Distribution: Gentoo, Debian
Posts: 52
Rep:
|
Try (as non-root):
$> xhost+
Then:
$> su -
$> export DISPLAY=:0.0
$> kate
|
|
|
All times are GMT -5. The time now is 05:38 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|