美文网首页
centos7部署teamviewer

centos7部署teamviewer

作者: 带着小猪闯天下 | 来源:发表于2019-12-25 13:54 被阅读0次

    环境准备

    关闭防火墙&selinux

    1,安装图形(可选)

    详细过程请参考:
    https://www.linuxidc.com/Linux/2017-03/141348.htm

    yum -y groupinstall "Server with GUI"
    ##开机自动进入桌面
    ##查看当前模式
    systemctl get-default
    ##开机启动图形界面
    systemctl set-default graphical.target(图形界面模式)
    reboot(重启系统)
    ##开机启动字符界面模式
    systemctl set-default multi-user.target(字符界面模式)
    reboot
    

    !!报错!!

      file /boot/efi/EFI/centos from install of fwupdate-efi-12-5.el7.centos.x86_64 conflicts with file from package grub2-common-1:2.02-0.64.el7.centos.noarch
    
    Error Summary
    

    解决

    ##由于文件fwupdate-efi 同grub2-common冲突所致,需要将该包通过yum update grub2-common命令进行更新。
    yum update grub2-common -y
    

    2,下载依赖包&&安装包

    wget  http://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/q/qt5-qtwebkit-5.9.1-2.el7.x86_64.rpm
    ##teamviewer官方下载地址:https://www.teamviewer.cn/cn/download/windows/
    wget https://download.teamviewer.com/download/linux/teamviewer.x86_64.rpm
    

    3,安装

    ##安装依赖包
    yum -y install qt5-qtwebkit-5.9.1-2.el7.x86_64.rpm
    ##安装teamviewer
    yum -y install teamviewer.x86_64.rpm
    

    4,启动(默认装到/opt下)

    cd /opt/teamviewer/tv_bin
    ##启动
    teamviewer
    teamviewer --info命令可查看teamview运行状态
    ##开机启动
     systemctl enable teamviewerd.service
    

    如果没有设置密码,TeamViewer ID: 后面会是空的,
    执行命令 teamviewer --passwd 你的密码

    [root@localhost tv_bin]# teamviewer --passwd abc123456
    
    ok
    
    
    
    

    再次运行teamviewer --info命令就可以看到ID了

    [root@localhost tv_bin]# teamviewer --info
    
     TeamViewer                           15.1.3937  (RPM) 
    
     TeamViewer ID:                        1497934230 
    
     teamviewerd status                   ● teamviewerd.service - TeamViewer remote control daemon
       Loaded: loaded (/etc/systemd/system/teamviewerd.service; enabled; vendor preset: disabled)
       Active: active (running) since Wed 2019-12-25 20:54:53 CST; 57min ago
      Process: 10692 ExecStart=/opt/teamviewer/tv_bin/teamviewerd -d (code=exited, status=0/SUCCESS)
     Main PID: 10694 (teamviewerd)
       CGroup: /system.slice/teamviewerd.service
               └─10694 /opt/teamviewer/tv_bin/teamviewerd -d
    
    Dec 25 20:54:53 localhost.localdomain systemd[1]: Starting TeamViewer remote control daemon...
    Dec 25 20:54:53 localhost.localdomain systemd[1]: PID file /var/run/teamviewerd.pid not readable (yet?) after start.
    Dec 25 20:54:53 localhost.localdomain systemd[1]: Started TeamViewer remote control daemon. 
    
    
    

    5,通过teamviewer连接

    image.png

    !报错!

    1
    当我打开centos的图形后发现图形根本打不开(绝望)

    解决
    ##换成32位版本
    wget https://download.teamviewer.com/download/linux/teamviewer.i686.rpm
    yum localinstall teamviewer.i686.rpm -y
    

    2

    Error: Package: teamviewer-15.1.3937-0.i686 (/teamviewer.i686)
               Requires: libQt5WebKit.so.5 >= 5.5
    Error: Package: teamviewer-15.1.3937-0.i686 (/teamviewer.i686)
               Requires: libQt5WebKitWidgets.so.5 >= 5.5
     You could try using --skip-broken to work around the problem
     You could try running: rpm -Va --nofiles --nodigest
    ##解决
    wget  http://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/q/qt5-qtwebkit-5.9.1-2.el7.x86_64.rpm
    yum -y install qt5-qtwebkit-5.9.1-2.el7.x86_64.rpm
    

    无脑安装成功,(亲测有效)

    systemctl stop firewalld
    setenforce 0
    wget https://download.teamviewer.com/download/linux/teamviewer.i686.rpm
    wget  http://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/q/qt5-qtwebkit-5.9.1-2.el7.x86_64.rpm
    yum -y install epel-release
    yum -y install qt5-qtwebkit-5.9.1-2.el7.x86_64.rpm
    yum localinstall teamviewer.i686.rpm -y
    ##开机启动
    systemctl enable teamviewerd.service
    
    image.png

    设置密码

    image.png
    image.png

    连接测试

    image.png
    image.png

    相关文章

      网友评论

          本文标题:centos7部署teamviewer

          本文链接:https://www.haomeiwen.com/subject/xehtoctx.html