LoginSignup
10
10

More than 5 years have passed since last update.

Raspberry Pi3にVPNサーバーとVNCサーバー立ててiPhoneから艦これするまでメモ(その2)

Last updated at Posted at 2016-05-04

流れ

OSインストール

初期設定

VPNサーバー立てる ←(その1)

Chromiumインストール

VNCサーバー立てる

iPhoneから艦これ! ←この記事ではここまでやる

Chromium DE 艦これ

raspberry Pi3 でFlashの通りやってく。

Chromiumインストール

wget -qO - http://bintray.com/user/downloadSubjectPublicKey?username=bintray | sudo apt-key add -
echo "deb http://dl.bintray.com/kusti8/chromium-rpi jessie main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install chromium-browser

pepper flashインストール

wget http://os.archlinuxarm.org/armv7h/alarm/chromium-pepper-flash-12.0.0.77-1-armv7h.pkg.tar.xz
tar Jxf PepperFlash-12.0.0.77-armv7h.tar.xz
cd /usr/PepperFlash
chmod +x *
sudo cp * /usr/lib/chromium-browser/plugins
sudo vim /etc/chromium-browser/default

/etc/chromium-browser/default
#末尾に追記

#CHROMIUM_FLAGS=""
CHROMIUM_FLAGS="--ppapi-flash-path=/usr/lib/chromium-browser/plugins/libpepflashplayer.so --ppapi-flash-version=12.0.0.77 -password-store=detect -user-data-dir"

Chromiumを起動し、アドレスバーに
Chrome://Plugins
と入力。

Adobe Flash Player
- [x] 常に実行を許可する
チェックを入れる。

艦これ起動確認

Chromiumを立ち上げて艦これをやってみるテスト。

vncサーバーインストール

Raspberry Pi 3でRaspbian Jessieをセットアップする方法の下の方のtightvncサーバ項参照。

ターミナルを起動して

sudo apt-get update
sudo apt-get install tightvncserver

vncserver
パスワード設定(6-8文字)
read-onlyのパスワードは入力せずEnter。

tightvncserverを起動する。
vncserver :1

自動起動スクリプト作成。
参考:Raspberry Piの設定【VNCサーバ(tightVNC)の設定】
sudo vim /etc/init.d/vncboot

/etc/init.d/vncboot
#! /bin/sh
# /etc/init.d/vncboot

### BEGIN INIT INFO
# Provides: vncboot
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start VNC Server at boot time
# Description: Start VNC Server at boot time.
### END INIT INFO

USER=pi
HOME=/home/pi

export USER HOME

case "$1" in
 start)
 echo "Starting VNC Server"
 #Insert your favoured settings for a VNC session
 su $USER -c '/usr/bin/vncserver :1 -geometry 1280x800 -depth 24' #クライアントに合わせた解像度に
 ;;

 stop)
 echo "Stopping VNC Server"
 su $USER -c '/usr/bin/vncserver -kill :1'
 ;;

 *)
 echo "Usage: /etc/init.d/vncboot {start|stop}"
 exit 1
 ;;
esac

exit 0

実行権限を変更し、自動起動登録し、再起動。
sudo chmod 755 /etc/init.d/vncboot
sudo chkconfig --add vncboot
sudo chkconfig vncboot on
reboot

ルータ側でIP固定、ポート開放等

VNC接続のためにTCP/5901を開放。

iPhoneにVNCクライアント入れて確認

自分はVNC Viewer使ってます。
やり方は割愛。

これで出先でもiPhoneから艦これができるはず!
(Android版来たら必要ないなんて言わないで)

10
10
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
10
10