找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 35249|回复: 530

[T1] 记录 斐讯T1 刷Armbian 安装宝塔5.9 青龙面板

 火... [复制链接]
本帖最后由 小或 于 2023-5-12 09:02 编辑

很舒服。  以前用玩客云32位的装个宝塔都好费劲


工具包  https://cloud.189.cn/t/vyAzmiFbYrQf (访问码:6tmd)

第一步.(如果刷过就直接用)首先刷好YYF的固件 www.znds.com/forum.php?mod=viewthread&tid=1193837&page=1
              YYF固件下载地址yyfrom.com/cms/yyfrom/productlist/list-117-1.html



如果线刷报错 按我顺序 试试( 先拔掉 USB线 电源线电脑打开USB_Burning_Tool 导入固件包 去掉右边全部沟选→点开始-插USB线-最后插电源线

第二步, 下载固件  用rufus写入U盘  
    (选 s912 )    https://github.com/ophub/amlogic-s9xxx-armbian/releases  



===============================================
重新刷系统(不用刷回安卓)
删除emmc上/boot里的文件(cd /boot && rm -rf *)就可以从usb启动了


===============================================
phicomm T1 支持写入emmc,有线、无线和蓝牙都可以正常使用
内核更新(这个几乎每周有新内核,可以追新,也可以不更新):armbian-update
脚本更新(这个更新频率不高,主要是发现脚本有bug会修复):armbian-sync

中文说明文档 https://github.com/ophub/amlogic ... b/main/README.cn.md
(固件问题 可去反馈 https://github.com/ophub/amlogic-s9xxx-armbian/issues/522)
===============================================




           然后修改boot分区下的uEnv.txt文本
  1. FDT=/dtb/amlogic/meson-gxm-octopus-planet.dtb
复制代码
      修改为
  1. FDT=/dtb/amlogic/meson-gxm-phicomm-t1.dtb
复制代码



第三步   盒子开机联网



    打开cmd    1 进入D盘  2 进入ADB目录 3 连接盒子 4 进入U盘



  1. adb connect IP:5555
复制代码
   重启进入U盘起动   (重点!!在这之前不要插入U盘,等屏幕黑了 立即插入U盘,如果没进U盘,就换一个U盘 鄙人我就卡这里了 换了个U盘就可以了)
  1. adb shell reboot update
复制代码

==================如果不写入EMMC 到这就结束了===============


第四步 写EMMC     
  1. armbian-install
复制代码
  然后根据提示操作即可




==============安装记录===============================

最后 更新一下源   /etc/apt/sources.list
  1. deb https://mirrors.aliyun.com/debian/ bullseye main non-free contrib
  2. deb-src https://mirrors.aliyun.com/debian/ bullseye main non-free contrib
  3. deb https://mirrors.aliyun.com/debian-security/ bullseye-security main
  4. deb-src https://mirrors.aliyun.com/debian-security/ bullseye-security main
  5. deb https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
  6. deb-src https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
  7. deb https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
  8. deb-src https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
复制代码
  1. apt update
复制代码
各大源站
清华大学 https://mirror.tuna.tsinghua.edu.cn/help/debian/
中科大学 https://mirrors.ustc.edu.cn/help/debian.html
阿里云    https://developer.aliyun.com/mir ... .0.0.17ce1b113kv3QW
================================================

DOCKER安装
  1. curl -sSL https://get.daocloud.io/docker | sh
复制代码

==============================================
DOCKER可视面板
  1. docker run --restart always --name fast -p 8081:8081 -d -v /var/run/docker.sock:/var/run/docker.sock wangbinxingkong/fast
复制代码
2、安装完成后在浏览器访问 http://IP:8081 。
3、首次登录需要注册,注册成功后即可正常使用。
=============================================

试来试去 我还是喜欢用DOCKER 来装东西  有问题了直接删除容器,不用来回折腾刷系统

宝塔5.9安装  
创建容器


打开网卡混杂模式 (不打开的话好像重启不能自动获取到IP)
  1. sudo ip link set eth0 promisc on
复制代码


桥接网络   192.168.123.0/24  192.168.123.1  改成自己的网段  这里如果你用wifi 那就把  eth0 改成 wlan0
  1. docker network create -d macvlan --subnet=192.168.123.0/24 --gateway=192.168.123.1 -o parent=eth0 macnet
复制代码
用桥接网络有个好处就是不用开放端口 直接使用

创建cnetos容器
  1. docker run -tid --name baota  --restart always  --network macnet centos:centos7
复制代码
进入容器
  1. docker exec -it baota  /bin/bash
复制代码
安装宝塔
  1. yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
复制代码

安装宝塔如果报错:Pillow installation failed.
解决办法是先更新升级完系统,再安装宝塔面板,或者执行如下命令
  1. apt-get install python-setuptools
复制代码
安装 python-setuptools 以后再次安装宝塔即可解决,或者安装宝塔之前先安装


docker宝塔如果不能自动启动


1.创建脚本

vi /home/bt.sh 复制代码
  1. sleep 30;        #等待docker启动后再执行
  2. sudo docker exec baota /etc/init.d/bt start          #启动宝塔服务
  3. sudo docker exec baota /etc/init.d/nginx            # start启动nginx服务
  4. sudo docker exec baota  /etc/init.d/php-fpm-56   #start 启动php服务
  5. sudo docker exec baota  /etc/init.d/mysqld start  #启动php服务
  6. sudo docker exec baota crond               #计划任务
复制代码
使用:wq保存!!baota为容器名  php 版本的话按自己的填写

挂载开机自启脚本 方法1
  1. crontab -e
复制代码
添加新的一行,将我们刚刚写的脚本挂载到计划任务中。
  1. @reboot sudo bash /home/bt.sh
复制代码
使用:wq保存后即配置完成,可以重启后查看是否配置成功




docker  重启自动启动宝塔方法2  开机添加计划任务
详细参考 :zhuanlan.zhihu.com/p/430174042


计划任务不自动执行的解决方法
方法1   进入容器 执行
  1. crond
复制代码
方法2  进入容器 执行
  1. pkill crond && /sbin/crond
复制代码
执行上面的命令重启激活计划任务程序,再删掉面板添加的计划任务重新添加一遍就


==============================================
装青龙面板
  1. docker run -tid --name qinglong -p 5700:5700 --restart always whyour/qinglong:2.12
复制代码
安装完成后在浏览器访问 http://ip:5700访问面板

==============================================
KR 库
  1. ql repo https://github.com/KingRan/KR.git "jd_|jx_|jdCookie" "activity|backUp" "^jd[^_]|USER|utils|function|sign|sendNotify|ql|JDJR"
复制代码

===============================================

在Docker 中运行 OpenWrt 旁路网关 (按教程操作的话 记得用网线,或者你改桥接那的网卡)
  https://mlapp.cn/376.html  

==================docker字段========================

--restart always 容器开机自启

-p 5700:5700 映射端口  

-v /home/www:/www  映射本地的/home/www作为容器的/www目录

--name openwrt 参数定义了容器的名称;

-d 参数定义使容器运行在 Daemon 模式;

--network macnet 参数定义将容器加入 maxnet网络;

--privileged 参数定义容器运行在特权模式下;

/sbin/init 定义容器启动后执行的命令。


记录  -----------------------------------------------

CentOS7添加en_US.UTF-8字符集
localedef -v -c -i en_US -f UTF-8 en_US.UTF-8

ubuntu debian wget安装

1  apt-get update
2  apt-get install sudo
安装wget
3  sudo apt install wget



点评

何必呢?少说几句吧,网络这么大,聚到一起也不容易!: 1.0
何必呢?少说几句吧,网络这么大,聚到一起也不容易!: 1
蓝牙用不了,其他还行。  发表于 2023-3-7 20:27

评分

参与人数 7恩山币 +8 收起 理由
liuha*** + 2 2333
bga*** + 1 哪位大神把139云盘的东西给转下呗 蓝奏云盘.
逆天*** + 1 T1刷个YYF看电视挺好的,K3能刷岸边就好了.
yc52*** + 1 为什么不直接装bt,还建容器装?
扯*** + 1 工具包地址打不开啦
无*** + 1 风清云淡、飘逸悠然……极爽!
lj249*** + 1 来来来,有什么伤心的事说出来让大家开心一.

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
顶楼主啦..希望楼主多发精品好帖啦.....
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

士大夫擦拭了解
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

看看可以不
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

学习了,顶。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

谢谢分享这个版本有什么BUG吗?

点评

BUG 请去GITHUB 固件大神那反馈喔,我只说一下刷机教程  详情 回复 发表于 2022-11-27 19:55
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

顶楼主啦..希望楼主多发精品好帖啦.....
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

刷一个
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

谢谢楼主教程
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报


感谢分享,学习下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

回复一下看看内容
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

录 斐讯T1 超简单刷Armbia
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

感谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

感谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

顶楼主啦..希望楼主多发精品
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

关闭

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

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

GMT+8, 2024-4-29 03:33

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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