还剩2页未读,继续阅读
文本内容:
系统下的配置Linux VNC Server>查看是否已安装,输入吩咐叩1vncserver rpm-qa|gr vnc〜[root@Sinoservices]#rpm-qa|grep vncvnc-server-
4.
1.2-
14.el5_
3.1〜[root@Sinoservices]#、运行服务器,输入吩咐2VNC vncserver[root@Sinoservices vncserverYou will require a password to access your desktops.Password:Verify:New Sinoservices.com:1root desktopis Sinoservices.com:1Creating defaultstartup script/root/.vnc/xstartup Starting applicationsspecified in/root/.vnc/xstartup Logfile is/root/.vnc/Sinoservices.com:
1.log〜[root@Sinoservices]#用户启动了匚假如你想更改的密码,只要在用户下执行root VNCserve VNCserverront吩咐vncpasswd、修改文件,输入吩咐按键进入编辑模3/etc/sysconfig/vncservers vi/etc/sysconfig/vncservers,i式,将下列内容加入该文件VNCSERVERS=nl:root2:oracleMVNCSERVERARGS[l]=n-geometry800x600*VNCSERVERARGS
[2]=H-geometry800x600”编辑完成后按键,输入“:存盘退出Esc wq”〜[root@Sinoservices]*vi/etc/sysconfig/vncservers#The VNCSERVERSvariable isa listof display:user pairs.#Uncomment thelines belowto starta VNC server ondisplay:21#as mymyusername adjustthis to your own.Youwillalso#need toset aVNC password;run manvncpasswd tosee how#to dothat.#DO NOTRUN THISSERVICE ifyour localarea networkis#entrusted!For asecure wayof usingVNC,see七七七七,・・#URL:h u/research.a com/archiv±/vnc/sshvnc,html.n n#Use-nolisten tcpto preventX connectionstoyourVNCservervia TCP.n n#Use-nohttpd toprevent web-based VNC clients connecting.n n#Use-localhost toprevent remoteVNCclientsconnecting exceptwhenn n#doing sothrough asecure tunnel.See the-via optionin the#man vncviewermanualpage.n nfVNCSERVERS=irooF2oraclenkrNCSERVERARGS[l]=-geometry800x600”n nVNCSERVERARGS
[2]=-geometry800x
600、修改文件,输入吩咐:按键进入编辑模式,将内容修改4/root/.vnc/xstartup vi/root/.vnc/xstartup,i为#!/bin/sh#Uncomment thefollowing twolines fornormal desktop:unset SESSION_MANAGER exec/etc/Xll/xinit/xinitrc[-x/etc/vnc/xstartup]exec/etc/vnc/xstartup[-r$HOME/.Xresources]xrdb$HOME/.Xresources xsetroot-solid greyvncconfig-iconicgnome-session n#xterm-geometry80x24+10+10-Is-title$VNCDESKTOP Desktop^#twm编辑完成后按键,输入“:存盘退出Esc wq”、切换用户,输入吩咐运行服务器,输入吩咐如下图所不5su-oracle,vncserver vncserver,[工七〜©Sinoservices]#su-oracle[oracle@Sinoservices root]$vncserverYou willrequireapasswordtoaccessyourdesktops.Password:Verify:xauth:creating newauthority file/home/oracle/.Xauthority11New Sinoservices.com:2oracle desktopis Sinoservices.com:2Creating defaultstartup script/home/oracle/.vnc/xstartup Startingapplicationsspecified in/home/oracle/.vnc/xstartup Logfile is/home/oracle/.vnc/Sinoservices.com:
2.log用户也启动了假如你想更改的密码,只要在该用户执行oracle VNCserver.VNCserver吩咐vncpasswd、修改文件,输入吩咐:按键进入编辑6/home/oracle/.vnc/xstartup vi/home/oracle/.vnc/xstartup,i模式,将内容修改为#!/bin/sh#Uncomment thefollowing twolines fornormal desktop:unset SESSION_MANAGERexec/etc/Xll/xinit/xinitrc[-x/etc/vnc/xstartup]exec/etc/vnc/xstartup[-r$HOME/.Xresources]xrdb$HOME/.Xresources xsetroot-solid greyvncconfig-iconicgnome-sessionn#xterm-geometry80x24+10+10-Is-title$VNCDESKTOP Desktop^#twm编辑完成后按键,输入:存盘退出Esc wq»、切换用户,输入吩咐重启服务,输入吩咐如7su-root,vncserver servicevncserver restart,下图所不[root@Sinoservices servicevncserver restart关闭服务器[确定]VNC1:root2:oracle启动服务器:VNC1:root11New Sinoservices.com:1root desktopis Sinoservices.com:1Starting applicationsspecified in/root/.vnc/xstartupLog fileis/root/.vnc/Sinoservices.com:
1.log2:oracle11New Sinoservices.com:2oracle desktopis Sinoservices.com:2Startingapplicationsspecified in/home/oracle/.vnc/xstartupLog fileis/home/oracle/.vnc/Sinoservices.com:
2.log[确定][root@Sinoservices#、已配置好,打开输入服务器的地址,例如:8VNC ServerVNC Client,VNCServer
192.168O249L点击确定,输入连接密码,就可以正常登录该服务器VNCVNC浏览器连接详组资料、设置开机自动启动,输入吩咐9chkconfig—level345vncserver on[root@Sinoservices chkconfig-level345vncserver on[root©Sinoservices#。
个人认证
优秀文档
获得点赞 0