Reprint: Raspberry Pi Raspberry Pi Introduction

Source: Internet
Author: User
Tags windows remote desktop tightvnc

Arrange reprint, original link

This post I intend to use q&a way to write, so it is easier for everyone to see clearly the content of the entire post, hierarchical, clear conditioning, the following are my personal to the Raspberry Pi after the actual use of problems and solutions.

1. Q: How does the Raspberry Pi start?

A: Use Win32diskimager to write the system mirror img file to the SD card, then plug it into the Raspberry Pi card slot and power up to start the system. It should be noted that I initially use the TF small card sleeve on the SD card to achieve the start, the beginning of the use of normal, and later in the use of the process found that the system can not start, once thought that the RPI is bad, send back to love the network let the birds to help me detect, concluded that the problem of SD card sleeve. It is normal for the card to read and write on the computer, but the Raspberry Pi is unable to read the system. Therefore, it is recommended that you try to use the SD card directly, or the U-large tf to SD card, than the Market 2 dollars SD Card sleeve quality is much better.

2. Q: No screen, no keyboard, how to play Raspberry Pi?

A: There is no screen and keyboard, as long as you have a maximum load of at least 750ma 5V power adapter and a network cable, you can use the computer via SSH to connect the Raspberry Pi. Here, I want to explain that the Raspberry Pi official system Raspbian since the 2012-9-18 version, all set up the SSH service with the system automatically start, I am using the latest 2012-10-28 version. Plug in the SD card, plug in the network cable, power on, Raspberry Pi started about 30 seconds later, should be started to complete. We only need an SSH client to connect the Raspberry Pi to it. It is recommended putty.exe This small SSH client software, the entire program is an EXE file, very concise.


IP address fill in the IP of the raspberry, other settings do not change, click Open. At this point will be prompted to enter the account and password, Raspberry Pi default account is pi, the default password is raspberry, pay attention to password input when there is no * number to tell you lost a few. After SSH connection is successful


3. Q: How do I get your computer to connect to the Raspberry Pi desktop remotely?
A: The Raspberry Pi official system Raspbian comes with X window, so it is possible to use its class win-style GUI interface. But SSH doesn't support GUI graphical interface, so we're going to use VNC this time. First follow the operation of problem 2, connect the Raspberry Pi. Then enter the following command

    1. sudo apt-get install Tightvncserver
Copy Code

Then the Raspberry Pi will automatically download the VNC server from the Internet, the installation will prompt whether to install, press the lowercase y after the carriage return, continue to install. After the installation will let you set a VNC login password, enter the password will also ask you to enter a password can only watch can not operate, the general choice of N, that is, not set. After the entire installation is complete, enter

    1. Vncserver-geometry 1024x768
Copy Code

The following parameter is the resolution you want to display. After the command executes successfully, SSH will display


The point here is that each time the above command is executed, a VNC port is opened. VNC default port is 5901, that is, the above command after the completion of the number indicates that you can currently connect the port number. Now that the VNC server has been installed, you need a client to connect to the server. Here you can use TightVNC view or RealVNC, both of which can be searched by Google itself. Start VNC view, here's an example of TightVNC


IP is your Raspberry Pi IP, the port number is the above SSH in the new ' X ' Desktop is raspberrypi:1 plus 5900, so you can now connect the port number is 5901. Of course you can perform vncserver-geometry 1024x768 again, then the New ' X ' Desktop is raspberrypi:2, the port number you can connect to is 5901 and 5902, and so on. Click the Connect button, you need to enter the previously set VNC login password, the effect of successful landing


Here are a few questions I need to explain. Sometimes VNC connect up, do not come out of the desktop, but the gray panel, the whole time sliding a few mouse wheel, may solve the problem, this is inadvertently found, does not guarantee that it will be effective. Another situation is, I use TightVNC view and RealVNC view connected up, click the right mouse button out of the menu is not the same, until now do not know what the reason, and two view can not use the interface button input Ctrl+alt+del to bring up the task manager.

<ignore_js_op> <ignore_js_op>

4. Q: How do I make Raspberry Pi display Chinese?
A: The Raspberry Pi default is the English font, and the system is not pre-installed Chinese font, so even if you change the locale to Chinese, will not display Chinese, will only show a bunch of squares. So we need to install Chinese fonts manually. Fortunately, there is a Chinese font for free open source use. Enter the following command in SSH

    1. sudo apt-get install Ttf-wqy-zenhei
Copy Code

If encountered during installation (y/n), select Y
Chinese font After the installation is complete, a Chinese input method is also required. Enter the following command

    1. sudo apt-get install Scim-pinyin
Copy Code

The same installation process, the installation is completed after the input

    1. sudo raspi-config
Copy Code

Then select Change_locale, and select ZH_CN in the default locale for the system environment:. UTF-8, after the configuration is complete, enter the command

    1. sudo reboot
Copy Code

Restart complete can be connected to the VNC after the use of Chinese display and Chinese input method, switch Chinese input method is the same ctrl+space


5. Q: How do I install Google's Open source browser Chromium on Raspberry Pi ?
A: Connect to SSH and enter the following command

    1. sudo apt-get install Chromium-browser chromium-l10n
Copy Code

Prompt for installation, enter Y, wait for installation to complete
When you're done, go to the Desktop selection menu-〉 Internet-〉chromium Web browser to open a familiar Chrome browser


Another way is to install chrome in the system release version of the software library without chrome.
Open SSH and enter the following command

    1. wget Http://
Copy Code

After success, enter:

    1. chmod a+x
Copy Code

Then, enter (be sure to add the front "dot ramp"):

    1. ./
Copy Code

