moodLearning Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
technical-notes-library-in-a-box [2018/12/09 10:27]
serbizadmin [References]
technical-notes-library-in-a-box [2020/01/04 13:48] (current)
serbizadmin [Restore]
Line 1: Line 1:
  
 ====== Technical Notes - Library in a Box ====== ====== Technical Notes - Library in a Box ======
 +{{::​elibboxbanner.png?​400|}}
  
 ====== Installation ====== ====== Installation ======
Line 33: Line 34:
 <​code> ​ <​code> ​
 sudo dd if=/​dev/​disk5 of=~/​Desktop/​tambayayong-eLib-box.dmg </​code>​ sudo dd if=/​dev/​disk5 of=~/​Desktop/​tambayayong-eLib-box.dmg </​code>​
 +  * unmount
 +<​code>​
 +diskutil unmountDisk /dev/disk5
 +</​code>​
 \\ \\
 =====Restore===== =====Restore=====
 To restore or replicate the image to another microSD, To restore or replicate the image to another microSD,
 <​code>​ <​code>​
-sudo dd if=~/Desktop/​tambayayong-eLib-box.dmg of=/​dev/​disk5+sudo dd if=~/Volumes/​4TB-SG/​raspberrypi/​tambayayong-updated-19feb2019.dmg of=/​dev/​disk5
 </​code>​ </​code>​
 On Mac, try this variation for speed: On Mac, try this variation for speed:
 <​code>​ <​code>​
-sudo dd bs=1m status=progress ​if=~/Desktop/​tambayayong-eLib-box.dmg of=/dev/rdisk5+sudo dd bs=1m if=/Volumes/​4TB-SG/​raspberrypi/​tambayayong-updated-19feb2019.dmg of=/dev/rdisk2
 </​code>​ </​code>​
 \\ \\
Line 49: Line 54:
 </​code>​ </​code>​
 \\ \\
-Do the same for the other "​s"​ numbers, as determined by the //diskutil list// command. In certain cases, you have to do the //force// option. ​+Do the same for the other "​s"​ numbers, as determined by the //diskutil list// command. In certain ​rare cases, you have to do the //force// option. ​
 <​code>​ <​code>​
 diskutil umount force /​dev/​disk5s2 diskutil umount force /​dev/​disk5s2
Line 76: Line 81:
 sudo gpt create -f /dev/disk5 sudo gpt create -f /dev/disk5
 </​code>​ </​code>​
 +\\
 +And the most basic of all, when you're having difficulty formatting a microSD card, check if some mechanism on the card adapter or reader is not set to lock or read-only. With the lock on, you'll likely get a "​permission denied"​ message when you do a restore command.
 \\ \\
 \\ \\
 ====== Maintenance====== ====== Maintenance======
 Maintenance of the [[library-box|Library in a Box]] by parts (all available at online stores like Lazada and Shopee): Maintenance of the [[library-box|Library in a Box]] by parts (all available at online stores like Lazada and Shopee):
