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.

% xhost +
access control disabled, clients can connect from any host

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









Comments:

or on one line

svccfg -s svc:/application/x11/x11-server setprop options/tcp_listen = true

Enda

Posted by Enda O'Connor on February 17, 2010 at 04:28 AM EST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Chansup Byun

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today