This article is originally posted at http://blog.chinaunix.net/u1/41699/showart_381650.html.
VNC is a remote control software which lets you see and interact with desktop applications across the network.
VNC is a remote control software which lets you see and interact with desktop applications across the network.
- install VNC from www.blastwave.org
[aubrey-lab@~] sudo pkg-get install vncserver [aubrey-lab@~] sudo pkg-get install vncviewer |
- Change fontpath to match solaris configuration
[aubrey-lab@~]cat /opt/csw/bin/vncserver.diff --- $fontPath = "tcp/localhost:7100"; +++ #$fontPath = "tcp/localhost:7100"; ---#$fontPath = "/usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/75dpi"; +++$fontPath = "/usr/lib/X11/X11/fonts/misc/,/usr/lib/X11/X11/fonts/75dpi"; |
- Add the path of the command "xrdb" to your environment PATH
[aubrey-lab@~]exporth PATH=/usr/openwin/bin:$PATH |
- Startup gnome-session when start VNC server
[aubrey-lab@~]cat ~/.vnc/xstartup ---/usr/openwin/bin/twm & +++#/usr/openwin/bin/twn & +++/usr/bin/gnome-session & |
- Now it's time to start VNC server
[aubrey-lab@~]vncserver New 'X' desktop is aubrey-lab:1 Starting application specified in /export/home/aubrey/.vnc/xstartup Log file is /export/home/aubrey/.vnc/aubrey-lab:1.log |
- And It can be killed by the following command
[aubrey-lab@~]vncserver -kill :1 |
- OK, you can connect this server by vncviewer on another machine, enter VNC server as "aubrey-lab:1", after password is checked successfully, you'll see the gnome desktop of the server.