RHEL/CentOS上用x11vnc搭建vnc远程桌面服务
Tag: 个人笔记,CentOS/RHEL的远程桌面服务搭建,原始发布于:RHEL/CentOS上用x11vnc搭建vnc远程桌面服务
个人操作笔记,如有转载,请注明出处。
——by realasking
服务器端配置
1.安装
bash #tar -xzvf x11vnc.tar.gz #cd x11vnc #./configure --prefix=/usr #make #make install
2.配置
bash
vi /etc/xinetd.d/x11vnc
输入以下内容:
bash service x11vnc { port = 5900 type = UNLISTED socket_type = stream protocol = tcp wait = no user = root server = /usr/bin/x11vnc server_args = -inetd -o /var/log/x11vnc.log -display :0 -forever -auth /var/gdm/:0.Xauth -localhost -many -bg disable = no }
保存,然后执行:
bash #service xinetd restart
编辑/boot/grub/grub.conf
,在kernel
行后加上5
客户端配置
3.客户端软件
若用putty
Connection-SSH-Tunnels,source port 5900,Destination 127.0.0.1:5900,Local,Auto,
然后点击Add
,并保存
若用cygwin-X
假设cygwin
安装到(包括必要的x组件):
E:\cygwin
新建一个快捷方式:CygWin-X
,内容是:
E:\cygwin\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/startxwin.exe -wgl
启动ssh转发
启动putty
; 或者启动CygWin-X
,并执行ssh username@host -L 5900:localhost:5900
启动TightVNC Viewer
Server栏填写:localhost
Connection profile
选择:High-speed network
然后点击connect