环境:
OS: AIX 5.3
1.下载vnc的rpm安装包
下载地址:
[hxl/root]#ls -1|grep vnc
vnc-3.3.3r2-6.aix5.1.ppc.rpm
2.安装VNC
安装前确认是否已经安装了rpm
[hxl/root]#lslpp -l|grep rpm.rte
rpm.rte 3.0.5.47 COMMITTED RPM Package Manager
rpm.rte 3.0.5.47 COMMITTED RPM Package Manager
若是以上没有输出,则说明没有安装,aix安装盘中有rpm的安装包,安装即可.
[hxl/root]#rpm -ivh vnc-3.3.3r2-6.aix5.1.ppc.rpm
vnc ##################################################
3.配置VNC
修改/opt/freeware/bin/vncserver的启动脚本,确保内容如下:
$geometry = "1024x768";
$depth = "24";
$desktopName = "X";
$vncClasses = "/opt/freeware/vnc/classes";
$vncUserDir = "$ENV{HOME}/.vnc";
$xauthorityFile = "$ENV{HOME}/.Xauthority";
$defaultXStartup
= ("#!/bin/sh/n/n".
"xrdb /$HOME/.Xresources/n".
"xsetroot -solid grey/n".
"xterm -geometry 1024x768+10+10 -ls -title /"/$VNCDESKTOP Desktop/" &/n".
"startkde &/n");
修改/.vnc/xstart
cd ~
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 1024x768+10+10 -ls -title "$VNCDESKTOP Desktop, WARING:you are ROOT!" &
#startkde &
#exec gnome-session &
/usr/dt/bin/dtsession &
5.启动VNC:
方法1:vncserver
[hxl/root]#vncserver
You will require a password to access your desktops.
Password:
Verify:
New 'X' desktop is hxl:1
Creating default startup script //.vnc/xstartup
Starting applications specified in //.vnc/xstartup
Log file is //.vnc/hxl:1.log
方法2:
cd /opt/freeware/bin
./vncserver :1
如果第一次启动,那么需要用户输入两次密码,用于设置客户端连接时使用的密码.
6.关闭VNC
[hxl/root]#vncserver -kill :1
Killing Xvnc process ID 393466
7.修改vnc密码
vncpasswd
其他用户登陆的配置步骤(如oracle用户)
1.oracle通过telnet或Xmanager登陆
2.启动vnc
$vncserver :4
3.修改xstart文件,确保该文件内容如下
cd ~
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 1024x768+10+10 -ls -title "$VNCDESKTOP Desktop, WARING:you are ROOT!" &
#startkde &
#exec gnome-session &
/usr/dt/bin/dtsession &
这样oracle用户就可以使用vnc登陆了.
-- The End --
阅读(600) | 评论(0) | 转发(0) |