-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raspberry Pi 4 #165
Comments
Raspberry Pi 4其他可选替代方案:
香橙派:
arm 方案:
x86方案:
ref:docker:with k3s:
interesting projects:requirements:一些讨论:应用场景:1. 个人主机:
2. 搭建测试集群:
2.1 k8s 集群:2.2 etcd 集群:2.3 es 集群:2.4 kafka 集群: |
👋 you might also like https://k3sup.dev/ - a new tool for installing k3s and helm charts |
cool, worth a try. |
mac 下树莓派4 烧录:1. 树莓派烧录系统:
2. mac 通过 SSH 连接 树莓派:
3. SSH 通过 ssh-key 连接+禁用密码登录.
3.1 安装 vim:
3.2 添加 本地 ssh 公钥到树莓派:
3.3 禁用SSH 密码登录方式
|
3.4 SSH 启用 2fa(谷歌验证器):3.5 查看树莓派设备信息:
|
3.5.2 fix error:
|
3.6 树莓派 SD 卡扩展分区:
3.6.1 首选扩展方法:
pi@raspberrypi:~ $ df -h
文件系统 容量 已用 可用 已用% 挂载点
/dev/root 29G 6.6G 22G 24% /
devtmpfs 1.8G 0 1.8G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 8.5M 1.9G 1% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/mmcblk0p1 253M 53M 200M 21% /boot
tmpfs 386M 0 386M 0% /run/user/1000
3.6.2 备选方法:
|
3.7 设置 WIFI 联网:
3.7.1 局域网找到树莓派 IP:
# 使用 arp 扫描局域网 IP:
henry@hh-imac27 [14时52分22秒] [~]
-> % arp -a
? (192.168.2.1) at d0:17:c2:3d:c8:b0 on en1 ifscope [ethernet]
? (192.168.2.10) at 14:20:5e:11:3c:7e on en1 ifscope permanent [ethernet]
? (192.168.2.73) at e4:2b:34:d7:b9:4d on en1 ifscope [ethernet]
? (192.168.2.76) at 58:6b:14:0:ab:5e on en1 ifscope [ethernet]
? (192.168.2.195) at 74:23:44:4a:94:1a on en1 ifscope [ethernet]
? (192.168.2.198) at dc:a6:32:60:8d:9f on en1 ifscope [ethernet]
? (224.0.0.251) at 1:0:5e:0:0:fb on en1 ifscope permanent [ethernet]
? (239.255.255.250) at 1:0:5e:7f:ff:fa on en1 ifscope permanent [ethernet]
# 安装:
brew install nmap
# 扫描当前网段所有在线 IP:
henry@hh-imac27 [14时49分04秒] [~]
-> % nmap -sP 192.168.2.0/24
Starting Nmap 7.80 ( https://nmap.org ) at 2020-03-22 14:49 CST
Nmap scan report for 192.168.2.1
Host is up (0.0036s latency).
Nmap scan report for 192.168.2.10
Host is up (0.00011s latency).
Nmap scan report for 192.168.2.76
Host is up (0.093s latency).
Nmap scan report for 192.168.2.198
Host is up (0.0043s latency).
Nmap done: 256 IP addresses (4 hosts up) scanned in 3.34 seconds
# 已知 192.168.2.198 是树莓派设备
# -A 参数, 查到 Raspbian, 可知是树莓派设备
-> % nmap -A 192.168.2.198
Starting Nmap 7.80 ( https://nmap.org ) at 2020-03-22 15:00 CST
Nmap scan report for 192.168.2.198
Host is up (0.0057s latency).
Not shown: 998 closed ports
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 7.9p1 Raspbian 10+deb10u2 (protocol 2.0)
| ssh-hostkey:
| 2048 07:cf:25:3d:65:88:86:da:c9:bc:0e:ed:6c:0a:4b:fd (RSA)
| 256 47:3a:72:1b:92:26:4c:bd:52:a7:08:6e:13:d7:f4:34 (ECDSA)
|_ 256 4c:c2:0a:82:42:16:18:30:63:37:06:a7:9f:8e:80:e8 (ED25519)
5900/tcp open vnc RealVNC Enterprise 5.3 or later (protocol 5.0)
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 1.00 seconds
# 猜猜 IP 设备的 OS 信息:
sudo nmap 192.168.2.198 -O --osscan-guess
3.7.2 树莓派连接 WIFI:
3.7.3 设置静态 IP: |
4. 安装 docker:
参考清华源正确的安装方式:
4.2 卸载 docker:
|
Looks like good progress on this thread. The other thing that you may like is inlets, for a HTTPS tunnel for the cluster, it can expose an endpoint in Europe for instance. https://docs.inlets.dev/ |
docker 镜像源:
|
thanks a lot, i will check it. @alexellis |
局域网搜索树莓派 IP 方法:➤ ping raspberrypi
PING raspberrypi (10.211.1.91): 56 data bytes
64 bytes from 10.211.1.91: icmp_seq=0 ttl=64 time=6.477 ms
64 bytes from 10.211.1.91: icmp_seq=1 ttl=64 time=6.078 ms
64 bytes from 10.211.1.91: icmp_seq=2 ttl=64 time=4.519 ms
|
related:
The text was updated successfully, but these errors were encountered: