Linux下Teamviewer安装、设置及开机启动

常用的命令

[root@Ieat5 ~]# teamviewer -help

 TeamViewer                           14.1.3399  (RPM) 

 teamviewer                           Start TeamViewer user interface (if not running). 

 teamviewer help                      Print this help screen. 
 teamviewer version                   Print version information. 
 teamviewer info                      Print version, status, id. 
 teamviewer ziplog                    Create a zip containing all teamviewer logs (useful when contacting support). 

 teamviewer license [show|accept]     Interactively agree or show/agree to End User License Agreement. 
 teamviewer setup                     Configure headless modes (non-gui/console) 

 teamviewer passwd [PASSWD]           Set a password (useful when installing remote (ssh). 

 teamviewer daemon status             Show current status of the TeamViewer daemon. 
 teamviewer daemon start              Start		TeamViewer daemon. 
 teamviewer daemon stop               Stop		TeamViewer daemon. 
 teamviewer daemon restart            Stop/Start	TeamViewer daemon. 
 teamviewer daemon disable            Disable	TeamViewer daemon - don't start daemon on system startup. 
 teamviewer daemon enable             Enable		TeamViewer daemon - start daemon on system startup (default). 

卸载teamviewer

[root@Ieat5 ~]# rpm -q teamviewer
teamviewer-14.1.3399-0.x86_64
[root@Ieat5 ~]# rpm -e teamviewer-14.1.3399-0.x86_64

Removed symlink /etc/systemd/system/multi-user.target.wants/teamviewerd.s
Clearing assignments ...
done
gtk-update-icon-cache: Cache file created successfully.
Error in file "/usr/share/applications/org.gnome.font-viewer.desktop": "f
Error in file "/usr/share/applications/org.gnome.font-viewer.desktop": "

安装teamviewer

1.到teamviewer官网找到对应的最新版本teamviewer 14,这里是centos7 所以适用以下命令:

[root@Ieat5 ~]# wget https://download.teamviewer.com/download/linux/teamviewer.x86_64.rpm

2.使用以下命令安装

(base) [root@Ieat3 ~]# teamviewer info
bash: teamviewer: command not found...
(base) [root@Ieat3 ~]# rpm -q teamviewer
package teamviewer is not installed
(base) [root@Ieat3 ~]# wget https://download.teamviewer.com/download/linux/teamviewer.x86_64.rpm
bash: wget: command not found...
Similar command is: 'wge'
(base) [root@Ieat3 ~]# yum -y install wget
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * epel: hkg.mirror.rackspace.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package wget.x86_64 0:1.14-18.el7 will be updated
---> Package wget.x86_64 0:1.14-18.el7_6.1 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================================================
 Package                 Arch                      Version                               Repository                  Size
==========================================================================================================================
Updating:
 wget                    x86_64                    1.14-18.el7_6.1                       updates                    547 k

Transaction Summary
==========================================================================================================================
Upgrade  1 Package

Total size: 547 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Updating   : wget-1.14-18.el7_6.1.x86_64                                                                            1/2 
  Cleanup    : wget-1.14-18.el7.x86_64                                                                                2/2 
  Verifying  : wget-1.14-18.el7_6.1.x86_64                                                                            1/2 
  Verifying  : wget-1.14-18.el7.x86_64                                                                                2/2 

Updated:
  wget.x86_64 0:1.14-18.el7_6.1                                                                                           

Complete!
(base) [root@Ieat3 ~]# wget https://download.teamviewer.com/download/linux/teamviewer.x86_64.rpm
--2019-09-04 07:11:26--  https://download.teamviewer.com/download/linux/teamviewer.x86_64.rpm
Resolving download.teamviewer.com (download.teamviewer.com)... 13.75.43.250
Connecting to download.teamviewer.com (download.teamviewer.com)|13.75.43.250|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://dl.teamviewer.com/download/linux/version_14x/teamviewer_14.5.5819.x86_64.rpm [following]
--2019-09-04 07:11:26--  https://dl.teamviewer.com/download/linux/version_14x/teamviewer_14.5.5819.x86_64.rpm
Resolving dl.teamviewer.com (dl.teamviewer.com)... 104.16.62.16, 104.16.63.16, 2606:4700::6810:3f10, ...
Connecting to dl.teamviewer.com (dl.teamviewer.com)|104.16.62.16|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://dl.teamviewer.cn/download/linux/version_14x/teamviewer_14.5.5819.x86_64.rpm [following]
--2019-09-04 07:11:27--  https://dl.teamviewer.cn/download/linux/version_14x/teamviewer_14.5.5819.x86_64.rpm
Resolving dl.teamviewer.cn (dl.teamviewer.cn)... 58.211.137.192, 240e:bf:c800:400:135:5b0f:9484:caea
Connecting to dl.teamviewer.cn (dl.teamviewer.cn)|58.211.137.192|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13874379 (13M) [application/x-redhat-package-manager]
Saving to: ‘teamviewer.x86_64.rpm’

100%[================================================================================>] 13,874,379   694KB/s   in 18s    

2019-09-04 07:11:53 (739 KB/s) - ‘teamviewer.x86_64.rpm’ saved [13874379/13874379]

(base) [root@Ieat3 ~]# yum -y install teamviewer.x86_64.rpm
Loaded plugins: fastestmirror, langpacks
Examining teamviewer.x86_64.rpm: teamviewer-14.5.5819-0.x86_64
Marking teamviewer.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package teamviewer.x86_64 0:14.5.5819-0 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================================================
 Package                    Arch                   Version                       Repository                          Size
==========================================================================================================================
Installing:
 teamviewer                 x86_64                 14.5.5819-0                   /teamviewer.x86_64                  66 M

Transaction Summary
==========================================================================================================================
Install  1 Package

Total size: 66 M
Installed size: 66 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : teamviewer-14.5.5819-0.x86_64                                                                          1/1 
gtk-update-icon-cache: Cache file created successfully.
Error in file "/usr/share/applications/org.gnome.font-viewer.desktop": "font/ttf" is an invalid MIME type ("font" is an unregistered media type)
Error in file "/usr/share/applications/org.gnome.font-viewer.desktop": "font/otf" is an invalid MIME type ("font" is an unregistered media type)
  Verifying  : teamviewer-14.5.5819-0.x86_64                                                                          1/1 

Installed:
  teamviewer.x86_64 0:14.5.5819-0                                                                                         

Complete!
(base) [root@Ieat3 ~]# teamviewer info

 TeamViewer                           14.5.5819  (RPM) 

 TeamViewer ID:                        1141824202 

 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-09-04 07:12:20 CST; 6s ago
  Process: 165840 ExecStart=/opt/teamviewer/tv_bin/teamviewerd -d (code=exited, status=0/SUCCESS)
 Main PID: 165842 (teamviewerd)
    Tasks: 24
   Memory: 8.5M
   CGroup: /system.slice/teamviewerd.service
           └─165842 /opt/teamviewer/tv_bin/teamviewerd -d

Sep 04 07:12:20 Ieat3 systemd[1]: Starting TeamViewer remote control daemon...
Sep 04 07:12:20 Ieat3 systemd[1]: PID file /var/run/teamviewerd.pid not readable (yet?) after start.
Sep 04 07:12:20 Ieat3 systemd[1]: Started TeamViewer remote control daemon. 

参考:安装及设置:https://blog.csdn.net/wangkaiT1234/article/details/83014758 作者:wangkait1234
开机启动: https://zhidao.baidu.com/question/535632976.html
没有仔细找网上有没有实现这个功能的帖子,因为这两天自己买了一台工控机,使用Linux系统。为了使用方便今后能做工位上远程连接工控机开发,网上找了找开机自动启动Teamview的方法,汇总如下:
1、下载TeamView
wget http://download.teamviewer.com/download/teamviewer_i386.deb

2、更新依赖及安装指令
sudo apt-get update

3、停止teamviewer
sudo teamviewer –daemon stop

4、修改配置文件
打开文件:vim /opt/teamviewer/config/global.conf (新电脑可能需要安装vim: sudo apt-get install vim)
(我装完后显示global.conf 是只读文件,需要打开前修改权限:
sudo chmod 777 /opt/teamviewer/config/global.conf)
增加内容:
EulaAccepted = 1
EulaAcceptedRevision = 6

5、启动teamviewer
sudo teamviewer –daemon start

6、设置登录密码
sudo teamviewer –passwd 123456

7、获取TeamviewerID
teamviewer –info print id

teamviewer –info

8、设置开机启动
sudo systemctl enable teamviewerd.service

设置完毕。可以重启电脑,在另一台装teamviewer的电脑里输入上边获取到的ID尝试连接。在弹出的密码框输入第六步设置的登陆密码

reference: https://blog.csdn.net/box172506/article/details/88016732

GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e added ecosystem file for PM2 4 年前
5def40a3 Add host customization support for the NodeJS version 4 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