Can't run GUI apps: 'connection to ":0.0" refused

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1484
Joined: Fri Aug 29, 2003 8:39 pm

Can't run GUI apps: 'connection to ":0.0" refused

Post by ^rooker »

[PROBLEM]
Sometimes when creating a user manually (adduser), this user may not have sufficient rights to connect to the X-server. So, when running any application with a graphical user interface (GUI), you'll receive this message:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
[SOLUTION]
Add the user to the access control list, using the command "xhost":

Code: Select all

xhost +si:localuser:username
Where "username" must be substituted by the actual user you want to add.
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply