centos7 安装vnc-server 与卸载
2023-09-14 08:56:55 时间
查看是否安装vnc
rpm -qa | grep vnc
centos安装vnc
yum install vnc vnc-server
yum install tightvnc-server
去除端口防火墙
iptables -I INPUT -p tcp --dport 5901 -j ACCEPT
查看是否安装Gnome桌面环境【vnc viewer连接黑屏可能没安装这个桌面环境】
yum grouplist
安装Gnome桌面环境
yum groupinstall "GNOME Desktop"
新建桌面:1
vncserver :1
输入vncserver :1后设置密码
Password: 设置使用VNC连接服务器的密码
Verify: 再次输入一遍密码
Would you like to enter a view-only password (y/n)? 选择n,以使连接到服务器后可以操作服务器
其他命令:
设置VNC密码
vncpasswd
查看vncserver的服务情况
vncserver -list
开启编号为:1的桌面
vncserver :1
关闭编号为:1的vncserver
vncserver -kill :1
更新systemctl使配置生效
systemctl daemon-reload
客户端黑屏 CentOS 执行:chmod 755 /root/.vnc/xstartup
卸载vnc软件
yum remove tigervnc-server -y
删除vnc下的配置
rm -rf /root/.vnc rm -rf /etc/.X11-unit rm -rf /etc/.X*-lock
win10 使用 vnc viewer 连接 linxu 的vnc server
在centos7桌面的下方会有Unencrypted connection
表示root是加密的,可以不管。一样可以进入桌面管理。。如果显示Unencrypted connection但是桌面黑屏,可能是没有安装桌面环境 yum groupinstall "GNOME Desktop
相关文章
- CentOS7 关闭防火墙
- CentOS7安装 Apache HTTP 服务器
- centos7中安装python3,配置python虚拟环境,
- 【问题解决方案】CentOS7替换yum的问题:使用yum makecache出现File contains no section headers
- VIEW SERVER STATE permission was denied on object 'server', database 'master'
- Centos7 k8s v1.5.2二进制部署安装-k8s组件
- Centos7 KVM日常运维
- C# 连接SQL Server数据库的几种方式--server+data source等方式
- Could not load the Tomcat server configuration at /Servers/Tomcat v7.0 Server at localhost-config.
- RabbitMQ 3.5.1的安装(centos7.x安装rabbitmq 3.5.1,RPM包安装方式)
- Linux -- CentOS7修改防护墙端口
- 利用PowerUpSQL攻击SQL Server实例——本质上就是利用弱密码登录SQL server
- centos7挂载usb
- 安装CDH6.3版本的时候遇到 ‘ERROR main:com.cloudera.server.cmf.Main: Server failed’的解决方案
- Centos7 下载|安装|配置|卸载 Docker
- Centos7 安装 Docker
- Centos7安装Tomcat-9.0.37
- Centos7安装MySQL-5.7.17详细教程
- Centos7安装grafana-7.5.4