Results 1 to 10 of 10

Thread: Xlib: connection to ":0.0" refused by server

  1. #1
    Junior Member
    Join Date
    May 2004
    Posts
    4

    Xlib: connection to ":0.0" refused by server

    HI all,

    Just installed 3.4 on HD (Debian mode).
    Using my user account from a shell, I can open nedit, kwrite or any xwin app.
    But when I try to open the same apps from the same shell as su
    I got the following errors:
    Code:
    Manu@Knoppix34:~$ su
    Password:
    root@Knoppix34:/home/Manu# nedit
    Xlib: connection to ":0.0" refused by server
    Xlib: No protocol specified
    NEdit: Can't open display
    root@Knoppix34:/home/Manu#

    Any suggestions !

    Tks

  2. #2
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    There's probably better ways to do this but this should work:
    ln -s /home/Manu/.Xauthority /root/.Xauthority
    AFAIK the error is due to xserver only allowing one connection at a time which isn't a bad thing.

    EDIT: Do first as root:
    Code:
    cd ~
    mv .Xauthority .XauthorityOLD
    That way you can get the old file back if it doesn't work.

  3. #3
    Junior Member
    Join Date
    May 2004
    Posts
    4
    Thanks a lot. That worked

  4. #4
    Junior Member
    Join Date
    May 2004
    Posts
    1
    Hi,
    I've just gone through the same process, intalling 3.4 in HD, and had the same problem. I've fixed it as indicated, but I believe the limitation of allowing only one user connection to the xserver is not a very practical one. It is very often the case you need root privileges whilst being and ordinary user. Sudo will do that, but I find a new shell as root being more flexible.
    I come from Red Hat, this is my first contact with Knoppix(and Debian), and while it's worked out of the box, I find that limitation a bit too restricting (and very little documented, being such an every day taks).
    The solution given works, but as suggested I believe it is very precarious. Is there no "nicer" way of doing these things?
    Ta
    Jaime

  5. #5
    Senior Member registered user
    Join Date
    Feb 2004
    Location
    Kampen, The Netherlands
    Posts
    166
    I'm relatively new in linux and also encountered this. I found out you could do (in case of LeManu), as user:
    'kdesu nedit'
    after you type in your root pwd. you automaticaly enter nedit.

  6. #6
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    Yes well, this workaround was actually for using a root shell which I prefer. As I said there's bound to be a better solution but I was too lazy to google for it as this works.
    I don't really know why this was changed other than improving security so that if someone hacks into your computer they can't run things on your desktop.

  7. #7
    Junior Member registered user
    Join Date
    Sep 2003
    Posts
    16

    The same problem but no file

    I have the same problem BUT i don't have .Xauthority file at my HD!

  8. #8
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323

    Re: The same problem but no file

    Quote Originally Posted by Bleim
    I have the same problem BUT i don't have .Xauthority file at my HD!
    Is this a debian style install?
    If yes do as user:
    Code:
    cd ~
    ls -la .Xauthority
    The file is hidden so you need the "a" when listing.

    For a knoppix style install I can't help, never done it.

  9. #9
    Junior Member registered user
    Join Date
    Sep 2003
    Posts
    16
    sorry, I forgot say that I have beginner debian instalation on HD (i don't know what's the diferrence between beginer and clasical debian mode), but I have the same problem!

  10. #10
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    AFAIK beginner or knoppix style install basically copies over the files from cd to hd and uses lilo or grub to boot it. So that on each boot you get hardware autodetection etc. A debian style gets you an easy way to get a real debian OS with a real easy installer, a few odd scripts are different like sysvinit. But as I said, I've never done a beginner or knoppix install so I might be way off base here.
    You can still look for the .Xauthority file, search with find, whereis or "locate .Xauthority". If you get "database more than 8 days old" do as root "updatedb".

Similar Threads

  1. "Intel(R) PRO/1000 MT Mobile Connection" with Knop
    By jasperlevink in forum Hardware & Booting
    Replies: 2
    Last Post: 09-22-2003, 10:59 PM
  2. vncserver: connection to "Knoppix:1.0" refused by
    By hugo in forum General Support
    Replies: 1
    Last Post: 08-27-2003, 01:14 AM
  3. "Connection Reset by Peer" or "hang"
    By oreo in forum General Support
    Replies: 11
    Last Post: 07-23-2003, 06:33 PM
  4. Xlib: extension "XFree86-VidModeExtension" missin
    By TheCyberDude in forum General Support
    Replies: 2
    Last Post: 06-25-2003, 11:34 PM
  5. Xlib: extension "GLX" missing on display "lo
    By derjens in forum General Support
    Replies: 0
    Last Post: 06-05-2003, 10:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD picture

Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD

$250.99



Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330 picture

Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330

$182.65



Dell PowerEdge T620 8-Bay LFF Xeon E5-2660 0 2.20GHz 48GB NO HDD S110 Server picture

Dell PowerEdge T620 8-Bay LFF Xeon E5-2660 0 2.20GHz 48GB NO HDD S110 Server

$174.99



DELL PowerEdge R630 8SFF Server 2x E5-2680v4 2.4GHz =28 Cores 128GB H730 4xRJ45 picture

DELL PowerEdge R630 8SFF Server 2x E5-2680v4 2.4GHz =28 Cores 128GB H730 4xRJ45

$346.00



Dell PowerEdge R420 2 2.4 4C,16GB,8TB,RAID5,IDRAC7 ENT,2PSU picture

Dell PowerEdge R420 2 2.4 4C,16GB,8TB,RAID5,IDRAC7 ENT,2PSU

$125.00



Dell Poweredge R730xd 3.5 2x E5-2690 v3 2.6ghz 64gb H730 14x Trays 2x 1100w picture

Dell Poweredge R730xd 3.5 2x E5-2690 v3 2.6ghz 64gb H730 14x Trays 2x 1100w

$489.99



Dell Poweredge R730xd LFF 14-Bay 2U Server | Choose Your CPU & RAM Config picture

Dell Poweredge R730xd LFF 14-Bay 2U Server | Choose Your CPU & RAM Config

$489.99



Dell PowerEdge R720xd 26HDD 300gb  2.5-inch E5-2697  X 2CPU 384RAM 7.2 Tb HDD  picture

Dell PowerEdge R720xd 26HDD 300gb 2.5-inch E5-2697 X 2CPU 384RAM 7.2 Tb HDD 

$180.00



Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Cores / 128gb / H330 / 2x 1TB picture

Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Cores / 128gb / H330 / 2x 1TB

$324.99



Dell Poweredge R630 Server 2x E5-2620 V4 =16 Cores | S130 | 32GB RAM | 2x trays picture

Dell Poweredge R630 Server 2x E5-2620 V4 =16 Cores | S130 | 32GB RAM | 2x trays

$167.99