Running Raspberry Pi 3B/4B

Aperta
#7 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
35/100
Tipo di issue
Documentazione
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
docker, linux, raspberry-pi, shell

Direzione di ricerca

The issue names no repository file or test; first inspect the repository's documentation structure and existing Raspberry Pi guidance. Decide where this setup material belongs and verify that the resulting documentation clearly covers ARM 64 image installation, proxy configuration, Docker, and remote SSH access without relying on ambiguous or unsafe example credentials.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

1.镜像烧录
Pi 3B+, Pi 4B 都可以使用 ARM 64 的镜像。 官方工具 Raspberry Pi Imager 可以选择 Use Custom Image 来使用本地下载好的 img/zip 镜像安装到 存储卡。

apt-get install docker.io

apt-get install dfc git tmux tig
apt-get install iptraf-ng curl lsof wget telnet hstr

hstr --show-configuration >> ~/.bashrc

2.配置代理:
Setting up proxy for apt:

Navigate to the following folder, and create a file 10proxy:
vi /etc/apt/apt.conf.d/10proxy

Without authentication add this line:
Acquire::http::Proxy "http://proxyaddress:proxyport/";

Or with authentication add this line:
Acquire::http::Proxy "http://username:password@proxyaddress:proxyport/";

Make sure to include the / at the end.

For everything else:
Edit /etc/environment and set 3 lines to proxy both secure insecure requests
(The export keyword is no longer supported in the /etc/environment file):

http_proxy="http://username:password@proxyaddress:port/"
https_proxy="http://username:password@proxyaddress:port/"
no_proxy="localhost,127.0.0.1"

3.Install Docker
apt-get install docker.io

4.Run a proxy server
https://hub.docker.com/r/teddysun/trojan

5.公网访问家中树莓派
https://www.cnblogs.com/kwongtai/p/6903420.html
https://blog.csdn.net/probezy/article/details/118483908
https://blog.51cto.com/u_15127679/2851130

树莓派机器建立到公网的 ssh 反向代理(-p 可以省略,7280 是在 服务器上开的):
ssh -p 22 -i /home/david/xxx.pem -fCNR 7280:localhost:22 root@101.200.2.5

登陆到 101.200.2.5 的公网服务器之后,即可通过 7280端口连接到树莓派:
检查端口: netstat -anp | grep 7280
登陆树莓派: ssh -p 7280 pi@localhost

再进一步,在 101.200.2.5 的公网服务器做一个本地端口转发,1860 转发到 7280:
ssh -i /data/xxx.pem -fCNL *:1860:localhost:7280 localhost

这个时候可以通过访问 101.200.2.5 的 1860 来ssh到树莓派。

ssh -p 1860 pi@101.200.2.5

用户名换成自己的树莓派用户名,默认是 pi。

Lingua principale
Python
Stelle
5
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di davideuler/programming-tips

Tutte le issue di davideuler/programming-tips

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.