Results 1 to 3 of 3
Hello everyone.
It feels so good to be finally sitting behind a Debian OS machine. Ahhh....
I'm getting an error message when I try to do anything as root.
Code:
...
- 02-18-2007 #1Just Joined!
- Join Date
- Feb 2007
- Location
- L.A. (lower alabama, that is)
- Posts
- 29
Error message when working as 'root'
Hello everyone.
It feels so good to be finally sitting behind a Debian OS machine. Ahhh....
I'm getting an error message when I try to do anything as root.
One spot I found advised to runCode:Xlib: connection to ":0.0" refused by server Xlib: No protocol specified
to enable it, but I can't help but wonder if that is just a temporary bandaid. Even the person who gave this fix said that it wasn't advisable.Code:xhost +
If I run
I getCode:xhost +root
What's causing this error?Code:xhost: bad hostname "root"
Does anyone know of a permanent fix?
Any and all help is much appreciated.
Thanks,
Billy
- 02-18-2007 #2Just Joined!
- Join Date
- Jun 2005
- Posts
- 8
i think
orCode:xhost +hostname
in your case localhost:rootCode:xhost +hostname:username
check this post
- 02-18-2007 #3Just Joined!
- Join Date
- Feb 2007
- Location
- L.A. (lower alabama, that is)
- Posts
- 29
Thanks for the reply elsheikhmh. The "xhost +hostname" command seems to be a temporary fix. It goes away when you reboot.
Originally Posted by elsheikhmh
A permanent fix is adding the line
to /etc/profile seems to keep the fix even after reboot. It worked for me, at least. (Be sure to replace the your_user_name with your user name. Like, mine is "billy".)Code:export XAUTHORITY=/home/your_user_name/.Xauthority
Something else that I didn't consider is to simply open the "Root Terminal" instead of just "Terminal". But it's kind of handy (to me, a noob) to be able to switch back and forth with a simple command in the same terminal window.


Reply With Quote
