当前位置:网站首页>Raspberry pie environment settings

Raspberry pie environment settings

2022-06-22 20:27:00 Love Mai forever

One . Linux System raspberry pie environment configuration

1. download

Raspberry pie mirror image

Raspbian Stretch with desktop and recommended software: With graphical desktop and recommended software
Raspbian Stretch with desktop: Desktop with graphics
Raspbian Stretch Lite: The minimalist version

image-20220619214435976

Formatting tool SDCardFormatterv5

Burning tools Raspberry Pi

VNC Viewer

image-202206192147411202.SD Card format

3. Burn image raspberry pi choice CHOOSE OS

4. configure network

Plug in the cable
I will explain this method , There are many related articles on the Internet , You can check it yourself .
Use mobile hotspot
① On the computer , Open the burning image just now SD card
② stay boot Under the table of contents , Build a ssh Empty file
③ stay boot Under the table of contents , Create a text file first
④ open the text file , Copy the following into the text
country=CN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid=“ Your wireless network name ”
psk=“ Your wireless password ”
key_mgmt=WPA-PSK
priority=1
}
among , take ssid Change the content of to the name of the mobile hotspot ,psk Change the content of to the password of the mobile phone hotspot .
⑤ Save the text just now , And change the name to wpa_supplicant.conf
⑥ Take out SD card , take SD Insert the card into the raspberry pie , Turn on the phone hotspot and connect the raspberry pie at the same time
⑦ You can check the raspberry pie on your mobile phone ip Address

Ubuntu The network configuration

① take Ubuntu The network connection mode is changed to bridge mode

② open Ubuntu Terminal , Use ifconfig

sudo apt install net-tools
ifconfig

③ see Ubuntu Network card name of , It's usually ens33
④ modify Ubuntu Network profile
sudo nano /etc/network/interfaces Add the following information

auto lo
iface lo inet loopback
auto ens33
iface ens33 inet static
address 192.168.43.109
// The first three and windows Under the system IP The first three digits of the address are consistent , The latter one sets it by himself
netmask 255.255.255.0
// And windows The subnet masks under the system are consistent
gateway 192.168.43.1
// And windows The gateways under the system are consistent

sudo nano /etc/resolv.conf Add the following information

nameserver 192.168.43.1
⑤ Restart the client

Create new users

sudo useradd -m user name -s /bin/bash
sudo passwd user name
sudo adduser user name sudo
sudo nano /etc/sudoers

Add a user name ALL=(ALL:ALL) ALL( Realize that newly added users can use sudo)

install ssh

sudo apt install ssh
ps -e | grep ssh

Remote login ( Use another host under the same subnet )
① open Putty

② Enter url

image-20220619220641268

③ Enter your username and password

Two .PC Platform preparation Linux System

Use VMware install ubuntu System

image-20220619215802535

link

Ubuntu And various remote logins for raspberry pie ——putty,VNC viewer

Raspberry pie doesn't need a display VNC Viewer Remote connection by

原网站

版权声明
本文为[Love Mai forever]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206221849126998.html