-  * {{ ::​elibboxpowersupply.png?​100|}}power supply. This can be replaced by any Android cellphone charger with output of 2.5A. If eLib Box usage is not high, 2A will do, and it can even run on a power bank for mobile phones. But 2.5A is the recommended rating. Make sure, however, that you're not using Raspberry Pi 3 Beta **Plus** - a slightly more powerful version but requiring a more expensive 3A-output power and at least the latest Raspbian Stretch OS.  See [[https://​en.wikipedia.org/​wiki/​Raspbian|Raspbian versioning and OS requirement]].\\ \\+  * {{ ::​elibboxpowersupply.png?​100|}}power supply. This can be replaced by any Android cellphone charger with output of 2.5A. If eLib Box usage is not high, 2A will do, and it can even run on a power bank for mobile phones. But 2.5A is the recommended rating. Make sure, however, that you're not using Raspberry Pi 3 Beta **Plus** - a slightly more powerful version but requiring a more expensive 3A-output power and at least the latest Raspbian Stretch OS.  See [[https://​en.wikipedia.org/​wiki/​Raspbian|Raspbian versioning and OS requirement]].\\ \\ The eLib Box or the Raspberry Pi is NOT designed to be powered from a USB port on other connected equipment like a laptop. \\ \\
   * {{ ::​microsd.jpg?​75|}}microSD card. This card contains both the operating system and the contents of the [[library-box|Library in a Box]]. An image backup is recommended so local restoration is possible. Otherwise, request your technology service provider for replacement. Future updates and enhancements may also be available through your technology service provider. \\ \\ In certain situations, it makes sense to pre-position updated microSD cards in the locality to be able to quickly respond to a possible breakdown in one of the eLib sites. \\ \\   * {{ ::​microsd.jpg?​75|}}microSD card. This card contains both the operating system and the contents of the [[library-box|Library in a Box]]. An image backup is recommended so local restoration is possible. Otherwise, request your technology service provider for replacement. Future updates and enhancements may also be available through your technology service provider. \\ \\ In certain situations, it makes sense to pre-position updated microSD cards in the locality to be able to quickly respond to a possible breakdown in one of the eLib sites. \\ \\
   * {{ ::​raspberry_pi_3.png?​100|}}Raspberry Pi 3 Beta microcomputer is available via online stores. (Not to be confused with Raspberry Pi 3 Beta **Plus** - a slightly more powerful version but requiring 3A power and at least the latest Raspbian Stretch OS.) The micro SD that came with the original setup can just be inserted into a newly-ordered Raspberry Pi 3 Model B, and it should be good to go.   * {{ ::​raspberry_pi_3.png?​100|}}Raspberry Pi 3 Beta microcomputer is available via online stores. (Not to be confused with Raspberry Pi 3 Beta **Plus** - a slightly more powerful version but requiring 3A power and at least the latest Raspbian Stretch OS.) The micro SD that came with the original setup can just be inserted into a newly-ordered Raspberry Pi 3 Model B, and it should be good to go.
   * {{ ::​heatsink.png?​80|}}Over time, the heatsink could detach, as its adhesive would dry up. In this case, just remove the heatsink from the box to prevent it from short-circuiting the microcomputer board. The alternative is to use some double-sided,​ heat-transfering adhesive tape to re-attach the heatsinks. Remember to wipe the surface first before mounting the heatsink.   * {{ ::​heatsink.png?​80|}}Over time, the heatsink could detach, as its adhesive would dry up. In this case, just remove the heatsink from the box to prevent it from short-circuiting the microcomputer board. The alternative is to use some double-sided,​ heat-transfering adhesive tape to re-attach the heatsinks. Remember to wipe the surface first before mounting the heatsink.
 +  * {{ ::​raspbibetawithfan.jpg?​100|}} IF you have a eLib Box version with a fan that draws its power from the Raspberry Pi board, notice to which pins fan wires are attached to and the colors (red and black) of the wire. Red on Pin 4 (5v power); black on Pin 6 (ground). Just in case the wires get detached from the board, just put them back in. If the fan itself breaks, don't worry too much about it. Just keep it there until you find a suitable replacement.
 +{{ ::​raspberry-pi-gpio-layout-model-b-plus-rotated-2700x900.png?​400 |}}
 \\ \\
 \\ \\
-====== Upgrade====== +  * If you're concerned ​with possible corruption of data if you just yank the power supply with properly shutting, a start/​shutdown button may be added to a contraption. See [[raspberry-pi-3-startup-shutdown-button|this rig]].
-As it it, the Tambayayong eLib Box is released as a stand-alone deployment. No need for any upgrade ​with the OS. (The contents could be changed ​to suit the needs of partner schools.+
 \\ \\
 \\ \\
-However, in certain cases (say, changing board to Raspberry Pi 3 Beta **Plus**) where a later system is needed, one may upgrade the OS. As of this writing, Raspbian "​Jessie"​ (version 8) is used as default version of the operating system. Check if there'​s enough space on your microSD card. Also confirm version with +
-<​code>​ +
-less /​etc/​os-release +
-</​code>​ +
-To upgrade to the later version ("​Stretch"​ as of this writing), connect the box to the internet via RJ-45 jack, and do +
-<​code>​ +
-sudo apt-get update +
-sudo apt-get -y dist-upgrade +
-</​code>​ +
-To ensure you have everything of the upgrade version, do +
-<​code>​ +
-sudo apt-get update +
-sudo apt-get upgrade +
-</​code>​ +
-Packages have to be upgraded as well, and they may have to be "​forced"​ +
-<​code>​ +
-sudo rpi-update +
-</​code>​ +
-Edit  +
-<​code>​ +
-/​etc/​apt/​sources.list +
-/​etc/​apt/​sources.list.d/​raspi.list +
-</​code>​ +
-to ensure "​stretch"​ is indicated. For instance, +
-<​code>​ +
-deb http://​archive.raspberrypi.org/​debian stretch main ui +
-</​code>​ +
-You may have to remove the changelog +
-<​code>​ +
-sudo apt-get remove apt-listchanges +
-</​code>​ +
-for faster upgrade. +
-\\ +
-\\ +
-Repeat the update/​upgrade routine. Once done, clean up: +
-<​code>​ +
-sudo apt-get autoremove -y +
-sudo apt-get autoclean +
-</​code>​ +
-Then reboot. +
-\\+
 ---- ----
 ====== References ====== ​ ====== References ====== ​
Line 143: Line 111:
   * [[elibrary-partnership|Tambayayong eLibrary Partnership]]   * [[elibrary-partnership|Tambayayong eLibrary Partnership]]
   * [[Troubleshooting eLib Box]]   * [[Troubleshooting eLib Box]]
 +  * [[Raspbian Upgrade]]