Site icon 咖啡偶-IT日常

RockyLinux 安裝tigervnc-server

yum update -y
yum install -y epel-release
yum groupinstall -y "Xfce" "base-x"
yum systemctl set-default graphical
reboot
yum install tigervnc-server -y
adduser william
passwd william
su - william
vncpasswd 
cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service
 vi /etc/tigervnc/vncserver.users
###############
:1=william
###############
systemctl daemon-reload 
systemctl enable vncserver@:1.service
systemctl start vncserver@:1.service
firewall-cmd --zone=public --permanent --add-service=vnc-server
# 或是直接指定port 
# firewall-cmd --zone=public --permanent --add-port=5901/tcp
firewall-cmd --reload

Exit mobile version