CentOS 6.5 安装和配置 VNC!!!
2017-01-15 17:54
537 查看
一,实验环境
Server:CentOS 6.5 x86_64Client: Windows 7二,安装和配置VNC
1. 安装软件[root@gxh ~]# yum install tigervnc-server -y2. 修改vnc主配置文件
[root@gxh~]# vim /etc/sysconfig/vncservers 找到最后两行,去掉注释,修改为 VNCSERVERS="1:root" ###第一个远程连接的账户为root VNCSERVERARGS[1]="-geometry1200x900 " ###root远程登录分辨率为1200x9003. 启动vnc
[root@gxh~]# vncserver Youwill require a password to access your desktops. Password: ###这里输入连接远程桌面的密码 Verify: ###再次输入密码 xauth:(stdin):1: bad display name"gxh:1" in "add" command New'gxh:1 (root)' desktop is gxh:1 Creatingdefault startup script /root/.vnc/xstartup Startingapplications specified in /root/.vnc/xstartup Logfile is /root/.vnc/gxh:1.log4. 修改xstartup文件
[root@gxh~]# vim .vnc/xstartup 将最后两行注释掉,在最后一行添加如下: #xterm-geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & #twm& gnome-session&5. 设置vncserver开机启动
[root@gxh~]# chkconfig vncserver on6. 设置防火墙
VNCserver 监听的端口从 5900 开始,display:1 监听 5901,display:2监听 5902,以此类推。
[root@gxh~]# iptables -I INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j ACCEPT [root@gxh~]# service iptables save7. VNC Server配置完成
三,客户端
1. 安装vnc客户端2. 远程连接vnc服务器
四,扩展命令
1. 添加一个display[root@gxh ~]# vncserver xauth: (stdin):1: bad display name "gxh:2" in"add" command New 'gxh:2 (root)' desktop is gxh:2 Starting applications specified in/root/.vnc/xstartup Log file is /root/.vnc/gxh:2.log2. 列出所有display
[root@gxh ~]# vncserver -list TigerVNC server sessions: X DISPLAY # PROCESSID :1 2403 :2 29983. 关闭一个display
[root@gxh ~]# vncserver -kill :2 Killing Xvnc process ID 2998 [root@gxh ~]# vncserver -list TigerVNC server sessions: X DISPLAY # PROCESSID :1 24034. 修改远程登录密码
[root@gxh ~]# vncpasswd Password: Verify:
五,VNC客户端软件推荐
VNC ViewerTightVNC
RealVNC
TigerVNC
相关文章推荐
- CentOS_6.5_x64:VNC安装配置
- centos6.5 vnc服务安装配置
- Centos6.5安装配置VNC(linux的远程桌面)
- 安装centos6.5 i686,安装vnc,配置中文界面
- CentOS 6下VNC的安装与配置
- CentOS下安装配置VNC的过程
- 3、单机运行环境搭建之 --CentOS-6.5安装配置Tengine
- rpm安装MySQL5.5后配置,在centos5上;mysql编译安装在centos6.5上;
- centOS 6.5 的安装和配置
- Centos5.6 VNC安装配置【无错版】
- 怎样在 CentOS 7.0 上安装和配置 VNC 服务器
- CentOS 6.5 FTP安装配置
- CentOS 6.5系统安装配置图解教程(详细图文)
- CentOS6下VNC的安装与配置
- 在CentOS下安装配置VNC详细过程
- CentOS6下VNC的安装与配置
- Centos5.6 VNC安装配置【无错版】
- 2、单机运行环境搭建之 --CentOS-6.5安装配置Tomcat7
- CentOS 5 下安装配置VNC
- 在CentOS 5 下安装配置VNC