Installing VNC server on Solaris 11

I tend to forget the exact command line for installing VNC on Solaris 11.

VNC isn't installed by default:

# vncserver
-bash: vncserver: command not found


But it is in the repository. (You need to use the --accept option because java/jre-7  requires BCL License acceptance )

# pkg install --accept solaris-desktop
           Packages to install: 463
           Mediators to change:   1
            Services to change:  16
       Create boot environment:  No
Create backup boot environment:  No
DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                            463/463   68277/68277  729.0/729.0  6.2M/s

PHASE                                          ITEMS
Installing new actions                   104012/104012
Updating package state database                 Done
Updating package cache                           0/0
Updating image state                            Done
Creating fast lookup database                   Done
Updating package cache                           2/2
You have new mail in /var/mail/root


Now the VNC server is installed:

$ vncserver

You will require a password to access your desktops.

Password:
Verify:
xauth:  file /home/jeff/.Xauthority does not exist

New 'my-host:1 (root)' desktop is my-host:1

Creating default startup script /home/jeff/.vnc/xstartup
Starting applications specified in /home/jeff/.vnc/xstartup
Log file is /home/jeff/.vnc/my-host:1.log


By default, you get the tiled window manager (twm), but I prefer Gnome.

# vi /home/jeff/.vnc/xstartup

At the bottom of xstartup, change "twm &" -to- "gnome-session &":

Kill the session running twm and restart with Gnome:

$ vncserver -kill :1
Killing Xvnc process ID 2392

$ vncserver

New 'my-host:1 (root)' desktop is my-host:1

Starting applications specified in /home/jeff/.vnc/xstartup
Log file is /home/jeff/.vnc/my-host:1.log


Now you're good to go. Visit the vncserver with a vncclient:

vnc.png

You may also want to review:

Hope this helps.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Jeff Taylor-Oracle

Search

Archives
« March 2015
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
31
    
       
Today