linux centos 7上运行teamviewer与找不到ID问题处理办法
以前在raspberryPi上搞过teamviewer,现在用了CentOS服务器,搞了一个vpn,访问还有点问题,时间紧张,就先给teamviewer。
而centos7 上安装也比较简单,几条命令就可以了,但是往往很多人回到找不到ID的问题,这里简答记录一下。
安装步骤:
1、在teamviewer官网上下载rpm包,下载地址:https://www.teamviewer.com/zhcn/download/linux/
[root@localhost tv_bin]# wget https://download.teamviewer.com/download/linux/teamviewer.x86_64.rpm
如果安装失败,则尝试如下:
[root@localhost ~]# yum install -y teamviewer.x86_64.rpm --skip-broken
安装路径,我选择了opt,具体可以根据需要去选。
2.安装文件,出现 complete!即安装成功。
[root@localhost tv_bin]# yum install -y teamviewer.x86_64.rpm
3.进入到teamviewer目录
[root@localhost tv_bin]# cd /opt/teamviewer/tv_bin/
p.p1 { margin: 0; font: 12px “Andale Mono”; color: rgba(40, 254, 20, 1); background-color: rgba(0, 0, 0, 0.9) }
p.p2 { margin: 0; font: 12px “Andale Mono”; color: rgba(51, 196, 38, 1); background-color: rgba(0, 0, 0, 0.9) }
span.s1 { font-variant-ligatures: no-common-ligatures }
span.s2 { font-variant-ligatures: no-common-ligatures; color: rgba(76, 122, 255, 1) }
span.s3 { font-variant-ligatures: no-common-ligatures; color: rgba(40, 254, 20, 1) }
[root@localhost tv_bin]# pwd
/opt/teamviewer/tv_bin
[root@localhost tv_bin]# ls
desktop resources script TeamViewer teamviewer-config teamviewerd TeamViewer_Desktop xdg-utils
4、常用几条命令附下:
设置密码:
[root@localhost tv_bin]# teamviewer --passwd 12345678
重启服务:
[root@localhost tv_bin]# teamviewer --daemon restart
查看信息:
[root@localhost tv_bin]# teamviewer --info
5、有个问题是查看安装信息的时候没有teamviewer的ID,这样就无法连接。查了一下是没有密码的原因,只要设置密码就会出现ID了
teamviewer –passwd 你的密码
p.p1 { margin: 0; font: 12px “Andale Mono”; color: rgba(40, 254, 20, 1); background-color: rgba(0, 0, 0, 0.9) }
p.p2 { margin: 0; font: 12px “Andale Mono”; color: rgba(40, 254, 20, 1); background-color: rgba(0, 0, 0, 0.9); min-height: 14px }
p.p3 { margin: 0; font: 12px “Andale Mono”; color: rgba(0, 249, 0, 1); background-color: rgba(0, 0, 0, 0.9) }
span.s1 { font-variant-ligatures: no-common-ligatures }
span.s2 { font-variant-ligatures: no-common-ligatures; color: rgba(40, 254, 20, 1) }
span.s3 { font-variant-ligatures: no-common-ligatures; color: rgba(0, 249, 0, 1) }
[root@localhost tv_bin]# teamviewer –passwd 12345678
ok
[root@localhost tv_bin]# teamviewer –daemon restart
systemctl restart teamviewerd.service
[root@localhost tv_bin]# teamviewer –info
TeamViewer 13.2.13582 (RPM)
TeamViewer ID: haochuang(我修改掉了)
teamviewerd status ● teamviewerd.service – TeamViewer remote control daemon
Loaded: loaded (/etc/systemd/system/teamviewerd.service; enabled; vendor preset: disabled)
Active: active (running) since 六 2018-08-18 11:23:46 CST; 8s ago
Process: 27961 ExecStart=/opt/teamviewer/tv_bin/teamviewerd -d (code=exited, status=0/SUCCESS)
Main PID: 27963 (teamviewerd)
CGroup: /system.slice/teamviewerd.service
└─27963 /opt/teamviewer/tv_bin/teamviewerd -d
8月 18 11:23:46 localhost.localdomain systemd[1]: Starting TeamViewer remote control daemon…
8月 18 11:23:46 localhost.localdomain systemd[1]: PID file /var/run/teamviewerd.pid not readable (yet?) after start.
8月 18 11:23:46 localhost.localdomain systemd[1]: Started TeamViewer remote control daemon.
这里注意一下,密码太短是不行的,你会看到下面的错误:
p.p1 { margin: 0; font: 12px “Andale Mono”; color: rgba(40, 254, 20, 1); background-color: rgba(0, 0, 0, 0.9) }
p.p2 { margin: 0; font: 12px “Andale Mono”; color: rgba(40, 254, 20, 1); background-color: rgba(0, 0, 0, 0.9); min-height: 14px }
p.p3 { margin: 0; font: 12px “Andale Mono”; color: rgba(0, 249, 0, 1); background-color: rgba(0, 0, 0, 0.9) }
span.s1 { font-variant-ligatures: no-common-ligatures }
span.s2 { font-variant-ligatures: no-common-ligatures; color: rgba(40, 254, 20, 1) }
span.s3 { font-variant-ligatures: no-common-ligatures; color: rgba(0, 249, 0, 1) }
[root@localhost tv_bin]# teamviewer –passwd 123456
Init…
xprop: unable to open display \’\’
CheckCPU: SSE2 support: yes
Checking setup…
Launching TeamViewer …
Launching TeamViewer GUI …
已放弃
[root@localhost tv_bin]# teamviewer –info
TeamViewer 13.2.13582 (RPM)
TeamViewer ID:
Try restarting the TeamViewer daemon (e.g. teamviewer –daemon restart)
teamviewerd status ● teamviewerd.service – TeamViewer remote control daemon
Loaded: loaded (/etc/systemd/system/teamviewerd.service; enabled; vendor preset: disabled)
Active: active (running) since 六 2018-08-18 10:56:52 CST; 6min ago
Main PID: 25762 (teamviewerd)
CGroup: /system.slice/teamviewerd.service
└─25762 /opt/teamviewer/tv_bin/teamviewerd -d
8月 18 10:56:52 localhost.localdomain systemd[1]: Starting TeamViewer remote control daemon…
8月 18 10:56:52 localhost.localdomain systemd[1]: Started TeamViewer remote control daemon.
所以,记得,太短是不行的,太短是不行的,太短是不行的,重要的事情说三遍;
要长才可以!
好了,配置完成,就可以enjoy your self,尽情撸码了。
–20180818 11:45 @白猫科技园