# HG changeset patch # User Steve Huston # Date 1394290834 18000 # Node ID 3f1ead4ba8b456922e44f11c452dda569b8363c7 # Parent 23384e94013c8ab1d2f0e2c428affc9916ca99ed Changes for the Pi: * Code block to start emulationstation if the circumstances warrant, as well * as checking for the presence of a PS3 controller and warning that it isn't * connected. Also adding usernames to the ssh config to make aliases and * whatnot work more easily. diff -r 23384e94013c -r 3f1ead4ba8b4 .bash_profile --- a/.bash_profile Wed Dec 18 17:11:07 2013 -0500 +++ b/.bash_profile Sat Mar 08 10:00:34 2014 -0500 @@ -66,3 +66,23 @@ echo Local repository contains updates. fi hg status + +[[ $HOST == cake && "`tty`" == "/dev/tty1" ]] && { + # We're on the Raspberry Pi + export SDL_NOMOUSE=1 + if [ ! -e /dev/input/js0 ] ; then + # PS3 controller isn't paired yet + dialog --infobox "WARNING: PS3 controller not detected. Please press the PS button to pair. Ctrl-C on keyboard to skip." 4 55 + ( + trap break INT + for C in {1..30} ; do + sleep 1 + if [ -e /dev/input/js0 ] ; then + break + fi + done + ) + fi + clear + /usr/bin/emulationstation +} diff -r 23384e94013c -r 3f1ead4ba8b4 .ssh/config --- a/.ssh/config Wed Dec 18 17:11:07 2013 -0500 +++ b/.ssh/config Sat Mar 08 10:00:34 2014 -0500 @@ -13,13 +13,22 @@ # xanadu-vm and syrinx's keys change, let's try to avoid errors Host xanadu-vm syrinx xanadu-vm.astro.princeton.edu syrinx.astro.princeton.edu + User huston StrictHostKeyChecking no ForwardAgent yes ForwardX11 yes ForwardX11Trusted yes +# Everything is fine for the Raspberry Pi, just need a different user +Host cake cake.srhuston.net + User pi + ForwardAgent yes + ForwardX11 yes + ForwardX11Trusted yes + # Allow everything for CSES, astro, and home hosts w/ FQDN Host cses*.princeton.edu *.astro.princeton.edu *.srhuston.net + User huston ForwardAgent yes ForwardX11 yes ForwardX11Trusted yes @@ -33,6 +42,7 @@ # Now allow for anything else - if we're typing a single hostname, it's likely # trusted. Host * + User huston ForwardAgent yes ForwardX11 yes ForwardX11Trusted yes