Skip to content

Instantly share code, notes, and snippets.

@cjolly
Last active May 1, 2019 19:54
Show Gist options
  • Save cjolly/5711648 to your computer and use it in GitHub Desktop.
Save cjolly/5711648 to your computer and use it in GitHub Desktop.
Raspberry PI Notes
# file: /etc/xdg/lxsession/LXDE/autostart
# sudo raspi-config # Enable Boot To Desktop
# idea via: http://lokir.wordpress.com/2012/09/16/raspberry-pi-kiosk-mode-with-chromium/
@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
# @xscreensaver -no-splash
@xset s off
@xset -dpms
@xset s noblank
@chromium --kiosk --incognito http://dashingdemo.herokuapp.com/sampletv

Raspberry Pi Setup Guide

  1. Share Mac's Ethernet port [via]
  2. Determine PI IP Address arp -a
  3. ssh pi@192.168.2.2 / raspberry
  4. Generate SSH keys [via]
  5. SSH key auth scp ~/.ssh/id_rsa.pub pi@192.168.2.2:~/.ssh/authorized_keys
  6. change pi password
  7. sudo raspi-config "update this tool to latest version"
  8. set TZ, locale (disable en_GB)
  9. set hostname to a pi-pun
  10. sudo apt-get update
  11. sudo apt-get install git-core
  12. sudo apt-get install ruby

X11 Notes

  • may want to set X11 to full screen mode in Preferences
  • ssh -Y pi@192.168.2.2 to get an X11 Forward ssh session [via]
  • lxsession starts Desktop Manager
  • can start other X apps from cmd line without running Desktop Manager

References

Deployment Ideas

@nzifnab
Copy link

nzifnab commented Jun 5, 2013

Copying the public ssh key file can be done with scp ~/.ssh/id_rsa.pub pi@192.168.2.2:~/.ssh/authorized_keys as well.

@cjolly
Copy link
Author

cjolly commented Jun 6, 2013

@nbenes, OSX is inexplicably missing is ssh-copy-id, but good catch. Updated.

The reason I used that one above was that I was kinda fascinated that you can pipe into a remotely executed command. cat ~/.ssh/id_rsa.pub | ssh pi@192.168.2.2 "cat >> ~/.ssh/authorized_keys"

@gotchahn
Copy link

Trying to run dashboard start i had this error: Could not find a JavaScript runtime?
but i solved it with installing NodeJS sudo apt-get install nodejs
Also i had to install RVM for Ruby 2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment