ASP Developer Network - Brought to you by Steve Radich and BitShop, Inc. - http://www.bitshop.com

Menu [hide]

SolarisEnablegnomeVNC

Enabling gnome via VNC on Solaris print
similar comment
There's a few ways to enable VNC Server on Solaris that I've found.

The first is the simplest, in the UI there's a System Tools - Remote Control application - This configures VNC to share the desktop session.

The second is the "vncserver" script which setups up and configures vnc on the server. However this uses a very basic window manager and is just the most very basic system - It's useful perhaps if you want to run something like a single application.

You can run the script:
#vncserver


This will ask for your password you want to use (this is NOT your account password, it's the vnc password) and will assign a screen number (the :1) for this display. NOTE: Multiple users could potentially run vcnserver and each would get a different screen number. Technically the screen is a distinct port being used instead of the default port - You may have to enable the extra port(s) through your firewall rules.

Once you have run vncserver you can then kill the running vncserver:
#vncserver -kill :1


Now onto setting up gnome. The startup script to start X Windows is very basic, you want to replace some things. This script is stored in ~/.vnc/xstartup.

For gnome you want to change the file to something like:

#cat ~/.vnc/xstartup
#!/bin/sh

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


There's other options of course in addition to gnome, you could also start up your raid monitoring application in this file by simply adding the command line to the above file.



References:

Original Blog Post with ideaexternal link (cache)

Created by: steveradich last modification: Thursday 29 of May, 2008 [23:38:44 UTC] by steveradich



Search
in:
Our Sponsors
Need a Virtual Server 2005 Hosted Account? Why not trust ASPDeveloper's Team? We're a division of www.bitshop.com
FREE .Net 2.0 Tutorials Available Now
http://www.aspdeveloper.net
Want to contribute to aspdeveloper.net? Contact us! suggest@aspdeveloper.net
Want to contribute to aspdeveloper.net? Contact us! suggest@aspdeveloper.net
Quality Business Internet Technology Shop - http://www.bitshop.com Sponsor of site and hosting
rss Wiki rss Blogs rss Articles rss Image galleries rss File galleries rss Forums rss Maps rss Directories
ASP Developer Network (since 1996) - Brought to you by Steve Radich and BitShop, Inc. - http://www.bitshop.com
Copyright © 1997-2005 by BitShop, Inc. All Rights Reserved.
No content may be reproduced in any form without written permission from BitShop, Inc.
We will be honored to assist with reproduction rights on our material if you contact us.
We also can provide print articles for your magazine, private training seminars at your site, and conference presentations.

Thank you for visiting. Please bookmark our site if you found it useful!
If you wish to make a donation it will help further the development of these free resources: