Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

AndroidNAS

这个项目旨在将闲置安卓设备打造为NAS This project aims to transform idle Android devices into NAS

目前先记录我在探索过程中获取到的各种知识,之后将这个项目全英文化并邀请更多人参与进来 Currently, I am documenting the various knowledge I have gained during the exploration process. Afterwards, I plan to internationalize this project and invite more people to participate.

这个项目不排除收费方案,因为这其中有很多工作都是很有价值的,但尽量只选择那些质量优秀的无广告方案记录在本项目中 This project does not rule out the possibility of a paid plan, as there is valuable work involved. However, we will strive to include only high-quality, ad-free solutions in this project.

技术选型

如何在安卓设备跑起NAS服务

按复杂度排序:

1. 使用能搭建web服务的app

KSWEB(收费,2美刀,试用期5天)

官网:https://sspai.com/post/57699 KSWEB标准版内置lighttpd+php+mysql,专业版包括nginx、apache等组件。内置no-ip,可直接配置ddns,自定义二级域名,每次有效期30天

多app https://sspai.com/post/71543

2. 在termux下搭建web服务

  1. 安装termux
  2. 自行安装web服务套件,例如nginx+php+mysql等
  3. 通过FTP、SMB等进行文件同步

3. 在termux下通过qemu虚拟全功能linux跑docker

https://github.com/BigWanGa/docker-in-termux 全能性最高,过程不算很复杂,性能低,待测试性能对比 宿主机目录挂载: https://wiki.archlinuxcn.org/wiki/QEMU#%E5%AE%BF%E4%B8%BB%E6%9C%BA%E5%92%8C%E8%99%9A%E6%8B%9F%E6%9C%BA%E6%95%B0%E6%8D%AE%E4%BA%A4%E4%BA%92 https://zhuanlan.zhihu.com/p/55025102

4. root后通过linux deploy运行docker

https://github.com/meefik/linuxdeploy

5. 重新编译手机固件,开启缺失功能,让系统原生支持docker

https://gist.github.com/FreddieOliveira/efe850df7ff3951cb62d74bd770dce27#2-building 性能和全能性最高,过程最复杂且不通用(需要有安卓设备的完整开源ROM) https://zhuanlan.zhihu.com/p/467521410 https://github.com/CGCL-codes/Android-Container/blob/main/README_CN.md

如何在外网访问安卓设备中的NAS服务

xray + ngnix alpine的xray服务脚本https://github.com/XTLS/alpinelinux-install-xray/blob/main/init.d/xray

NAS服务的构成

web:

docker:

app:

实现步骤

参考

https://blog.mahoo12138.cn/2022/01/20/linux-termux/ https://fanyingmao.github.io/2020/07/31/%E5%88%A9%E7%94%A8%E5%BA%9F%E6%97%A7%E5%AE%89%E5%8D%93%E6%89%8B%E6%9C%BA%E5%81%9ANAS/

About

这个项目旨在将闲置安卓设备打造为NAS/This project aims to transform idle Android devices into NAS

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors