LoginSignup
0
2

More than 5 years have passed since last update.

Raspberry pi3構築メモ

Posted at

RASBIAN

apple pi beakerでイメージをSDに書き込んだ

参考にしたURL
(https://www.tweaking4all.com/software/macosx-software/macosx-apple-pi-baker/)
(http://qiita.com/key/items/699611bb199f63a230d1)
(http://www.myu.ac.jp/~xkozima/lab/raspTutorial1.html)

sudo rpi-update
sudo raspi-config
1 Expand Filesystem
2 Change Your Password
7 Advanced Options
A4 SSH No→Yes
A5 VNC No→Yes
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install avahi-daemon

解像度の設定(1080p)

/boot/config.txt

hdmi_group=2
hdmi_mode=82

VNC

  1. メニューバーの左の方にVNCと書かれたアイコンを右クリック
  2. 「Options...」をクリック
  3. 左側メニューの「Security」を選択
  4. 「Authentic action」で、「VNC password」を選ぶ
  5. 左側メニューの「Troubleshooting」を選択
  6. 「Enable experimental direct caputure mode」にチェックを入れる
  7. 「OK」もしくは「Apply」で設定を保存

参考にしたURL
(http://a244.hateblo.jp/entry/2016/10/10/003248)
(http://www.8yazaki.jp/raspi/14_realvncserver_install/)

リモートディスクトップ

sudo apt-get install xrdp

vncと共存できず

node js 環境構築

sudo apt-get install -y node.js npm
sudo npm cache clean
sudo npm install n -g
sudo n stable
node -v

参考にしたURL
(http://qiita.com/setouchi/items/437e4b62e4210871496f)

Lチカ
参考にしたURL
(http://qiita.com/koki_cheese/items/a4555d6ec3a32273cf36)
(https://www.npmjs.com/package/node-pi-gpio)

node.jsのメールボックス

sudo npm install inbox --save

サービス化

sudo npm install forever -g

シャットダウンボタン

参考にしたURL
(http://blog.livedoor.jp/victory7com/archives/42423877.html)

カメラ

sudo apt-get install nc
sudo apt-get install mplayer
nc -l 5001 | mplayer -fps 31 -cache 1024 -

参考にしたURL
(http://www.yam-web.net/raspberry-pi/camera.html)

sudo apt-get install motion
sudo apt-get remove motion
cd /tmp
sudo wget https://www.dropbox.com/s/xdfcxm5hu71s97d/motion-mmal.tar.gz
sudo tar -zxvf motion-mmal.tar.gz
sudo mkdir /opt/motion-mmal/
sudo mv  motion /opt/motion-mmal/
sudo mv motion-mmalcam.conf /opt/motion-mmal/
cd /opt/motion-mmal/
sudo chmod +x motion
sudo ./motion -n -c motion-mmalcam.conf

/etc/motion/motion.conf

daemon on

/etc/default/motion

start_motion_daemon=yes

amixer

参考にしたURL
(http://d.hatena.ne.jp/Nos/20150218/1424217597)

サーボ制御

sudo raspi-config
8 Advanced Options
A7 I2C
sudo apt-get install i2c-tools python-smbus

スクリーンショット

sudo apt-get install -y ksnapshot
0
2
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
0
2