Skip to contentSkip to conversation

X11 redirection with slirp

Qemu-devel Stealth Dave 2 participants 3 messages Dec 21, 2005 – Dec 22, 2005

lore
Share & tools
lore
#0 lore raw

This is basically a HOWTO question. I'm working on a pet project where I would like run an X11 window on the host system (Mac OS X 10.3) from an X11 server on the guest, preferably without running a display on the guest at all. The guest is running a custom linux install which is basically an updated version of the linux-test distro to a 2.6.14 kernel and busybox system with networking enabled. There's an example using tun/tap in the docs, but it's a little sparse on details. Part of my dilemma is my lack of knowledge with xservers (I'm using Xorg). Can someone help, or point to some clear do-it-yourself examples?

Thanks,
- Dave

#1 lore raw

Hi there,

Quoted 2 lines · Stealth Dave

Can someone help, or point to some clear do-it-yourself examples?

It should be as easy running:

$ export DISPLAY=10.0.2.2:0

in your busybox shell, followed by a usual command that you use to run X programs, for example:

$ xterm&

or

$ gnome-session

That should work if you network is configured (and provided 10.0.2.2 is the host machine's IP address, as is by default). Sometimes to allow remote TCP/IP X clients on the host you will need to run:

$ xhost +

Regards,
--
balrog 2oo5

Dear Outlook users: Please remove me from your address books
http://www.newsforge.com/article.pl?sid=03/08/21/143258

#2 lore raw

Yep, easy as that, all right! I did have to run "xhost +localhost" on the host X11 system, but after that everything was smooth sailing!

Thanks!
- Dave

Quoted 37 lines · andrzej zaborowski

Hi there,

Quoted 2 lines · Stealth Dave

Can someone help, or point to some clear do-it-yourself examples?

It should be as easy running:

$ export DISPLAY=10.0.2.2:0

in your busybox shell, followed by a usual command that you use to run X programs, for example:

$ xterm&

or

$ gnome-session

That should work if you network is configured (and provided 10.0.2.2 is the host machine's IP address, as is by default). Sometimes to allow remote TCP/IP X clients on the host you will need to run:

$ xhost +

Regards,
--
balrog 2oo5

Dear Outlook users: Please remove me from your address books
http://www.newsforge.com/article.pl?sid=03/08/21/143258

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel