温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Linux怎样安装vnc

发布时间:2021-11-16 11:40:59 来源:亿速云 阅读:242 作者:小新 栏目:服务器

这篇文章给大家分享的是有关Linux怎样安装vnc的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。

linux远程桌面工具vnc如何使用

1. 下载IIS7服务管理工具

下载地址: IIS7服务器管理工具
Linux怎样安装vnc

iis服务器管理工具为绿色版便携版,工具为免安装版,只需要下载后解压打开软件就可以使用了。

iis7服务器管理工具可以远程控制安装有vnc server的主机。

2. linux远程桌面工具vnc使用教程

Linux怎样安装vnc

  • 第一步:打开IIS服务器管理工具,点击主程序图中“Vnc”键;

  • 第二步:点击“ 添加”;

  • 第三步:在弹出服务器信息框中填写Vnc信息,注意:IP 、密码为必填项;

  • Linux怎样安装vnc

  • 第四步:选择需要打开的VNC服务器;

  • Linux怎样安装vnc

  • 第五步:点击打开,即刻见VNV效果图。

    3.linux如何配置VNC

    Linux怎样安装vnc
    Linux怎样安装vnc

    yum groupinstall -y "GNOME Desktop"
    # 安装GNOME Desktop
    systemctl set-default graphical.target  //设置成图形模式


    ![在这里插入图片描述]( https://img-blog.csdnimg.cn/20200606165616482.png
    ![在这里插入图片描述]( https://img-blog.csdnimg.cn/20200606165720328.png
    3.1 安装GNOME桌面

yum install tigervnc-server -y

Linux怎样安装vnc

3.2 安装vnc server

# 复制一个服务设置的模板
cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service
# 修改此服务配置
vim /etc/systemd/system/vncserver@\:1.service
----------------------------------------------------------------------------------------------------------
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=forking
User=root
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=-/usr/bin/vncserver -kill %i
ExecStart=/sbin/runuser -l root -c "/usr/bin/vncserver %i"
PIDFile=/root/.vnc/%H%i.pid
ExecStop=-/usr/bin/vncserver -kill %i
[Install]
WantedBy=multi-user.target
# 对于普通用户,加入用户名为:Amos
# 下面举例进行设置: 首先一样复制一个server配置。改名为vncserver@:2.service
cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:2.service
# 然后进行修改
vim /etc/systemd/system/vncserver@\:2.service
--------------------------------------------------------------------------------------------------------
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=forking
User=root
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=-/usr/bin/vncserver -kill %i
ExecStart=/usr/bin/vncserver %i
PIDFile=/home/Amos/.vnc/%H%i.pid
ExecStop=-/usr/bin/vncserver -kill %i
[Install]
WantedBy=multi-user.target

Linux怎样安装vnc
3.3 设置为服务(用vim编辑后保存。)

[root@localhost ~]# vncpasswd
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
A view-only password is not used

Linux怎样安装vnc
3.4 设置vnc登录密码

systemctl start vncserver@:1
systemctl enable vncserver@:1    # 设为开机启动
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200606171701684.jpg)
# 查看服务监听的端口
netstat -lnpt|grep Xvnc
# 根据监听的端口,进行端口开放,每个用户会对应一个端口,第一个用户默认为5901端口。我这里是root用户
firewall-cmd --add-port=5901/tcp --permanent
firewall-cmd --reload

Linux怎样安装vnc
3.5 设置开机自启动,开放端口。

Linux怎样安装vnc
3.6 服务器端口5901放行。到这里就配置好了,可以用服务器管理工具连接了。

感谢各位的阅读!关于“Linux怎样安装vnc”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI