Floyd
Floyd

Reputation: 789

Teamviewer linux without permanently running daemon

Teamviewer Linux has the annoying property of installing a permanently running daemon. This not only consumes resources but also presents a security risk. You can disable the daemon startup, however then the teamviewer client does not work anymore.

Upvotes: 6

Views: 5046

Answers (4)

Floyd
Floyd

Reputation: 789

The best way is to enable the daemon before running the teamviewer script and disable it again after the teamviewer client has closed.

The following shell script handles things automatically:

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

Upvotes: 7

xvan
xvan

Reputation: 4855

The tar package allows to run the TV client without installation and without root privileges.

Upvotes: 1

huembert
huembert

Reputation: 49

The solution Fedora 30+ is:

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

But don't forget to start the service again in order to get a TeamViewer ID.

# systemctl start teamviewerd.service

Upvotes: 1

Florian HENRY - Scopen
Florian HENRY - Scopen

Reputation: 991

On ubuntu 18.04, here how I solve this

Stop autostart demon

$sudo systemctl disabled teamviewerd.service

create script /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;

Set bash script executable

chmod u+x /top/tm.sh

Update de /usr/share/applications/com.teamviewer.TeamViewer.desktop

Exec=/opt/tm.sh

It work perfecly for my needs. I only need to connect to other computer never to mine, so root deamon always running is not needed.

Let's see how it live with update from ppa of Teamviewer

Upvotes: 2

Related Questions