离线安装vnc 可视化桌面
- 缘
- 下载
- 安装
- vnc初始化
- 链接
缘
项目需要
下载
下载地址:
http://mirror.centos.org/centos/7/updates/x86_64/Packages/tigervnc-license-1.8.0-31.el7_9.noarch.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libXfont2-2.0.3-1.el7.x86_64.rpm
https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/tigervnc-server-minimal-1.8.0-31.0.1.el7_9.x86_64.rpm
https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/tigervnc-server-1.8.0-31.0.1.el7_9.x86_64.rpm
安装
rpm -ivh libXfont2-2.0.3-1.el7.x86_64.rpm rpm -ivh tigervnc-license-1.8.0-31.el7_9.noarch.rpm rpm -ivh tigervnc-server-minimal-1.8.0-31.0.1.el7_9.x86_64.rpm rpm -ivh tigervnc-server-1.8.0-31.0.1.el7_9.x86_64.rpm
vnc初始化
输入命令vncserver
并设置密码:
[root@localhost vnc]# vncserverYou will require a password to access your desktops.Password:
Verify:
Would you like to enter a view-only password (y/n)? n
A view-only password is not used
xauth: file /root/.Xauthority does not existNew 'localhost.localdomain:1 (root)' desktop is localhost.localdomain:1Creating default startup script /root/.vnc/xstartup
Creating default config /root/.vnc/config
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:1.log
链接
输入以下地址【ip:1】,回车,在弹出的窗口中点击continue继续,输入设置的密码:
连接成功: