从blatwave.org上安装Solaris VNC

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
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值