Gnome via VNC on Solaris 10

Bit fiddly setting this up.

 

First, grab SFWvnc off the Solaris 10 companion disc (if you don’t have it already)

http://www.sun.com/software/solaris/freeware/

 

Post install, followed the latter instructions in the SFWvnc readme:

“By default, vncserver will only run as root. In order to run as a user, you
must do one of:

Change the permissions of /tmp/.X11-unix to 777 by running
“chmod 777 /tmp/.X11-unix” as root
OR
Change the permissions of /opt/sfw/bin/Xvnc (the VNC X server) by
running “chmod 2555 /opt/sfw/bin/Xvnc” as root”

 

Edited /opt/sfw/bin/vncserver, changing this:

$defaultXStartup
    = ("#!/bin/sh\n\n".
       "[ -r \$HOME/.Xresources ] && xrdb \$HOME/.Xresources\n".
       "xsetroot -solid grey\n".
       "xterm -geometry 80x24+10+10 -ls -title \"\$VNCDESKTOP Desktop\" &\n".
       "twm &\n");

to this:

$defaultXStartup
    = ("#!/bin/sh\n\n".
       "[ -r \$HOME/.Xresources ] && xrdb \$HOME/.Xresources\n".
       "xsetroot -solid grey\n".
       "xterm -geometry 80x24+10+10 -ls -title \"\$VNCDESKTOP Desktop\" &\n".
       "/usr/bin/gnome-session &\n");

(last line specifies the desired window manager)

 

Ran vncviewer as a non-root user, it launched the server and created a xstartup file in the newly created ~/.vnc folder.

Edited the xstartup file from this:

#!/bin/sh
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &

to this

#!/bin/sh
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
/usr/bin/gnome-session &

 

Using Terminal Server Client (tsclient 0.150) on an OpenSolaris snv_130 machine, ensured I was specifying the correct display to connect to based on the information received at the CLI when running vncserver, e.g: 192.168.10.15:1

Et voila:

Gnome via VNC on Solaris 10

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s