狼爱上狸

我胡汉三又回来了

Solaris下安装VNC

以前都是让硬件部门协助安装,今天硬件人员不在,尝试自己安装。

 


首先从VNC官方网站下载一个FREE版本的VNC。

在目标服务器上解压:

# gunzip vnc-4_1_3-sparc_solaris.pkg.gz

下面利用pkgadd命令安装VNC包:

# pkgadd -d vnc-4_1_3-sparc_solaris.pkg

The following packages are available:
1 VNC VNC Free Edition for Solaris
(sparc) 4.1.3

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: 1

Processing package instance <VNC> from </var/spool/pkg/vnc-4_1_3-sparc_solaris.pkg>

VNC Free Edition for Solaris(sparc) 4.1.3

Copyright (C) 2002-2005 RealVNC Ltd. All rights reserved.

This is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This software is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Using </usr/local> as the package base directory.
## Processing package information.
## Processing system information.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.

The following files are already installed on the system and are being
used by another package:
* /usr/local/bin <attribute change only>

* - conflict with a file which does not belong to any package.

Do you want to install these conflicting files [y,n,?,q] y
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-user
permission during the process of installing this package.

Do you want to continue with the installation of <VNC> [y,n,?] y

Installing VNC Free Edition for Solaris as <VNC>

## Installing part 1 of 1.
/usr/local/bin/Xvnc
/usr/local/bin/vncconfig
/usr/local/bin/vncpasswd
/usr/local/bin/vncserver
/usr/local/bin/x0vncserver
/usr/local/man/man1/Xvnc.1
/usr/local/man/man1/vncconfig.1
/usr/local/man/man1/vncpasswd.1
/usr/local/man/man1/vncserver.1
/usr/local/man/man1/x0vncserver.1
/usr/local/vnc/classes/index.vnc
/usr/local/vnc/classes/logo150x150.gif
/usr/local/vnc/classes/vncviewer.jar
[ verifying class <server> ]
/usr/local/bin/vncviewer
/usr/local/man/man1/vncviewer.1
[ verifying class <viewer> ]
/usr/local/doc/vnc-E/LICENSE.txt
/usr/local/doc/vnc-E/README
[ verifying class <doc> ]
## Executing postinstall script.
Checking for xauth... /usr/openwin/bin
WARNING: /usr/openwin/bin/xauth is not on your path.
Checking for perl... [OK]
Checking for uname... [OK]

Installation of <VNC> was successful.

下面就可以通过VNCPASSWORD设置密码,并使用VNCSERVER来启动VNC后台进程:

# /usr/local/bin/vncpasswd
Password:
Verify:
# /usr/local/bin/vncserver
vncserver: couldn't find "Xvnc" on your PATH.
# export PATH=$PATH:/usr/local/bin
# vncserver &
[1] 15921
# xauth: creating new authority file //.Xauthority

New 'ser2:1 ()' desktop is ser2:1

Creating default startup script //.vnc/xstartup
Starting applications specified in //.vnc/xstartup
Log file is //.vnc/ser2:1.log


[1]+ Done vncserver

注意要将VNCSERVER命令的目录添加到PATH路径中,后台启动VNCSERVER后,就可以使用VNCVIEWER访问ser2:1了。



来自:  http://pub.itpub.net/post/468/482239

posted on 2009-12-31 16:38 狼爱上狸 阅读(652) 评论(0)  编辑  收藏 所属分类: SOLARIS


只有注册用户登录后才能发表评论。


网站导航: