当前位置:网站首页>Raspberry pie 3b+ learning
Raspberry pie 3b+ learning
2022-06-27 12:16:00 【HHH 917】

Computer installation putty Use the named line tool for raspberry pie remotely
Raspberry pie installation xrdp For remote use
sudo apt-get install xrdp install xrdp
tf card establish ssh Blank file
establish wpa_supplicant.conf file
The contents of the document
country=CN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid=“CMCC-UE62-5G”
psk=“zy5zua59”
priority=10
}
Widows see Connecting device ip arp -a
Raspberry pie htop see Machine condition
Raspberry pie View this machine ip ip addr
interface wlan0
static ip_address= Yours ip Address /24
static routers= Your default gateway
static domain_name_servers= Your default gateway
link/ether b8:27:eb:b4:5b:ab brd ff:ff:ff:ff:ff:ff
inet 192.168.1.3/24 brd 192.168.1.255 scope global dynamic noprefixroute
inet6 2409:8a55:ee3:3790:c24b:1f50:a77:8c5a/64 scope global dynamic
inet6 fe80::6aa:5f0e:c9b9:e9fd/64 scope link
Raspberry pie does not sleep
3、 Modify desktop configuration file lightdm.conf
sudo nano /etc/lightdm/lightdm.conf
find [Seat:*] This one , In the following ‘#xserver-command=X’ Delete the previous comment #, It is amended as follows
xserver-command=X -s 0-dpms
among ,-s Parameters : Set the screen saver not to start ,0 The number zero ,-dpms Parameters : Turn off the power and save energy .
Save and exit :Ctrl+X, Press Y Press enter again .
Raspberry pie ip Address
Open file sudo nano /etc/dhcpcd.config
Input static ip And gateway
interface wlan0
static ip_address = 192.168.1.99
static routes=192.168.1.1
static domain_name_servers=192.168.1.1
Smaba
Ipv6 Address fe80::6aa:5f0e:c9b9:e9fd
When filling in, the colon is changed to - fe80–6aa-5f0e-c9b9-e9fd.ipv6-literal.net
Url Fill in smb://fe80–6aa-5f0e-c9b9-e9fd.ipv6-literal.net/xxx
Two 、 install Samba
samba It's easy to install , Command line execution :
sudo apt-get install samba samba-common-bin
3、 ... and 、 To configure Samba
The configuration file is /etc/samba/smb.conf, It is modified here , Command line execution :
sudo nano /etc/samba/smb.conf
notes :nano Can pass ctrl+y( The previous page ) and ctrl+v( The next page ) Turn pages .
Add the following at the end of the document , among /mnt/udisk The shared folder directory set for me ( Replace it with the directory you want to share , for example :/home/pi/public):
[public]
comment = public storage
path = /mnt/udisk
valid users = pi
read only = no
create mask = 0777
directory mask = 0777
guest ok = no
browseable = yes
ctrl+o preservation , after enter confirm , then ctrl+x sign out .
Parameter description :
comment: Shared folder description
path: Shared folder Directory
valid users: Effective users
read only: Is it read-only
create mask: Permissions to create files
directory mask: Permission to create a folder
guest ok: Whether visitors are allowed to visit
browseable: Whether or not visible
among valid users namely pi For valid users , You also need to add it to Samba in , Command line execution :
sudo smbpasswd -a pi
Set valid user
Set the password
If you need to configure each user to read and write their own home Catalog , It can also be found in “[homes]” In the festival , hold “read only = yes” Change it to “read only = no”.
home The directory is readable and writable
restart samba To configure , Command line execution :
sudo samba restart
notes :Samba By default, it starts automatically , No need to worry about restarting
Four 、 Set file permissions
stay Samba After setting permissions on the configuration file , You also need to set the permissions of the shared folder in the system to the same permissions as those in the configuration file , To ensure that other users can access and modify the contents of the folder normally , Command line execution :
sudo chmod -R 777 /mnt/udisk
/mnt/udisk Is your shared directory
5、 ... and 、 Access shared files
Windows:
Enter in the Explorer address field :\ Raspberry pie ip\public that will do .
macOS:
open FInder, Then use the shortcut cmd+k, Fill in the server address smb:// Raspberry pie ip/public, Then click Connect .
Use vnc Remote connection
Raspberry pie
sudo raspi-config
choice “interface Options” choice vnc open then choice finish complete
The computer Open the web site realvnc.com download vnc viewer
Apple connection vnc url Fill in [fe80::6aa:5f0e:c9b9:e9fd]
http://t.zoukankan.com/torchstar-p-12005277.html
边栏推荐
- uniapp下拉弹层选择框效果demo(整理)
- ACL 2022 | 中科院提出TAMT:TAMT:通过下游任务无关掩码训练搜索可迁移的BERT子网络
- R language uses the polR function of mass package to construct the ordered multi classification logistic regression model, and uses the vglm function of VGAM package to test the parallelism hypothesis
- Redis distributed lock 15 ask, what have you mastered?
- Thinkphp6 interface limits user access frequency
- Research Report on the overall scale, major producers, major regions, products and application segments of swine vaccine in the global market in 2022
- 干货!零售业智能化管理会遇到哪些问题?看懂这篇文章就够了
- How histrix works
- alibaba jarslink
- Rxjs mergeMap 的使用场合
猜你喜欢

Private dry goods sharing: how to implement platform in Enterprise Architecture

In 2021, the global professional liability insurance revenue was about USD 44740million, and it is expected to reach USD 55980million in 2028. From 2022 to 2028, the CAGR was 3.5%

C/s architecture

如何修改 node_modules 里的文件

AutoCAD - three pruning methods

In 2021, the global enhanced oil production surfactant revenue was about USD 202.3 million, and it is expected to reach USD 297.1 million in 2028

In 2021, the global carbon graphite brush revenue is about US $2366million, and it is expected to reach US $2701.8 million in 2028

干货!零售业智能化管理会遇到哪些问题?看懂这篇文章就够了

【On nacos】快速上手 Nacos

JSP自定义标签
随机推荐
解压 .log.gz 文件
[tcapulusdb knowledge base] tcapulusdb OMS business personnel permission introduction
Rxjs mergeMap 的使用场合
【On nacos】快速上手 Nacos
Jwas: a Bayesian based GWAS and GS software developed by Julia
Neo4j:入门基础(一)之安装与使用
Unity Shader学习(一)认识unity shader基本结构
Mathematical knowledge -- ideas and examples of game theory (bash game, Nim game, wizov game)
Heap heap sort TOPK
Salesforce 容器化 ISV 场景下的软件供应链安全落地实践
Excel中输入整数却总是显示小数,如何调整?
【面试高频题】难度 1.5/5,LCS 模板题
手把手带你入门 API 开发
面试突击60:什么情况会导致 MySQL 索引失效?
树莓派 3b+ 学习
怎么找相同台词的影视片段?这8个电影搜索神器,一句台词找到对应片段
JSP自定义标签
Write it down once Net analysis of a property management background service stuck
R language uses the poisgof function of epidisplay package to test the goodness of fit of Poisson regression and whether there is overdispersion
esp32s3 IPERF例程测试 esp32s3吞吐量测试