ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Solaris下安装VNC

Solaris下安装VNC

原创 Linux操作系统 作者:yangtingkun 时间:2009-04-13 21:07:39 0 删除 编辑

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

 

 

首先从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 from

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 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

* - 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 [y,n,?] y

Installing VNC Free Edition for Solaris as

## 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 ]
/usr/local/bin/vncviewer
/usr/local/man/man1/vncviewer.1
[ verifying class ]
/usr/local/doc/vnc-E/LICENSE.txt
/usr/local/doc/vnc-E/README
[ verifying class ]
## 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 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了。

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/4227/viewspace-588872/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
暂无介绍

注册时间:2007-12-29

  • 博文量
    1955
  • 访问量
    10438422