我的环境
Model : Raspberry Pi 3 Model B Rev 1.2
Linux raspberrypi 6.1.19-v8+ #1637 SMP PREEMPT Tue Mar 14 11:11:47 GMT 2023 aarch64 GNU/Linux
noip安装
下载
https://www.noip.com/download?page=linux
wget https://dmej8g5cpdyqd.cloudfront.net/downloads/noip-duc_3.0.0-beta.6.tar.gz
解压
tar xf noip-duc_3.0.0-beta.6.tar.gz
cd noip-duc_3.0.0-beta.6
安装rust环境
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
或者
curl https://sh.rustup.rs -sSf | sh
选择 1
环境变量
source "$HOME/.cargo/env"
cargo换源
vi ~/.cargo/config
[source.crates-io]
replace-with = 'tuna'
[source.tuna]
registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"
生成
cargo build --release
sudo cp target/release/noip-duc /usr/local/bin
noip运行示例
noip-duc -g myhostname.ddns.net -u username -p password
卸载rust
rustup self uninstall