当前位置:网站首页>Raspberry pie network remote access
Raspberry pie network remote access
2022-06-23 05:12:00 【A thousand snows at dusk】
One 、 Software preparation
1. Raspberry pie mirror image
Official website :Raspberry Pi OS – Raspberry Pi
2.SDCardFormatterv5
SD Memory Card Formatter | SD Association
3. Burning tools Raspberry Pi
4.putty
Download PuTTY: latest release (0.77)
Two 、 preparation
1.SD Card format
Open it up and download okay SDCardFormatter Take us SD Format the card

Format successful


burn
Open our burning tool , Select the image we want to burn and the SD Click burn on the card

After a while, the recording was successful
The network configuration
open SD card , stay boot Create a directory SSH file
Create an empty text file wpa_supplicant.conf
Enter... In 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
} 
take SD Unplug the card, insert the raspberry pie and connect the power to the raspberry pie , You can see on your phone that raspberry pie has been connected , Check out the raspberry pie ip Address , You can download one Advanced IP Scanner, Open terminal input ipconfig, View the wireless hotspot IP Address , And then in IP Scanner Mid search

Make sure that our computers are also connected to mobile phone hotspots , notice ip The address is 192.168.79.57, Search while searching 192.168.79.1-255
That's how we found our raspberry pie IP Address

putty Remote connection
open putty, stay putty Enter the just ip, Then establish a connection , Enter the default user password
Default user :pi
The default password :raspberry
If the default account password is incorrect , Can be in boot Create a userconf.txt file , This file is a single line of text , from username: User name content -password: password form —— That is, the desired user name , Follow a colon , Followed by an encrypted representation of the password to be used .
Or configure the account and password when writing the image

Then enter our account and password again to enter the system
Configure raspberry pie sudo raspi-config

And then choose interface options

open VNC service
Then open the VNC Viewer
Type in the raspberry pie ip, Then enter the account and password

3、 ... and 、 Create an account and create... In your personal folder assert Assertion c Program
Create user
Open the terminal and input the command
su -
useradd -m -s /bin/bash user name
// password
passwd user name 
When the permission is not enough, you can su prefix sudo that will do
Then go to the created folder /home/ user name / in
create a file assert.c, Enter in file
#include <assert.h>
#include <stdio.h>
int main()
{
int a;
char str[50];
printf(" Please enter an integer value : ");
scanf("%d", &a);
assert(a >= 10);
printf(" The integer entered is : %d\n", a);
printf(" Please enter the string : ");
scanf("%s", str);
assert(str != NULL);
printf(" The input string is : %s\n", str);
return(0);
}If you cannot create a file, you can use the command
sudo chmod -R 777 / working directory
touch assert.c
vim asssert.cAnd then you can edit

And then use gcc Compile the
Four 、 Use scp The command is on two Linux Data transmission between systems
scp
scp yes secure copy Abbreviation , yes linux Based on ssh Log in for secure remote file copy command .scp It's encrypted. ,rcp It's not encrypted ,scp yes rcp The enhanced .
because scp The transmission is encrypted , It may affect the speed a little . in addition ,scp It doesn't take up resources , It will not increase the system load much , At this point ,rsync It's far less than that . although rsync Than scp It will be faster , But when there are lots of small files ,rsync It will cause the hard disk I/O Very high , and scp Basically does not affect the normal use of the system .
Download on virtual machine and raspberry pie respectively ssh


Put the raspberries in the pie you practiced before assert.c Upload the file to the virtual machine
scp -r [email protected]:/home/lm/assert.c ./
complete
5、 ... and 、 Reference resources
边栏推荐
- How to use data to tell a wonderful story?
- 超越芯片和AI,硬科技资本为什么越来越“硬核”?
- [MAC] there is no source option in security and privacy
- ZK has a node reporting it is possible not running and the log has no obvious error
- Emergency response HW review
- SwiftUI 2.0 课程笔记 Chapter 5
- 使用PX4的ECL进行多传感器数据融合的后处理
- Automatically add watermark to screenshot
- UI自动化定位利器-xpath实战
- [OFDM communication] simulation of OFDM multi-user resource allocation based on MATLAB [including Matlab source code 1902]
猜你喜欢

Talk about the composite pattern in C #

ICER skills 03design compile

微信小程序:拼图工具箱

工作5-8年的外包测试员,平均年薪有多少?

teqc进行GNSS数据质量分析时生成的s文件介绍

centos7安装postgresql8.2.15及存储过程创建

微信小程序:土味情话恋爱话术

Learn to draw Er graph in an article

【毕业季_进击的技术er】送别过去两年迷茫的自己。重整旗鼓,大三我来啦
![[OFDM communication] simulation of OFDM multi-user resource allocation based on MATLAB [including Matlab source code 1902]](/img/ad/91a81c7f413484a86adcff8fc84e3b.jpg)
[OFDM communication] simulation of OFDM multi-user resource allocation based on MATLAB [including Matlab source code 1902]
随机推荐
Official download and installation of QT and QT vs tools plug-ins
[MAC] there is no source option in security and privacy
Shadertoy basic teaching 02. Drawing smiling faces
【OFDM通信】基于matlab OFDM多用户资源分配仿真【含Matlab源码 1902期】
insert into... where not exists插入避免重复的使用
微信小程序;AI智能配音助手
8 years' experience: monthly salary of 3000 to 30000, the change of Test Engineer
Servlet self study notes
Visual display of TEQC quality analysis results using teqcplot
Beyond chips and AI, why is hard technology capital becoming more and more "hard core"?
代码片段管理器SnippetsLab
Object structure diagram, which can quickly illustrate the internal structure of an object
强推,软件测试快速入门,一看就会
Learn to draw Er graph in an article
超越芯片和AI,硬科技资本为什么越来越“硬核”?
servlet自学笔记
Cookie-Session讲解
ICER skills 03design compile
dolphinscheduler海豚调度升级代码改造-UpgradeDolphinScheduler
What is the average annual salary of an outsourced tester who has worked for 5-8 years?