Teamviewer linux without permanently running daemon
Asked Answered
A

4

6

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.

Aforementioned answered 16/5, 2017 at 6:13 Comment(0)
A
7

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
Aforementioned answered 16/5, 2017 at 6:15 Comment(7)
I get this error: $ sudo teamviewer --daemon disable [sudo] password for usuario: Init... *** TeamViewer can not be executed with sudo! *** Either use your normal user account without sudo or use a the real root account to log in to your desktop (not recommended!). Nippon
what teamviewer version are you using? Just checked with the latest deb for ubuntu/debian (12.0.76279) and i don't get you error messageAforementioned
with my version, teamviewer --daemon enable should be just teamviewer daemon enableApure
Not only does it listen on a port, when you might only want to use it as a client (see question) it also now won't run as a non root account as it's a systemd service nowadays. Awesome!Spillway
What a crap to have this daemon running all the time! That's a reason for me to not use TeamViewer any longer.Falzetta
Came here for this, tried it, and nope, teamviewerd still shows up in ps.Justinajustine
Thanks for the feedback, i have added a killall -KILL teamviewerd which will kill the daemon for shureAforementioned
R
2

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

Ridgeway answered 1/4, 2019 at 10:2 Comment(0)
M
1

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
Machinery answered 15/1, 2020 at 14:29 Comment(2)
it's enabled again after teamviewer updateRedness
yes, it seems to be that the installation package is not taking care the current status which badly is often the case. Like the Docker package of the official Docker repository is overriding your current systemd unit without asking.Machinery
P
1

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

Privily answered 29/11, 2022 at 1:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.