SlackwareThis Forum is for the discussion of Slackware 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,
I'm using Slackware 10.1 with a 2.6.10 kernel.
If I load up Fluxbox (or KDE, whichever GUI it doesn't matter), load up a terminal and run something like xine, it works perfectly in my user.
However, if I go su and then try and run xine (or anything that tries to use X) I get an error message:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Cannot open display
Any ideas? I need to be able to run programs as root in the GUI really.
Thanks
export DISPLAY=:0 #assuming it wasn't set already
xauth merge ~user_in_x/.Xauthority
Also "xhost +local:" is better than just "xhost +", but not as good as the above. The above xauth command only allows root to use X, "xhost +local:" allows anyone locally at the computer, "xhost +" allows anyone who can connect to your computer. And the xauth usually only works as root and the xhost only works as the user currently in X.
Just wanted to add, I'm sure you must know this, but just in case, you can startx as root. And if you've display 0 running with your user, you can use startx -- :1 to open another X server (can access it with CTRL+ALT+F8).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.