找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 4271|回复: 269

玩客云刷Armbian-24.5.0>安装Docker->安装openwrt 安装命令openwrt 可挂USB网卡

 火... [复制链接]
本帖最后由 tmsun 于 2024-4-7 20:15 编辑

玩客云刷Armbian-24.5.0>安装Docker->安装openwrt 安装命令




大部分内容转自:玩客云刷Armbian->安装Docker->安装openwrt

下载这个贴子的固件:吃灰的玩客云刷个openwrt和armbain-性能太猛了-迅雷玩客云、京东云等各种云设备-恩山无线论坛  固件:https://pan.quark.cn/s/38743e76f686





1、刷 Armbian:
直刷包下载地址:https://github.com/hzyitc/armbian-onecloud/releases
(建议下载*edge_*.bum.img.xz类型版本的线刷包,线刷步骤很简单,一条双公头数据线就可以,可以参考下其他大神的教程,



ssh登录账号密码:【账号:root 密码:1234

更换密码:

Create root password: ******
Repeat root password: ******
Rejected - passwords do not match. Try again [3].
Create root password: ******
Repeat root password: ******

版本选择:

Choose default system command shell:

1) bash
2) zsh
1

Shell: BASH

Creating a new user account. Press <Ctrl-C> to abort


Please provide a username (eg. your first name): ^C
Disabling user account creation procedure

root@onecloud:~# apt-get update && apt upgrade -y


2、更换软件源:

mv /etc/apt/sources.list /etc/apt/sources.list.bk

nano /etc/apt/sources.list

添加:
1 deb https://mirrors.ustc.edu.cn/debian/ bullseye main non-free contrib
2 deb-src https://mirrors.ustc.edu.cn/debian/ bullseye main non-free contrib
3 deb https://mirrors.ustc.edu.cn/debian-security/ bullseye-security main
4 deb-src https://mirrors.ustc.edu.cn/debian-security/ bullseye-security main
5 deb https://mirrors.ustc.edu.cn/debian/ bullseye-updates main non-free contrib
6 deb-src https://mirrors.ustc.edu.cn/debian/ bullseye-updates main non-free contrib
7 deb https://mirrors.ustc.edu.cn/debian/ bullseye-backports main non-free contrib
8 deb-src https://mirrors.ustc.edu.cn/debian/ bullseye-backport


[Ctrl+O]、[回车]保存、[Ctrl+X]退出


3、更新一下:


apt-get update && apt upgrade -y

4、安装 Docker:#下载sh

curl -fsSL https://get.docker.com -o get-docker.sh

5、#执行sh

sh get-docker.sh -mirror Aliyun

6、#这一步可能显得多余但是我放这里肯定是有原因的建议执行一下

apt install docker.io

7、#更加推荐开关电源重启

reboot



8、#验证一下是否安装成功#要没有报错才行哦,并不是说看到版本号就可以了
1 docker - V
#或者
2 docker version

#安装docker可视面板

9、docker run --restart always --name fast -p 8081:8081 -d -v /var/run/docker.sock:/var/run/docker.sock wangbinxingkong/fast

#安装完成后验证一下:【网页IP+8081账号:root密码:1234]能打开网页就是可以了,如果不行建议关了电源再通电开机试一下

10、安装 OpenWRT【如果不需要安装OpenWRT可以跳过这一步]#打开网卡混杂模式

ip link set eth0 promisc on

11、#创建网络:你的网络是多少段X就填多少,其他的数字不要乱改!
docker network create -d macvlan --subnet=192.168.X.0/24 --gateway=192.168.X.1 -o parent=eth0 macnet



12、#拉取镜像
docker pull jyhking/onecloud:1.1

13、#然后配置一下

docker run -itd --name=OneCloud --restart=always --network=macnet --privileged=true jyhking/onecloud:1.1 /sbin/init

#路由后台查看openwrt的ip地址->直接网页登陆IP【账号:root密码:password



正常路由已出OpenWRT的IP。可挂USB网卡加个网口。3、更新一下:


apt-get update && apt upgrade -y

4、安装 Docker:#下载sh

curl -fsSL https://get.docker.com -o get-docker.sh

5、#执行sh

sh get-docker.sh -mirror Aliyun

6、#这一步可能显得多余但是我放这里肯定是有原因的建议执行一下

apt install docker.io

7、#更加推荐开关电源重启

reboot



8、#验证一下是否安装成功#要没有报错才行哦,并不是说看到版本号就可以了
1 docker - V
#或者
2 docker version

#安装docker可视面板

9、docker run --restart always --name fast -p 8081:8081 -d -v /var/run/docker.sock:/var/run/docker.sock wangbinxingkong/fast

#安装完成后验证一下:【网页IP+8081账号:root密码:1234]能打开网页就是可以了,如果不行建议关了电源再通电开机试一下

10、安装 OpenWRT【如果不需要安装OpenWRT可以跳过这一步]#打开网卡混杂模式

ip link set eth0 promisc on

11、#创建网络:你的网络是多少段X就填多少,其他的数字不要乱改!
docker network create -d macvlan --subnet=192.168.X.0/24 --gateway=192.168.X.1 -o parent=eth0 macnet



12、#拉取镜像
docker pull jyhking/onecloud:1.1

13、#然后配置一下

docker run -itd --name=OneCloud --restart=always --network=macnet --privileged=true jyhking/onecloud:1.1 /sbin/init

#路由后台查看openwrt的ip地址->直接网页登陆IP【账号:root密码:password



正常路由已出OpenWRT的IP。可挂USB网卡加个网口。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
楼主辛苦,感谢感谢。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来看一下 帖子里面有错误  
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

楼主辛苦,感谢感谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

下载这个贴子的固件:吃灰的玩客云刷个openwrt和armbain-性能太猛了-迅雷玩客云、京东云等各种云设备-恩山无线论坛  固件:https://pan.quark.cn/s/38743e76f686
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

下载来试试,谢谢楼主分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

玩客云刷Armbian-24.5.0>安装Docker->安装openwrt 安装命令openwrt 可挂USB网卡
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
看看是什么 学习了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

这东西找了好久勒,谢谢!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

楼主辛苦,感谢感谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

进来学习一下,谢谢楼主。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

看看怎么安装openwrt
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

楼主辛苦,感谢感谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

学习学习。。。。。。。。。。。。。。。。。。。。。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

辛苦了,整理了很多资料。感谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-5-1 23:33

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表