1、配置并开启vnc服务[Oracle@localhost ~]$ vncserverYou will require a password to access your desktops.Password: ---这里要求输入vnc客户端登录的密码并重复
Verify: New "localhost.localdomain:2 (oracle)" desktop is localhost.localdomain:2Creating default startup script. /home/oracle/.vnc/xstartup
Starting applications specified in /home/oracle/.vnc/xstartup
Log file is /home/oracle/.vnc/localhost.localdomain:2.log
----如上告诉你vnc终端已经创建好,用的是第二个终端2、在创建vnc服务的用户目录下会生成一个.vnc的隐藏目录
[oracle@localhost ~]$ ls -a
. .bash_profile Disk1 .gconfd .gstreamer-0.10 .metacity README.htm .viminfo
.. .bashrc .eggcups .gnome .gtkrc-1.2-gnome2 .mozilla .RedHat .vnc
.bash_history .chewing .emacs .gnome2 .ICEauthority .nautilus .scim .Xauthority
.bash_logout Desktop .gconf .gnome2_private .kde p8202632_10205_Linux-x86-64.zip .Trash .zshrc3、进入.vnc目录,找到xstartup可执行文件,用vi 编辑器打开
[oracle@localhost ~]$ cd .vnc/
[oracle@localhost .vnc]$ ls
localhost.localdomain:2.log localhost.localdomain:2.pid passwd xstartup
[oracle@localhost .vnc]$ vi xstartup
#!/bin/sh# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc ---去掉前面的#号即可 --保存退出[ -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 &
~
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
"xstartup" 12L, 333C 已写入
[oracle@localhost .vnc]$ vncserverNew "localhost.localdomain:3 (oracle)" desktop is localhost.localdomain:3Starting applications specified in /home/oracle/.vnc/xstartup
Log file is /home/oracle/.vnc/localhost.localdomain:3.log
4、清除刚才创建的vnc虚拟终端
[oracle@localhost .vnc]$ vncserver -kill :1Can"t find file /home/oracle/.vnc/localhost.localdomain:1.pid
You"ll have to kill the Xvnc process manually[oracle@localhost .vnc]$ vncserver -kill :2
Killing Xvnc process ID 11889
[oracle@localhost .vnc]$ vncserver -kill :3
Killing Xvnc process ID 11945
[oracle@localhost .vnc]$ vncserver -kill :4Can"t find file /home/oracle/.vnc/localhost.localdomain:4.pid
You"ll have to kill the Xvnc process manually5、重新建立新的vnc虚拟终端
[oracle@localhost .vnc]$ vncserverNew "localhost.localdomain:2 (oracle)" desktop is localhost.localdomain:2Starting applications specified in /home/oracle/.vnc/xstartup
Log file is /home/oracle/.vnc/localhost.localdomain:2.log --该终端号为 :26、在windows客户端用RealVNC软件中的Run VNC Viewer客户端连接。
7、在Run VNC Viewer 只需输入linux服务器的地址和刚才生成的终端号:2
格式:192.168.1.56:2
8、输入刚才配置vnc服务的时候配的即可登录linux服务器图形界面。CentOS 5.5升级内核到2.6.28并支持XFS/L7mount 挂载及卸载 Linux共享存储相关资讯 VNC
- 远程管理之VNC 详解 (今 21:04)
- Linux 开启VNC远程管理服务的图形 (05月12日)
- 在CentOS 6.5设置VNC多用户登录 (12/19/2015 13:44:13)
| - CentOS 7下安装配置 VNC Server (07月03日)
- CentOS 5.11开启VNC访问 (01月22日)
- CentOS 6.5 安装VNC Server实现图 (12/14/2015 20:15:51)
|
本文评论 查看全部评论 (0)
评论声明- 尊重网上道德,遵守中华人民共和国的各项有关法律法规
- 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
- 本站管理人员有权保留或删除其管辖留言中的任意内容
- 本站有权在网站内转载或引用您的评论
|