How to use macOS to connect to Raspberry Pi without the monitor All In One
How to use macOS to connect to Raspberry Pi without the monitor All In One
如何在没有显示屏的情况下使用 macOS 连接树莓派 All In One
无显示器
如何通过配置文件
快速修复树莓派
无法通过 SSH
访问的问题 All In One
https://www.cnblogs.com/xgqfrms/p/17323303.html
如何在不知道 Wi-Fi IP 地址
的情况下使用 SSH
访问树莓派
https://www.cnblogs.com/xgqfrms/p/17322254.html
https://www.cnblogs.com/xgqfrms/p/17356060.html
https://zzk.cnblogs.com/my/s/blogpost-p?Keywords=Raspberry Pi
macOS 怎么搞??? 仅仅有一条网线和 Wi-FI 路由器
- MBP 没有 RJ45 接口或 Type-C 转换器
- 没有额外的显示器
- 没有额外的 USB 鼠标和 USB 键盘
- 没有转换器,使用网线把树莓派与 Mac 电脑直链,串口模式
solutions
一、Desktop 模式(GUI) 使用 VNC Viewer ✅
- 使用
WI-FI
路由器上的一条有线网线
连接树莓派 - 使用
Nmap
扫描 WI-FI 网段查看树莓派 ip address 或 登录路由器
连接设备管理页面查看树莓派 ip address (SSH
开启22
端口) - 使用
VNC Viewer
访问
Nmap
# 扫描 ip
$ nmap 192.168.18.1-255
路由器验证 ✅
- 输入用户名和密码
二、 CLI 模式使用 SSH ✅ (关闭 VPN,才可以使用 ssh 连接 ⚠️)
macOS 使用 SSH 连接树莓派
https://www.raspberrypi.com/documentation/computers/remote-access.html
$ ssh pi@192.168.18.135
# or
$ sh 192.168.1.135 -l pi
# pwd
$ sh 192.168.1.135 -l pi -p 22
# -l login_name
# -p port
默认用户名 pi
默认密码 raspberry
$ ifconfig
$ sudo shutdown -r +1 "一分钟后后重启系统"
SSH 22
port
# zsh
$ man ssh
SSH(1) General Commands Manual SSH(1)
NAME
ssh – OpenSSH remote login client
SYNOPSIS
ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface] [-b bind_address] [-c cipher_spec]
[-D [bind_address:]port] [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
[-i identity_file] [-J destination] [-L address] [-l login_name] [-m mac_spec]
[-O ctl_cmd] [-o option] [-p port] [-Q query_option] [-R address] [-S ctl_path]
[-W host:port] [-w local_tun[:remote_tun]] destination [command]
DESCRIPTION
ssh (SSH client) is a program for logging into a remote machine and for executing
commands on a remote machine. It is intended to provide secure encrypted communications
between two untrusted hosts over an insecure network. X11 connections, arbitrary TCP
ports and UNIX-domain sockets can also be forwarded over the secure channel.
ssh connects and logs into the specified destination, which may be specified as either
[user@]hostname or a URI of the form ssh://[user@]hostname[:port]. The user must prove
his/her identity to the remote machine using one of several methods (see below).
If a command is specified, it is executed on the remote host instead of a login shell.
The options are as follows:
-4 Forces ssh to use IPv4 addresses only.
-6 Forces ssh to use IPv6 addresses only.
-A Enables forwarding of connections from an authentication agent such as
ssh-agent(1). This can also be specified on a per-host basis in a configuration
file.
:
# ???
# $ ssh -h 192.168.18.135 -u pi -p raspberry
raspberry pi default username
and password
ssh
According to RaspberryPi.org, the default Raspberry Pi login details are as follows: the default username is pi
and the default password is raspberry
.
https://www.raspberrypi.com/documentation/computers/configuration.html#changing-your-username
https://www.makeuseof.com/tag/raspbian-default-password/
Raspberry Pi 设置中文语言
https://mp.weixin.qq.com/s/XtCKfXy_JH0oYJ03og2QVg
Raspberry Pi 设置中文输入法
https://mp.weixin.qq.com/s/fJEgfvdnZ7teL_DlwaBhVA
https://mp.weixin.qq.com/s/OsPdiM39-bjAESJ9fqmwag
https://mp.weixin.qq.com/s/y7F7JcTOXFu2gGS_NmUjVg
LAMP
https://mp.weixin.qq.com/s/BiWLJTyb3QP5nq9tzuzPIA
Raspberry Pi 设置显示器分辨率
使用终端要借助Raspberry Pi配置工具,或者直接修改/boot/config.txt文件。
$ sudo raspi-config
# GUI 交互式命令行界面
$ sudo raspi-config
在本质上还是直接修改 /boot/config.txt
配置文件
https://www.raspberrypi.com/documentation/computers/configuration.html#the-raspi-config-tool
https://www.labno3.com/2021/01/23/setting-the-screen-resolution-of-your-raspberry-pi-2/
https://zhuanlan.zhihu.com/p/98080324
Raspberry Pi 传输文件
-
mac 设置接收文件夹
-
send files
demo
如何在没有显示屏的情况下使用 Windows 连接树莓派 All In One
monitor
display
screen
refs
Windows 无显示屏连接树莓派
https://www.bilibili.com/video/BV15B4y1T7BR
©xgqfrms 2012-2025
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/16478328.html
未经授权禁止转载,违者必究!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· 单线程的Redis速度为什么快?
· 展开说说关于C#中ORM框架的用法!
· Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库
2021-07-14 js disabled debugger All In One
2021-07-14 css nth-of-type All In One
2021-07-14 mac 外接显示器设置旋转方向 All In One
2020-07-14 测试金字塔
2020-07-14 frontends tools
2020-07-14 微前端 & 微前端实践 & 微前端教程
2020-07-14 支付宝小程序模版