linux redhat 9.2 vnc 安装

linux redhat 9.2 vnc 安装

1、使用X11 窗口系统

2、VNC Viewer 下载地址

https://www.realvnc.com/en/connect/download/vnc/    

3、安装tigervnc-server

rpm –qa | grep vnc 	#查看是否已经安装了vnc	
yum install tigervnc-server
vncserver :1  	#:1 代表启动vncserver 的端口号 5900 + 1
#第一次需要输入密码,要记住此密码,VNC Viewer 链接的时候需要
vncserver -list 	#查看启动的服务
sudo systemctl disable firewalld --now	#关掉防火墙


vncserver的其他命令
vncserver -list 			#查看启动的端口号
vncserver -kill :2 			#关掉nvcserver的进程和端口
ps -ef|grep vnc				#查看vnc有关的进程号
netstat -anpt|grep 5902 	#查看服务状态
ifconfig 					#参看主机的ip

使用VNC Viewer 链接 VNC Server 
输入ip :5900+端口			#列如 192.168.0.112:5902

4、安装 X11VNC

1、X11VNC源码下载

http://sourceforge.net/projects/libvncserver/files/x11vnc/0.9.13/x11vnc-0.9.13.tar.gz/download

2、解压

gzip -dc x11vnc-0.9.13.tar.gz | tar -xvf -

3、此步骤不需要进行操作:X11VNC需要其他库和编译工具
参考链接:https://www.cnblogs.com/cxchanpin/p/6789013.html

sudo yum intsall gcc make libXext-devel.x86_64

4、编译
进入解压的VNC Server源码里,打开终端

./configure 			#注意中间有等待时间 
make
make install
将会在x11vnc 下 生产x11vnc的执行程序,cd x11vnc 启动 ./x11vnc
程序将打印相关的信息

5、 关掉防火墙

sudo systemctl disable firewalld --now

6、启动X11VNC

./x11vnc -display :0 -passwd 123456 -shared -forever
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值