当前位置:网站首页>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
边栏推荐
- i. Construction of mx6ull C language environment
- Research Report on the overall scale, major producers, major regions, products and application segments of swine vaccine in the global market in 2022
- 等等, 怎么使用 SetMemoryLimit?
- Minimum editing distance (linear DP writing method)
- Operators are also important if you want to learn the C language well
- C# wpf 实现撤销重做功能
- .NET6接入Skywalking链路追踪完整流程
- 树莓派 3b+ 学习
- 【面试高频题】难度 1.5/5,LCS 模板题
- C # WPF realizes undo redo function
猜你喜欢

想学好C语言,操作符也很重要

进程间通信详解

AUTOCAD——三种修剪方式

$15.8 billion! 2021 the world's top15 most profitable hedge fund giant

器审科普:创新医疗器械系列科普——胸骨板产品

MySQL高阶语句(一)

How to modify a node_ Files in modules
![Dynamic programming [III] (interval DP) stone merging](/img/a4/82c4d63b8df5d092a96b80dd497147.jpg)
Dynamic programming [III] (interval DP) stone merging

TiDB 6.0:让 TSO 更高效丨TiDB Book Rush

Summary of qstype class usage (II)
随机推荐
Basic usage and principle of fork/join framework
Interview shock 60: what will cause MySQL index invalidation?
2022CISCN华中 Web
私藏干货分享:关于企业架构中如何进行平台化
面试突击60:什么情况会导致 MySQL 索引失效?
【On nacos】快速上手 Nacos
亚马逊测评掉评、留不上评是怎么回事呢?要如何应对?
1. Mx6ull startup mode
mysql学习1:安装mysql
Private dry goods sharing: how to implement platform in Enterprise Architecture
dried food! What problems will the intelligent management of retail industry encounter? It is enough to understand this article
Drive to APasS!使用明道云管理F1赛事
解压 .log.gz 文件
uni-app 使用escook/request-miniprogram插件发请求说明
Unity shader learning (II) the first shader
R语言dplyr包arrange函数排序dataframe数据、通过多个数据列排序dataframe数据、指定第一个字段降序排序,第二字段不指定(默认升序排序)
The R language uses the follow up The plot function visualizes the longitudinal follow-up map of multiple ID (case) monitoring indicators, and uses stress The labels parameter adds label information t
优博讯出席OpenHarmony技术日,全新打造下一代安全支付终端
The R language uses the DOTPLOT function of epidisplay package to visualize the frequency of data points in different intervals in the form of point graph, specifies the grouping parameters with the b
Unity Shader学习(一)认识unity shader基本结构