Changing the desktop when VNC’ing into Solaris 10

By default if you VNC into Solaris 10 you get a basic desktop using TWM:

Screenshot

To Change to CDE, comment out the last line (twm&) in ~/.vnc/xstartup and add:

#twm &
/usr/dt/bin/dtsession &

to start the Java Desktop, instead of ‘dtsession’, add ‘gnome-session’:

#twm &
#/usr/dt/bin/dtsession &
/usr/dt/bin/gnome-session &
Screenshot

If you get this error:

vncserver: couldn't find "xauth" on your PATH.

… edit your ~/.vnc/xstartup and update your PATH to include the following:

PATH=${PATH}:/usr/X11/bin:/usr/openwin/bin

This is covered in more detail in posts here and here.

ssh to solaris 10 error: “no matching key exchange method found”

I first ran into this error after installing Solaris 10 on a Sun Ultra 60 that I had a while back, but I’ve recently ran into it again installing Solaris 10 on Proxmox:

Unable to negotiate with 192.168.1.95 port 22: no matching key exchange method found. Their offer: gss-group1-sha1-toWM5Slw5Ew8Mqkay+al2g==,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1

The solution to configure my Mac to be able to use older key algorithms was a combination from here and answers on this post.

I edited my ~/.ssh/config and added a Host entry for the ip of my Solaris 10 instance, adding:

Host 192.168.1.95
HostKeyAlgorithms=+ssh-rsa
KexAlgorithms +diffie-hellman-group1-sha1

And now I can just ssh in as normal (no need for any additional params as shown in the first post, as the required options are configured in my .ssh/config.