[メモ] ラズパイで、TeamViewer (host)

![TeamViewer-RPi2.png](https://qiita-image-store.s3.amazonaws.com/0/75594/2d0b7604-be40-3476-75ec-5fcd07c5bc2b.png)





## 概要
- らずぱいにTeamViewerのホストを導入
- [TeamViewer for Raspberry Pi &#8211; Preview Landing Page &mdash; TeamViewer Pages](https://pages.teamviewer.com/published/raspberrypi/)

## 環境

- Raspberry Pi 2 / Raspberry Pi 3
    - RPi1とZeroはサポートされていない<br>> *(Raspberry Pi 1 and Zero currently not supported)*

- ASUS Tinker Boardでも使えた。

## 手順

### 追記: 2017-12-21
```
# Raspbian:Stretch にて
wget https://download.teamviewer.com/download/linux/teamviewer-host_armhf.deb
sudo dpkg -i ./teamviewer-host_armhf.deb
sudo apt-get install -f -y
# 
# GUIなしでセットアップ
teamviewer setup
```



---
### 2017-4-24投稿時のもの
1. インストール

    ```bash
# teamviewer-hostのパッケージ取得して、インストール.
wget http://download.teamviewer.com/download/linux/version_11x/teamviewer-host_armhf.deb
sudo dpkg -i ./teamviewer-host_armhf.deb
# 足りないパッケージをインストール. (-f, --fix-broken オプション)
sudo apt-get install -f -y
```

2. ライセンスに同意する
![TeamViewer-RPi1.png](https://qiita-image-store.s3.amazonaws.com/0/75594/9f1fe5d9-e16a-5138-867b-1f09e5f4bd77.png)


## その他

- ASUS Tinker Boardにて、<br>![TeamViewer-TinkerBoard.png](https://qiita-image-store.s3.amazonaws.com/0/75594/4403300e-677e-9321-c087-3a1561d185a6.png)


## ログ

```shell-session
pi@raspberrypi:~ $ wget http://download.teamviewer.com/download/linux/version_11x/teamviewer-host_armhf.deb
--2017-04-23 19:53:13--  http://download.teamviewer.com/download/linux/version_11x/teamviewer-host_armhf.deb
Resolving download.teamviewer.com (download.teamviewer.com)... 46.163.100.214, 46.163.100.218, 46.163.100.216, ...
Connecting to download.teamviewer.com (download.teamviewer.com)|46.163.100.214|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://download.teamviewer.com/download/linux/version_11x/teamviewer-host_armhf.deb [following]
--2017-04-23 19:53:13--  https://download.teamviewer.com/download/linux/version_11x/teamviewer-host_armhf.deb
Connecting to download.teamviewer.com (download.teamviewer.com)|46.163.100.214|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://downloadus2.teamviewer.com//download/linux/version_11x/teamviewer-host_11.0.63329_armhf.deb [following]
--2017-04-23 19:53:14--  https://downloadus2.teamviewer.com//download/linux/version_11x/teamviewer-host_11.0.63329_armhf.deb
Resolving downloadus2.teamviewer.com (downloadus2.teamviewer.com)... 207.244.74.134, 2604:9a00:2010:a084:2::1
Connecting to downloadus2.teamviewer.com (downloadus2.teamviewer.com)|207.244.74.134|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6231798 (5.9M) [application/octet-stream]
Saving to: ‘teamviewer-host_armhf.deb’

teamviewer-host_armhf.deb       100%[=========================================================>]   5.94M  1.97MB/s   in 3.0s   

2017-04-23 19:53:18 (1.97 MB/s) - ‘teamviewer-host_armhf.deb’ saved [6231798/6231798]

pi@raspberrypi:~ $ sudo dpkg -i ./teamviewer-host_armhf.deb
Selecting previously unselected package teamviewer-host.
(Reading database ... 112359 files and directories currently installed.)
Preparing to unpack ./teamviewer-host_armhf.deb ...
Unpacking teamviewer-host (11.0.63329) ...
dpkg: dependency problems prevent configuration of teamviewer-host:
 teamviewer-host depends on libqt5qml5 (>= 5.2.1); however:
  Package libqt5qml5 is not installed.
 teamviewer-host depends on libqt5quick5 (>= 5.2.1); however:
  Package libqt5quick5 is not installed.
 teamviewer-host depends on libqt5webkit5 (>= 5.1.1); however:
  Package libqt5webkit5 is not installed.
 teamviewer-host depends on libqt5x11extras5 (>= 5.2.1); however:
  Package libqt5x11extras5 is not installed.
 teamviewer-host depends on qtdeclarative5-qtquick2-plugin (>= 5.2.1) | qml-module-qtquick2 (>= 5.2.1); however:
  Package qtdeclarative5-qtquick2-plugin is not installed.
  Package qml-module-qtquick2 is not installed.
 teamviewer-host depends on qtdeclarative5-controls-plugin (>= 5.2.1) | qml-module-qtquick-controls (>= 5.2.1); however:
  Package qtdeclarative5-controls-plugin is not installed.
  Package qml-module-qtquick-controls is not installed.
 teamviewer-host depends on qtdeclarative5-dialogs-plugin (>= 5.2.1) | qml-module-qtqui
dpkg: error processing package teamviewer-host (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 teamviewer-host
pi@raspberrypi:~ $ sudo apt-get install -f -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libqt5qml5 libqt5quick5 libqt5sql5 libqt5sql5-sqlite libqt5webkit5 libqt5x11extras5 qml-module-qtquick-controls
  qml-module-qtquick-dialogs qml-module-qtquick-layouts qml-module-qtquick-privatewidgets qml-module-qtquick-window2
  qml-module-qtquick2
The following NEW packages will be installed:
  libqt5qml5 libqt5quick5 libqt5sql5 libqt5sql5-sqlite libqt5webkit5 libqt5x11extras5 qml-module-qtquick-controls
  qml-module-qtquick-dialogs qml-module-qtquick-layouts qml-module-qtquick-privatewidgets qml-module-qtquick-window2
  qml-module-qtquick2
0 upgraded, 12 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
Need to get 10.0 MB of archives.
After this operation, 40.8 MB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main libqt5qml5 armhf 5.3.2-4+rpi1+b1 [972 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main libqt5quick5 armhf 5.3.2-4+rpi1+b1 [840 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main libqt5sql5 armhf 5.3.2+dfsg-4+rpi1 [97.2 kB]
Get:4 http://mirrordirector.raspbian.org/raspbian/ jessie/main libqt5webkit5 armhf 5.3.2+dfsg-4+rpi1 [7,602 kB]
Get:5 http://mirrordirector.raspbian.org/raspbian/ jessie/main libqt5x11extras5 armhf 5.3.2-2 [7,586 B]
Get:6 http://mirrordirector.raspbian.org/raspbian/ jessie/main qml-module-qtquick2 armhf 5.3.2-4+rpi1+b1 [39.3 kB]
Get:7 http://mirrordirector.raspbian.org/raspbian/ jessie/main qml-module-qtquick-layouts armhf 5.3.2-2 [23.7 kB]
Get:8 http://mirrordirector.raspbian.org/raspbian/ jessie/main qml-module-qtquick-window2 armhf 5.3.2-4+rpi1+b1 [20.7 kB]
Get:9 http://mirrordirector.raspbian.org/raspbian/ jessie/main qml-module-qtquick-controls armhf 5.3.2-2 [288 kB]
Get:10 http://mirrordirector.raspbian.org/raspbian/ jessie/main qml-module-qtquick-privatewidgets armhf 5.3.2-2 [30.4 kB]
Get:11 http://mirrordirector.raspbian.org/raspbian/ jessie/main qml-module-qtquick-dialogs armhf 5.3.2-2 [69.5 kB]
Get:12 http://mirrordirector.raspbian.org/raspbian/ jessie/main libqt5sql5-sqlite armhf 5.3.2+dfsg-4+rpi1 [38.9 kB]
Fetched 10.0 MB in 4s (2,430 kB/s)        
Selecting previously unselected package libqt5qml5:armhf.
(Reading database ... 112450 files and directories currently installed.)
Preparing to unpack .../libqt5qml5_5.3.2-4+rpi1+b1_armhf.deb ...
Unpacking libqt5qml5:armhf (5.3.2-4+rpi1+b1) ...
Selecting previously unselected package libqt5quick5:armhf.
Preparing to unpack .../libqt5quick5_5.3.2-4+rpi1+b1_armhf.deb ...
Unpacking libqt5quick5:armhf (5.3.2-4+rpi1+b1) ...
Selecting previously unselected package libqt5sql5:armhf.
Preparing to unpack .../libqt5sql5_5.3.2+dfsg-4+rpi1_armhf.deb ...
Unpacking libqt5sql5:armhf (5.3.2+dfsg-4+rpi1) ...
Selecting previously unselected package libqt5webkit5:armhf.
Preparing to unpack .../libqt5webkit5_5.3.2+dfsg-4+rpi1_armhf.deb ...
Unpacking libqt5webkit5:armhf (5.3.2+dfsg-4+rpi1) ...
Selecting previously unselected package libqt5x11extras5:armhf.
Preparing to unpack .../libqt5x11extras5_5.3.2-2_armhf.deb ...
Unpacking libqt5x11extras5:armhf (5.3.2-2) ...
Selecting previously unselected package qml-module-qtquick2:armhf.
Preparing to unpack .../qml-module-qtquick2_5.3.2-4+rpi1+b1_armhf.deb ...
Unpacking qml-module-qtquick2:armhf (5.3.2-4+rpi1+b1) ...
Selecting previously unselected package qml-module-qtquick-layouts:armhf.
Preparing to unpack .../qml-module-qtquick-layouts_5.3.2-2_armhf.deb ...
Unpacking qml-module-qtquick-layouts:armhf (5.3.2-2) ...
Selecting previously unselected package qml-module-qtquick-window2:armhf.
Preparing to unpack .../qml-module-qtquick-window2_5.3.2-4+rpi1+b1_armhf.deb ...
Unpacking qml-module-qtquick-window2:armhf (5.3.2-4+rpi1+b1) ...
Selecting previously unselected package qml-module-qtquick-controls:armhf.
Preparing to unpack .../qml-module-qtquick-controls_5.3.2-2_armhf.deb ...
Unpacking qml-module-qtquick-controls:armhf (5.3.2-2) ...
Selecting previously unselected package qml-module-qtquick-privatewidgets:armhf.
Preparing to unpack .../qml-module-qtquick-privatewidgets_5.3.2-2_armhf.deb ...
Unpacking qml-module-qtquick-privatewidgets:armhf (5.3.2-2) ...
Selecting previously unselected package qml-module-qtquick-dialogs:armhf.
Preparing to unpack .../qml-module-qtquick-dialogs_5.3.2-2_armhf.deb ...
Unpacking qml-module-qtquick-dialogs:armhf (5.3.2-2) ...
Selecting previously unselected package libqt5sql5-sqlite:armhf.
Preparing to unpack .../libqt5sql5-sqlite_5.3.2+dfsg-4+rpi1_armhf.deb ...
Unpacking libqt5sql5-sqlite:armhf (5.3.2+dfsg-4+rpi1) ...
Setting up libqt5qml5:armhf (5.3.2-4+rpi1+b1) ...
Setting up libqt5quick5:armhf (5.3.2-4+rpi1+b1) ...
Setting up libqt5sql5:armhf (5.3.2+dfsg-4+rpi1) ...
Setting up libqt5webkit5:armhf (5.3.2+dfsg-4+rpi1) ...
Setting up libqt5x11extras5:armhf (5.3.2-2) ...
Setting up qml-module-qtquick2:armhf (5.3.2-4+rpi1+b1) ...
Setting up qml-module-qtquick-layouts:armhf (5.3.2-2) ...
Setting up qml-module-qtquick-window2:armhf (5.3.2-4+rpi1+b1) ...
Setting up qml-module-qtquick-controls:armhf (5.3.2-2) ...
Setting up qml-module-qtquick-privatewidgets:armhf (5.3.2-2) ...
Setting up qml-module-qtquick-dialogs:armhf (5.3.2-2) ...
Setting up teamviewer-host (11.0.63329) ...
Setting up libqt5sql5-sqlite:armhf (5.3.2+dfsg-4+rpi1) ...
Processing triggers for libc-bin (2.19-18+deb8u7) ...
pi@raspberrypi:~ $ 
```