我安装了 teamviewer 9,但当我尝试通过输入 teamviewer 从终端启动它时,我得到了以下信息
Init...
/opt/teamviewer9/tv_bin/script/tvw_main: line 42: /home/cheng/.config/teamviewer9/logfiles/startup.log: Permission denied
Error: Init failed. Please check '/home/cheng/.config/teamviewer9/logfiles/startup.log'
日志文件仅包含以下内容:
TeamViewer: 9.0.27891 - DEB
Profile: /home/cheng (root)
Desktop: DS: '' XDG: ''
XServer TTY: 7
DistArch: x86_64 ( Loader: [X] ld32 [X] ld64 )
Distribution:
Distributor ID: Ubuntu
Description: Ubuntu 13.10
Release: 13.10
Codename: saucy
ok (info)
ok (profile)
我该如何解决这个问题?我可以使用命令“sudo teamviewer”启动它,但我希望它能够在计算机启动时自动启动。
答案1
sudo gedit /etc/rc.local
- 放在
teamviewer
前面出口 0
/etc/rc.local 执行为根在 Ubuntu 启动时