Apr
5
I found some info on how to share your OpenSolaris Screen with vnc, and those manuals just didn’t do it for Mac Os X unless you use a vnc viewer. But I wanted to use the build in screen sharing build in to Mac Os X which support vnc but it didn’t seem to work.. The resolution was Mac Os X wants authentication and thus the fix was easy, here you go:
svccfg -s x11-server
svc:/application/x11/x11-server> setprop options/server = “/usr/X11/bin/Xvnc”
svc:/application/x11/x11-server> setprop options/server_args = astring: (“-SecurityTypes” “Vncauth” “-RfbAuth” “/etc/X11/.vncpasswd”)
svc:/application/x11/x11-server> endvncpasswd /etc/X11/.vncpasswd
chown root:root /etc/X11/.vncpasswd
chmod 400 /etc/X11/.vncpasswdsvcadm restart gdm
I found out gdm will go into maintenance mode after a while, so just do this when this happens
svcadm clear gdm
Now you want bonjour to pick this service up so add this to /etc/avahi/services/rfb.service
<?xml version=”1.0″ standalone=’no’?><!–*-nxml-*–>
<!DOCTYPE service-group SYSTEM “avahi-service.dtd”>
<service-group>
<name replace-wildcards=”yes”>%h</name>
<service>
<type>_rfb._tcp</type>
<port>5900</port>
</service>
</service-group>
and then restart the avahi daemon
svcadm restart avahi-bridge-dsd
and then you should have something like this









