Difference between revisions of "Cerealbot/rpi"
m (→Install OS: Added timezone directions) |
m (Added blank structure to page) |
||
Line 2: | Line 2: | ||
I'm using an RPi 2 model B for this project. Here are my notes. | I'm using an RPi 2 model B for this project. Here are my notes. | ||
− | == | + | == OS == |
+ | |||
+ | === Install === | ||
I'm just using [https://www.raspberrypi.org/downloads/ Rasbian] from the foundation's download page. I find Debian derivatives to be comfortable for projects such as this. You're welcome to use whatever distro you like. | I'm just using [https://www.raspberrypi.org/downloads/ Rasbian] from the foundation's download page. I find Debian derivatives to be comfortable for projects such as this. You're welcome to use whatever distro you like. | ||
Line 29: | Line 31: | ||
echo "TZ='America/Chicago'; export TZ" >> ~/.profile | echo "TZ='America/Chicago'; export TZ" >> ~/.profile | ||
</pre> | </pre> | ||
+ | |||
+ | === Setup SSH === | ||
+ | |||
+ | I really recommend setting up ECDSA SSH keys. There are many good guides for this elsewhere. | ||
+ | |||
+ | === Setup Byobu === | ||
+ | |||
+ | * F1 allows you to set "log into byobu" to save some time while logging in. | ||
+ | |||
+ | * 'C-a a' will send C-a to /usr/bin/screen, so you can use screen within byobu to debug serial connections. | ||
+ | |||
+ | == Octoprint == | ||
+ | |||
+ | === Install === | ||
+ | |||
+ | === Authbind to Port 80 === | ||
+ | |||
+ | == MJPG-Streamer == | ||
+ | |||
+ | === Install === | ||
+ | |||
+ | == Arduino/ATmega/AVR == | ||
+ | |||
+ | === Use GPIO for Programming/Comm === | ||
+ | |||
+ | === Compile and Flash from CLI === |
Revision as of 15:16, 7 June 2015
I'm using an RPi 2 model B for this project. Here are my notes.
Contents
[hide]OS
Install
I'm just using Rasbian from the foundation's download page. I find Debian derivatives to be comfortable for projects such as this. You're welcome to use whatever distro you like.
I strongly recommend you follow some official guide for installing the OS if you're at all uncertain. The notes here are sparse and meant to make it faster for me to recover from a broken system.
Get the archive, extract the file. Should be along the lines of '2015-05-05-rasbian-wheezy.img'.
Flash it to the SD card: 'sudo dd if=2015...img of=/dev/sdX bs=4M'.
Configure things with the raspi tool that loads on first boot, then install your favorite packages. Mine are:
htop vim emacs byobu tmux build-essential bash-completion haproxy authbind
Set the time/zone
http://aryo.lecture.ub.ac.id/configure-timezone-settings-on-raspberry-pi-raspbian-wheezy/
By default, Rasbian has an ntp daemon running, but you may still need to select a timezone. Use tzselect to set the timezone, then echo the returned line into .profile.
for me, this means:
echo "TZ='America/Chicago'; export TZ" >> ~/.profile
Setup SSH
I really recommend setting up ECDSA SSH keys. There are many good guides for this elsewhere.
Setup Byobu
- F1 allows you to set "log into byobu" to save some time while logging in.
- 'C-a a' will send C-a to /usr/bin/screen, so you can use screen within byobu to debug serial connections.