phone GUI display on Xnest
Shakthi Kannan
shakthimaan at gmail.com
Tue Aug 7 21:03:08 CEST 2007
Hi,
I am trying to get the X GUI display from the phone onto Xnest on the
desktop. I open two terminal tabs on the desktop (Debian Etch,
192.168.0.200). I do the following on both of the tabs:
xhost +192.168.0.202
On the first tab, i run:
Xnest :1 -dpi 283 -geometry 480x640+86+295
On the second tab, I ssh into:
ssh -l root -X -v 192.168.0.200
I export the DISPLAY (second tab through ssh, runs on the phone) as:
export DISPLAY=192.168.0.200:1.0
I try to run x-window-manager (second tab through ssh, runs on the phone),
x-window-manager
and I get the following output on the second tab:
Xlib: connection to "192.168.0.200:1.0" refused by server
Xlib: No protocol specified
Cannot open display
On the first tab (running Xnest), I get this error:
4401: Xnest: client 2 rejected from IP 192.168.0.202
4401: Xnest: client 2 rejected from IP 192.168.0.202
4401: Xnest: client 1 rejected from IP 192.168.0.202
So, the following page suggested XAuthority:
http://soc.if.usp.br/doc/xfree86-common/FAQ.xhtml#howtoxnest
#!/bin/sh
MCOOKIE=$(mcookie)
xauth add $(hostname)/unix$1 . $MCOOKIE
xauth add localhost/unix$1 . $MCOOKIE
Xnest "$@"
xauth remove $(hostname)/unix$1 localhost/unix$1
exit 0
So, I replaced $mcookie with the cookie number from output of "auth
list", and ran the above script as:
sh script.sh :1 -dpi 283 -geometry 480x640+86+295
I still get the connection rejected Xnest errors. I have also tried
removing -nolisten in /etc/X11/xinit/xserverrc.
Any suggestions on what I am missing, and how I can get the phone GUI
display onto the desktop?
Thanks,
SK
--
Shakthi Kannan
http://www.shakthimaan.com
More information about the openmoko-devel
mailing list