Arrange reprint, original link http://www.eeboard.com/bbs/thread-5191-1-1.html
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.
<ignore_js_op>
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
<ignore_js_op>
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
- 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
- Vncserver-geometry 1024x768
Copy Code
The following parameter is the resolution you want to display. After the command executes successfully, SSH will display
<ignore_js_op>
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
<ignore_js_op>
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
<ignore_js_op>
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
- 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
- sudo apt-get install Scim-pinyin
Copy Code
The same installation process, the installation is completed after the input
- 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
- 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
<ignore_js_op>
5. Q: How do I install Google's Open source browser Chromium on Raspberry Pi ?
A: Connect to SSH and enter the following command
- 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
<ignore_js_op>
Another way is to install chrome in the system release version of the software library without chrome.
Open SSH and enter the following command
- wget Http://goo.gl/go5yx-O install.sh
Copy Code
After success, enter:
- chmod a+x install.sh
Copy Code
Then, enter (be sure to add the front "dot ramp"):
- ./install.sh
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 http://www.leiphone.com/raspberry-pi-hands-on.html
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
- 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:
- sudo cp/etc/apt/sources.list/etc/apt/sources.list_bk
Copy Code
Back up the original file
- sudo nano/etc/apt/sources.list
Copy Code
Edit the sources file to replace the contents of the
- Deb Http://mirror.nus.edu.sg/raspbian/raspbian/wheezy main contrib Non-free RPI
- DEB-SRC http://mirror.nus.edu.sg/raspbian/raspbian/wheezy Main contrib non-free RPI
Copy Code
Press Ctrl+o to save, press Ctrl+x to exit, and then enter
- sudo reboot
Copy Code
Reboot the system, SSH connect after completion, enter
- 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 (http://elinux.org/ 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 (http://omer.me/2012/04/setting-up-wireless-networks-under-debian-on-raspberry-pi/), 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
- 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
- [Email protected] ~ $ sudo lsusb
- Bus 001 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub
- Bus 001 Device 002:id 0424:9512 Standard Microsystems Corp.
- Bus 001 Device 003:id 0424:ec00 Standard Microsystems Corp.
- 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
- sudo lsmod
Copy Code
The results returned are as follows
- [Email protected] ~ $ lsmod
- Module Size used by
- snd_bcm2835 12808 0
- SND_PCM 74834 1 snd_bcm2835
- Snd_seq 52536 0
- Snd_timer 19698 2 SND_SEQ,SND_PCM
- Snd_seq_device 6300 1 Snd_seq
- SND 52489 5 snd_seq_device,snd_timer,snd_seq,snd_pcm,snd_bcm2835
- Snd_page_alloc 4951 1 SND_PCM
- ARC4 1187 2
- ATH9K_HTC 54918 0
- mac80211 236178 1 ATH9K_HTC
- Ath9k_common 3181 1 ATH9K_HTC
- ATH9K_HW 376754 2 ATH9K_COMMON,ATH9K_HTC
- Ath 16648 3 ATH9K_HW,ATH9K_COMMON,ATH9K_HTC
- 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
- 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
- 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
- $ sudo nano/etc/wpa.conf
- network={
- Ssid= "You use the SSID of WiFi"
- Proto=rsn
- Key_mgmt=wpa-psk
- PAIRWISE=CCMP TKIP
- GROUP=CCMP TKIP
- psk= "WiFi Password"
- }
Copy Code
Next edit your network configuration file, enter the following command
- $ 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.
- 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
- 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
- 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 http://www.eeboard.com/bbs/thread-5526-1-2.html
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