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.
Write an article for LinuxForums Today! Win Great Prizes!
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.
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.
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.
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'.
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