Thursday, March 3, 2016

Getting Started with Raspberry Pi

This post is for people who just bought a Raspberry Pi.

Requirements

- You need to purchase a Raspberry Pi first.

- You may also need:

PRi case

Power supply with Micro USB connector

Micro SD card

(At least one SD adapter is required to be inserted into a computer.)
(If you want to switch between different operating systems,
you may buy 2 or more microSD cards.)

An HDMI-to-DVI cable
(The monitor needs to have a DVI-D input connector.)

Wi-Fi USB dongle (for Raspberry Pi 2 Model B)
(Raspberry Pi 3 includes built-in Wi-Fi function and hence doesn't need it.)

My Wi-Fi USB dongle is EDUP EP-N8508GS
You may choose any one of compatible USB Wi-Fi adapters.


Put the Raspberry Pi in a case.



If you connect the RPi to a monitor and a power supply now, nothing will happen.
This is because the microSD card is required.

A newly purchased microSD card should have already been formatted.
Go to the official Raspberry Pi website and download the NOOBS installer.
Unzip the file to the SD memory card, which is then insert into the RPi.
Connect RPi with a mouse and a keyboard, then start booting!

If you are using a Mac to copy NOOBS and unable to write to the memory card
because it is 'read-only',
try adjust the switch of the adapter to the middle as this video:
I tried it once. It did work!

Connect RPi to power.
Select the first option Raspbian, which is the official operating system

Installing...




Remember the default username is pi, and the password is raspberry.

If you don't want to change any settings, select Finish.






If the window/graphical interface is not displayed, type the startx command.

Connect the RPi to a network cable, and you should be able to surf the internet with the Epiphany web browser!!

========

Default Login ID and password:
raspberrypi login: pi
Password: raspberry

Basic commands:

Start the graphical user interface (X Window)
startx

Run commands as the superuser:

sudo

Show directories and files at the current path:
ls

Show the current path:
pwd

Show network information such as IP address:
ifconfig
hostname -I

Show the remaining space of the microSD card:
df -h /dev/root

Show the Linux kernel version:
uname -a

Clear the screen:
clear

Shut down the RPi:
sudo halt

Reboot the RPi:
sudo reboot

Create a folder:
mkdir folder_name

Enter a folder:
cd folder_name

Exit a folder:
cd ..

Return to the home directory of user pi:
cd


Commands to update and upgrade RPi:

sudo apt-get update

sudo apt-get upgrade


A good function with the Tab key:

While typing commands, hit the tab key to autocomplete the name of a file/folder.

For example, type cd De. Then hit the tab key, the command line becomes:
cd Desktop/

=====
Go back to Raspberry Pi Setup Procedure.
Getting Started 與樹莓派的初次接觸 (Chinese version of this post.)

No comments:

Post a Comment