- History
- View the source.
- Raspberry Pi 2015 (Open) has been deleted.
[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†
Required†
1. SD Card
- An 8GB class 4 SD card is recommended. NOOBS (a package manager for Raspberry Pi) can be downloaded from the Raspberry Pi's website.
2. Display and connectivity cables
- Any HDMI/DVI monitor or TV should work as a display for the Pi . For best results, use one with HDMI input, but other connections are available for older devices. Use a standard Ethernet cable for internet access.
3. Keyboard and mouse
- Any standard USB keyboard and mouse will work with the Raspberry Pi.
4. Power supply
- Use a 5V micro USB power supply to power the Raspberry Pi. Be careful that whatever power supply we use outputs at least 5V; insufficient power will cause Raspberry Pi to behave in strange ways.
Not essential but helpful to have†
1. Internet connection
- To update or download software, it is recommended that we connect the Raspberry Pi to the internet either via and ethernet cable or a wifi adapter.
2. Headphones
- Headphones or earphones with a 3.5mm jack will work with Raspberry Pi.
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:
- Begin by slotting our SD card into the SD card slot on the Raspberry Pi, which will only fit one way.
- Next, plug in the USB keyboard and Mouse into the USB slots on the Raspberry Pi.
- Make sure that our monitor or TV is turned on, and that we have selected the right input (e.g. HDMI 1, DVI, etc)
- Then connect the HDMI cable from the Raspberry Pi to the monitor or TV.
- If we intend to connect the Raspberry Pi to the internet, plug in an ethernet cable into the ethernet port next to the USB ports, otherwise skip this step.
- When we are happy that we have plugged in all the cables and SD card required, finally plug in the micro usb power supply. This action will turn on and boot the Raspberry Pi.
- If this is the first time the Raspberry Pi and NOOBS SD card have been used, then we will have to select an operating system and configure it.
- Follow the NOOBS guide below to do this.
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.
- Using a computer with an SD card reader, visit the Downloads page on the Raspberry Pi's website.
- Click on the Download ZIP button under "NOOBS (offline and network install)", and select a folder to save it to.
- Extract the files from the zip.
Format the SD card†
It is best to format the SD card before copying the NOOBS files onto it. To do this:
- Visit the SD Association's website (https://www.sdcard.org/home/) and download SD Formatter 4.0 for either Windows or Mac.
- Follow the instructions to install the software.
- Insert the SD card into the computer or laptop's SD card reader and make a note of the drive letter allocated to it, e.g. G:/
- In SD Formatter, select the drive letter for the SD card and format it.
Drag and drop NOOBS files†
- Once the SD card has been formatted, drag all the files in the extracted NOOBS folder and drop them onto the SD card drive.
- The necessary files will then be transferred to the SD card.
- When this process has finished, safely remove the SD card and insert it into the Raspberry Pi.
First boot†
- Plug in the keyboard, mouse and monitor cables.
- Now plug in the USB power cable to the Raspberry Pi.
- The Raspberry Pi will boot, and a window will appear with a list of different operating systems that we can install. We recommend to use Raspbian ? tick the box next to Raspbian and click on Install.
- Raspbian will then run through its installation process. Note this can take a while.
- When the install process has completed, the Raspberry Pi configuration menu (raspi-config) will load. Here we are able to set the time and date for our region and enable a Raspberry Pi camera board, or even create users. We can exit this menu by using Tab on the keyboard to move to Finish.
Logging into the Raspberry Pi†
- Once the Raspberry Pi has completed the boot process, a login prompt will appear.
- The default login for Raspbian is username
pi
with the password
raspberry
Note we will not see any writing appear when you type the password. This is a security feature in Linux.
- After we have successfully logged in, we will see the command line prompt
pi@raspberrypi~$
- To load the graphical user interface, type
startx
and press Enter on our keyboard.
Set a new user and sudoer†
pi@raspberrypi ~ $ sudo adduser rsaito
pi@raspberrypi ~ $ sudo visudo
rsaito ALL etc (Copy the data for pi)
VcXsrv (XMing) setting up†
http://www.nazo-fjt.com/elehobby/kousaku/raspberrypi/xming.htm
VNC server and PC VNC clients†
- To operate Raspberry Pi on Desktop PC, VNC server and clients are useful.
pi@raspberrypi ~ $ sudo apt-get install tightvncserver
- start VNC server (Password is required to set. You need to remember.)
pi@raspberrypi ~ $ tightvncserver
- install VNC viewer for your Desktop PC
http://www.realvnc.com/download/viewer/
- start VNC viewer by 172.17.7.154:5901 (IP address is changed to yours.)