从blatwave.org上安装Solaris VNC

566人阅读 评论(0) 收藏 举报
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.
  • 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.
 
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:588763次
    • 积分:10375
    • 等级:
    • 排名:第1601名
    • 原创:445篇
    • 转载:3篇
    • 译文:0篇
    • 评论:11条
    最新评论