- 论坛徽章:
- 0
|
1.install pkg-get.pkg
bash-2.05# pkgadd -d pkg_get.pkg
The following packages are available:
1 CSWpkgget pkg_get - CSW version of automated package download tool
(all) 3.7
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:
Processing package instance <CSWpkgget> from
</export/home/james/pkg_get.pkg>
pkg_get - CSW version of automated package download tool
(all) 3.7
This appears to be an attempt to install the same architecture and
version of a package which is already installed. This installation
will attempt to overwrite this package.
You may use and copy this software without charge, as you see fit.
The software is copyright (C) Philip Brown, Nov 2000-2006
Dont forget to update /opt/csw/etc/pkg-get.conf with your nearest archive
site.
(or /etc/opt/csw/pkg-get.conf)
Dont stick with the default of ibiblio.org: it's very slow!
Using </opt/csw> as the package base directory.
## Processing package information.
## Processing system information.
11 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## 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 <CSWpkgget> [y,n,?] y
Installing pkg_get - CSW version of automated package download tool as
<CSWpkgget>
## Installing part 1 of 1.
[ verifying class <none> ]
## Executing postinstall script.
/opt/csw/etc/pkg-get.conf already exists. Not altering it.
Installation of <CSWpkgget> was successful.
2.Confiugre PATH and MANPATH
bash-2.05# PATH=$PATH:/opt/csw/bin;export PATH
or vi profile
eg: vi /export/home/james/.profile
PATH=$PATH:/opt/csw/bin;export PATH
MANPATH=$MANPATH:/opt/csw/man;export MANPATH
3.Install VNC
bash-2.05# pkg-get -U
WARNING: gpg not found
NOTE: To have checksums compared, you must install one of:
md5 or gmd5sum (gmd5sum is available with GNU textutils)
try 'pkg-get install textutils'
Getting catalog...
--13:40:55--
http://ibiblio.org/pub/packages/ ... e/sparc/5.9/catalog
=> `catalog'
Connecting to ibiblio.org:80... connected!
HTTP request sent, awaiting response... 200 OK
Length: 190,062 [text/plain]
0K
.. 100% @ 3.97 KB/s
13:41:43 (3.97 KB/s) - `catalog' saved [190062/190062]
WARNING: gpg not available.
Stripping off catalog signature without verifying
Updating catalog file
/var/pkg-get/catalog-ibiblio.org updated
--13:41:43--
http://ibiblio.org/pub/packages/ ... rc/5.9/descriptions
=> `descriptions'
Connecting to ibiblio.org:80... connected!
HTTP request sent, awaiting response... 200 OK
Length: 84,412 [text/plain]
0K . 100% @ 4.31
KB/s
13:42:03 (4.31 KB/s) - `descriptions' saved [84412/84412]
Updated description file
bash-2.05# pkg-get -i vncserver
It will auto install vncserver and dependancy jpeg
4.Configure vncserver config file
bash-2.05# vi /opt/csw/etc/vncservers
Uncomment and edit:
VNCSERVERS="1:james 2:root 3:johnm"
ARGS="-geometry 800x600 -alwaysshared -depth 16"
info:
# Non-root users must have read/write permissions
# on /tmp/.X11-unix to be able
# to run VNC server (e.g.: chmod 01777 /tmp/.X11-unix)
bash-2.05#chmod 01777 /tmp/.X11-unix
bash-2.05$ vncserver
You will require a password to access your desktops.
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
New 'X' desktop is sol9test.com:1
Starting applications specified in /export/home/james/.vnc/xstartup
Log file is /export/home/james/.vnc/sol9test.com:1.log
check:
bash-2.05$ ls -la /export/home/james/.vnc
total 8
drwx------ 2 james other 512 Oct 20 18:08 .
drwxr-xr-x 15 james other 1024 Oct 20 18:06 ..
-rw------- 1 james other 8 Oct 20 18:06 passwd
-rwxr-xr-x 1 james other 33 Oct 20 15:44 xstartup
bash-2.05$
modify xstartup file to use CDE login:
bash-2.05$ more /export/home/james/.vnc/xstartup
#!/bin/sh
/usr/dt/bin/Xsession &
bash-2.05$
5.Test
http://192.168.0.110:5801/
see the screenshot |
|