LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Xlib: connection to ":0.0" refused by server - Debian (https://www.linuxquestions.org/questions/linux-newbie-8/xlib-connection-to-0-0-refused-by-server-debian-621396/)

449 02-15-2008 11:15 AM

Xlib: connection to ":0.0" refused by server - Debian
 
When I was unistalling packages I think I ended unistalling something I needed. When I try to open anything from terminal I get:

erik:/home/erik/Desktop# VirtualBox
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Qt WARNING: VirtualBox: cannot connect to X server :0.0

Does anyone know how to fix this?

Thanks

Oh and I tried: xhost +local:username

erik:/home/erik/Desktop# xhost +local:erik
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

xhost: unable to open display ":0.0"

davcefai 02-15-2008 01:17 PM

You seem to be trying to launch GUI programmes as root. Try as a normal user.

KrahnacK 02-15-2008 01:45 PM

you may want to install the x11proto-* packages and related?

449 02-15-2008 02:23 PM

Quote:

Originally Posted by davcefai (Post 3058365)
You seem to be trying to launch GUI programmes as root. Try as a normal user.

1. I need to run as root.
2. It also will not run as normal.

449 02-15-2008 02:24 PM

Quote:

Originally Posted by KrahnacK (Post 3058394)
you may want to install the x11proto-* packages and related?

I have them installed.

dugas 02-15-2008 06:18 PM

Gnome, use gksudo
KDE, use kdesu

For example, if you are using KDE, press Alt+F2, then for the command type kdesu VirtualBox.


All times are GMT -5. The time now is 02:27 PM.