软路由

https://www.armbian.com/uefi-x86/

https://github.com/ophub/amlogic-s9xxx-armbian/issues/2101

链接:https://pan.baidu.com/s/1gvumFOzNY5U2Xh9jheQ0ww
提取码:dyby

https://www.znds.com/tv-1241576-1-1.html

链接: https://pan.baidu.com/s/1HlAh_DumoP9NWWp5_ihiYg?pwd=qes5 提取码: qes5

https://www.youtube.com/watch?v=ra83O7uLVUg&t=108s

openwrt固件下载地址

https://firmware-selector.immortalwrt.org/

插件推荐

  • argo: 主题
  • ttyd: 网页端ssh命令行

hanwckf 老毛子k2p固件

Releases · hanwckf/rt-n56u (github.com)

纯净版老毛子安装脚本插件

entware环境与smartdns

###使用镜像加速安装entware环境
until ping -c 1 223.5.5.5 >/dev/null;do sleep 10;done
if [ ! -f /opt/bin/opkg ];then
  mount -t tmpfs tmpfs /opt -o size=50M
  for folder in bin etc lib/opkg tmp var/lock var/run
    do
    [ ! -d "/opt/$folder" ] && mkdir -p /opt/$folder
    done
  wget http://mirrors.bfsu.edu.cn/entware/mipselsf-k3.4/installer/opkg -O /opt/bin/opkg
  chmod 755 /opt/bin/opkg
  wget http://mirrors.bfsu.edu.cn/entware/mipselsf-k3.4/installer/opkg.conf -O /opt/etc/opkg.conf
  sed -i 's|bin.entware.net|mirrors.bfsu.edu.cn/entware|g' /opt/etc/opkg.conf
  /opt/bin/opkg update
###Fix for multiuser environment
  chmod 777 /opt/tmp
  for file in passwd group shells shadow
     do
     cp /etc/$file /opt/etc/$file
     done
fi
logger "entware环境创建完成"

###安装smartdns
/opt/bin/opkg install smartdns
cat > /opt/etc/smartdns/smartdns.conf <<EOF
server-name smartdns-k2p
log-level off
log-num 1
bind [::]:60053
#audit-enable yes
#audit-num 1
force-qtype-SOA 65
server 223.5.5.5
server 119.29.29.29
server 180.76.76.76
server 180.184.1.1
server 114.114.114.114
server 101.226.4.6
server 1.2.4.8
server 1.0.0.1
server 1.1.8.8
server 202.96.128.166 -bootstrap-dns
server 202.96.134.133 -bootstrap-dns
conf-file /opt/etc/smartdns/anti-ad-smartdns.conf
EOF

###安装wget-ssl,下载anti-ad规则
/opt/bin/opkg install wget-ssl
/opt/libexec/wget-ssl https://raw.githubusercontents.com/privacy-protection-tools/anti-AD/master/anti-ad-smartdns.conf -O /opt/etc/smartdns/anti-ad-smartdns.conf --no-check-certificate
/opt/sbin/smartdns &
logger "smartdns已启动,过滤广告规则已加载,等待dnsmasq重新配置"

###如果smartdns启动失败,dnsmasq重启并禁用smartdns
if test -n "`pidof smartdns`";then

###禁用dnsmasq缓存
cp /etc/dnsmasq.conf /opt/etc/dnsmasq.conf
sed -i '/cache-size=/d' /opt/etc/dnsmasq.conf
cat >> /opt/etc/dnsmasq.conf <<EOF
no-resolv
no-hosts
cache-size=0
server=127.0.0.1#60053
EOF
killall dnsmasq
dnsmasq -C /opt/etc/dnsmasq.conf
logger "dnsmasq已重新配置并禁用缓存,smartdns已启用"
else
logger "smartdns启动异常,dnsmasq以默认配置继续运行"
fi

安装dropbear

###安装dropbear(ssh)
/opt/bin/opkg install dropbear
/opt/sbin/dropbear -p 22 &
logger "dropbear已启动"

安装vsftpd

###安装vsftpd
/opt/bin/opkg install vsftpd
cat > /opt/etc/vsftpd/vsftpd.conf <<EOF
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
use_localtime=YES
connect_from_port_20=YES
listen=YES
pam_service_name=vsftpd
EOF
/opt/sbin/vsftpd &
logger "vsftpd已启动"

安装ttyd

###安装ttyd
/opt/bin/opkg install ttyd
/opt/bin/ttyd -p 8080 login &
logger "ttyd已启动,地址ip:8080"