LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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, 11: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, 12:22 PM   #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, 12:24 PM   #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, 01: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


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

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

All times are GMT -5. The time now is 03:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration