OpenSolaris – Headless server

I’ve moved from a CentOS linux distro running vmware server 2.0 to OpenSolaris running VirtualBox. My previous system was totally headless and i wanted something similar to replace it.

I’ve just started getting into OpenSolaris for many reasons (Sun has some cool stuff – ZFS / VirtualBox). But I have always wanted to run OpenSolaris as a headless server, and from what i initially found VirtualBox didn’t have the easy to use autostart on boot features that vmware server had. But there are always ways to get things working…

OpenSolaris 2008.11 has desktop sharing (system->preferences->desktop sharing) which is half of the job — enable this.

I had issues if i used a password protected session (it kept prompting on the actual console for password to unlock the key chain), so chose not to prompt for password for now. Now every time after you have logged in you are able to connect to your machine via VNC. (veno-server)

The other half of the problem is how to have the machine automatically log on as a user on boot-up. This is easily enabled via /etc/x11/gdm/custom.conf or gdmadmin. See this post for more details on the autologon.

Updated : 26/07/2009

After a bit of playing about I’ve found another way to make opensolaris the perfect headless box. First fire up gdmsetup and enable the required remote sessions.

Go to the “Remote” tab and set the style to “same as local”, then under security ensure that “Deny TCP connections to Xserver” is not checked.

Next go into the services GUI and tick the box next to X server (x11/xvnc-inetd). Next type;

svcs | grep vnc

Disable all vnc services except the one we want to enable (below);

svcadm enable xvnc-inetd

Now to get the vnc session to remain open when you disconnect update the service with the following parameter change;

svccfg -s xvnc-inetd setprop inetd/wait = boolean: true

Reboot. Done.

You should upon reboot be able to vnc straight into the box with a session that wont reset on disconnect.

348 Replies to “OpenSolaris – Headless server”

  1. Hiya, I am really glad I’ve found this info. Today bloggers publish just about gossip and web stuff and this is really frustrating. A good web site with exciting content, that’s what I need. Thank you for making this web site, and I’ll be visiting again. Do you do newsletters by email?

  2. Hiya, I am really glad I have found this info. Today bloggers publish only about gossip and web stuff and this is really frustrating. A good web site with interesting content, that’s what I need. Thank you for making this website, and I’ll be visiting again. Do you do newsletters by email?

  3. Hiya, I’m really glad I’ve found this info. Nowadays bloggers publish only about gossip and internet stuff and this is really annoying. A good site with exciting content, that’s what I need. Thanks for making this web site, and I’ll be visiting again. Do you do newsletters by email?

  4. It¡¦s in point of fact a nice and useful piece of info. I am satisfied that you simply shared this useful information with us. Please keep us informed like this. Thank you for sharing.

  5. Hey there. I found your blog by way of Google whilst searching for a comparable topic, your site came up. It looks good. I’ve bookmarked it in my google bookmarks to visit then.

  6. Hiya, I am really glad I have found this information. Nowadays bloggers publish only about gossip and internet stuff and this is really annoying. A good blog with interesting content, this is what I need. Thanks for making this website, and I’ll be visiting again. Do you do newsletters by email?

  7. Hiya, I’m really glad I have found this info. Nowadays bloggers publish only about gossip and internet stuff and this is actually frustrating. A good web site with exciting content, this is what I need. Thank you for making this web site, and I will be visiting again. Do you do newsletters by email?

  8. Hello there. I found your web site via Google even as looking for a similar matter, your website got here up. It seems to be great. I have bookmarked it in my google bookmarks to come back then.

  9. Hiya, I’m really glad I have found this info. Nowadays bloggers publish only about gossip and internet stuff and this is actually irritating. A good website with interesting content, this is what I need. Thanks for making this web site, and I will be visiting again. Do you do newsletters by email?

  10. Hiya, I’m really glad I’ve found this information. Nowadays bloggers publish only about gossip and web stuff and this is actually irritating. A good blog with interesting content, this is what I need. Thanks for making this site, and I’ll be visiting again. Do you do newsletters by email?

  11. Hiya, I am really glad I have found this info. Today bloggers publish just about gossip and net stuff and this is actually irritating. A good web site with interesting content, that is what I need. Thanks for making this web site, and I will be visiting again. Do you do newsletters by email?

  12. Hiya, I’m really glad I’ve found this information. Nowadays bloggers publish only about gossip and internet stuff and this is really frustrating. A good blog with interesting content, this is what I need. Thanks for making this site, and I’ll be visiting again. Do you do newsletters by email?

  13. Hiya, I’m really glad I have found this information. Nowadays bloggers publish only about gossip and net stuff and this is actually annoying. A good web site with interesting content, that is what I need. Thank you for making this website, and I will be visiting again. Do you do newsletters by email?

  14. Hiya, I am really glad I have found this info. Today bloggers publish only about gossip and internet stuff and this is really frustrating. A good website with interesting content, this is what I need. Thank you for making this web-site, and I will be visiting again. Do you do newsletters by email?

  15. Hiya, I’m really glad I have found this information. Today bloggers publish only about gossip and net stuff and this is actually frustrating. A good web site with interesting content, this is what I need. Thank you for making this web-site, and I’ll be visiting again. Do you do newsletters by email?

  16. Hiya, I am really glad I’ve found this information. Nowadays bloggers publish only about gossip and internet stuff and this is actually frustrating. A good blog with exciting content, this is what I need. Thank you for making this web site, and I will be visiting again. Do you do newsletters by email?

  17. Hiya, I’m really glad I have found this info. Nowadays bloggers publish only about gossip and web stuff and this is actually frustrating. A good site with exciting content, that’s what I need. Thanks for making this web site, and I will be visiting again. Do you do newsletters by email?

  18. Awesome write-up. I’m a normal visitor of your blog and appreciate you taking the time to maintain the excellent site. I will be a frequent visitor for a long time.

  19. Hiya, I am really glad I’ve found this information. Today bloggers publish just about gossip and internet stuff and this is actually irritating. A good site with exciting content, that is what I need. Thank you for making this web site, and I’ll be visiting again. Do you do newsletters by email?

Leave a Reply

Your email address will not be published.