Last active
December 9, 2016 10:54
-
-
Save trentbrooks/ea0ba99f4d0816483866 to your computer and use it in GitHub Desktop.
Raspberry PI install system image from terminal
This file contains 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
diskutil list | |
diskutil unmountDisk /dev/disk3 | |
// snappy ubuntu core | |
sudo dd bs=1m if=~/Downloads/pi-snappy.img of=/dev/disk3 | |
// raspbian | |
sudo dd bs=1m if=~/Downloads/2015-01-31-raspbian.img of=/dev/disk3 | |
// retropie (assumes .img is in Downloads folder) | |
sudo dd bs=1m if=~/Downloads/retropie-v3.2.1-rpi2.img of=/dev/disk3 | |
sudo dd bs=1m if=~/Downloads/retropie-4.1-rpi2_rpi3.img of=/dev/disk3 | |
// clone sd card to desktop (osx) | |
sudo dd if=/dev/disk2 of=~/Desktop/raspberrypi.dmg | |
// restore/copy to sd card (osx) | |
sudo dd if=~/Desktop/raspberrypi.dmg of=/dev/disk2 | |
// faster restore | |
sudo dd if=~/Desktop/raspberrypi.dmg of=/dev/rdisk2 bs=5m | |
// format sd card (fat16) | |
diskutil unmountDisk /dev/disk2 | |
sudo newfs_msdos -F 16 /dev/disk2 | |
// after new sd card need to setup pi same as the others | |
sudo raspi-config | |
1 Expand Filesystem - yes | |
8 Advanced options -> A3 Memory Split 256 - yes | |
remove console login: http://www.opentechguides.com/how-to/article/raspberry-pi/5/raspberry-pi-auto-start.html | |
sudo nano /etc/inittab | |
#1:2345:respawn:/sbin/getty 115200 tty1 | |
1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1 | |
run script on startup | |
sudo nano /etc/profile | |
. /home/pi/mystartupscript.sh | |
// ssh into machine- need to know ip address first: http://apple.stackexchange.com/questions/19783/how-do-i-know-the-ip-addresses-of-other-computers-in-my-network | |
1. arp -a (list all names + ips of devices on network remotely) | |
2. ifconfig (type on rpi in console) | |
ssh pi@retropie | |
ssh [email protected] | |
// install VNC: https://www.raspberrypi.org/documentation/remote-access/vnc/ | |
sudo apt-get install tightvncserver | |
tightvncserver (will ask for a password) | |
vncserver :0 -geometry 1920x1080 -depth 24 | |
// backup sd card (osx) | |
diskutil list | |
sudo dd if=/dev/disk1 of=~/SDCardBackup.dmg | |
// restore from sd card | |
diskutil unmountDisk /dev/disk1 | |
sudo dd if=~/SDCardBackup.dmg of=/dev/disk1 | |
sudo diskutil eject /dev/rdisk3 | |
// installing 5inch hdml touch screen | |
1. change resolution to 800x480: https://learn.adafruit.com/adafruit-5-800x480-tft-hdmi-monitor-touchscreen-backpack/raspberry-pi-config | |
2. enable touscreen: https://blog.ask-a.ninja/?p=48 | |
3. calibrate: http://www.waveshare.com/wiki/5inch_HDMI_LCD_(B)_(Firmware_Rev_2.1)_User_Manual (didnt require driver) | |
// mame roms (2003 .78) | |
https://docs.google.com/spreadsheets/d/1LP1MELCvcxu7TfiowF_0ZuvRVEMqlfQyTVetnOJvuJc/edit#gid=1744967714 | |
https://archive.org/details/MAME2003_Reference_Set_MAME0.78_ROMs_CHDs_Samples |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment