找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 3869|回复: 11

[N1盒子] Armbian20.07安装OMV5 Docker Openwrt

[复制链接]
发表于 2020-7-22 17:44 | 显示全部楼层 |阅读模式


Armbian_20.07_Arm-64_buster_current_5.7.9成功安装





Armbian_20.07_Arm-64_buster_current_5.7.9

Armbian: 项目名称

20.07:版本

Arm-64:硬件信息

buster:系统版本代号,buster 是debian 10的代号,其他的代号

  • bionic: ubuntu 18
  • eoan: ubuntu 19
  • stretch: debian 9
  • xenial: ubuntu 16

5.7.9:linux内核版本



将下载的包写入u盘

打开uEnv.txt,将最后一行改为

  • # aml s9xxx
  • FDT=/dtb/amlogic/meson-gxl-s905d-phicomm-n1.dtb
  • #FDT=/dtb/amlogic/meson-g12b-ugoos-am6-no-cvbs.dtb
  • #FDT=/dtb/amlogic/meson-g12b-odroid-n2.dtb
  • APPEND=root=LABEL=ROOTFS rootflags=data=writeback rw console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0



将u盘插入n1,写入emmc命令
  • ./install-aml.sh

输入poweroff关机,拔掉u盘,重插n1电源开机

由于直接下载速度非常慢,我们可以先设置代理
先连接到国际互联网,打开置,允许局域网连接



打开/etc/environment 在里面添加
  • export ftp_proxy=http://192.168.2.105:10809
  • export http_proxy=http://192.168.2.105:10809
  • export https_proxy=http://192.168.2.105:10809
  • export socks_proxy=http://192.168.2.105:10809
  • export no_proxy="localhost,127.0.0.1"
  • export FTP_PROXY=http://192.168.2.105:10809
  • export HTTP_PROXY=http://192.168.2.105:10809
  • export HTTPS_PROXY=http://192.168.2.105:10809
  • export SOCKS_PROXY=http://192.168.2.105:10809
  • export NO_PROXY="localhost,127.0.0.1"

其中192.168.2.105为你电脑的ip地址
10809可在这里看到
[url=][/url]
完成后输入reboot重启就能开始了


安装omv方法请看
https://www.right.com.cn/forum/thread-3049724-1-1.html




安装omv后安装docker
输入armbian-config
选择Software>Softy
找到Docker,空格选取,回车安装

安装完成后安装Portainer
  • #下载镜像
  • docker pull docker.io/portainer/portainer
  • #运行镜像
  • docker run -d -p 9000:9000 \
  • --restart=always \
  • -v /var/run/docker.sock:/var/run/docker.sock \
  • --name prtainer \
  • docker.io/portainer/portainer



如果出现Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io: no such host
在/run/systemd/resolve/resolv.conf中添加nameserver 8.8.4.4




完成后ip:9000即可进入


安装docker版openwrt
来源https://www.right.com.cn/forum/thread-958173-1-1.html

首先下载链接:https://pan.baidu.com/s/14iYbe1b3hCsKKBC6G9wxcQ 提取码:xdur
这里下载的为docker-img-openwrt-aarch64-r20.05.20.gz

将下载的文件上传到root目录
  • cd /root
  • gzip -dc docker-img-openwrt-aarch64-r20.05.20.gz | docker load


其中docker-img-openwrt-aarch64-r20.05.20.gz为文件的名称
完成后输入docker images就可以看到


  • #开启网卡的混杂模式
  • ip link set eth0 promisc on
  • #创建docker的虚拟网络(其中192.168.2.155是目前n1的ip,192.168.2.188是你想要的openwrt的ip)
  • docker network create -d macvlan --subnet=192.168.2.155/24 --gateway=192.168.2.188 -o parent=eth0 openwrt
  • #开启openwrt容器(unifreq/openwrt-aarch64是REPOSITORY,r20.05.20是TAG,输入docker images可以看到
  • docker run --restart always -d --network openwrt --privileged unifreq/openwrt-aarch64:r20.05.20



进入Portainer,选择containers,进入openwrt控制台




  • 输入vi /etc/config/network
  • 找到192.168.1.1,点击i进入编辑模式
  • 改为你想要的ip
  • 按Esc,输入:wq保存


输入reboot重启n1



本帖子中包含更多资源

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

×
我的恩山、我的无线 The best wifi forum is right here.
发表于 2020-7-22 18:12 | 显示全部楼层
好帖,顶一个
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-7-22 19:45 | 显示全部楼层
体验怎么样?N1跑得起来这么多服务吗?

