当前位置: 首页 > news >正文

旧手机NAS方案

这里写目录标题

  • 1、参考
  • 2、alpine-term-v16.0-release.apk下载安装
  • 3、电脑端ssh连接
  • 3、安装docker
    • 3.1 网络配置
    • 3.2 配置APK源

1、参考

【Docker与Termux】闲置旧安卓手机上的NAS无缝部署方案 https://blog.csdn.net/AnRanGeSi/article/details/138717589

【Alpine Term】Android免root本地运行Docker https://www.jianshu.com/p/55456c1ca794

【Docker与Termux】闲置旧安卓手机上的NAS无缝部署方案 https://www.yxzhi.cn/post/268168.html

2、alpine-term-v16.0-release.apk下载安装

alpine-term-v16.0-release.apk下载:Githuh:https://github.com/FakeRajbhx/alpine-term/
开机后,登录系统,用户 alpine 密码: alpine
然后切换到root账户,输入sudo -s 密码:alpine
如果想要修改root密码, 输入 passwd ,需要输入两次新密码。

在这里插入图片描述在这里插入图片描述

3、电脑端ssh连接

Qemu套娃,所以需要映射ssh的22端口,开机完成后,手指在软件的左上方向右滑,会出现菜单,如下图所示;然后映射ssh的22端口到手机的2222端口,选择 [1]QEMU,输入 hostfwd_add tcp::8022-:22 ;查看路由器连接ip地址链接 ssh root@ip -p 8022

在这里插入图片描述
在这里插入图片描述

3、安装docker

3.1 网络配置

vi /etc/network/interfaces
auto lo  
iface lo inet loopback  
auto eth0  
iface eth0 inet dhcp
/etc/init.d/networking restartvi /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4

3.2 配置APK源

查看系统版本:cat /etc/alpine-release
Alpine安装Docker

https://mirrors.ustc.edu.cn/help/alpine.html
/etc/apk/repositories源

# Main package repositories.
#http://mirrors.aliyun.com/alpine/edge/main
#http://mirrors.aliyun.com/alpine/edge/community
http://mirrors.ustc.edu.cn/alpine/v3.20/main
http://mirrors.ustc.edu.cn/alpine/v3.20/community# Testing repository.
# You can install packages from this repository with:
# apk add package@testing
@testing http://mirrors.aliyun.com/alpine/edge/testing

阿里和科大源不行,其他源试试:

https://mirror.reenigne.net/alpine/edge/community/
https://mirror.reenigne.net/alpine/edge/main/
https://mirror.reenigne.net/alpine/edge/testing/https://mirror.reenigne.net/alpine/v3.19/main/
https://mirror.reenigne.net/alpine/v3.19/community/
http://www.lryc.cn/news/425617.html

相关文章:

  • Secure CRT 9.x版本高亮着色配置文件
  • kafka无法启动,提示连接zookeeper超时
  • mysql5.7.20升级5.7.44
  • 支持S/MIME证书的邮件客户端有哪些?
  • uniapp本地打包app安装说明
  • ddos造成服务器瘫痪后怎么办
  • 重磅官宣!追光少年【彭禹锦】荣担任中国美育促进网amp;IPA美育中国行代言人
  • Python 解析GIS的SHP文件
  • 大模型微调--文章3
  • 游戏测试中需求分析的本质
  • 2024零基础入行软件测试全网最全攻略
  • spring-boot-starter-quartz 自动化配置解析
  • DM8 数据库查询版本号以及授权到期时间SQL
  • 算法【Java】—— 双指针算法
  • 【Python快速入门和实践013】Python常用脚本-目标检测之按照类别数量划分数据集
  • C++ Primer 总结索引 | 第十八章:用于大型程序的工具
  • Python实现GAN(生成对抗网络)图像修复算法
  • java语言中的websocket
  • ASP.NET在线交流论坛管理系统
  • 【Kubernetes】身份认证与鉴权
  • 数据集与数据库:有什么区别?
  • BurpSuite
  • NetApp数据恢复—NetApp存储误删除文件如何恢复数据?
  • 基于springboot的医药管理系统
  • Android中的EventBus的用法
  • 梧桐数据库(WuTongDB):数据库在数据处理中是如何利用缓存机制的
  • C语言-数据类型
  • 左值引用、右值引用、移动构造
  • tekton通过ceph挂载node_modules的时候报错failed to execute command: copying dir: symlink
  • Xil_DCacheFlushRange的用法