Manuals »

Raspberry Pi

Editing Manuals.RaspberryPi

An author name is required.

Must enter valid code
v

Summary:
Author:
Enter value:
v

Basic editing - Text formatting rules - Documentation index

Tables: simple - advanced

Paragraphs: for a new paragraph, use a blank line;

Line break: \\ or [[<<]]

-> to indent text, -< hanging text

Join line: \

Lists: * for bulleted, # for numbered, :term:definition for definition lists

Emphasis: ''italics''   '''bold'''   '''''bold italics'''''   @@monospaced@@

References: [[another page]], [[http://example.com/]], [[another page | link text]], [[#anchor]], [[#anchor | link text]]

Groups: [[Group/Page]] displays Page, [[Group.Page]] displays Group.Page, [[Group(.Page)]] displays Group, [[Group/]] links Group homepage

Separators: !!, !!! for headings, ---- for horizontal line

Prevent formatting: [=...=]

Other: [+big+]   [++bigger++]   [-small-]   [--smaller--]   '^superscript^'   '_subscript_'   {+inserted+}   {-deleted-}

Preformatted: [@...@] or >>pre<<...>><<

Preview Manuals.RaspberryPi

Beginning of preview -- page is unsaved

KCHUNG uses small $30 computers called "raspberry pi"'s to do a variety of things, including picking up the stream and relaying it to a transmitter, playing back pre-recorded audio to a standalone transmitter, or pre-recorded video to a monitor (at KCHUNG TV).

a basic raspberry pi kit includes

the computer itself
a plastic enclosure for the computer
a usb power adapter and wall plug
a usb wifi adapter
an SD card that holds the operating system and any programs the pi will run

for each specific task, we create a customized disk image that contains the OS and all the necessary programs to help the pi perform its task automatically. this disk image can then be cloned onto an SD card.

to configure the raspberry pi to connect automatically to a wireless network (with a connected USB wifi adapter):

once you've ssh'd into the raspberry pi, type:

sudo nano /etc/network/interfaces

edit the text file to look like below. replace "skychud" with the name of the network you want to use, and "solomister207" with the password. (this configuration will still allow you to connect with ethernet cable)

auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet dhcp
auto wlan0
iface wlan0 inet dhcp
wpa-ssid "skychud"
wpa-psk solomister207

when you're done, hit the control+x keys to exit, type y to save, and save it with the same name (/etc/network/interfaces). when you restart the raspberry pi with the usb wifi adapter plugged in (but no ethernet cable), the raspberry pi should automatically connect to the specified wifi network.

to clone / backup an SD card using mac OS terminal and "dd":

with the SD card in the mac's card reader, open terminal and type:

diskutil list

to find which drive is the SD card - it will be about the size you'd expect (8gb / 16gb / etc) and will have a linux partition.

once you've determined which disk it is (disk1, disk2, etc), type:

sudo dd if=/dev/rdisk2 of=/path/to/backup.img bs=1m

(change "rdisk2" to the correct identifier for the disk you want to back up)

…wait for the backup process…

or... if you want to backup directly to a compressed file, use this command instead:

sudo dd if=/dev/rdisk2 bs=1m | gzip > ~/path/to/backup.gz

to make a new SD card from a backed-up disk image using mac OS terminal and "dd":

with the new SD card in the mac's card reader, open terminal and type

diskutil list

to find which drive is the SD card - it will be about the size you'd expect (8gb / 16gb / etc) and will have a linux partition.

once you've determined which disk it is (disk1, disk2, etc), type:

diskutil unmountDisk /dev/disk1

(change disk1 to the correct identifier for the disk you want to copy onto)

then, to begin copying from a backed-up image type (changing the disk identifier "rdisk1" to the one matching the SD card):

sudo dd if=/path/to/backup.img of=/dev/rdisk1 bs-1m

(again - and this is critically important - change rdisk1 to the correct identifier for the disk you want to copy onto)

OR if you are backing up from a compressed disk image (.gz), type:

gzip -dc /path/to/backup.gz | sudo dd of=/dev/rdisk1 bs=1m

…and wait for the process

End of preview -- remember to save
^ Top ^

Page last modified on May 20, 2017

Edit - History - Print - Recent Changes (All) - Search