点评

还能用docker加个宝塔  详情 回复 发表于 2020-7-22 22:37
内存才占20%  详情 回复 发表于 2020-7-22 22:36
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-7-22 22:36 | 显示全部楼层
zaj6773 发表于 2020-7-22 19:45
体验怎么样?N1跑得起来这么多服务吗?

内存才占20%
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-7-22 22:37 | 显示全部楼层
zaj6773 发表于 2020-7-22 19:45
体验怎么样?N1跑得起来这么多服务吗?

还能用docker加个宝塔

点评

docker的旁路由的乳酸菌饮料能出国吗?我听说内网ping不通  详情 回复 发表于 2020-7-22 23:20
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-7-22 22:37 | 显示全部楼层
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-7-22 23:20 | 显示全部楼层
1801420057 发表于 2020-7-22 22:37
还能用docker加个宝塔

docker的旁路由的乳酸菌饮料能出国吗?我听说内网ping不通

点评

我的没问题,应该设置好dns服务器就行了吧  详情 回复 发表于 2020-7-23 12:05
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-7-23 00:06 | 显示全部楼层
OMV的意义在哪,占用资源

点评

个人需求不同吧  详情 回复 发表于 2020-7-23 12:02
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-7-23 12:02 | 显示全部楼层
240038901 发表于 2020-7-23 00:06
OMV的意义在哪,占用资源

个人需求不同吧
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-7-23 12:05 | 显示全部楼层
zaj6773 发表于 2020-7-22 23:20
docker的旁路由的乳酸菌饮料能出国吗?我听说内网ping不通

我的没问题,应该设置好dns服务器就行了吧

点评

openwrt安装后,armbian无法上网,翻了帖子,修改interfaces文件,但是怎么修改都不能上网,大佬看看是哪里不对:  详情 回复 发表于 2020-8-5 14:21
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-5 14:21 | 显示全部楼层
本帖最后由 丰花 于 2020-8-5 14:43 编辑
1801420057 发表于 2020-7-23 12:05
我的没问题,应该设置好dns服务器就行了吧

openwrt安装后,armbian无法上网,翻了帖子,修改interfaces文件,但是怎么修改都不能上网,大佬看看是哪里不对:
  1. source /etc/network/interfaces.d/*

  2. # Wired adapter #1
  3. allow-hotplug eth0
  4. no-auto-down eth0
  5. iface eth0 inet dhcp
  6. #iface eth0 inet static
  7. #address 192.168.1.100
  8. #netmask 255.255.255.0
  9. #gateway 192.168.1.1
  10. #dns-nameservers 192.168.1.1
  11. #        hwaddress ether # if you want to set MAC manually
  12. #        pre-up /sbin/ifconfig eth0 mtu 3838 # setting MTU for DHCP, static just: mtu 3838


  13. # Wireless adapter #1
  14. # Armbian ships with network-manager installed by default. To save you time
  15. # and hassles consider using 'sudo nmtui' instead of configuring Wi-Fi settings
  16. # manually. The below lines are only meant as an example how configuration could
  17. # be done in an anachronistic way:
  18. #
  19. #allow-hotplug wlan0
  20. #iface wlan0 inet dhcp
  21. #address 192.168.0.100
  22. #netmask 255.255.255.0
  23. #gateway 192.168.0.1
  24. #dns-nameservers 8.8.8.8 8.8.4.4
  25. #   wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
  26. # Disable power saving on compatible chipsets (prevents SSH/connection dropouts over WiFi)
  27. #wireless-mode Managed
  28. #wireless-power off

  29. # Local loopback
  30. auto lo
  31. iface lo inet loopback

  32. auto eth0
  33. iface eth0 inet manual

  34. auto macvlan
  35. iface macvlan inet static
  36.   address 10.0.0.116
  37.   netmask 255.0.0.0
  38.   gateway 10.0.0.2
  39.   dns-nameservers 10.0.0.2
  40.   pre-up ip link add macvlan link eth0 type macvlan mode bridge
  41.   post-down ip link del macvlan link eth0 type macvlan mode bridge
复制代码


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

使用道具 举报

发表于 2022-4-19 15:08 | 显示全部楼层
我的刷完op后,,没有无线选项  不知道什么原因 我刷的是unifreq/openwrt-aarch64:r20.10.20 版本
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-25 15:53

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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