[started by Nugraha, 2014.12.01]

This page is used as a logbook for learning Raspberry Pi in Saito Group. Most of the contents are copied directly from the Raspberry Pi website, with some modifications.

About Raspberry Pi

The Raspberry Pi is a low cost, credit-card sized computer that plugs into a computer monitor or TV, and uses a standard keyboard and mouse. It is a capable little device that enables people of all ages to explore computing, and to learn how to program in languages like Scratch and Python. It is capable of doing everything we would expect a desktop computer to do, from browsing the internet and playing high-definition video, to making spreadsheets, word-processing, and playing games.

The Raspberry Pi also has the ability to interact with the outside world. It has been used in a wide array of digital maker projects, from music machines and parent detectors to weather stations and tweeting birdhouses with infra-red cameras.

Before Installation


1. SD Card

2. Display and connectivity cables

3. Keyboard and mouse

4. Power supply

Not essential but helpful to have

1. Internet connection

2. Headphones

Plugging in Raspberry Pi

Before we plug anything into the Raspberry Pi, make sure that we have all the equipment listed above to hand. Then follow these instructions:

Software Installation

NOOBS guide

To get started with Raspberry Pi we need an operating system. NOOBS (New Out Of the Box Software) is an easy operating system install manager for the Raspberry Pi.

Download and extract NOOBS

To get and install NOOBS, we need an SD card (8GB recommended as mentioned before), and then we can download NOOBS for free and install it on the card.

Format the SD card

It is best to format the SD card before copying the NOOBS files onto it. To do this:

Drag and drop NOOBS files

First boot

Logging into the Raspberry Pi

Some useful configurations

Set a new user, root user, and sudoer

pi@raspberrypi ~ $ sudo adduser rsaito 
pi@raspberrypi ~ $ sudo passwd root
pi@raspberrypi ~ $ sudo visudo
rsaito ALL etc (Copy the data for pi)

Static IP

Vcxsrv or Xming setting up

Vcxsr or Xming is useful for accesing Raspberry Pi without additional display, mouse, or keyboard. Just use our Windows PC.

Setting in Raspberry Pi

Setting in Windows PC

VNC server and PC VNC clients

pi@raspberrypi ~ $ sudo apt-get install tightvncserver
pi@raspberrypi ~ $ tightvncserver

You can longin 172.17.4.xxx (rbp-saito847) by xdmcp

Ruby/tk program (172.17.4.xxx/~rsaito/circuit)

sudo ruby LED-ruby

TCL/tk program for LED

Programs LED-2

sudo ./LED-set
exit 0
# http://lchikaamazon.hatenablog.com/entry/2013/11/18/171637
# Set GPIO port 
echo 25 > /sys/class/gpio/export
cd /sys/class/gpio/gpio25
# Set "output" for GPIO25 port
echo out > direction
# echo "ready"
# the next line restarts using wish \
exec wish "$0" "$@"
# toplabel window . ? ???????????? 
wm title . LED-Switch
# Button .b1   (. means "top window")
#          -text " label "      -command " treat "
#          -fg color of labels -activebackground color when mouse comes
button .b1 -fg red -activebackground red \
      -text "On" -command { set dum [exec sudo ./R-on ]}
button .b2 -fg black -activebackground black \
      -text "Off" -command { set dum [exec sudo ./R-off] }
button .b3 -fg green -activebackground red \
      -text "Exit" -command exit
# Buttons .b1 .b2 .b3 are shown by packing -expand yes (size can be changed)
# -ipadx 10 -ipady 20 margin
# pack .b1 .b2 .b3 -expand yes 
# pack .b1 .b2 .b3 -ipadx 10 -ipady 10 -expand yes 
# pack .b1 .b2 .b3 -side left  -padx 10 -pady 10
pack .b1 .b2 .b3 -side left -padx 10 -pady 10 -ipadx 10 -ipady 10 -expand yes

Front page   Edit Freeze Diff Backup Attach Copy Rename Reload   New List of pages Search Recent changes   Help   RSS of recent changes
Last-modified: 2015-01-13 (Tue) 17:01:34