Shared Pool
Enabling Remote X Display on OpenSolaris Desktop
On an OpenSolaris Destop machine, by default, the Xorg server starts with the -nolisten tcp option.
# ps -ef | grep Xorg
byun 7956 490 6 14:20:11 ? 0:47 /usr/X11/bin/Xorg :0
-depth 24 -nolisten tcp -audit 0 -br
-auth /var/lib/gdm/:0.Xauth
Since the X server blocks the TCP communication, it doesn't allow to
display any X application on this host remotely even if one allows access to this host using the xhost command as shown below.
In order to fix this issue, you need to remove the "-nolisten tcp" option
when starting the Xorg application. This can be done by modifying the smf(5)
configuration as shown below:
# svccfg -s application/x11/x11-server
svc:/application/x11/x11-server> listprop
options/*
options/default_depth integer 24
options/server astring /usr/X11/bin/Xorg
options/server_args astring
options/stability astring Evolving
options/value_authorization astring solaris.smf.manage.x11
options/tcp_listen boolean false
svc:/application/x11/x11-server> setprop
options/tcp_listen=true
svc:/application/x11/x11-server> listprop
options/tcp_listen
options/tcp_listen boolean true
svc:/application/x11/x11-server> end
The machine used for this test was running the following OpenSolaris version:
# cat /etc/release
OpenSolaris 2008.11 snv_101b_rc2 X86
Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 19 November 2008
# uname -a
SunOS xxxxx 5.11 snv_101b i86pc i386 i86pc Solaris
Posted at 03:01PM Dec 04, 2008 by Chansup Byun in Solaris | Comments[0]
Thursday Dec 04, 2008