-
-
Save joantune/8387867 to your computer and use it in GitHub Desktop.
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
# Finish headless installation via ssh. See /boot/config.txt | |
(local)$ ssh [email protected] | |
$ 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment