vncserver configuration
1.install vncserver
[root@yumserver sample]# yum install vnc-server
2.start vncserver
[root@yumserver sample]# service vncserver restart
3.add user
[root@yumserver sample]# useradd vncuser
[root@yumserver sample]# passwd vncuser
4.set vnc-client password
[oracle@yumserver sample]# vncpasswd
[root@yumserver sample]# vncserver
password:
verify:
5.configure user vnc file by user oracle and root
[root@yumserver sample]# vi $HOME/.vnc/xstartup
#!/bin/sh
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
#add line
gnome-session &
6.modify vncserver configure file
[root@yumserver ~]# vi /etc/sysconfig/vncservers
#add lines
VNCSERVERS="1:root 2:oracle"
VNCSERVERARGS[1]="-geometry 1024x768"
VNCSERVERARGS[2]="-geometry 1024x768"
vncserver restart
修改oracle用户下的文件
vncserver restart
7.login
服务器:IP:1
密码
10.50.109.4:1
root
vncuser
===
1./etc/init.d/vncserver restart
2.root:
vncpasswd
vncserver
3.oracle:
vncpasswd
vncserver
4.modify root&oracle .vnc/xstartup
5.modify /etc/sysconfig/vncservers
6./etc/init.d/vncserver restart
阅读(1214) | 评论(0) | 转发(0) |