配置VNC中root密码 [root@fusndb db]# vncserver You will require a password to access your desktops. Password: Verify: xauth: creating new authority file /root/.Xauthority New 'fusndb:1 (root)' desktop is fusndb:1 Creating default startup script /root/.vnc/xstartup Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/fusndb:1.log
配置VNC中oracle密码 [root@fusndb db]# su - oracle [oracle@fusndb ~]$ vncserver You will require a password to access your desktops. Password: Verify: xauth: creating new authority file /home/oracle/.Xauthority New 'fusndb:2 (oracle)' desktop is fusndb:2 Creating default startup script /home/oracle/.vnc/xstartup Starting applications specified in /home/oracle/.vnc/xstartup Log file is /home/oracle/.vnc/fusndb:2.log
保存配置信息 vi /etc/sysconfig/vncservers新增一行VNCSERVERS="1:root 2:oracle"
重启vncserver服务 [root@fusndb db]# service vncserver restart Shutting down VNC server: 1:root 2:oracle [ OK ] Starting VNC server: 1:root New 'fusndb:1 (root)' desktop is fusndb:1 Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/fusndb:1.log
2:oracle New 'fusndb:2 (oracle)' desktop is fusndb:2 Starting applications specified in /home/oracle/.vnc/xstartup Log file is /home/oracle/.vnc/fusndb:2.log