找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 65445|回复: 78

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

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

假定armbian已经安装完成

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


2、输入命令
  1. nano /etc/apt/sources.list
复制代码
3、在原先的源前面加#号注释掉,并将国内源复制过去

  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
复制代码
进入容器镜像服务,得到镜像加速器地址



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恩山币 +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-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-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-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-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.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-3-29 06:52

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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