LoginSignup
15
11

More than 5 years have passed since last update.

Raspberry Pi Zero のヘッドレス セットアップと MinecraftをVNC経由で出来るようにするメモ

Last updated at Posted at 2016-07-03

概要

  • 使用機材確認
  • Raspbian Jessie SDディスク作成
  • 初期設定
  • VNC for Raspberry Pi alpha install
  • VNCserver service enable
  • ヘッドレス時の解像度問題対応
  • VNC Client 接続設定
  • MineCraft Pi Edition 動作確認

使用機材確認

  • Raspberry Pi Zero
  • MicroSD (8G以上推奨)
  • USB Ethernet アダプター(+MicroUSB 変換ケーブル)
  • MicroUSB 電源

Raspbian Jessie SDディスク作成

  • 最新版は以下URL

  • 作成手順については省略。

初期設定

  • raspberryPi Zero 起動
  • DHCP貸し出しIP等から IPを割り出し、ssh接続。
    • ※固定IP等に変更する手順は省略。
  • $ sudo raspi-config で初期設定。
    • 1 Expand Filesystems
    • 5 Internationalisation Options
      • I1 Change Locale : ja_JP.EUC-JP EUC-JP と ja_JP.UTF-8 UTF-8 も選択
      • I2 Change Timezone :Asia -> Tokyo
    • 9 Advanced Options
      • A2 hostname :変更
      • A3 Memory Split :64 → 128
 $ sudo apt-get install fonts-vlgothic
 $ sudo apt-get install ibus-anthy
 $ sudo apt-get update
 $ sudo apt-get upgrade
 $ sudo reboot

VNC for Raspberry Pi alpha install

VNC Server install
 $ curl -OL https://github.com/RealVNC/raspi-preview/releases/download/5.3.1.18206/VNC-Server-5.3.1-raspi-alpha1.deb
 $ sudo dpkg -i VNC-Server-5.3.1-raspi-alpha1.deb
service modeで起動
 $ sudo systemctl start vncserver-x11-serviced.service

VNC Server service enable

  • 自動起動設定
 $ sudo systemctl enable vncserver-x11-serviced.service

ヘッドレス時の解像度問題対応

 $ sudo vi boot/config.txt

+ hdmi_force_hotplug = 1
+ hdmi_ignore_edid = 0xa5000080
+ hdmi_group = 2
+ hdmi_mode = 16

 $ sudo reboot

VNC Client 接続設定

  1. とりあえず最新のVNC Viewer をダウンロード
  2. 5900port でraspberryPiへ接続。

MineCraft Pi Edition 動作確認

  • VNC Viewer設定
    • https://github.com/RealVNC/raspi-preview に説明があるとおりに設定
    • VNC Viewer Options > Advanced... > Expert tab.
      • PreferredEncoding :JPEG
      • AutoSelect :False
      • ColorLevel :Full
    • Minecraft 起動
      • F8 を押し、 Relative Pointer Motion にチェック
      • 終わるときはF8 からRelative Pointer Motion のチェックを外す

※ Windows10、Ubuntu16.04LTS にて確認

15
11
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
15
11