找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 59649|回复: 78

[N1盒子] N1刷入Armbian后换软件源、安装Docker并提速

 火... [复制链接]
发表于 2019-1-29 10:24 | 显示全部楼层 |阅读模式
网络环境所限,在使用Armbian的时候经常下载软件出问题,下载不到或者下载中断,所以找来了国内的源,更换一下,下载会变快很多。

假定armbian已经安装完成

1、打开putty,输入N1的IP地址连接并登陆
1.png

2、输入命令
  1. nano /etc/apt/sources.list
复制代码
3、在原先的源前面加#号注释掉,并将国内源复制过去
2.png
  1. deb http://mirrors.ustc.edu.cn/debian stretch main contrib non-free
  2. deb http://mirrors.ustc.edu.cn/debian stretch-updates main contrib non-free
  3. deb http://mirrors.ustc.edu.cn/debian stretch-backports main contrib non-free
  4. deb http://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free
复制代码
4、ctrl+x退出编辑,按y回车保存
5、执行
  1. apt-get update
复制代码
至此,软件源更换完毕。

6、安装docker
  1. curl -fsSL https://get.docker.com -o get-docker.sh

  2. sh get-docker.sh --mirror Aliyun
复制代码
使用上述命令安装会调用阿里云的镜像,安装速度较快。

7、配置docker镜像加速
登陆
  1. dev.aliyun.com
复制代码
进入容器镜像服务,得到镜像加速器地址
3.png


8、putty下执行

  1. mkdir -p /etc/docker

  2. tee /etc/docker/daemon.json <<-'EOF'
  3. {
  4. "registry-mirrors": ["https://加速镜像地址"]
  5. }
  6. EOF

  7. systemctl daemon-reload

  8. systemctl restart docker

复制代码

9、安装docker图形化管理Portainer  

在putty下执行
  1. docker volume create portainer_data

  2. docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer:linux-arm64
复制代码
10、安装完成后可访问N1ip:9000查看图形化界面


5.png


评分

参与人数 5恩山币 +5 收起 理由
ixuner + 1 感谢你的分享,无论怎样,你都是最无私的人!来,说说,你E盘上还有啥一起给我吧!
silbermond + 1 阿里云镜像好像挂了,可以用azure中国的:sh get-docker.sh -
2540719484 + 1 强大的恩山!(以下重复1万次)
vvv1111 + 1 docker好用~~
cc5202003 + 1 强大的恩山!(以下重复1万次)

查看全部评分

本帖被以下淘专辑推荐:

我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-2-1 10:33 | 显示全部楼层
本帖最后由 whhityang 于 2019-2-1 15:39 编辑

楼主这个源是debian的,ubuntu的是不行的
如果用的是ubuntu系统,源需要更换成下面的:
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic main restricted universe multiverse
#deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic main restricted universe multiverse

deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse
#deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse

deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse
#deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse

deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse
#deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse

点评

ok zhege hao a  详情 回复 发表于 2019-3-29 23:13
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-10-8 09:51 | 显示全部楼层
jy00295017 发表于 2019-8-25 19:52
docker这玩意到底有啥用啊

可以看成是轻量级的虚拟机,一个进程级别的虚拟机。无需创建虚拟整个运行的全部硬件信息,所以占用资源很少。在LINUX发行版本众多,开发环境各不相同的情况下,DOCKER是个很好的解决方案。因为OPENWRT官方没有支持N1的固件,所以N1要想上OPENWRT,一种方案是自己编译固件,还有就是ARMBIAN+DOCKER。但是容器和宿主之间的通讯设置,对于LINUX小白依然不是很友好,我看了半天,没看明白。

我也是小白,上面这些是我自己的理解,说的不对的地方,希望大佬一定指出来。

点评

现在都是U盘直刷包 看样子不错  详情 回复 发表于 2020-1-21 16:10
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-2-8 12:10 | 显示全部楼层
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main contrib non-free


以上源好,还是楼主的源好?哪个更快更新?????
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-1-29 11:33 | 显示全部楼层
docker装了官方的huginn用不了,能研究下不?

点评

docker这玩意到底有啥用啊  详情 回复 发表于 2019-8-25 19:52
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-1-29 12:13 | 显示全部楼层
谢谢楼主分享,哪天有空整一个N1玩玩。
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-1-29 13:12 | 显示全部楼层
明天试试加openwrt
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-1-29 14:35 | 显示全部楼层
谢谢楼主分享,收藏了
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-1-29 15:25 | 显示全部楼层
可以有openwrt吗
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-1-29 15:28 | 显示全部楼层
试试看,感谢楼主
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-1-29 15:56 | 显示全部楼层
准备升级千兆,入了j1800,不等n1的openwrt了
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-1-29 23:56 来自手机 | 显示全部楼层
提速提速提速,谢谢
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-1-30 10:47 | 显示全部楼层
Armbian换软件源
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-1-31 22:01 | 显示全部楼层
Portainer  这个玩意怎么用来着。。。
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-2-13 22:37 | 显示全部楼层
国内源基本都好,据说中科大的更为可靠
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-2-16 23:24 | 显示全部楼层
顺便还可以替换一下armbian的源
/etc/apt/sources.list.d/armbian.list替换成下面的内容
deb https://mirrors.tuna.tsinghua.edu.cn/armbian stretch main stretch-utils stretch-desktop
我的恩山、我的无线 The best wifi forum is right here.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

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

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

GMT+8, 2023-5-31 19:35

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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