Nov 08

Teamviewer for Linux as a service


General Question:

I have installed the new Teamviewer Beta for Linux onto my computer which is running Debian 6.0.1. It is working awesome! However right now, if I need for any reason to restart my home computer (debian) I can not logon to my computer again as Teamviewer is down.

So my question is, how can I either
1) setup teamviewer to start as a service as soon as the computer has started, and not me logging in yet. or
2) start teamviewer from command line?

Thanks for any help on the subject.

Solution 1 :

go to system / preferences / startup applications and add teamviewer to it

Solution 2 :

You could try to make shell script like this one: 


or whatever is the path to the teamviewer executable, save it to:


and change permission:

chmod 777 /etc/init.d/teamviewer

create lin

ln -s /etc/init.d/teamviewer /etc/rc5.d/S99teamviewer

and it should start with the machine regardless of the fact that no user has yet done login.
/etc/rc5.d/ is the directory where startup scripts are located (default init level is 5, that’s why it is named rc5.d). Scripts whose names start with capital “S” are executed in alphabetical order, starting from S00 to S99.
Following the analogy, the directory /etc/rc0.d/ contains stop script executed when machine goes down. Their names begin with “K” starting from K00 to K99.

Leave a Reply