Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 632
Floyd Avatar asked Mar 09 '23 02:03

Floyd


1 Answers

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
echo stopped and disabled teamviewer daemon
like image 89
Floyd Avatar answered Mar 19 '23 12:03

Floyd