Solaris下安裝VNC

yangtingkun發表於2009-04-13

以前都是讓硬體部門協助安裝,今天硬體人員不在,嘗試自己安裝。

 

 

首先從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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章