步驟1:打開終端(應用程序 >> 實用程序 >> 終端)。
第2步:切換到root用戶。
su -
第3步:在服務器上啟用EPEL存儲庫。
第4步:安裝wget包。
yum -y install wget
步驟 5:下載最新版本的 TeamViewer
wget https://download.teamviewer.com/download/linux/teamviewer.x86_64.rpm
步驟6:使用 yum 命令安裝 TeamViewer。
yum -y install teamviewer.x86_64.rpm
第7步:啟動 TeamViewer。
TeamViewer官網: https://www.teamviewer.com/en/download/linux/
選擇linux,下載rpm包,直接安裝
yum install teamviewer.x86_64.rpm
出現一個error提示,關鍵詞:libQt5WebKitWidgets.so,以下是錯誤原文
Error: Package: teamviewer-13.0.6634-0.x86_64 (/teamviewer.x86_64)
Requires: libQt5WebKitWidgets.so.5()(64bit) >= 5.5
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
解決方法:
下載qt5-qtwebkit的程式庫
https://centos.pkgs.org/7/epel-x86_64/qt5-qtwebkit-5.6.2-1.el7.x86_64.rpm.html
直接附上qt5-qtwebkit Binary package的下載連接吧
http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/q/qt5-qtwebkit-5.6.2-1.el7.x86_64.rpm
rpm安裝qt5-qtwebkit
rpm -Uvh qt5-qtwebkit-5.6.2-1.el7.x86_64.rpm
又有錯誤,提示Header V3 RSA/SHA256 Signature,以下是錯誤原文
warning: qt5-qtwebkit-5.6.2-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
故障原因:這是由於yum安裝了舊版本的GPG keys造成的
解決的方法就是在rpm 語句後面加上–force –nodeps
–nodeps就是安裝時不檢查依賴關係;
–force就是強制安裝;
重新安裝qt5-qtwebkit,終於裝好了。
rpm -Uvh qt5-qtwebkit-5.6.2-1.el7.x86_64.rpm --force --nodeps
再次安裝TeamViewer
yum install -y teamviewer.x86_64.rpm
完成。
轉載來源。https://blog.csdn.net/RBPicsdn/article/details/78972100
TeamViewer提供了一個名為 teamviewerd.sysvavailable in 的腳本/opt/teamviewer/tv_bin/script。
摘錄:
#!/bin/bash
#
# /etc/init.d/teamviewerd
#
# chkconfig: 2345 95 05
# description: daemon for TeamViewer
#
# processname: teamviewerd
# config: /etc/teamviewer/global.conf
# pidfile: /var/run/teamviewerd.pid
### BEGIN INIT INFO
# Provides: teamviewerd
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Required-Start: $all
# Required-Stop: $local_fs $network $named
# Short-Description: TeamViewer remote control daemon
# Description: TeamViewer remote control daemon
### END INIT INFO
確保此腳本在啟動時運行。
需將其複製到/etc/init.d如下:
cd /opt/teamviewer/tv_bin/script
sudo cp teamviewerd.sysv /etc/init.d/
讓腳本不可寫給除了Root之外的任何人!
sudo chmod 755 /etc/init.d/teamviewerd.sysv
然後
[自動執行服務]
sudo update-rc.d teamviewerd.sysv defaults
[手動啟動服務]
sudo service teamviewerd.sysv start