Start downloading and installing some of the necessary packages, as well as downloading the entire chrome and installing it, the process is fast.
This method refers to the tutorial in this link
However, this type of installation in the menu will not have the option to let you point, VNC connection, in the middle end of the input

    1. Chrome-disable-ipv6 &
Copy Code

We can start the browser.

6. Q: Official Raspbian Default Automatic Update source connection speed is too slow, update often failed, how to solve?
A: Here you need to modify the source file sources.list. Enter the following command:

    1. sudo cp/etc/apt/sources.list/etc/apt/sources.list_bk
Copy Code

Back up the original file

    1. sudo nano/etc/apt/sources.list
Copy Code

Edit the sources file to replace the contents of the

    1. Deb Http:// main contrib Non-free RPI
    2. DEB-SRC Main contrib non-free RPI
Copy Code

Press Ctrl+o to save, press Ctrl+x to exit, and then enter

    1. sudo reboot
Copy Code

Reboot the system, SSH connect after completion, enter

    1. sudo apt-get update
Copy Code

This speed is definitely much faster than before, and there is no need to find a lot of sources of the situation

7. Q: How to use the wireless card, let the Raspberry Pi get rid of network cable bondage?
A: First of all, you have to make sure that your wireless card driver is included in the Raspbian driver library, you can check the address of your wireless card is in the Support list ( RASPBERRYPIBOARDVERIFIEDPERIPHERALS#USB WiFi adapters). If your wireless network card can support, then go to the point, configure wireless Internet access. First send me a link to the reference configuration (, written by a foreigner, English bad friends can see me below the explanation
1, first plug in your USB wireless card, plug the SD card, power up the system, through the external screen and keyboard or SSH connection into the command line. Note that there is a problem with the USB power supply of the Raspberry Pi, if the USB device is plugged in after booting the system, the way to avoid this problem is to use the external active USB HUD. Go to the command line interface and enter the following command

    1. sudo lsusb
Copy Code

You can see that when the command is finished, all attached USB devices are displayed, and the last line is usually your wireless network card, and the result of my own test shows that

    1. [Email protected] ~ $ sudo lsusb
    2. Bus 001 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub
    3. Bus 001 Device 002:id 0424:9512 Standard Microsystems Corp.
    4. Bus 001 Device 003:id 0424:ec00 Standard Microsystems Corp.
    5. Bus 001 Device 004:id 0cf3:1006 Atheros Communications, Inc. tp-link tl-wn322g v3/tl-wn422g v2 802.11g [Atheros AR9271]
Copy Code

The last line is my wireless card device number, obviously my wireless card has been recognized by the system. If you are not sure, enter the following command

    1. sudo lsmod
Copy Code

The results returned are as follows

  1. [Email protected] ~ $ lsmod
  2. Module Size used by
  3. snd_bcm2835 12808 0
  4. SND_PCM 74834 1 snd_bcm2835
  5. Snd_seq 52536 0
  6. Snd_timer 19698 2 SND_SEQ,SND_PCM
  7. Snd_seq_device 6300 1 Snd_seq
  8. SND 52489 5 snd_seq_device,snd_timer,snd_seq,snd_pcm,snd_bcm2835
  9. Snd_page_alloc 4951 1 SND_PCM
  10. ARC4 1187 2
  11. ATH9K_HTC 54918 0
  12. mac80211 236178 1 ATH9K_HTC
  13. Ath9k_common 3181 1 ATH9K_HTC
  14. ATH9K_HW 376754 2 ATH9K_COMMON,ATH9K_HTC
  15. Ath 16648 3 ATH9K_HW,ATH9K_COMMON,ATH9K_HTC
  16. cfg80211 171957 3 ATH,MAC80211,ATH9K_HTC
Copy Code

You can see that there are mac80211 and that the wireless card is correctly identified.

2, you can now test the wireless network around you. Enter the following command

    1. sudo iwlist wlan0 scan
Copy Code

If you search for a wireless network, it returns information about your wireless network's MAC address, SSID, and so on.

3. Configure the Wireless network
Enter the following command

    1. sudo apt-get install wpasupplicant
Copy Code

Install Wpasupplicant, familiar with the Android friends estimate look familiar, Android want to let Android connect AP hotspot, you have to crack this file
After the installation is complete, create a configuration file and enter the following command

    1. $ sudo nano/etc/wpa.conf
    2. network={
    3. Ssid= "You use the SSID of WiFi"
    4. Proto=rsn
    5. Key_mgmt=wpa-psk
    8. psk= "WiFi Password"
    9. }
Copy Code

Next edit your network configuration file, enter the following command

    1. $ sudo nano/etc/network/interfaces
Copy Code

The above will add the configuration of the wireless card to the network configuration, so that when you start the wireless network card will be in accordance with the SSID and password you previously configured to connect to the wireless network. When you need to change the wireless network, you only need to change the SSID and password in wpa.conf.

4. Restart your Raspberry Pi.

    1. sudo reboot
Copy Code

Remember to unplug the network cable and connect the computer to the wireless Internet so that the raspberry can be wirelessly connected.

Now you can use the command to see the status of the wireless card, enter the following command

    1. Ifconfig
Copy Code

will return the MAC address and IP address status of the wired network and the wireless network

8.Q: I do not want to use VNC, want to use Windows Remote Desktop Connection Raspberry Pi, how to implement?
A: The method already has, need to install a service XDRP below Raspbian, enter the following command

    1. sudo apt-get install XRDP
Copy Code

Then you can use win Remote Desktop Connection, your computer and Raspberry Pi in a LAN when there is no problem, if you want to network access, with the need to do a map of port 3389, specifically see my other post

Connect first

Enter the user password for the PI, which is the username and password that SSH connects to.

So it's going to go up, just like the VNC effect.

Reprint: Raspberry Pi Raspberry Pi Introduction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.