16
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[メモ] Raspberry Pi : VNCサーバ設定(raspbian 2016-09-23~)

Last updated at Posted at 2016-11-21

概要

  • Raspbian 2016-09-23 から RealVNCがデフォルトになった。

  • MinecraftもVNC経由でできるよ(direct capture methodというのを有効にする)

  • Raspberry Pi Documentation > remote-access > vnc
    VNC (Virtual Network Computing)

  • direct capture methodを有効にすると、/boot/config.txtで、フレームバッファの設定変更とかしてると、おかしくなる?(マウスポインタの位置とか)

    • HDMIのモードを直接せっていすれば、いい?
    /boot/config.txt

...
disable_overscan=1 # コメントはずす.

## https://www.raspberrypi.org/documentation/configuration/config-txt.md

HDMI_MODEのあたりを参考に.

hdmi_force_hotplug=1 # HDMIが刺さってなくても、ささってるような動作をさせる。
...
hdmi_group=1
hdmi_mode=4 # 720p 60Hz - 1280x720 @60fps
#hdmi_mode=16 # 1080p 60Hz - 1920x1080 @60fps
...



## 環境
- Raspberry Pi 2B
- Raspbian Jessie with PIXEL : `2016-09-23-raspbian-jessie.img`
- VNCクライアント側
    - Windows 7 64ビット
    - RealVNCの[VNC Viewer](https://www.realvnc.com/download/viewer/windows/)<br>> `VNC-Viewer-6.0.0-Windows-64bit`

## 手順
1. いつもの
    - RaspbianをSDに焼く
    - `sudo apt update; sudo apt upgrade -y`
    - `sudo reboot` # 再起動
2. RealVNCの有効化
    - `sudo raspi-config`
    - (古いやつ?)<del>`7 Advanced Options` <br>> `A5 VNC - Enable/Disable graphical remote access to your Pi using RealVNC`<br>>> `<Yes>`にて有効化</del>
    - (2017-01-11更新)`5 Interfacing Options  Configure connections to peripherals` <br>> `P3 VNC         Enable/Disable graphical remote access to your Pi using RealVNC`<br>>> `<Yes>`にて有効化

3. Windowsで、VNCViewerを起動して、ラズパイのIPアドレスを入れて、[Enter]おして接続。
ユーザ名/パスワードを入れる。(pi/raspberry ??)
![RPiRealVNC01.png](https://qiita-image-store.s3.amazonaws.com/0/75594/bfe7fa71-1525-5ee7-2282-ba4f12a1fe49.png)

4. `direct capture mode`を有効にする
    1. 上の VNCアイコンを右クリックして、Options...を選ぶ
![RPiRealVNC02.png](https://qiita-image-store.s3.amazonaws.com/0/75594/0abf84b5-4fbf-66a7-65f6-6b86b45e1b40.png)
    2. Troubleshootingから、[v]`Enable experimental direct capture mode`にチェックを入れて、[OK]
![RPiRealVNC04.png](https://qiita-image-store.s3.amazonaws.com/0/75594/588ff49c-3c32-32ea-a5b7-5d2db9cf023e.png)


5. `minecraft`起動
![RPiRealVNC05.png](https://qiita-image-store.s3.amazonaws.com/0/75594/1a00c4a2-c63f-edf1-6bdf-1bb73f30c5f3.png)




16
18
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?