Package
https://github.com/ophub/amlogic-s9xxx-armbian/releases
基于debian13
用~/tool/alenaEtcher-1.18.11-x64.AppImage把下载的镜像写到U盘中
Setup
IP
插入e900v22d,启动。约5分钟后到路由器中看armbian的机器分配的地址
用ssh root@
登陆后根据提示设置密码和账户等。
用root账户运行armbian-config启动字符UI界面,可以修改IP为静态IP
修改后需要重新连接
文件/etc/netplan/armbian.yaml
1 | network: |
增加第2个IP 192.168.1.100
1 | network: |
重启网络
netplan apply
关闭swap
sudo armbian-swap 0
sudo swapoff
hostname
hostnamectl set-hostname phicomm-n1
打印服务器
apt update
apt install cups
apt install avahi-daemon colord cups-browsed ipp-usb liblouisutdml-bin | liblouis-bin lynx gpg-wks-client fonts-droid-fallback libpaper-
apt install avahi-daemon
apt install hplip
拷贝老服务器的/etc/cups/
cupsd.conf
printers.conf
ppd/HP_DeskJet_1212_Color_101.ppd
到新服务器对应目录
重启cups
systemctl restart cups
usermod -a -G lpadmin quxr
访问CUPS web console
https://192.168.1.100:631
管理页面用quxr账户登陆
docker
armbian-docker命令安装docker环境
选择aliyun为source
用以下命令将quxr加到docker组中
usermod -a -G docker quxr
测试
docker run hello-world
如果提示无法获取image,用root运行如下命令
bash <(curl -sSL https://gitee.com/xjxjin/scripts/raw/main/check_docker_registry.sh)
切换到最快的源
openwrt with passwall on docker
2026.3这个image的passwall不好用了。
sudo ip link set eth0 promisc on
docker network create -d macvlan –subnet=192.168.1.0/24 –gateway=192.168.1.1 -o parent=eth0 macnet
docker pull registry.cn-shanghai.aliyuncs.com/suling/openwrt:armv8
docker run –restart always –name openwrt -d –network macnet –privileged registry.cn-shanghai.aliyuncs.com/suling/openwrt:armv8 /sbin/init
docker exec -it openwrt bash
进到openwrt中后,修改文件
/etc/config/network
1 | config interface 'loopback' |
把ipaddr 192.168.123.100改为192.168.1.111
gateway改为192.168.1.1
dns改为8.8.8.8
/etc/init.d/network restart
ip a
1 | bash-5.1# ip a |
sudo systemctl restart docker
从别的服务器上可以ping同192.168.1.111。从192.168.1.100上ping不到。这是docker的限制
浏览器访问http://192.168.1.111/
root/password
改密码
菜单Service->Passwall, Node Subscribe, ADD
Subscribe URL: xxxxx
更新订阅,会出现几个代理
回到Basic Settings -> Main
勾选Main switch
TCP Node选刚才订阅的某一个
UDP Node选Same as tcp node
SAVE & APPLY
Running Status下面头3个会变绿
下面4个测试可以测试
new openwrt with passwall on docker
这一步如果之前做过则不需要再做
sudo ip link set eth0 promisc on
这一步如果之前做过则不需要再做
docker network create -d macvlan –subnet=192.168.1.0/24 –gateway=192.168.1.1 -o parent=eth0 macnet
docker pull piaoyizy/openwrt-aarch64:latest
docker run -d –name=openwrt3 –restart always –privileged –network macnet –ip 192.168.1.113 piaoyizy/openwrt-aarch64:latest
docker exec -it openwrt bash
进到openwrt中后,修改文件
/etc/config/network
1 | config interface 'loopback' |
运行/etc/init.d/network restart重启网络
浏览器打开http://192.168.1.113
用户名root
密码password或者无密码
进去后到Network-Interfaces-lan中,把DHCP关闭
到Network-Firewall中
打开Enable SYN-flood protection
打开Enable FullCone NAT
Forward选accept
到Services-HomeProxy中设置代理