Score:0

how to start Teamviewer on boot

us flag

I need to start TeamViewer on boot. I tried to add the command to /usr/bin/teamviewer --daemon start to the startup applications as ypu can see below:

Startup list

command

But it won't start. Any suggestions?

us flag
Enter the command `/usr/bin/teamviewer --daemon start` in a terminal and check if that actually starts the software
cn flag
It already does autostart because of the systemd unit. Teamviewer is also unkillable as it will autostart itself after being killed.
cn flag
Please remove that line and investigate the problem more deeply. Teamviewer when installed will by itself do a `sudo systemctl enable teamviewerd.service` and start the server. You probably have an error somewhere. Could be as simple as wrong credentials. start with `teamviewer status` :) Please alter the question with new info.
Score:0
it flag

You can do this with crontab. You just need to..

  • Enter a terminal and type crontab -e

  • If you are asked to do so, follow the instructions on the prompt to select an editor. It will display a list of available editors. select the one you want.

  • When the editor opens, you will see a config file. At the bottom of the file, add the following:

@reboot /usr/bin/teamviewer --daemon start
  • Be sure to save, and you are done. Make sure you enter the full path to any commands you enter. For example, if you were calling echo, instead of echo you would need to use /usr/bin/echo.

To see everything cron can do, check out the manual page with man crontab.

Deffo avatar
us flag
I tried this, but it results in a start-up crash "Ubuntu 20.04 has encountered an internal error"
Nate T avatar
it flag
@Deffo Then it is probably the command... What is the error? You have to use `sudo` to start teamviewer in server mode. [See here.](https://www.youtube.com/watch?v=Rjrgw71zoI4)
cn flag
This is not needed. When working teamviewer starts itself and will also restart itself when you kill the deamon it runs under. The only way to not have it start is by disabling the systemd unit. In ALL other situations teamviewer forces itself to be active.
Nate T avatar
it flag
@Rinzwind No wonder it was giving internal errors. I should have suspected that it would likely be loaded by systemd. Im having a hindsight 20/20 moment. Thanks. Do you mind if I edit my answer, or would you rather answer yourself?
Nate T avatar
it flag
@Deffo See above comments. Try `/usr/bin/teamviewer --daemon enable`.
cn flag
@NateT go for it ;)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.