Fiddling with Raspberry Pi

Pi_insideJust some useful commands:

  • Make sure your RPI is up to date:
sudo apt-get install rpi-update
sudo rpi-update
sudo apt-get update
sudo apt-get upgrade
  • Check capabilities:
vcgencmd codec_enabled MPG2
vcgencmd codec_enabled WVC1

vcgencmd version

Jun 17 2015 13:36:16
Copyright (c) 2012 Broadcom
version 1352d17ed6bd078120ac262b8c45b5b3a0d398de (clean) (release)

  • Streaming of USB video camera:

Start streaming on Pi:

cvlc v4l2:///dev/video0 --v4l2-width 640 --v4l2-height 480 --v4l2-chroma h264 --sout '#standard{access=http,mux=ts,dst=0.0.0.0:8080}

Start watching on client:

cvlc http://10.6.23.101:8080

Bonus, autostart streaming at boot:

Add streaming line to script
sudo chmod +x /home/pi/bin/stream.sh
crontab -e
@reboot /home/pi/bin/stream.sh
  • Configure WLAN
sudo vim /etc/network/interfaces
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "YOUR NETWORK SSID"
wpa-psk "WIFI PASSWORD"
sudo reboot

Or install wicd-curses and wicd-daemon

 


 

By devnull

Man of many talents. Server janitor, Chief Googler, Vice President of Pencil Sharpening, Director of Turning Things Off and On Again. Technology Plumber using Linux for stuff like Satellite STB, home CCTV system, kitchen sound bar, workstations, even car onboard computer. And servers, oh yeah - lots of them. I've been a Linux Mercenary for quite a while now, often using information posted by kind strangers on the Internet to solve problems during this journey. This blog is a humble attempt to give something back to the community.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.