免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1316 | 回复: 0
打印 上一主题 下一主题

[VNC test on Solaris 9 ] [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-10-23 09:43 |只看该作者 |倒序浏览
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

vnc1.PNG (144.12 KB, 下载次数: 26)

vnc1.PNG

vnc2.PNG (74.33 KB, 下载次数: 26)

vnc2.PNG
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP