11

How do I kill and restart TeamViewer 10 on ubuntu from the command line?

I tried running sudo kill -HUP teamviewer* and other variants (TeamViewer.exe; which I got from the system monitor) with no luck.

I have an issue sometimes with Teamviewer hanging and it would be nice not to have to reboot my system to get TV10 working again.

4

kill accepts PIDs, not process command names. Try pkill, or killall:

sudo pkill TeamViewer.exe

Or:

sudo pkill -f TeamViewer.exe
  • The pkill command did the trick to kill TeamViewer. How do I restart? – NotMy1RealName Mar 8 '15 at 20:52
  • @NotMy1RealName how do you usually start it? – muru Mar 8 '15 at 20:56
  • 1
    It starts at boot. However, the issue is that the program crashes at times and needs to be killed and restarted. I've xkill 'd the program, but I can't restart it unless I reboot. Very inconvenient. – NotMy1RealName Mar 9 '15 at 1:20
19

In other versions of teamviewer some times the daemon has to be restarted the in order to run the teamviewer app again after closing it.

sudo teamviewer --daemon stop
sudo teamviewer --daemon start

or

sudo teamviewer --daemon restart
  • This worked perfectly for me. It's probably a much more elegant way to do it than killing the process. – ricovox Jun 21 '17 at 18:47
4

These work too:

sudo service teamviewerd stop
sudo service teamviewerd start

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.