xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

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 路由器

  1. MBP 没有 RJ45 接口或 Type-C 转换器
  2. 没有额外的显示器
  3. 没有额外的 USB 鼠标和 USB 键盘
  4. 没有转换器,使用网线把树莓派与 Mac 电脑直链,串口模式

solutions

一、Desktop 模式(GUI) 使用 VNC Viewer ✅

  1. 使用 WI-FI 路由器上的一条有线网线连接树莓派
  2. 使用 Nmap 扫描 WI-FI 网段查看树莓派 ip address 或 登录路由器连接设备管理页面查看树莓派 ip address (SSH 开启 22 端口)
  3. 使用 VNC Viewer 访问

Nmap

# 扫描 ip
$ nmap 192.168.18.1-255

路由器验证 ✅

  1. 输入用户名和密码

二、 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 传输文件

  1. mac 设置接收文件夹

  2. send files

demo

如何在没有显示屏的情况下使用 Windows 连接树莓派 All In One

monitor

display

screen

refs

Windows 无显示屏连接树莓派

https://www.bilibili.com/video/BV15B4y1T7BR

(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2022-07-14 16:44  xgqfrms  阅读(118)  评论(5编辑  收藏  举报