teamview linux命令行安装参数

说明:本文只提供简要的安装教程可命令行参数,实际运行中无法获取到TeamView的ID

一、ubuntu Server版

1.创建下载目录

mkdir ~/downloads/
cd ~/downloads/
2.下载

下载地址:https://www.teamviewer.com/zhCN/download/linux.aspx
3.安装deb软件包

dpkg -i teamviewer_i386.deb
如果出现依赖问题,使用apt-get install -f解决依赖

如果出现xdg-desktop-menu: No writable system menu directory found.
创建桌面系统失败,因为服务器没有桌面,不用管
4.运行
默认安装路径
/opt/teamviewer/
运行
cd /opt/teamviewer/tv_bin
teamviewer --setup console #设置启动方式为控制台启动
teamviewer --daemon restart  #重启teamview服务
teamviewer --info #查看teamview信息
teamviewer --passwd [PASSWD]   #设置密码
teamviewer --help  #查看帮助
但是查看信息的时候始终无法获取到TeamView的ID,不知道哪里的问题
5.帮助信息

root@ubuntu:/opt/teamviewer/tv_bin# ./TeamViewer -help

 TeamViewer                           11.0.50678  (DEB)

 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 license [show|accept]     Interactively agree or show/agree to End User License Agreement.
 teamviewer setup                     Configure headless modes (non-gui/console or xvfb)

 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).

 teamviewer virtual-desktop setup     Interactive setup for Xvfb headless mode.
 teamviewer virtual-desktop set [enabled=yes|no] [user=USERNAME] [resolution=1024x768x24] [gracetime=unlimited|seconds]
                                      Setup Xvfb headless mode.
 teamviewer virtual-desktop show      Show Xvfb headless configuration.
 teamviewer vd [setup|set|show]       Alias for "teamviewer virtual-desktop".


root@ubuntu:/opt/teamviewer/tv_bin#
6.删除软件包
dpkg -l|grep teamviewer  #用关键字查找软件包名
dpkg -r -P teamviewer.deb #删除查找到软件包名

二、CentOS版

1.创建下载目录

mkdir ~/downloads/
cd ~/downloads/
2.下载

下载地址:https://www.teamviewer.com/zhCN/download/linux.aspx
3.安装deb软件包

yum install teamviewer.i686.rpm
或者

rpm -i teamviewer.i686.rpm

4.运行
默认安装路径
/opt/teamviewer/
运行

cd /opt/teamviewer/tv_bin
teamviewer --setup console #设置启动方式为控制台启动
teamviewer --daemon restart  #重启teamview服务
teamviewer --info #查看teamview信息
teamviewer --passwd [PASSWD]   #设置密码
teamviewer --help  #查看帮助
但是查看信息的时候始终无法获取到TeamView的ID,不知道哪里的问题
5.帮助信息
root@centos:/opt/teamviewer/tv_bin# ./TeamViewer -help

 TeamViewer                           11.0.50678  (RPM)

 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 license [show|accept]     Interactively agree or show/agree to End User License Agreement.
 teamviewer setup                     Configure headless modes (non-gui/console or xvfb)

 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).

 teamviewer virtual-desktop setup     Interactive setup for Xvfb headless mode.
 teamviewer virtual-desktop set [enabled=yes|no] [user=USERNAME] [resolution=1024x768x24] [gracetime=unlimited|seconds]
                                      Setup Xvfb headless mode.
 teamviewer virtual-desktop show      Show Xvfb headless configuration.
 teamviewer vd [setup|set|show]       Alias for "teamviewer virtual-desktop".


root@centos:/opt/teamviewer/tv_bin#
6.删除软件包
rpm -q teamviewer  #用关键字查找软件包名
rpm -e teamviewer-11.0.50678-0.i686 #删除查找到软件包名

update2017-12-15:看了一下后来的人发的博文,无法获取ID应该是没有同意协议的原因,命令行下需要修改配置文件/opt/teamviewer/config/global.conf

添加

## [int32] EulaAccepted = 1
## [int32] EulaAcceptedRevision = 6
参见: http://blog.csdn.net/dreamhai/article/details/57080531





你可能感兴趣的:(web开发)