When you receive the Raspberry Pi (Raspberry Piva) that is not easy to ship, you will find that only one board and a simple manual are included in the package. There is no accessory, you want to make DIY you must configure a variety of attachments. This article is a simple and quick tutorial that makes you ready to make Raspberry Pi run in advance.
First look at what attachments except Raspberry Pi:
USB interface keyboard and mouse: where USB keyboard is essential.
SD Memory Card: The system of Raspberry Pi is placed on the SD card. You can choose a standard size SD card or a Micro SD card. If it is also a Adapter, the slot on the board is SD / MMC, and of course you have to prepare a card reader. The SD card is at least 4GB capacity or more, and most of the Raspberry Pi is more than 2GB.
Micro USB cable: Do a power cord.
USB port adapter: Raspberry Pi requires 5V @ 700mA current, so it cannot be powered by the computer USB port.
Video line: It can be a HDMI line or a composite video line for a TV. If the monitor does not with an HDMI interface, you also need to configure the cable of HDMI to DVI or HDMI to VGA.
Ethernet line: Negative network cable is not required but it is very important.
USB hub: This is not necessary, Raspberry Pi only 2 USB ports, if a USB hub with power is configured, reducing the load of the Raspberry Pi and can extend more USB devices.
The Raspberry Pi Wiki lists a very supportive hardware peripherals and peripherals that may have problems. The above figure is some of our peripherals we prepared, and there is no deliberate model:
Raspberry PI B
Ordinary USB keyboard mouse
Kingston 4GB Micro SD (Class4) and Micro SD Adapter
Usb power adapter of an old phone (5V @ 1a)
HDMI-DVI cable
A DVI interface liquid crystal display
A network cable
install the system
The Raspberry Pi system is run on the SD card, and the system must first be installed on the SD card. There are currently a lot of Linux that currently supports Raspberry Pi. At the beginning, we still chose an official tailored Raspian "Wheezy", which is an optimized version based on Debian, which can be downloaded on the official website.
If you use a Windows system, the official recommends using Wi32Diskimager to copy the image file to the SD card (if it is a Linux system to use tool DD). Here is the commonly used Windows system, download the latest raspian wheezy (currently 2012-8-16) to decompress the ZIP file.
The decompressed IMG file has about 1.8g, insert the card reader, open the downloaded Win32Diskimager software, write the IMG to the SD card.
Power-on start
The problem that Raspberry Pi is most likely to meet is that the supply voltage is insufficient or the USB adapter cannot provide sufficient current. The Raspberry Pi has a power supply voltage of 4.75V to 5.25V, and two test points TP1, TP2 (power, and ground) are left on the board to detect the supply voltage. The power supply voltage can be measured by the multimeter as shown below.
Connect all peripherals, plug in the SD card.
The Raspian system will take more time to start, and the procedure will first enter the system settings screen after startup.
Raspian system settings:
Info: Information for System Setup Tools
Expand-rootfs: Expand the size of the Linux system root partition
Overscan: Enable Overscan
Configure_keyboard: Select the keyboard layout (Raspberry PI keyboard layout default English, here can be adjusted)
Change_pass: Modify user password (Raspbian default user name is Pi, password raspberry)
Change_local: Modify the input method (can be modified into Chinese input, but you should install the font, temporarily do not modify)
Change_timezone: Modify System Time Zone (Raspberry Pi does not have real-time clock, by network synchronization time)
Memory_SPLIT: Modify memory division (a total of 256MB memory, modify the allocation of the ARM processor and graphics accelerator)
SSH: Enable SSH Server (recommended to open, so you can access Raspberry Pi by SSH)
Boot_behaviour: Setting the system Startup Enter the command line interface or graphical interface (enter StartX in the command line mode can enter the graphical interface)
Update: You can upgrade online
After the setting is complete, select FINISH to exit the setting interface, restart the system, RASPBERRY PI entered the command line mode for the first time.
Set network
The network settings file of the Raspian system includes DNS settings / Etc/resolv.conf and DHCP settings / etc / network / interface, the author's network uses a fixed IP, so you need to modify the file to set static IP, if the network encounters problems can be view this Two files.
enter
Sudo vi /etc/resolv.conf
show
Domain router
Search Router
Nameserver 192.168.0.111
Where Nameserver refers to the DNS server IP, the above IP is incorrect, modify the Nameserver IP address.
enter
Sudo VI / ETC / Network / Interfaces
show
Auto Lo
iface lo inet loopback
iface eth0 inet dhcp
Where IFACE ETH0 INET DHCP represents the network port is currently an automatic DHCP allocation IP, modified:
Atuo Eth0
iface eth0 inet static
Address 192.168.0.160
NetWork 192.168.0.0
Netmask 255.255.255.0
Broadcast 192.168.0.255
Gateway 192.168.0.1
The static IP of the Raspberry Pi is set to 192.168.0.160, which can modify the settings according to your own network.
Save exit Restart the network, enter:
Sudo /etc/init.d/networking restart
After the network is restarted, you can see if the network is not connected.
Chinese settings
After the network is connected, the initial setting of the Raspberry Pi has been completed, and the software environment can be used. For us to talk about Chinese, the Raspian system is to support Chinese display, so let's take a look at how to set Chinese.
Still in command line mode, because the network has been connected, advanced online upgrade, enter:
Sudo Apt-Get Update
Install Chinese font:
Sudo Apt-Get Install TTF-WQY-Microhei
Set Chinese after the installation is complete:
Sudo DPKG-RECONFIGURE LOCALES
Select all the EN_CN prefix, then select ZH_CN.UTF-8, which sets the system default environment language to Chinese.
Of course we can also enter
Sudo Raspi-Config
Enter the initial setting interface of the system settings Chinese (Change_Locale).
Next, install Chinese input method. enter:
Sudo Apt-Get Install Scim
Sudo Apt-Get Install Scim-Pinyin
The restart system enters the graphical interface mode and you can see a Chinese Linux system.
The MIDORI browser comes with raspian can surf the Internet!
summary
This paper introduces how the Raspberry PI Type B development board quickly applies, the basic peripherals and network configurations. The Raspian system and the Chinese environment are set up, and a Chinese Linux system is fast.
Reference link
Raspberry Pi Development Board
Raspberry Pi Official Website
Raspberry Pi Wiki
Original declaration: This article is originally created by the panel network, declined!
Our other product: