Linux

Problem to access X desktop from a root terminal

It never happened to me under Red Hat 9, but when I am working in KDE as a normal user and try to execute emacs from a terminal, in which I am su, I occasionally get the following error message:

jeltsch@mcblpc2:~> su
Password:
mcblpc2:/home/jeltsch emacs test.txt
Xlib: connection to ":0.0" refused by server
Xlib: Invalid XDM-AUTHORIZATION-1 key (failed key comparison)
emacs: Cannot connect to X server :0.0.
Check the DISPLAY environment variable or use `-d'.

VNC server under Suse 9

I tried to use vncserver on Suse 9, but to my surprise upon starting up with "vncserver" and then connecting with the "vncviewer" command I only saw the grey screen and an X terminal. I tried to execute xclock and gaim and they start up nicely. However I would also like to bee able to start up KDE. So I looked into the xstartup file (in the .vnc directory in your home folder) from my old Red Hat 9 install and compared it to the one from my Suse 9 install:

RPM management

Example: The quanta package

rpm -q quanta Check whether and which version of quanta is installed

rpm -ql quanta List all files (and their installation location) that are provided by the quanta package

rpm -ivh quanta Install quanta

rpm -e quanta Erase (deinstall) quanta

rpm -aq | grep quanta If you don't know exactly what you are looking for you can list all packages and grep them with a substring.

rpm -q -f filename Search for rpm packages that provide filename

Pages