为什么Teamviewer一直在后台运行?

分享于 

4分钟阅读

ubuntu

  繁體

问题


/opt/teamviewer8/tv_bin/teamviewerd -f


/opt/teamviewer8/tv_bin/wine/bin/wineserver



当我试图杀死它,它会自动重新打开。


答案1

因为这是teamviewer的特性:

/opt/teamviewer8/tv_bin/script/teamviewerd.sysv

要停止teamviewer,请使用:


sudo teamviewer --daemon stop 



它会显示。


initctl stop teamviewerd


teamviewerd stop/waiting




rinzwind@discworld:/opt/teamviewer8/tv_bin/script$ ps -ef|grep teamviewer


rinzwind 12712 12428 0 18:11 pts/0 00:00:00 grep --color=auto teamviewer



操作守护进程的命令:


teamviewer --daemon status show current status of the TeamViewer daemon


teamviewer --daemon start start TeamViewer daemon


teamviewer --daemon stop stop TeamViewer daemon


teamviewer --daemon restart stop/start TeamViewer daemon


teamviewer --daemon disable disable TeamViewer daemon - don't start daemon on system startup


teamviewer --daemon enable enable TeamViewer daemon - start daemon on system startup (default)



teamviewer 9帮助:


$teamviewer --help



 TeamViewer 9.0.32150 



 teamviewer start TeamViewer user interface (if not running) 



 teamviewer --help print this help screen 


 teamviewer --version print version information 


 teamviewer --info print version, status, id 


 teamviewer --ziplog create a zip containing all teamviewer logs (useful when contacting support) 



 teamviewer --passwd [PASSWD] set a password (useful when installing remote (ssh) 



 teamviewer --daemon status show current status of the TeamViewer daemon 


 teamviewer --daemon start start TeamViewer daemon 


 teamviewer --daemon stop stop TeamViewer daemon 


 teamviewer --daemon restart stop/start TeamViewer daemon 


 teamviewer --daemon disable disable TeamViewer daemon - don't start daemon on system startup 


 teamviewer --daemon enable enable TeamViewer daemon - start daemon on system startup (default) 




答案2

如果从Teamviewer 10文件安装.deb,推荐使用--daemon stop

initctl stop teamviewerdservice teamviewerd stop会导致:


initctl: Unknown instance: 



teamviewerd.sysv安装在/opt,要停止它,你需要执行以下操作:


$ sudo /opt/teamviewer/tv_bin/script/teamviewerd.sysv stop




答案3


#!/bin/bash


# to be copied to /opt/teamviewer/tv_bin/script


# modify /usr/share/applications/teamviewer-teamviewer11.desktop :


# Exec=bash /opt/teamviewer/tv_bin/script/teamviewer.bash


# sudo visudo


# add:


# user ALL=(ALL:ALL) NOPASSWD:/opt/teamviewer/tv_bin/script/teamviewer


# sudo service sudo restart


echo 'teamviewer --daemon enable' | sudo sh && 


/opt/teamviewer/tv_bin/script/teamviewer && 


echo 'teamviewer --daemon disable' | sudo sh





相关文章