LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-18-2005, 10:31 AM   #1
Optimistic
Member
 
Registered: Jun 2004
Location: Germany
Distribution: Debian (testing)
Posts: 276

Rep: Reputation: 33
Can't launch X-apps as super user


This is probably a simple fix (even though I couldn't find an answer), but for some reason I can't launch X-apps when I su to root.

I get this:
Quote:
desktop:/home/phi# gvim /etc/X11/xorg.conf
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

E233: cannot open displayXlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


Hit ENTER or type command to continue
Any ideas?
 
Old 09-18-2005, 11:22 AM   #2
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
"apt-get install sux" and type sux instead of su. There are other solutions like "xhost local:" and as root "export DISPLAY=:0.0" but sux is easiest and secure.
 
Old 09-18-2005, 11:24 AM   #3
Optimistic
Member
 
Registered: Jun 2004
Location: Germany
Distribution: Debian (testing)
Posts: 276

Original Poster
Rep: Reputation: 33
Excellent! Thank you!

That sux rules! (oxymoron intended)
 
Old 09-18-2005, 12:05 PM   #4
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Almost forgot, within kdeapps you can use kdesu
 
  


Reply



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
way to *click* launch apps slackwarebilly Linux - General 10 07-27-2005 11:11 AM
how to launch apps in a new x display? zero79 Debian 8 06-29-2005 09:58 PM
key combinations to launch apps? will103 Linux - Software 2 09-11-2004 02:55 PM
Menu troubles: apps do not launch; unable to add apps hfinger Mandriva 1 08-22-2003 04:49 AM
Can't launch X apps when 'su'd as another user davee Linux - Newbie 3 08-17-2003 11:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:43 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
Open Source Consulting | Domain Registration