a blog about my passion, hobby and work

Share your OpenSolaris 2008.11 screen to Mac Os X

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> end

vncpasswd /etc/X11/.vncpasswd
chown root:root /etc/X11/.vncpasswd
chmod 400 /etc/X11/.vncpasswd

svcadm 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

Reader Feedback

3 Responses to “Share your OpenSolaris 2008.11 screen to Mac Os X”

  1. John Rice says:

    Excellent. Worked perfectly. Thanks so much.

    Running Leopard on iMac, OpenSolaris on older Dell Dimension

  2. [...] the XML files that tell MDNS what to advertise. (Found this information from here, here, and [...]

  3. [...] the XML files that tell MDNS what to advertise. (Found this information from here, here, and [...]

Leave a Reply

Disclaimer

The opinions expressed on this site are my own personal opinions and do not represent my employer's view in anyway.

Formula1 is back!

in only 3 days !!!

GeoIP info

SweetFeeds RSS