Monday, December 18, 2006

xlib: connection to "unix:1012.0" refused by server - workaround

I was trying to open an X application (actually a GTK+ application) and got the error below :
Xlib: connection to "unix:1012.0" refused by server
Xlib: No protocol specified


(scite:8344): Gtk-WARNING **: cannot open display:
I think the reason why I am getting this error is that I changed user in terminal from regular account to root. I've read in the net that user can use xhost + but it is not working for nxserver+nxclient. But there is a very easy workaround for this if sudo is installed and enabled.
#: sudo scite
This will open the scite text editor in an elevated account (root user).

No comments:

Error opening directory '/media/sf_C_DRIVE': Permission denied

I tried to share a folder from Windows 10 host to Kali 2020.1 Linux guest using VirtualBox but I am getting the following error message: ...