cant start x programs when under root
Hello
I cant start x programs under root. This is what i get when i wanna start xcdroast to configure it: Quote:
Thanx Hylke |
hi there...
you need to export the DISPLAY variable.. Code:
setenv DISPLAY $HOSTNAME:0.0 should to the trick.. regards slackie1000 |
Quote:
root@hylke:/home/hylke# setenv DISPLAY $HOSTNAME:0.0 bash: setenv: command not found |
my mistake!!
i didn't read that you use a bash terminal :cool: you need... Code:
set DISPLAY=$HOSTNAME:.0.0 $HOSTNAME => you should give your machine name.. regards slackie1000 |
It still doesn't works:
Quote:
|
trying again...
i am sorry for the delay... no experience with bash... i tested now... :D Code:
env DISPLAY=$HOSTNAME slackie1000 ps. you can test your environment variables in "bash" typing "env". You should see the DISPLAY corrected assigned. |
Still doesn't work, but the display mode is (i gues) correctly set.
bash: Quote:
|
Quote:
i give up... sorry .... no idea how to solve this... hope some of the gurus around can help you... regards slackie1000 |
You are getting refused by the server. Try invoking
xhost + to allow foreign connections to your X server before switching to root user. After switching to root, you can set your $DISPLAY variable, if necessary, under bash by invoking: export DISPLAY=hostname:0.0 |
Thanx
That xhost + did the trick. Hylke |
All times are GMT -5. The time now is 08:19 AM. |