路由机型: AC86U arm架构 安装python3与pip
一、安装opkg软件源
1. 创建软件安装目录
1 2 3 4 5 |
cd /jffs mkdir /jffs/opt ln -nsf /jffs/opt /tmp/opt |
2.安装opkg
1 2 3 4 5 6 7 |
wget https://pkg.entware.net/binaries/armv7/installer/entware_install.sh sh ./entware_install.sh #软件源地址 https://pkg.entware.net/binaries/armv7/installer/ #注意 梅林固件自带一个entware.sh的安装脚本,但是要求必须插上一个ext4等linux文件系统的U盘。这里下载的这个安装脚本不需要插u盘。如果你的路由器存储空间比较小,不建议使用本方法。 |
3. 自动挂载opt分区
1 2 3 4 |
在/jffs/scripts位置建立文件,文件名:post-mount #内容如下:(如原来就有内容就追加) #!/bin/sh ln -nsf /jffs/opt /tmp/opt |
4. 给脚本增加权限
1 |
chmod a+rx /jffs/scripts/post-mount |
到此arm架构类型的安装完毕。
一、安装python3与pip
1 2 |
opkg install python3 opkg install python-pip |
mips架构的自行参见上方安装方式安装即可
1 2 3 4 |
#软件源安装脚本: http://pkg.entware.net/binaries/mipsel/installer/installer.sh #软件源目录 http://pkg.entware.net/binaries/mipsel/ |
- 本文固定链接: https://www.yoyoask.com/?p=4855
- 转载请注明: shooter 于 SHOOTER 发表