Raspberry Pi without display connected to computer

Raspberry Pi without display connected to computer

table of Contents

Connect wifi

After flashing the system into the sd card, connect the sd card with a computer and find that the computer recognizes the boot partition

  • Add wpa_supplicant.conffiles to it
  • Write wpa_supplicant.confthe contents of the file
country=CN   #设置国家
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="WiFiname1"    #WiFi名字
psk="wifi1password"  #WiFi密码
key_mgmt=WPA-PSK  #WiFi加密方式
priority=5      #连接优先级,数字越大优先级越高
}

This allows you to automatically connect to the wifi device when the Raspberry Pi is turned on

back


ssh connection

Create a file on the disk just under boot ssh, so that the ssh connection is opened by default

When connected to a network, use it on a computer

  • Open cmdconsole
  • Inputssh 你的用户名@ip地址
  • Enter your password
  • connection succeeded

If you find that ssh is not possible, maybe you have connected to the ip before, you should be in c:\\用户\\你的用户名, .sshdelete the folder, and then repeat the above steps.

If this is not the reason, please Baidu

back


Default username and password

In the official system of Raspberry Pi, the default of Raspberry Pi

  • username:pi
  • password:raspberry

When making ssh connection again, please confirm your username and password

After entering, it is recommended to change the password

  • Terminal inputsudo passwd pi
  • Enter your password

finished editing

back

Guess you like

Origin www.cnblogs.com/Yunrui-blogs/p/12689918.html