LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 04-11-2005, 05:23 AM   #1
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,273

Rep: Reputation: 119Reputation: 119
"can't determine DISPLAY"


I'm currently using Mepis 3.3, but this problem comes up with any Debian-variant I've tried on any computer:
When I login to kde as user, 'su -' to root in a terminal, I can't start any application.
Message is "can't determine DISPLAY"
The only thing that message tells me is it should be an easy fix, just tell what display to use... however I can't find anything about how to?
 
Old 04-11-2005, 05:44 AM   #2
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,287

Rep: Reputation: 173Reputation: 173
$DISPLAY is a variable in your shell set by X.
(probably = :0.0)
needed to tell X where to send it's drawings.

When you su - you relogin so getting a new environment
and removing DISPLAY.
You can set it explicitly but then maybe you will get an xauth error.
users cannot generally use each others display. You can allow other
users to do this, though I've never got round to trying it myself.


try it with su no hyphen, see what happens.
 
Old 04-11-2005, 07:07 AM   #3
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,273

Original Poster
Rep: Reputation: 119Reputation: 119
Quote:
When you su - you relogin so getting a new environment
I know, that's what I want - I want root's PATH and a few other things set.
I tried with only 'su' but then:
Code:
QPixmap: Cannot create a QPixmap when no GUI is being used.
Xlib: Connection to ":0,0" refused by server
A few more errors like that.
Quote:
users cannot generally use each others display
Now you are completely wrong.
Not being able to do that is specific to Debian. RedHat, Mandrake, Slackware, SuSe..... no problem. Only sound doesn't work, everything else does. (Also works with both xorg & XFree)
This is pretty essential to me, if I can't get this to work I will not use Debian. I need it and I'm used to it.
What do you think, is it related to X or to system? It should be X, since it's the X-server that refuses connection - but the problem is Debian-specific so it should be something in systems configuration?
I can run 2 computers beside each other to try to find the differences, but it would be good to know where to look!
 
Old 04-11-2005, 09:50 AM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
SuSE has a sux command that is similar to su but sets up the permissions to use the X display. Perhaps you also have this command. If you want to run an X application, you might want to use kdesu instead of su.
 
Old 04-12-2005, 03:46 AM   #5
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,273

Original Poster
Rep: Reputation: 119Reputation: 119
'sux' did it!
'kdesu' works to just start an app as root, but I want the root-terminal. Also, kdesu requires you to enter pasword each time... (Yes, I'm lazy! Very lazy.) Also, starting a program from terminal gives you lots of messages which sometimes is very handy.

But 'sux' works good, thanks for that!
So the problem is solved, I am one step closer to migrate to Debian, but just out of quriosity I'd like to know the difference - 'su' works in RedHat-style but not Debian-style distro's? Where is the difference
- in the command 'su', it does have slightly different parameters (like 'su -' in Debian = 'su -l' in RedHat)
- or in the Xserver-configuration
- or something else in the distro's setup?
 
  


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
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
Xlib: extension "XFree86-DRI" missing on display ":0.0". fostiator Linux - Hardware 15 02-20-2005 07:13 AM
"Anaconda" and "mini-wm" lost connection to display :1.0;??? cbrittain Fedora - Installation 2 03-14-2004 11:22 AM
"Anaconda" and "mini-wm" lost connection to display :1.0;??? cbrittain Linux - General 0 02-24-2004 05:04 PM
bash-2.05b# Xlib: extension "XFree86-DRI" missing on display ":0.0". citrus Linux - General 8 02-22-2004 10:43 AM


All times are GMT -5. The time now is 05:20 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration