|
本帖最后由 492309713 于 2020-11-25 13:21 编辑
新人第一次写帖子,多多关照!
前提:玩客云刷好openwrt解决:有需要其它linux系统需求的用户,玩客云openwrt是不支持docker的,导致刷op后一些其它服务搭建
演示:挂载debian后搭建宝塔面板
文件说明:
debian:用于openwrt 启动项添加方式,只有启动和停止命令,放置在op系统的/etc/init.d/目录下
S99debian:用于debian系统的启动,放置op系统的/usr/bin/目录下,根据实际需求可能需要修改第 4行、8行、9行
deb.list: 用户debian系统下自启动服务,如:bt start
debian_jessie8.9-armel_clean: 解压在对应的目录
操作步骤:
1.解压debian_jessie8.9-armel_clean,建议解压到一个空间比较大地方,如:/mnt/mmcblk0p3下
- 可选编辑debian 更新源(官方源太慢,其他源如163、清华源、上海交大源等可用自己去搜,交大源最快,官方源本身最安全),自带官方源debian 8的,下面是交大源debian 9 的,编辑 debian/etc/apt 文件夹里的 sources.list 注释掉或者删掉其他,贴上下面内容保存即可换源
[color=rgb(51, 102, 153) !important]复制代码
2.debian放置在op系统的/etc/init.d/目录下,并增加可执行权限
- chmod +x /etc/init.d/debian
[color=rgb(51, 102, 153) !important]复制代码
3.修改S99debian:
CHROOT_DIR:第一步解压出debian的目录所在位置,如/mnt/mmcblk0p3/debian
EXT_DIR:挂载到debian的目录,可以在前面输入#不配置该选项
CHROOT_SERVICES_LIST:deb.list所在目录
4.S99debian放置/usr/bin/,增加可执行权限
- chmod +x /usr/bin/S99debian
[color=rgb(51, 102, 153) !important]复制代码
5.启动:
[color=rgb(51, 102, 153) !important]复制代码
6.搭建宝塔面板:
- 运行下面命令先更新升级。
- apt-get update
- apt-get upgrade -y
- apt-get dist-upgrade -y
[color=rgb(51, 102, 153) !important]复制代码
- apt-get install procps -y
- apt-get install build-essential -y
- apt-get install yum -y
- apt-get install curl -y
- apt-get install wget -y
[color=rgb(51, 102, 153) !important]复制代码
[color=rgb(51, 102, 153) !important]
问题汇总:
1.打开面板应该是报程序异常中断的错误。
运行:mkdir /tmp/shm
2.pip 的报错
在op系统下运行:
- opkg update
- opkg install python-pip
- pip install python
[color=rgb(51, 102, 153) !important]复制代码
百度网盘:
链接:https://pan.baidu.com/s/19Jt2jXN6x5oqBRaMQTeArg
提取码:1t8v
参考原文链接:https://www.right.com.cn/forum/f ... d&page=1&tid=785028
|
-
S99debian修改位置
|