First, start with raspberry pie 4 essays, burning Raspberry Pi system, no configuration screen to enter and complete the external network access.

Raspberry Pi after seeing 4b released, until the sidelines 3b + I finally found a reason to convince myself to buy down version 4b 4GB on a treasure. Wait a month or so to arrive. And then himself on a business trip more than one month, no time to tinker with him, in the middle can only arrange some bits and pieces of time to use it.

Get the Raspberry Pi, the first thought is the external network access, raspberry pie at home, their own travel anytime, anywhere, can access.

Go to the official website to download the system, I downloaded the second.

After finished using the official recommended win32DiskImager programming system, insert the sd card, you can write.

When done, plug the Raspberry Pi can be used, where I bought the official package, on top of itself with the system and the sd card has been formatted, if there is to buy their own sd card, you can use SD CARD Formatter to format and then burning system.

Here in no hurry to plug the Raspberry Pi using, first create two files in the windows system, a name for the ssh, without any suffix, meaning that no format. One of wpa_supplicant.conf, wherein, ssh which need not to add anything, wpa_supplicant.conf needs wireless network configuration:

ssid for the wireless network name, psk for the password:

country=CN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
	ssid="ChinaNet-xxx"
	psk="12345678"
	key_mgmt=WPA-PSK
	priority=1
}

Upon completion, the sd card is inserted, you can pass xshell software, local area network using a router ip plus access port 22, the default account: pi, the default password: raspberry.

After using pi account login, you can install it manually ssh

sudo apt-get install openssh-server

Check ssh is turned on:

ps -e | grep ssh

Open ssh:

sudo /etc/init.d/ssh start

Add boot from the start, after starting the SSH service in a terminal command line, if the system is rebooted or shut down promoter, the SSH server is off by default, still needs to manually start the sake of convenience may be provided SSH service at startup, opening / etc / rc .local file, before the exit 0 statement added:

 /etc/init.d/ssh start 

After ssh configured, then configure the router, first make sure your router wan ip public network ip, that is, you are consistent with your router wan ip be found on www.ip138.com ip. Light cat set to bridge mode, use the dial-up router. Router I used here is tplink. It can be set directly ddns. Dynamic DNS, is not afraid of no fixed ip. Of course, you can use DDNS peanut shells, but I do not think tplink easy to use. Then in the router settings, set up a virtual server, add, ip address for your Raspberry Pi address, if you do not know the direct terminal run ifconfig, then, external network port settings you want to set up a port, network port 22. To complete the visit.

 

Published 22 original articles · won praise 1 · views 6914

Guess you like

Origin blog.csdn.net/soulman1234/article/details/100673727