折腾openwrt插件。
插件直接换清华大学镜像速度快稳定
src/gz openwrt_core https://mirror.tuna.tsinghua.edu.cn/lede/releases/21.02.3/targets/ramips/mt7621/packages
src/gz openwrt_base https://mirror.tuna.tsinghua.edu.cn/lede/releases/21.02.3/packages/mipsel_24kc/base
src/gz openwrt_luci https://mirror.tuna.tsinghua.edu.cn/lede/releases/21.02.3/packages/mipsel_24kc/luci
src/gz openwrt_packages https://mirror.tuna.tsinghua.edu.cn/lede/releases/21.02.3/packages/mipsel_24kc/packages
src/gz openwrt_routing https://mirror.tuna.tsinghua.edu.cn/lede/releases/21.02.3/packages/mipsel_24kc/routing
src/gz openwrt_telephony https://mirror.tuna.tsinghua.edu.cn/lede/releases/21.02.3/packages/mipsel_24kc/telephony
————————————————————————————————————————————————————————————————————————————————————
https://blog.kobin.cn/blog/network/n2/1538.html
OpenWrt 管理界面安装中文语言包
在筛选框中输入「luci-i18n-base-zh-cn」进行查找,接着选择「Install」安装语言包。
————————————————————————————————————————————————————————————————————————————————————
openwrt 挂载点插件
安装必要工具,Openwrt连接上互联网,使用ssh登陆openwrt,执行一下命令:
opkg update
opkg install block-mount kmod-usb-storage kmod-fs-ext4 e2fsprogs
格式化U盘/SD卡,假设U盘设备节点为/dev/sda1:
mkfs.ext4 /dev/sda1 << EOF
Y
EOF
给U盘/SD卡制作根文件系统
mount /dev/sda1 /mnt
mkdir /tmp/root
mount -o bind / /tmp/root
cp /tmp/root/* /mnt -a
umount /tmp/root
umount /mnt
配置自动挂载并重启路由
block detect > /etc/config/fstab
uci set fstab.@mount[0].target='/overlay'
uci set fstab.@mount[0].enabled='1'
uci commit fstab
reboot
重启成功后检查文件系统挂载是否正常,信息显示overlay为14.0G(U盘容量大小),挂载成功。
df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 16.0M 16.0M 0 100% /rom
tmpfs 123.8M 1.1M 122.7M 1% /tmp
/dev/sda1 14.0G 102.7M 13.2G 1% /overlay
overlayfs:/overlay 14.0G 102.7M 13.2G 1% /
tmpfs 512.0K 0 512.0K 0% /dev
/dev/sda1 14.0G 102.7M 13.2G 1% /mnt/sda1
————————————————————————————————————————————————————————————————————————————————————
OpenWrt建站教程onmp建站搭建Nextcloud私有云盘
https://iyzm.net/openwrt/180.html
————————————————————————————————————————————————————————————————————————————————————
OpenWrt 安装 Samba 插件实现网络文件共享
https://opssh.cn/luyou/84.html
opkg update
opkg install samba4-server luci-i18n-samba-zh-cn
————————————————————————————————————————————————————————————————————————————————————
Openwrt路由器搭建网站教程
https://baijiahao.baidu.com/s?id=1650271899650799558&wfr=spider&for=pc
————————————————————————————————————————————————————————————————————————————————————
最后编辑:2022 年 07 月 14 日 00:33
本文链接:https://blog.zlrm.net/index.php/153.html(转载时请注明出处及链接! )
作品采用: 署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 许可协议授权。