Vous êtes sur la page 1sur 2

\

# pkg install --accept slim_install


Oracle Solaris 11 (11/11)
VNC
Posted on December 10, 2011
This guide will cover how to setup a basic VNC connection to a Solaris 11 machin
e. There is also an optional step to allow for persistent VNC connections.
Step 1
Configure GDM to include [security] DisallowTCP=false

and

[xdmcp] Enable=true .

$ sudo gedit /etc/gdm/custom.conf


# GDM configuration storage
[daemon]
[security]
DisallowTCP=false
[xdmcp]
Enable=true
[greeter]
[chooser]
[debug]
Step 2
Configure X-Server to accept remote connections.
$ sudo svccfg -s application/x11/x11-server
svc:/application/x11/x11-server> setprop options/tcp_listen = boolean: true
svc:/application/x11/x11-server> end
Step 3
Configure the VNC service (you could change the -geometry 1280720? to whatever res
olution you would like).
$ sudo svccfg -s xvnc-inetd
svc:/application/x11/xvnc-inetd> setprop inetd_start/exec = astring: "/usr/bin/X
vnc -geometry 1280x720 -inetd -query localhost -once securitytypes=none"
svc:/application/x11/xvnc-inetd> setprop inetd/wait = boolean: true
svc:/application/x11/xvnc-inetd> end
** The line highlighted red is optional only do this if you want your VNC connec
tion to persist (as well as any potential security issues)
Step 4
Disable and the re-enable the GDM and VNC-inetd services for the changes to take
effect.
$ su root
Password:
# svcadm disable gdm xvnc-inetd; svcadm enable gdm xvnc-inetd
Step 5

Point your favourite VNC client at your Solaris server and test if it accepts yo
ur VNC connection
you should be presented with a Username/Password login screen.
If you performed the optional step to make your connections persist
close your f
avourite VNC client and then reconnect if you remained logged in you have a pers
istent connections.

Vous aimerez peut-être aussi