Search code examples
linuxteamviewer

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.


Solution

  • 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