# 截图
raspistill -o image.jpg
# 生成视频文件
raspivid -o myvideo.h264 -t 10000
# 安装vlc软件
sudo apt-get install vlc
# 启动http视频流
sudo raspivid -o - -t 0 -fps 30|cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8080}' :demux=h264
# 视频流播放软件地址: http://192.168.1.63:8080
## 监控软件motion
docker run -it --network host --rm balenalib/raspberry-pi-debian:build bash
raspi-config
1. Advanced Options --> A3 Memory Split --> 256MB
curl http://www.linux-projects.org/listing/uv4l_repo/lpkey.asc | sudo apt-key add -
echo "deb http://www.linux-projects.org/listing/uv4l_repo/raspbian/stretch stretch main" > /etc/apt/sources.list.d/jessie-backports.list
apt-get update
apt-get install uv4l uv4l-raspicam
apt-get install uv4l-raspicam-extras
apt-get install uv4l-decoder2 uv4l-encoder uv4l-renderer uv4l-server uv4l-webrtc uv4l-xmpp-bridge
apt-get install uv4l uv4l-server uv4l-raspicam uv4l-raspicam-extras
service uv4l_raspicam start
update-rc.d -f uv4l_raspicam enable
Video streaming from Raspberry Pi with UV4L
https://blog.domski.pl/video-streaming-from-raspberry-pi-with-uv4l/
安装docker:
https://blog.alexellis.io/getting-started-with-docker-on-raspberry-pi/
raspi-config
wiringpi
Rasp PI的C编程
raspberry python gpio
rpi gpio python
ssh [email protected]
systemctl enable wpa_supplicant
systemctl stop dnsmasq && systemctl stop hostapd && systemctl disable dnsmasq && systemctl disable hostapd && systemctl daemon-reload && service dhcpcd restart
将RPi4从AP模式改为普通模式:
``` bash
apt-get remove -y hostapd dnsmasq
sed -i 's/^static/#static/' /etc/dhcpcd.conf &&
systemctl daemon-reload
service dhcpcd restart
systemctl enable wpa_supplicant
cat > /boot/wpa_supplicant.conf << EOF
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US
network={
ssid="TP-LINK_5EBBDC"
psk="friendlycanoe511"
}
EOF
touch /boot/ssh