没有永久 运行 守护程序的 Teamviewer linux

Teamviewer linux without permanently running daemon

Teamviewer Linux 有烦人的 属性 安装永久 运行 守护进程。这不仅消耗资源,而且存在安全风险。您可以禁用守护程序启动,但是 teamviewer 客户端将不再工作。

最好的方法是在 运行 teamviewer 脚本之前启用守护进程,并在 teamviewer 客户端关闭后再次禁用它。

以下 shell 脚本自动处理:

#!/bin/sh
echo starting teamviewer daemon
sudo teamviewer --daemon enable
teamviewer &
wait $!
echo teamviewer finished
sudo teamviewer --daemon disable
echo stopped and disabled teamviewer daemon

它对我有用,节省了我的时间,

sudo dpkg -i /path/to/packgname.deb
sudo apt-get install -f

https://www.linuxquestions.org/questions/linux-newbie-8/deb-file-will-not-install-4175611984/

在 ubuntu 18.04,这是我如何解决这个问题

停止自动启动恶魔

$sudo systemctl disabled teamviewerd.service

创建脚本/opt/tm.sh

#!/bin/bash pkexec --user root systemctl start teamviewerd.service; /opt/teamviewer/tv_bin/script/teamviewer; pkexec --user root systemctl stop teamviewerd.service;

设置bash脚本可执行

chmod u+x /top/tm.sh

更新 /usr/share/applications/com.teamviewer.TeamViewer.desktop

Exec=/opt/tm.sh

它非常适合我的需要。我只需要连接到其他电脑,而不是我的,所以不需要 root 守护进程 运行。

让我们看看它如何通过 Teamviewer 的 ppa 进行更新

Fedora 30+的解决方案是:

# systemctl disable teamviewerd.service
# systemctl stop teamviewerd.service

但不要忘记再次启动服务以获取 TeamViewer ID。

# systemctl start teamviewerd.service