410随身wifi刷debian,挂docker
简介:
随身wifi是个好玩的小东西,内置wifi,4g modem,还有ttl,可以刷debian,openwrt。
难能可贵的是便宜,9.9包邮。
加之最近看电影已经改了阿里云转存,alist转webdav,电视或盒子kodi看共享,便下单几个,刷好送朋友玩。
记录一下刷机过程
一:备份#
备份不可少,虽然便宜,刷坏也不好救。
推荐miko service tool 全量备份。
棒子按着唯一的复位按钮插入电脑,进入9008模式。
选择保存地址,保存为一个bin文件即可。
二:刷入debian#
前言 · 随身WIFI做主控的4G远程遥控车教程 · 看云 (kancloud.cn)
苏苏小亮亮编译了debian和openwrt,这里就刷大大的包吧
根据你的板子上的版号,下载对应的debian包。
棒子原本是android,要进入fastboot模式。
我是使用ARDC
点一下这两个大于号
找到adb reboot bootloader,双击即可
显示fastboot模式就好了
在解压过的包目录,双击flash.bat,一路无脑回车即完成刷机。
三:驱动棒子#
设备管理器里面找一下基于远程NDIS的internet共享设备,感叹号,未知设备啥的,手动安装一下驱动,
网络连接将出现
基于远程NDIS的Internet共享
四:通过USB连接棒子#
看一下这个自动获取的网络地址,应该是192.168.68.*
强烈建议手动改一下这个IP地址,否则你会有两个网关,这个棒子又不能上网,会造成网络错误。
改IP地址为192.168.68.2
改子网掩码为 255.255.255.0
网关,dns为空。
一般是ssh连接上去的,我使用winscp putty。
ssh登录吧
苏苏小亮亮的包 用户 root 密码 1
ssh://root:1@192.168.68.1
五:连接wifi#
图形配置网络命令:nmtui
苏苏小亮亮的版本有网桥,我们重新配置一下。
选择编辑连接--bridge--删除wifi,只保留USB
启用连接--你的wifii名(只支持2.4G)--输入密码,不用管这个错误提示,取消即可
编辑连接,你会看到你的wifi
编辑一下,安全性,降级为wpa2
再去启用连接,看到星号 * ,就是连接上了
我的主wifi是
可能这个debian识别到了wpa3,但是连不上,得手动指定一下使用wpa2加密。
六:指定DHCP固定分配#
为了方便连接,根据自己的wifi路由器,自己改吧。
七:通过WIFI连接棒子#
根据wifi获取的IP地址连接棒子
ssh://root:1@192.168.2.202
八:配置debian源#
sudo vim /etc/apt/sources.list
1 2 3 4 5 6 7 8 9 | # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 deb https: //mirrors .tuna.tsinghua.edu.cn /debian/ bullseye main contrib non- free # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free deb https: //mirrors .tuna.tsinghua.edu.cn /debian/ bullseye-updates main contrib non- free # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free deb https: //mirrors .tuna.tsinghua.edu.cn /debian/ bullseye-backports main contrib non- free # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free deb https: //mirrors .tuna.tsinghua.edu.cn /debian-security bullseye-security main contrib non- free # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free |
AdoptOpenJDK报错#
AdoptOpenJDK 已经更名为 Adoptium,具体情况查看# 关于重命名 AdoptOpenJDK 镜像为 Adoptium 的通知
1 2 3 | sudo sed -i '1c deb http://mirrors.tuna.tsinghua.edu.cn/Adoptium/deb buster main' /etc/apt/sources .list.d /AdoptOpenJDK .list gpg --keyserver hkp: //keyserver .ubuntu.com:80 --recv-keys 843C48A565F8F04B sudo gpg --armor -- export 843C48A565F8F04B | sudo apt-key add - |
Mobian报错#
只能禁用
1 | sudo sed -i '1c #deb http://repo.mobian-project.org/ bullseye main non-free' /etc/apt/sources .list.d /mobian .list |
这样就应该都正常了
九:安装docker#
1 2 3 4 5 6 7 8 9 10 11 12 | sudo apt-get remove docker docker-engine docker.io containerd runc sudo apt-get update sudo apt-get install ca-certificates curl gnupg sudo install -m 0755 -d /etc/apt/keyrings curl -fsSL https: //download .docker.com /linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker .gpg sudo chmod a+r /etc/apt/keyrings/docker .gpg echo \ "deb [arch=" $(dpkg --print-architecture)" signed-by= /etc/apt/keyrings/docker .gpg] https: //download .docker.com /linux/debian \ "$(. /etc/os-release && echo " $VERSION_CODENAME ")" stable" | \ sudo tee /etc/apt/sources .list.d /docker .list > /dev/null sudo apt-get update sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin |
十:安装alist#
使用docker-compose启动alist
创建docker-compose.yaml文件,如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | version: '3.3' services: alist: restart: always volumes: - '/etc/alist:/opt/alist/data' ports: - '5244:5244' environment: - PUID=0 - PGID=0 - UMASK=022 container_name: alist image: 'xhofe/alist:latest' |
使用putty连上棒子
在该文件目录执行命令
docker compose up -d
docker logs alist
Successfully created the admin user and the initial pa ssword is: fXlXKGjE
fXlXKGjE就是登录密码
访问棒子wifi获取的ip地址:5244即可访问棒子上的alist
用户名admin,密码刚才命令获取的fXlXKGjE
作者:上官飞鸿
出处:https://www.cnblogs.com/jackadam/p/17437136.html
版权:本作品采用「知识共享-署名-非商业性-禁止演绎(CC-BY-NC-ND)」许可协议进行许可。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· 展开说说关于C#中ORM框架的用法!
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?