Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Applications > X.org and su

Forgot Password?
 Linux Applications   I cant get "X" app to work... also discussion about linux programs.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 10-10-2009   #1 (permalink)
Just Joined!
 
Join Date: Aug 2007
Posts: 6
X.org and su

This seems to have happened rather randomly and I can't find any solution for it.

I'm a bit lazy as of late and as a result, I've been running certain applications through console. Of course, some of these apps require internet access and as a result I have to start nm-applet in sudo. But one day, I booted up and I started nm-applet and noticed I get:
Code:
 No protocol specified
konversation: cannot connect to X server :0.0
on just about every single application that requires anything to do with X.org. I use HAL to configure X.org for me and everything has been working rather smoothly until this.

THE KEY: If I start all of my internet-wanting applications before I start nm-applet in sudo, then they start just fine. Anything I start after 'sudo nm-applet --sm-disable' and I'm completely screwed. Any idea on what might be causing this?

NOTE: It's not nm-applet. If I start anything in sudo, that means I can't start anything else.

DISTRO: Arch Linux NOTE: Unrelated to distribution.
computerquip is offline  


Reply With Quote
Old 10-11-2009   #2 (permalink)
Linux Guru
 
reed9's Avatar
 
Join Date: Feb 2009
Location: Boston, MA
Posts: 2,201
If I'm understanding what you're saying, I believe it's because xserver doesn't allow root to connect.

Try this
Code:
DISPLAY=:0.0 xhost +
But, you shouldn't use sudo to run gui programs as root, anyway, use kdesu or gksu. I haven't used networkmanager for ages, but I don't recall nm-applet needing to be run as root either.
reed9 is offline   Reply With Quote
Old 10-11-2009   #3 (permalink)
Just Joined!
 
Join Date: Aug 2007
Posts: 6
Strange... I can't start the process unless I'm in root.... I'll look further into the situation.

Also, xhost returns:
Code:
No protocol specified
xhost:  unable to open display ":0.0"
This is a known problem but I've yet to see a solution. Any idea?
computerquip is offline   Reply With Quote
Old 10-11-2009   #4 (permalink)
Linux Guru
 
reed9's Avatar
 
Join Date: Feb 2009
Location: Boston, MA
Posts: 2,201
Regarding networkmanager, are you a member of the network group?

What are these other programs you're starting with 'sudo'?
reed9 is offline   Reply With Quote
Old 10-11-2009   #5 (permalink)
Just Joined!
 
Join Date: Aug 2007
Posts: 6
None.

Seems the above description of the sudo app causing the problems is wrong. It just started after I randomly tried to start k3b to burn ROS. I can't seem to pinpoint the direction the bug is coming from. For eth0, I don't even use nm-applet.
computerquip is offline   Reply With Quote
Old 10-18-2009   #6 (permalink)
Just Joined!
 
Join Date: Aug 2007
Posts: 6
I fixed it. It was a PolicyKit configuration problem. It seems to be a bit different for everyone and the solution is everywhere. Just google for 'PolicyKit configuration'.
computerquip is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 01:44 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2