DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Originally posted by jlightner Try export DISPLAY=0:0
Also maybe you need to run xhost+ as root on the server.
Thanks jlightner.
Do you mean DISPLAY=:0.0 ?
Any way, i've tried everything:
Code:
pyros:/# export DISPLAY=0:0
pyros:/# qemu /root/sarge-i386.img
Connected to host network interface: tun%d
sudo: unable to lookup pyros via gethostbyname()
SIOCSIFADDR: No such device
tun%d: ERROR while getting interface flags: No such device
/etc/qemu-ifup: could not launch network script
Could not initialize SDL - exiting
pyros:/# export DISPLAY=:0.0
pyros:/# qemu /root/sarge-i386.img
Connected to host network interface: tun%d
sudo: unable to lookup pyros via gethostbyname()
SIOCSIFADDR: No such device
tun%d: ERROR while getting interface flags: No such device
/etc/qemu-ifup: could not launch network script
Could not initialize SDL - exiting
pyros:/# xhost +
xhost: unable to open display ":0.0"
pyros:/# export DISPLAY=0:0
pyros:/# xhost +
xhost: unable to open display "0:0"
pyros:/#
Any other ideas? Nedit for example makes no difference; the problem isn't qemu specific...
acker@dido /tmp $ xhost -
access control enabled, only authorized clients can connect
acker@dido /tmp $ xhost +local:root
non-network local connections being added to access control list
acker@dido /tmp $ sudo su -
root@dido ~ # export DISPLAY=:0
root@dido ~ # gvim
art_render_invoke: no image source given
art_render_invoke: no image source given
art_render_invoke: no image source given
art_render_invoke: no image source given
art_render_invoke: no image source given
art_render_invoke: no image source given
art_render_invoke: no image source given
art_render_invoke: no image source given
root@dido ~ #
You may have to change xhost +local:root. The most unrestrictive is xhost +, but you should try to avoid that for security reasons I thing. I've done xhost -, to clear anything else and to show that I worked here with just +local:root. Hope this helps.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.