Ubuntu 18.04 环境下安装Teamviewer
Step 1: Update Your Ubuntu System
sudo apt update -y && sudo apt upgrade -y
Step 2: Download TeamViewer on Ubuntu
打开你的终端,并且下载最新版的 TeamViewer .deb软件包,使用下面的的 wget 命令:
wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb
Teamviewer下载连接地址:https://www.teamviewer.com/en/download/linux/
Ubuntu, Debian
*.deb package 15.17.6
↓ x86 64bit ↓ x86 32bit
ls | grep teamviewer
Step 3: Install TeamViewer on Ubuntu Linux
一旦下载完成,通过运行下面的命令安装 TeamViewer:
1)在命令行进行安装
sudo dpkg -i teamviewer_amd64.deb
2)安装出错,修复依赖(一行语句搞定依赖关系)
sudo apt-get install -f
3)再次安装
sudo dpkg -i teamviewer_amd64.deb
# teamviewer -version
TeamViewer 15.17.6 (DEB)
# teamviewer info
TeamViewer 15.17.6 (DEB)
TeamViewer ID:
Try restarting the TeamViewer daemon (e.g. teamviewer --daemon restart)
teamviewerd status ● teamviewerd.service - TeamViewer remote control daemon
Loaded: loaded (/etc/systemd/system/teamviewerd.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2021-05-16 22:40:26 UTC; 25min ago
Process: 7700 ExecStart=/opt/teamviewer/tv_bin/teamviewerd -d (code=exited, status=0/SUCCESS)
Main PID: 7702 (teamviewerd)
Tasks: 14 (limit: 1102)
CGroup: /system.slice/teamviewerd.service
└─7702 /opt/teamviewer/tv_bin/teamviewerd -d
May 16 22:40:26 vultr.guest systemd[1]: Starting TeamViewer remote control daemon...
May 16 22:40:26 vultr.guest systemd[1]: teamviewerd.service: Can't open PID file /var/run/teamviewerd.pid (yet?) after start: No such file or directory
May 16 22:40:26 vultr.guest systemd[1]: Started TeamViewer remote control daemon.
Step 4: Get Started with TeamViewer
启动 TeamViewer
TeamViewer 应用可以通过在命令行输入teamviewer 或者在应用菜单点击图标启动。
You can either search TeamViewer on your Ubuntu search bar or open the terminal command shell and type teamviewer to open it.
#teamviewer
出错
# teamviewer
Init...
xprop: unable to open display ''
CheckCPU: SSE2 support: yes
Checking setup...
Launching TeamViewer ...
Launching TeamViewer GUI ...
Aborted (core dumped)
解决方法:
$sudo vi /opt/teamviewer/config/global.conf
加[int32] Always_Online = 1
四、升级 TeamViewer
在安装过程中,官方 TeamViewer 软件源已经被添加到你的系统中。你可以使用 cat 命令来验证文件内容:
cat /etc/apt/sources.list.d/teamviewer.list
output
# cat /etc/apt/sources.list.d/teamviewer.list
### TeamViewer DEB repository list
### NOTE: Manual changes to this file
### - prevent it from being updated by TeamViewer package updates
### - will be lost after using the 'teamviewer repo' command
### The original file can be restored with this command:
### cp /opt/teamviewer/tv_bin/script/teamviewer.list /etc/apt/sources.list.d/teamviewer.list
### which has the same effect as 'teamviewer repo default'
### NOTE: It is preferred to use the following commands to edit this file:
### teamviewer repo - show current repository configuration
### teamviewer repo default - restore default configuration
### teamviewer repo disable - disable the repository
### teamviewer repo stable - make all regular TeamViewer packages available (default)
### teamviewer repo preview - additionally, make feature preview packages available
### teamviewer repo development - additionally, make the latest development packages available
deb https://linux.teamviewer.com/deb stable main
# deb https://linux.teamviewer.com/deb preview main
# deb https://linux.teamviewer.com/deb development main
Step 6: Removing TeamViewer from Ubuntu
sudo apt remove teamviewer
sudo apt purge teamviewer
sudo apt-get purge teamviewer
sudo dpkg -r --force teamviewer
rm -r ~/.config/teamviewer
sudo rm -r /etc/teamviewer
sudo apt update
sudo apt dist-upgrade
useful links