Changes between Version 15 and Version 16 of PibotGoldenImage
- Timestamp:
- Jun 23, 2018, 2:03:52 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PibotGoldenImage
v15 v16 19 19 * Download the latest Raspbian Lite image 20 20 * Unzip to extract the .img file 21 * Use [https://etcher.io/ Etcher] to install the .img on an SD card (see: https://www.raspberrypi.org/documentation/installation/installing-images/README.md). This creates two partitions: /boot that is accessible from Windows and /root that is ext4 and cannot (easily) be accessed from Windows.22 * Remove and re-insert SD card so Windows will discoverthe new partitions...ignore/cancel any requests to format them21 * Use [https://etcher.io/ Etcher] to install the .img on an SD card (see: [https://www.raspberrypi.org/documentation/installation/installing-images/README.md here] for more info). This creates two partitions: /boot that is accessible from Windows and /root that is ext4 and cannot (easily) be accessed from Windows. 22 * Remove and re-insert SD card so Windows will re-mount the new partitions...ignore/cancel any requests to format them 23 23 * Edit /boot/config.txt (preferably edit with Notepad++) 24 24 * uncomment framebuffer_width=1280 25 25 * uncomment framebuffer_height=720 26 26 * uncomment dtparam=i2c_arm=on 27 * For Pi Zero only : add at end:27 * For Pi Zero only, add the following at the end to enable USB networking (not supported on other Pi platforms): 28 28 {{{ 29 29 # Enable USB Gadget (networking over USB) … … 34 34 }}} 35 35 * Edit /boot/cmdline.txt 36 * Insert after rootwait:37 {{{ modules-load=dwc2,g_ether g_ether.dev_addr=5a:77:1e:af:8e:9e g_ether.host_addr=72:8d:1f:c4:e8:ca }}} (for !PiZero only)38 * Remove init=resizefs... (to prevent automatic expansion to full SD card size)36 * For Pi Zero only, insert after rootwait: 37 {{{ modules-load=dwc2,g_ether g_ether.dev_addr=5a:77:1e:af:8e:9e g_ether.host_addr=72:8d:1f:c4:e8:ca }}} 38 * For all platforms: Remove init=resizefs... (to prevent automatic expansion to full SD card size) 39 39 (Note: cmdline.txt must be a single line...no linebreaks) 40 40 * Create an empty file: /boot/ssh (enables ssh server when started) 41 41 * Create an empty file: /boot/avahi (enables zeroconfig/bonjour when started) 42 * For Pis with !WiFi built-in: create /boot/wpa_supplicant.conf with your wifi network configuration information (allows Pi to connect to your !WiFi network on boot)42 * For Pis with built-in !WiFi (Pi 3, Pi Zero W): create /boot/wpa_supplicant.conf with your wifi network configuration information (allows Pi to connect to your !WiFi network on boot) 43 43 {{{ 44 44 country=US … … 51 51 key_mgmt=WPA-PSK 52 52 } 53 }}} 53 }}} 54 NOTE: remember to remove your wifi info (especially PSK) before creating the golden image 54 55 * Boot and configure SD card in Pi 55 56 * Place uSD card in Pi … … 101 102 * sudo reboot 102 103 * wait and then re-connect to the Pi via SSH 103 * [https://rohankapoor.com/2012/04/americanizing-the-raspberry-pi/ Americanize your Pi] 104 * Set the locale (see [https://rohankapoor.com/2012/04/americanizing-the-raspberry-pi/ here] for info): 105 * sudo dpkg-reconfigure locales 106 * un-select: en_GB.UTF-8 107 * select: en_US.UTF-8 108 * make sure to select en_US.UTF-8 as the default locale for the system environment 109 * wait for generation to finish 110 * exit (this is important; the change doesn't take effect before you log in again) 111 * re-connect via SSH 112 * sudo dpkg-reconfigure keyboard-configuration (reconfigures based on new locale) 113 * sudo dpkg-reconfigure tzdata (select US->Eastern) 104 114 * sudo raspi-config 105 115 * Update tool to latest version 116 * Setup Network Options: hostname->pibot 106 117 * If you haven't done this via the step above, setup localisation settings for US, English, EST 107 * un-select: en_GB.UTF-8 108 * select: en_US.UTF-8 109 * make sure to select en_US.UTF-8 as the default locale for the system environment 110 * Setup interfacing options: enable ssh, vnc, i2c 111 * Setup Network Options: hostname->pibot 118 * Setup interfacing options: enable ssh, vnc, i2c (note, VNC will install X and a ton of other stuff) 112 119 * Install any needed packages 113 120 * sudo apt-get install subversion ant mercurial