(a) No monitor no keyboard no router, the simplest way to configure the Raspberry Pi

Source: Internet
Author: User
Tags ssh bitvise ssh raspi bitvise ssh client

With a network cable directly connected to the computer, not through the router. The biggest feature of this method is playing Raspberry Pi with the fewest tools.

Ready to work, burn Raspbian system to SD card. Just looked at the website under the new system download, http://www.raspberrypi.org/downloads/, the next 2014-01-07 that 1.3.4 version of the. Then format the SD card in fat format. I use the win7 system, choose the Win32diskimager Burn. If the Linux system, with DD tool, details itself Google.

One, the material: Raspberry Pi, one of the network cable, a laptop computer.
1. Raspberry Pi: SD card with power supply and Raspbian system, power supply phone charging cable with laptop USB
2, network cable: Cross or direct connection;
3, notebook computer: Dual network card, should now be this configuration.

Second, the operation procedure.
1, connect.
The Raspberry Pi is connected to the power supply line;
Connect one end of the cable to the Raspberry Pi and the other end to the notebook.

2, sharing the Internet.
If your notebook is already connected to the Internet via WiFi, you can share your wireless network card's Internet resources with your local connection. Take Win7 system as an example, start--Control panel--Network and internet--network and Sharing Center--View network status and tasks--Change adapter settings, locate wireless network connection right-click "Properties", on the Sharing tab, select "Allow other network users to pass Connect (N) "option over this computer's Internet connection, click OK.

3. Find the IP address of the Raspberry Pi.
Run the DOS window, enter arp-a, the IP address of the dynamic type under interface 192.168.137.1 is the address of the Raspberry Pi

Why is the interface 192.168.137.1? Because the upper share of the Internet when the "local connection" IP address is automatically set to static IP192.168.137.1, of course, this IP address can also be set to their own common static IP address. Because the IP address of the Raspberry Pi is dynamic at this time, it can only be found with this method. You can also set the Raspberry Pi to a static IP address by modifying the Cmdline.txt file in the SD card (which adds the statement ip=***.***.***.***), but only when the computer's "local connection" static The state IP address is set to the same segment as the Raspberry Pi static IP address to successfully connect.

4, using putty software to connect Raspberry Pi.
At this point, enter the dynamic IP address of the lookup above or set the static IP address can be connected to the Raspberry Pi, because it is the initial connection to do some initialization settings and other operations.

Open SSH
In fact, the latest Raspbian 2012-10-28 has enabled SSH support by default, without the need to explicitly open it.
If, for various reasons, the system does not turn on the SSH service (upgrade from the old system, has been deliberately turned off, etc.), you can enable or disable SSH via sudo raspi-config.
Login to SSH
The only recommended tool for logging in to SSH is putty. (Tunnelier (bitvise SSH Client) is also a good tool, but helpless Chinese garbled can not be resolved without suggestions)

Open Putty, enter the IP address of the Raspberry Pi 192.168.137.9 to log in. The following image is from the Internet


The first time you log in will confirm the connection key with you, please press "yes" to confirm. This prompt only appears for the first logon.


You will be prompted to enter your username and password after logging in, and you can login to the Raspberry Pi command line after entering.
(Hint: Raspbian Default user name password is pi/raspberry)


Reasons to recommend Putty Chinese version
Even if you have no pressure to read English, I also recommend using the Chinese version of the putty. Two reasons:
First, the default font is a larger font size, easier to see the 12px (Small four) of the new song body.
Second, different from the original English version, the Chinese edition made a change, the default is to use UTF-8 encoding for communication.
This eliminates the need for any setup, so you can avoid problems with the Linux command line displaying Chinese characters (changing question marks, changing blocks, etc.).
(who doesn't like "no setup"?) )

* If you use the English version of the Putty, you encounter the command line in Chinese garbled, please adjust the connection options:
window, translation,remote character set changed to "UTF-8".

Raspberry Pi Non-monitor operation
Actually want no monitor operation Raspberry Pi, only need SD card to burn the system, card boot, SSH login can.

Also remind: The newly installed system SSH first login, will not appear the first boot raspi-config setup program. Please manually start with the sudo raspi-config command.

The new system has changed, and even config is different.



In addition, in Putty's first screen, you can use the "Save" button to edit the various options of the connection, save into a list box an entry.
Double-click the next time you connect.


4. Configuration

After logging in to SSH, you have to enable the configuration, enter

sudo raspi-config

Select Expand_rootfs and then extend the available space of the entire system to the size of the memory card. Personal feeling in the absence of expand, ssh login is very unstable, if the RP is not good and stuck, pull the power back (´ェ ' ·)

Then enter sudo reboot and reboot to connect again.

General routing automatically assigned IP can be directly connected to the Internet, you can enter the command to check:

Ping www.qq.com

If you need to set up a static IP, you can do this:

A. Enter a command

sudo nano/etc/network/interfaces

B. Then see the following file contents:

C. Replace with (the 192.168.1.134 in the figure is a custom IP address)

D.ctrl+o disk, Ctrl+x exit

5. Install Remote Desktop

After the Internet, you can install a variety of software. The Software Installation command is sudo apt-get install xxx, friends who have played Ubuntu should be familiar. Then we need to install the vncserver.

A. Enter a command

sudo apt-get install Tightvncserver

B. After successful installation, enter a command to set a password. Enter two times and ask if you want to set a view-only password, which is generally not required:

vncpasswd

C. Here, you are ready to start the service of the graphical interface:

Vncserver:1-geometry 800x600

In the command: 1 represents the number 1th desktop, we can also enter: 2 Create a 2nd desktop. Then-geometry 800x600 is, of course, setting the resolution. According to your own needs.

Note: The VNC desktop that is opened as root and the desktop that is turned on as a PI user are different. It is recommended that you use the Pi identity to open, that is, the command line last symbol is $.

D. Open the VNC client on the PC side and download it on the official homepage:

http://www.realvnc.com/download/viewer/

Then enter the IP of the Raspberry Pi and the number of the desktop to enter the password to log in, for example

The effect is as follows

E. You can use the vncserver-kill:1 command to kill number 1th, but this command is generally not used.

Booting up the VNC desktop

You can also allow the 1th desktop to start when the boot, set boot boot, you need to create a file in/etc/init.d/, such as Tightvncserver. The setup steps are as follows:

A. Input

sudo nano/etc/init.d/tightvncserver

B. Write the following, you can first copy, and then putty inside the right mouse button is pasted.

?

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: info-contact@alibabacloud.com 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.