LoginSignup
2
2

More than 3 years have passed since last update.

RaspberryPiにdietpiをインストールしたあとに

Last updated at Posted at 2020-03-30

swapファイルの設定

dietpi-config > advanced > swapfile

vim /boot/dietpi.txt

webカメラとかマイクとか

apt-get -y install fswebcam alsa-utils v4l-utils

カメラのリスト

v4l2-ctl --list-devices

撮影

fswebcam -d /dev/video0 a.jpg
fswebcam -d /dev/video2 b.jpg

録音デバイスのリスト

aplay -l

録音

arecord -D plughw:1 -f cd test.wav

音量を調整して再生

amixer -c0 sset PCM 100%
aplay --duration=5 test.wav 
amixer -c0 sset PCM 80%
aplay --duration=5 test.wav

kioskで起動する

diet-configでautostartをkioskにして
vim /var/lib/dietpi/dietpi-software/installed/chromium-autostart.sh
における、CHROMIUM_OPTSの部分に--incognitoを追加する

motion

apt-get -y install motion
vim /etc/motion/motion.conf
vim /etc/default/motion 
systemctl enable motion
systemctl start motion
systemctl status motion
systemctl status motion
systemctl disable motion

tensorflow

apt install libatlas-base-dev libhdf5-dev python3-pip
pip3 install --upgrade tensorflow

sdカードのバックアップ

diskutil list
diskutil unmountDisk /dev/disk2
sudo dd if=/dev/disk2 of=~/Downloads/bk_file.img bs=1m
2
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
2
2