Raspberry pi tips

# Finish headless installation via ssh. See /boot/config.txt
(local)$ ssh pi@192.168.2.X
$ sudo apt-get update && apt-get dist-upgrade
$ sudo raspi-config
# Add locale en.us-utf8 (but keep en.gb-utf8)
$ sudo dpkg-reconfigure locales
# Timezone
$ sudo dpkg-reconfigure tzdata
# Update firmware
$ sudo rpi-update
# Access remotely using 'raspberrypi.local'
$ sudo apt-get install avahi-daemon
# Create new user, enable sudo and video privileges
$ sudo adduser username
$ sudo adduser username sudo
$ sudo adduser username video
# Increase font size on tv console [utf-8, guess optimal, Terminus, 16x32]
$ sudo dpkg-reconfigure console-setup
# Echo command to tv console (as root)
> /usr/games/nethack >> /dev/tty1
 
## /etc/rc.local
# Turn off screen blanking
/usr/bin/setterm -blank 0 -powerdown off
 
## ~/.bash_aliases
# Blank screen before playing. I never remember the r-pi media player name.
alias omxplayer='omxplayer --refresh'
alias mplayer='omxplayer'
# Echo ssh console to tv console
alias mirror-console="sudo script --flush --command 'sudo -u $USER bash' /dev/tty1"
 
## /etc/usbmount/usbmount.conf
# Mount a VFAT formatted USB drive as username for read/write permissions.
FS_MOUNTOPTIONS="-fstype=vfat,uid=username,gid=username"
 
## Some helpful commands
tvservice #list hdmi info
vcgencmd #info about the rpi board. 'vcgencmd commands' for list of commands
vcgencmd measure_temp #=> temp=42.2'C
 
## SopCast
# Run streaming server on local box. xxxx = channel
(local)$ sp-sc-auth sop://broker.sopcast.com:3912/xxxx 3908 8900
# Connect to server, display on r-pi. omxplayer must support codec (h264)
(pi)$ omxplayer -r http://192.168.2.4:8900/tv.asf

Comments

Popular posts from this blog

SOX - Sound eXchange - How to use SOX for audio processing tasks in research.

Sox of Silence - Original post - http://digitalcardboard.com/blog/2009/08/25/the-sox-of-silence/

How to get video or audio duration of a file using ffmpeg?