23

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.

NotMy1RealName
  • 300
  • 1
  • 4
  • 11

4 Answers4

36

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
fgui
  • 461
  • 4
  • 3
5

In Ubuntu 16.04

sudo systemctl stop teamviewerd.service
sudo systemctl start teamviewerd.service

or

sudo systemctl restart teamviewerd.service
Haris
  • 341
  • 1
  • 4
  • 9
5

These work too:

sudo service teamviewerd stop
sudo service teamviewerd start
muru
  • 193,181
  • 53
  • 473
  • 722
Matt Moody
  • 51
  • 1
  • 1
4

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

sudo pkill TeamViewer.exe

Or:

sudo pkill -f TeamViewer.exe
muru
  • 193,181
  • 53
  • 473
  • 722