Last active
January 20, 2019 20:47
-
-
Save mallendeo/2274d46eb967a72e7c7f18b3f1316d7e to your computer and use it in GitHub Desktop.
Raspberry Pi Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo locale-gen "en_US.UTF-8" | |
sudo dpkg-reconfigure locales | |
# in file /etc/default/locale add line LC_ALL="en_US.UTF-8" and relogin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# on a mac | |
cd /Volumes/boot | |
# enable ssh | |
touch ssh | |
# wifi | |
# https://raspberrypi.stackexchange.com/questions/67649/raspberry-pi-zero-w-headless-using-wpa-supplicant-conf-not-working | |
cat <<\EOT >wpa_supplicant.conf | |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
country=US | |
update_config=1 | |
network={ | |
ssid="Home Wifi" | |
psk="mypassword" | |
key_mgmt=WPA-PSK | |
} | |
EOT | |
cd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# on both client and server | |
RPI_IP=192.168.100.166 | |
PORT=5000 | |
# Client (macOS) | |
brew install gstreamer gst-libav gst-plugins-ugly gst-plugins-base gst-plugins-bad gst-plugins-good | |
gst-launch-1.0 -v tcpclientsrc host=$RPI_IP port=$PORT ! gdpdepay ! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink sync=false | |
# Server (rpi) | |
sudo apt install -y gstreamer1.0-tools gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad | |
raspivid -t 0 -h 720 -w 1080 -fps 30 -hf -b 2000000 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink host=$RPI_IP port=$PORT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment