Skip to content

Setup SD Card memory...OS installation

TinyOS Lover (3PO_Kang) edited this page Aug 23, 2018 · 64 revisions

Prepare

  1. Download prepared image file
  • Why use this pre-setting image ?
    • This image includes BerePi source code to run CO2, SHT2x, LCD, LED...
    • Also, required python packages are pre-installed, such as requests, twisted, pip, I2C...
    • Many of shell config files are all set, /etc/rc.local, /etc/networks/interfaces...
  • Download on the Macbook Terminal
    • wget http://tinyos.asuscomm.com:2081/open/2018_08_hawaii.zip
    • if you loose connection, you can continue download, wget -c option
  • unzip raspi_4G_2015_0707.zip will give raspi_4G_2015_0707.img Download Image - unzip message but it is working properly
    
    

unzip raspi_4G_2015_0707.zip Archive: raspi_4G_2015_0707.zip warning [raspi_4G_2015_0707.zip]:76 extra bytes at beginning or within zipfile (attempting to process anyway) error [raspi_4G_2015_0707.zip]: reported length of central directory is -76 bytes too long (Atari STZip zipfile? J.H.Holm ZIPSPLIT 1.1 zipfile?). Compensating... inflating: raspi_4G_2015_0707.img
note: didn't find end-of-central-dir signature at end of central dir. (please check that you have transferred or created the zipfile in the appropriate BINARY mode and that you have compiled UnZip properly)

  1. Copy download file to SD card
  • Follow ApplePi Baker image writer instruction, ApplePi Image Writer
    • You need uncheck application security option which approves run permission, Internet download application on the Control Panel applepi
  • or Shell command-line SD card write, Mac OSX command-line SD Card

Setup cables and power up

  1. Insert SD Card to RaspberryPi
  2. Connect RaspberryPi with Laptop LAN port
  • Be sure connect LAN cable, before power up RaspberryPi
    connect raspi
  1. Power UP
  • Plug Micro USB cable to supply power port of RaspberryPi

Check network connection

  1. Ping to RaspberryPi from Laptop Ping
  • ping 169.254.0.2
  • 169.254.0.2 is pre-defined fixed IP address for Direct LAN connect - if you remove this odd networking conf., after setup all Linux, you can edit /boot/cmdline.txt - get rid of words ip=169.254.0.2
  • if Ping is not working, try to turn off Wi-Fi connection to Internet, make LAN connection alone without other network

Log-in to RaspberryPi & init setup

  1. ssh [email protected]
    • ID : pi
    • Pasword : tinyos
  2. sudo raspi-config will give you graphical tool
  • Expand SD memory size to use maximum capacity Expand SD memory
    • Download Image file was generated for 4G SD card memory, without expand this, we will just use 4G Byte disk memory. Thus this expand process should be done every new install SD card.
  • Change Hostname which you want Advanced stting hostname
  • Reboot sudo reboot
  • After rebooting, you may check df -h if expand SD has done well SD capacity

Index

Follow next step

to the Home