友善R3S安装软路由
概述
这篇文件记录了使用友善 R3S 安装 ImmortalWrt 系统,搭建家庭软路由的安装配置过程。
组网
友善 NanoPi R3S (后简称R3S)搭载瑞芯微 RK3566 处理器,板载2G LPDDR4X 内存,支持 MicroSD,接口包含 1 个USB 3.0 Type-A接口,1个Type-C(5V2A)供电接口,2个千兆网口,适合当作软路由使用。设备原装了友善 FriendlyWrt 系统,这次我用来运行 ImmortalWrt 系统,搭建家庭网络软路由。
graph TD
Internet((("Internet"))) --- |光缆| ONU[光猫]
ONU --- |网线 WAN| Router{软路由}
Router --- |网线 LAN| Switch[交换机]
Switch --- |网线| Router1[路由器1]
Switch --- |网线| Router2[路由器2]
Switch --- |网线| Router3[路由器3]
Router1 --- |网线| Laptop(("电脑"))
Router2 -.-> |WiFi| Phone(("手机"))
Router3 -.-> |WiFi| Tablet(("平板"))
style Router fill:#ffcc00, stroke:#ff6600, stroke-width:4px, font-weight:bold
LuckFoxPico开发板初试
概述
这篇文章记录了 LuckFox Pico 开发板的初始化过程。
关于 LuckFox Pico 开发板
官网 LuckFox Pico 介绍:https://www.luckfox.com/EN-Luckfox-Pico
LuckFox Pico 开发板是一款高性价比的 Linux 微开发板,基于 Rockchip RV1103 芯片,为开发者提供了一个简单且高效的开发平台,支持多种接口包括 MIPI CSI、GPIO、UART、SPI、I2C、USB 等,方便快速开发和调试。
| 组件 | 参数 |
|---|---|
| 处理器 | Cortex A7@1.2GHz + RISC-V |
| NPU | 0.5TOPS, supports int4, int8 and int16 |
| ISP | Input 4M @30fps (Max) |
| 内存 | 64MB DDR2 |
| USB | USB 2.0 Host/Device |
| Camera | MIPI CSI 2-lane |
| GPIO | 24 × GPIO pins |
| Ethernet port | 10/100M Ethernet controller and embedded PHY |
| Default Storage | TF card (Not included) |
ubuntu服务器部署prometheus监控
curl工具的使用方法
概述
这篇文章介绍了一个开源功能强大的命令行网络工具 curl,curl 功能丰富,用法简单,被广泛用于命令行、终端的网络请求场景中。这篇文件简要介绍了 curl 的功能和使用方法。
curl 是什么
curl 是一个命令行工具,利用 URL 语法在命令行中完成数据传输的工具,支持文件上传和下载。
curl 支持的协议(参考官网介绍):
| 协议 | 详情 |
|---|---|
| Protocol | DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET, TFTP, WS, WSS |
| Proxies | SOCKS4, SOCKS5, HTTP, HTTPS (HTTP/1 and HTTP/2), tunneling, via unix domain sockets, haproxy, SOCKS+HTTP proxy chain |
| HTTP | GET, POST, PUT, HEAD, multipart formpost, HTTP/0.9, HTTP/1.0, HTTP/1.1, HTTP/2 (h2c, h2, prior knowledge), HTTP/3 (dual connect h1/h2 + h3 or h3-only), HSTS, Alt-Svc, cookies, PSL, etags, transfer compression, ranges, custom headers, custom method, follow redirects |
| FTP | IPv6 (EPRT, EPSV), STLS, upload/download, append, range, passive/active, kerberos, directory listing, custom commands |
| SCP + SFTP | known hosts, md5/sha256 fingerprint, compression, upload/download, directory listing |
| TLS | 1.0 - 1.3, mutual authentication, STARTTLS, OCSP stapling, ECH, False Start, key pinning, PQC ready, session resumption, early data, export/import sessions |
| QUIC | 0RTT handshakes |
| Auth | Basic, Plain, Digest, CRAM-MD5, SCRAM-SHA, NTLM, Negotiate, Kerberos, Bearer tokens, AWS Sigv4, SASL, .netrc |
| HTTP compression | gzip, brotli and zstd |
| Name resolving | DNS-over-HTTPS, custom address for host, name+port redirect, custom DNS servers, DNS caching, HTTPS RR |
| Connection | connection reuse, Interface binding, Happy Eyeballs, IPv4/IPv6-only, unix domain sockets, TCP keepalive, TCP Fast Open, TCP Nodelay, MPTCP, VLAN priority, IP Type Of Service |
| Transfers | transfer rate limiting, request rate limiting, stall detection, retries, timeouts |
| URLs | Unlimited amount, parallel and serial transfers, globbing |
| Output | IDN hostnames, custom info from transfer, metadata as JSON, per content-disposition, libcurl source code, bold headers |
Jenkins自动发布Hexo博客
概述
这篇文章介绍如何在服务器上使用docker搭建jenkins,并使用jenkins自动从github仓库拉取自己 Hexo 博客的源代码,完成项目构建与部署,使用nginx对外提供博客访问服务。
认识 jenkins
Jenkins 是一个开源的自动化构建、部署工具,支持数百款插件扩展,支持各种自动化业务场景。Jenkins使用 java 开发,支持使用jar包部署或docker部署。
Jenkins 官网:https://www.jenkins.io/
esp8266 远程点灯
认识和使用TCP协议
概述
这篇文章介绍了 tcp 协议的含义、特点与使用场景,以 java 语言实现了 tcp 服务端与客户端,并进行通信。
什么是 tcp
传输控制协议(Transmission Control Protocol,缩写 TCP),是一种面向连接的、可靠的、基于字节流的传输层通信协议,TCP协议基于 IP 协议实现。与用户数据报协议(User Datagram Protocol,简称 UDP)一起作为传输层的两个重要协议。
| 五层网络模型 | 协议 |
|---|---|
| 应用层 | HTTP、FTP、TELNET、SSH、SNMP、DNS、SMTP、POP3、RPC… |
| 传输层 | TCP、UDP、TLS/SSL、PPTP、RSVP… |
| 网络层 | IP(v4,v6)、ICMP(v6)、IGMP、RARP、IS-IS… |
| 链路层 | Wi-Fi(IEEE 802.11)、ARP、以太网、GPRS、PPP… |
| 物理层 | 以太网、调制解调器、电力线通信、光导纤维、双绞线… |

