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





评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值