DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi folks. Just had to re-install Debian Woody 3.Or2 due to LiLo not playing according to the rules. Unable to mount filesystem it said! Anyway now at last I've got a proper log-in log-out with a shutdown button on it. The problem is. If I log-in as user, open a terminal and su to root, I can get apt-get updates ok so I'm obviously working as root. If I try to open a text editor or even synaptic I get. "Xlib: connection to ":0.0" refused by server.
Xlib: Client is not authorized to connect to Server
kwrite: cannot connect to X server :0.0
If I logout onto my new very much appreciated log-in screen, and then log-in as root, I then can gain access to the text editor. I selected kdm on the re-install, and it was all done rather fast as I was a bit T'd off at having to re-install Debian another time. Perhaps I skipped something I shouldn't have. Doh. Have just finished all the security updates including Xlib but no change. Any suggestions, apart from re-installing, gratefully received.
kernel: 2.2.20-idepci
It was upgrading to kernel 2.4.16-386 to try and get the sounds working that caused all the problems. And now! I've got to install it again. Good Ol LiLo.
Mainly on FC1.FC2,Slackware10.0. But would like to get Debian going, and then onto Roll Your Own Gentoo 2004. (No sounds on that either), but thats for another day. Nigel.aka farpoint.
but, the Xlib message is because you need the X server runing (look at the wiki for info on X if you want), basically, type "startx" to start the server, when its running, xlib connects to it, and programs go thru xlib to get sent to the server, to get drawn on the screen
I'm not sure whats going on here. X is obviously running because I've got the KDE desktop. Right. I su to root at a terminal and type "startx" then get this.
warning: process set to nice value 0 instead of -10 as requested
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
Please report problems to submit@bugs.debian.org.
Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
giving up.
xinit: unable to connect to X server
xinit: No such process (errno 3): Server error.
debian:/home/djmons#
Any ideas how to resolve this problem? All I want to do is to run as user, su to root now and again to do necessary stuff in text editors, etc. It seems strange that is I login as user, open a terminal, su to root and try to open a text editor I get denied. But if I login as root and try to open kwrite for instance, it opens with no problems. I mean. It's no big deal. If I've got to logout and log back in as root to use a text editor at least I've got access to them, but is just a bit of a wacky way of doing it. Also it's to easy to login as root and be merrily surfinf away and forget your machine is open to the world. Of course, all I'm really trying to do is get the sounds working with ALSA. That is, if LiLo will let me put the 2.4 kernel on the menu. Nigel.aka farpoint.
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
Sorry. No-Go on sux. I'd already tried that having seen it on another post. Now I've re-installed the 2.4.16-386 kernel. Added it to LiLo and added to LiLo initrd=/initrd as advised when I installed the ALSA modules. Run Lilo to set it up, and once again it can't find the filesystem. Ironic really caus there are links to 2 GRUB bootloaders for FC1 and FC2 on LiLo's menu and these work ok. It almost seems like the LiLo.conf that was put in the MBR when I installed Debian is different to the one thats in /etc/lilo.conf now. Really Weird Man! Perhaps I should not have made any changes to LiLo. Just run it on the CLI to see if any changes were made. I had been flying the flag for LiLo but at least Grub just auto adds new kernels to the menu. Nigel. aka farpoint. Not giving up but having to get into Debian from the boot floppy.
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
Posts: 506
Rep:
Its a permission thing...transfer x rights to the user and it should work.Though Im just now seeing you have older kernel...so im not sure.
Originally posted by farpoint
Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
giving up.
xinit: unable to connect to X server
xinit: No such process (errno 3): Server error.
debian:/home/djmons#
Any ideas how to resolve this problem? All I want to do is to run as user, su to root now and again to do necessary stuff in text editors, etc. It seems strange that is I login as user, open a terminal, su to root and try to open a text editor I get denied. But if I login as root and try to open kwrite for instance, it opens with no problems. I mean. It's no big deal. If I've got to logout and log back in as root to use a text editor at least I've got access to them, but is just a bit of a wacky way of doing it. Also it's to easy to login as root and be merrily surfinf away and forget your machine is open to the world. Of course, all I'm really trying to do is get the sounds working with ALSA. That is, if LiLo will let me put the 2.4 kernel on the menu. Nigel.aka farpoint.
Try using export XAUTHORITY=/home/djmons/.Xauthority in the terminal window just before executing the program you want to run. To make it work every time without having to do the export line put this in your /root/.bashrc file.
Code:
# Allows me to run an X program as root when su'ed from normal user
export XAUTHORITY=/home/djmons/.Xauthority
Hi HappyTux. Many thanks Stephen for that bit of code. Its all running like clockwork now. Sorry for being slow replying, but I've been repairing LiLo so that it boots debian without the kernel panics, unable to mount root fs etc. A big thanks to everyone else's help and suggestions. Now its back to tring to get it to pick up the soundcard. Watch out for the new thread. Nigel aka farpoint.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.