(1) Raspberrypi document
https://www.raspberrypi.org/documentation/
Translation 2016.06.24
----------------------------------------
(2) Preparation before start-up
#启动前的准备
A tutorial on starting your Raspberry Pi.
# #你需要什么?
# # #必须的东西 (normally used)
-SD Card
-We recommend the sdcard of the 8GB Class 4-the perfect pre-assembled NOOBSX system. "Class4 Read Speed 10+MB"
-Display and cable
-Any HDMI or DVI interface with a reality device and a TV can be used as a Raspberry Pi monitor. For the best results, find a support for HDMI input, but other legacy devices are supported as well.
-Keyboard and mouse
-Any standard USB excuse for the keyboard and mouse can work on the Raspberry Pi.
-Wireless Mouse match OK also can.
-keyboard layout configuration See [Raspi-config]
-Power Support
-The Raspberry Pi power supply is powered by the USB micro interface and is the same as most mobile phone chargers.
-You need a better quality power supply, the Raspberry Pi in model 3B needs 5v at least 2 a power supply, before the low power of the old model, to 5v under 700mA power supply.
-The 700mA power supply only supports basic use, which can cause Raspberry Pi to restart if more power is needed.
# #可选的
-Ethernet network cable (Model B or + +)
-An Ethernet network cable allows your pi to connect to a local network or the Internet.
-USB Wireless Card
-You can use a USB wireless card to connect to the wireless network but need to be configured.
-Audio equipment
-Audio can be played through the speaker or headset via the standard 3.5mm interface.
-There is no HDMI cable that can be played through the audio interface.
-If you use an HDMI excuse to connect a monitor with a speaker, the audio will pass through the HDMI directly to the monitor, but you may prefer to play with other speakers, you need to [configure] ()
# #处理问题
When you are ready to start up with some problems, you can search the [forum] for a solution to the problem. If you can't find it, you can post your question and try to provide some details.
----------------------------------------
(3) Installation
#安装
Some simple tutorials to teach you how to install software on your Raspberry Pi.
Beginners can start with noobs and will let the user choose to install the standard release version. For regular users, the release is Raspbian, and other distributions are available, such as Openelec (XBMC Media Center) or arch Linux.
# # Directory
-[NOOBS] ()
-[Install image] ()
-[SD card (nyf://entry?itemid=1)] ()
----------------------------------------
(4) Install the operating system image
#安装操作系统镜像
This article explains how to install a tree-skinned system image onto an SD card. An additional computer and an SD card reader are required to install the image.
We recommend that most users download noobs designed for easier installation. However, most advanced users install a special image that should be used in this tutorial.
# # Download Image
The official recommended operating system image can be downloaded from this [page] ().
Third parties also offer a number of alternative releases.
After downloading the zip file, unzip the IMG image file and write to your SD card.
# # Write the image to the SD card
Depending on your choice to download the appropriate release, you need to use the image write tool to install it on your SD card.
Review the tutorials according to your operating system:
-Linux
-Mac OS
-[Windows] ()
----------------------------------------
(5) SD card
#SD卡
Raspberry Pi is compatible with any SD card, but be aware of some of the following:
-The capacity size of the SD card. Install the noobs at least 8GB of capacity. For image installation, we recommend a minimum of 4GB, and some distributions can be run on smaller ones. Especially Openelec and Arch.
-The level of the SD card. The card level determines the persistent read and write, a class 4 card write Speed 4mb/s, class 10 can reach 10mb/s. However, it is important to note that this does not mean that class 10 cards perform better in daily use than Class 4, because the frequent write speed exceeds the read speed and increases the number of searches.
-The size of the SD card. The initial A and B models require a full-size SD card. But the new A + and B + and 2b,zero and 3b require a micro SD card.
We recommend buying the Raspberry Pi SD card here, which some other retailers can buy. This is a 8GB size SD card, CLASS6, has a large size SD card cover, better than most other SD card performance, is a good choice.
If you are having problems with your SD card, determine whether to follow some of the following steps:
1. Make sure you are using a genuine SD card. There are some cheap cards that are smaller than the advertised capacity and can not be used for long.
2. Ensure the use of the quality of the good power. You can measure your voltage between TP1 and TP2, and if you fall to 4.75v, just do some heavy lifting and it will become very unstable.
3. Make sure you use a good USB power cord to connect the power supply. If you use the power cord is good quality power, TP1 to TP2 voltage difference or under 4.75v, mostly because of line consumption, in order to save the cost of the USB cable will try to reduce the copper, on such a long wire wear 1v (or 1w) of the voltage.
4. Turn off the Raspberry Pi before switching off the power supply, enter sudo halt, wait for the Raspberry Pi signal to blink to indicate that the display is off.
5. Finally, overclocking using PI can also cause anomalies, which have been fixed before, but may still occur. Please let me know if there is a problem in checking the steps mentioned above.
----------------------------------------
(6) Use
# #使用
Some basic examples of use can help to start using some of the Raspbian software.
Directory:
-Scratch
-Scratch is a visual tool that lets users do some animations and games by dragging and placing the interface.
-Python
-Python is a widely used language that is easy to get started and very powerful.
-Sonic Pi
-Use sonic Pi to write code to make music.
-Terminal
----------------------------------------
(7) Remote access
#远程访问
Sometimes you want to remotely access a Raspberry Pi that is not connected to a monitor: for example, if the Raspberry Pi is embedded in a device such as a robot, if you want to see some information on it somewhere else, or if you just don't have the extra display.
# #目录
-IP Address
How to find the IP address of your Raspberry Pi, in order to connect it to the need.
-Via internet connection
The Raspberry Pi is connected via the Internet.
-VNC (Nyf://entry?itemid=0)
Remote access to the Raspberry Pi's graphical interface is accessed from a window on another computer.
-SSH
Access the Raspberry Pi command line on the other computer.
-SFTP
Transfer files with security ftp before your Raspberry Pi and another computer
-SCP
Transfer files with Securiy copy before your Raspberry Pi and another computer
-SSHFS
Transfer files with security ftp before your Raspberry Pi and another computer
-Rsync
Sync files on the Raspberry Pi and other computers, rsync via SSH.
-FTP
Transfer files with FTP before your Raspberry Pi and another computer
-Web Server
You can make a website presentation that shows some information that other computers can access via a browser, via the Internet, or the Internet.
----------------------------------------
(8) VNC
VNC Virtual network computer
Sometimes when it's inconvenient to work directly on the Raspberry Pi, you may want to control it remotely from another computer.
VNC is a graphical desktop sharing system that allows you to remotely control the other one on one computer. It transmits mouse and keyboard events through the controller, and then accepts updates on the remote computer screen.
You'll see the Raspberry Pi Desktop in a window on your computer, you can control it, just like working on a Raspberry Pi.
-Install the TIGHTVNC installation package on your Raspberry Pi, using a monitor or remote connection via SSH
sudo apt-get install Tightvncserver
-Then, run the TightVNC server, you will be prompted to enter the password, and then you will be prompted to enter only the viewed password (optional).
Tightvncserver
-Run a VNC server under the terminal. This example opens a Full HD resolution VNC display (: 1)
Note that because the default X session starts with display zero, you may get an error message if you use: 0.
-Since there are now two X sessions running and may be more resource-intensive, it is recommended to turn off the display manager by default in: 0. Use the following command:
Service LIGHTDM Stop
-Now, on your PC, install and run the VNC client:,
-Xtightvncviewer can be installed under Linux
Sudoinstall Xtightvncviewer
-TightVNC on other platforms can be downloaded from tightvnc.com
"Stop VNC, Vncserver-kill:1."
# # Automation then run when powered on
You can create a simple file with commands to run the VNC server on the Raspberry Pi, to save have to remember it:
-Create a file that contains the following shell script:
#!/bin/sh
Vncserver:1-geometry 1920x1080-depth 24-dpi 96
-Save As Vnc.sh
-Make the file executable:
chmod +x vnc.sh
-then you can run it at any time:
./vnc.sh
-If you want the mouse on the VNC client to be displayed as an arrow instead of the default "X", add an option to Xsetroot in/home/pi/.vnc/xstartup:
-cursor_name left_ptr
Turn on Start:
-On the command line root login:
sudo su
-Switch to/etc/init.d/directory
cd/etc/init.d/
-Create a file containing the following script
#! /bin/sh
#/etc/init.d/vncboot
# # # BEGIN INIT INFO
# Provides:vncboot
# Required-start: $remote _fs $syslog
# required-stop: $remote _fs $syslog
# Default-start:2 3 4 5
# default-stop:0 1 6
# Short-description:start VNC Server at boot time
# Description:start VNC Server at boot time.
# # # END INIT INFO
User=pi
Home=/home/pi
Export USER HOME
Case "$" in
Start
echo "Starting VNC Server"
#Insert your favoured settings for a VNC session
su-$USER-C "/usr/bin/vncserver:1-geometry 1280x800-depth 16-pixelformat rgb565"
;;
Stop
echo "Stopping VNC Server"
/usr/bin/vncserver-kill:1
;;
*)
echo "Usage:/etc/init.d/vncboot {start|stop}"
Exit 1
;;
Esac
Exit 0
-Save As Vncboot (just for example)
-then make the file executable
chmod 755 Vncboot
-Turn on dependency-base boot sequence
Update-rc.d-f LIGHTDM Remove
UPDATE-RC.D vncboot Defaults
-If the Dependency-base boot order is enabled, you can see this:
Update-rc.d:using Dependency based boot sequencing
-Restart your Raspberry Pi, and you can see that the VNC server is already running.
You can use the VNC client program to connect to the server remotely on your computer or laptop, and then control the Raspberry Pi. Follow the instructions below according to your computer's operating system:
-Linux
-Mac OS
-Windows
Raspberry Pi Document Translation