-
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 ! ![Sad](images/smilies/icon_sad.gif)
Tks
-
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.
-
Thanks a lot. That worked
-
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
-
Senior Member
registered user
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.
-
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.
-
Junior Member
registered user
The same problem but no file
I have the same problem BUT i don't have .Xauthority file at my HD!
-
Re: The same problem but no file
![Quote](images/misc/quote_icon.png)
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.
-
Junior Member
registered user
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!
-
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
-
By jasperlevink in forum Hardware & Booting
Replies: 2
Last Post: 09-22-2003, 10:59 PM
-
By hugo in forum General Support
Replies: 1
Last Post: 08-27-2003, 01:14 AM
-
By oreo in forum General Support
Replies: 11
Last Post: 07-23-2003, 06:33 PM
-
By TheCyberDude in forum General Support
Replies: 2
Last Post: 06-25-2003, 11:34 PM
-
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
-
Forum Rules
![Cordless Wireless Air Blower Handheld Vacuum Cleaner Strong Suction Car Home picture](/store/img/YJYAAOSw7ztmSqw4/s-l225//Cordless-Wireless-Air-Blower-Handheld-Vacuum-Clean.jpg)
Cordless Wireless Air Blower Handheld Vacuum Cleaner Strong Suction Car Home
$22.98
![Compressed Air Duster with Air Blower 100000RPM Vacuum Cleaner and Air Duster picture](/store/img/H2gAAOSwW9xl3827/s-l225//Compressed-Air-Duster-with-Air-Blower-100000RPM-Va.jpg)
Compressed Air Duster with Air Blower 100000RPM Vacuum Cleaner and Air Duster
$38.99
![Electric Vacuum Cleaner Air Duster Suction High Pressure for Computer Car Home picture](/store/img/3CsAAOSwP95mRXfH/s-l225//Electric-Vacuum-Cleaner-Air-Duster-Suction-High-Pr.jpg)
Electric Vacuum Cleaner Air Duster Suction High Pressure for Computer Car Home
$9.97
![KLIM Cool Laptop Cooler Fan, Portable Quiet Cooling Vacuum w/Display - BLUE LED picture](/store/img/fDMAAOSwWYdgFybZ/s-l225//KLIM-Cool-Laptop-Cooler-Fan-Portable-Quiet-Cooling.jpg)
KLIM Cool Laptop Cooler Fan, Portable Quiet Cooling Vacuum w/Display - BLUE LED
$15.95
![100000RPM Cordless Air Duster Blower Compressed Computer Cleaning Vacuum Cleaner picture](/store/img/mR4AAOSwSslkgYJ2/s-l225//100000RPM-Cordless-Air-Duster-Blower-Compressed-Co.jpg)
100000RPM Cordless Air Duster Blower Compressed Computer Cleaning Vacuum Cleaner
$28.98
![Mini USB Keyboard Vacuum Cleaner PC Laptop Computer Brush Dust Cleaning Kit picture](/store/img/P5sAAOSwpW9lELXj/s-l225//Mini-USB-Keyboard-Vacuum-Cleaner-PC-Laptop-Compute.jpg)
Mini USB Keyboard Vacuum Cleaner PC Laptop Computer Brush Dust Cleaning Kit
$2.99
![Mini Computer Vacuum USB Keyboard Cleaner PC Laptop Brush Dust Cleaning Kit US picture](/store/img/dZoAAOSwHINk6MDB/s-l225//Mini-Computer-Vacuum-USB-Keyboard-Cleaner-PC-Lapto.jpg)
Mini Computer Vacuum USB Keyboard Cleaner PC Laptop Brush Dust Cleaning Kit US
$13.68
![Cordless Vacuum S Battery Battery WCVRBPW for Wyze Vacuum S WCVV2CD picture](/store/img/7hcAAOSw~Zpmjxqc/s-l225//Cordless-Vacuum-S-Battery-Battery-WCVRBPW-for-Wyze.jpg)
Cordless Vacuum S Battery Battery WCVRBPW for Wyze Vacuum S WCVV2CD
$38.99
![COLORCORAL Vacuum Dust Cleaner Rechargeable Computer Vacuum Keyboard Cleaner ... picture](/store/img/aZwAAOSwO9Rk0ilg/s-l225//COLORCORAL-Vacuum-Dust-Cleaner-Rechargeable-Comput.jpg)
COLORCORAL Vacuum Dust Cleaner Rechargeable Computer Vacuum Keyboard Cleaner ...
$37.70
![Eureka Stylus Nec380 Cordless Vacuum Bldc Motor Led Headlights Lightweight Grey picture](/store/img/pMwAAOSwG61marJT/s-l225//Eureka-Stylus-Nec380-Cordless-Vacuum-Bldc-Motor-Le.jpg)
Eureka Stylus Nec380 Cordless Vacuum Bldc Motor Led Headlights Lightweight Grey
$118.88