本帖最后由 nuzmz 于 2023-5-18 20:48 编辑
2023.3.17装CoreELEC 20.0-Nexus
1、n1连键鼠、hdmi电视,上电,设置Wi-Fi,记录分配的局域网地址。固件版本2.19,不用降级。
2、在coreelec官网下载支持s905d的固件(CoreELEC 20.0-Nexus 版本,可选择不同芯片),用balenaEtcher刷到u盘,根据device tree拷贝到u盘根目录,重命名为dtb.img。
3、剪断若干两芯microusb后,用一根nokia数据线和一根htc数据线做了双公头usb。十年前的线真堆料。
4、下载n1降级工具,装了USB_Burning_Too后面好像也用不着。win7笔记本连步骤1同Wi-Fi,打开n1降级工具,发现输了ip后直接退出来,多退几次才发现是因为没有装adb,补装。
5、降级工具选3进入线刷模式,按提示插上双公头usb,盒子重启,迅速插上u盘。u盘插到离HDMI较远的口,果然重启不成功。换到较近的口,顺利启动到coreelec的安装启动界面,插上蓝宝石遥控器,还好按键大体能用,只是关机后无法开机。收摊,周末再学。
2023.3.18充满玄学的armbian刷机过程
6、把N1CoreELEC接到43寸索尼大法,面临几个问题:声音小,暂时找不到设置的地方;找不到设置静态wired地址的地方;遥控器无法开机。因此中断了在N1上折腾CoreELEC的。在Openwrt、armbian、、rush极简固件摇摆了一阵,决定暂时投向armbian。
7、充满玄学的armbian刷机过程:
——昨天已经把CoreELEC装到了emmc,好像不能直接刷armbian,重启都停在“新一代家庭nas云盘”的ugly页面上;
——重点学习了“极限精简斐讯T1/N1 极客开发者强迫症福音6.25”、“斐讯天天链N1 官改v2.2线刷包,精简版,扩展功能可选”“【斐讯媒体盒N1】 【LiliN Mod】【官改固件】【FINAL】”等贴子
——把N1接到LG,古早thinpad装上USB_Burning_Tool_v2.1.3插上双公usb,因为无法用abd批处理开启线刷,只好尝试只用双公usb线刷,这才发现顺序很玄学:先按USB_Burning_Too的开始,再插N1的电源,停在“新一代家庭nas云盘”的ugly页面。先插N1的电源,也停在“新一代家庭nas”的ugly页面。脑洞突开,一手扶住电源头,候在电源口,一手悬停在触控板上,摆好姿势同时发力一插一按,居然成了。
——在rush极简固件里装了kodi20,ABM_arm_v3.3.4-Release,还没来得及尝试lazy-start.sh,就开始转向armbian了,只是因为不小心体验了一把百度网盘的加速券,不知道会不会被扣费。后续估计要花点时间学习怎么用armbian。
2023.3.19被某个帖子的dtb文件干扰了
8、安装armbian的版本:Armbian_5.77_Aml-s905_Ubuntu_bionic_default_5.0.2_20190401。刷到u盘后,需要修改uEnv.ini里的dtb_name=/dtb/meson-gxl-s905d-phicomm-n1.dtb 。
u盘启动后,用/boot/install.sh安装到emmc,拔掉u盘重启后出现“label=ROOT_EMMC does not exist”,根据“将 Armbian 写入 emmc 遇到【ALert!label=ROOT_EMMC does not exist】的解决方案”的帖子,解决办法为:
vim ./install.sh
将 55 行中:sed -e "s/ROOTFS/ROOT_EMMC/g"
改为
sed -e "s/LABEL=ROOTFS/\/dev\/mmcblk1p2/g"
重新执行install.sh即可。
9、本坛某贴提到刷u盘后要更换meson-gxl-s905d-phicomm-n1.dtb ,结果换了帖子的文件之后无法挂载根文件系统,后来保留img里的版本不变,终于能挂载进入系统了。
2023.3.20 终于装好了alist树立了一点信心
10、昨天刚开始用一键脚本:一键脚本 | AList文档 (nn.ci),没有下载速度,就在github下载alist传到/opt运行出现缺少glibc2.8,armbian里的是2.7,下了源文件编译了一个多小时都不成功。抱着尝试的心里又试了一次一键脚本,居然成功了。
可以接着来安个可道云。
11、调整插座,找了个小米智能插座给N1当开关,这样可以随时随地开关armbian、alist。
2023.3.30 换成了新版的armbian:Armbian_23.05.0_amlogic_s905d_jammy_5.15.104_server_2023.03.29 (3).img
12、由于想在armbian上折腾wifi热点,原来装的版本可能由于精简的原因无法用armbian-config来设置wifi热点,就换成了新版的armbian:Armbian_23.05.0_amlogic_s905d_jammy_5.15.104_server_2023.03.29。
13、今天下载github奇慢,幸好找到了一个加速器,新版armbian地址:https://ghproxy.com/https://gith ... r_2023.03.29.img.gz。
14、用balenaEtcher-Portable-1.13.1把镜像烧到128g爱国者u盘上,插到N1的HDMI邻近U口,断电重启,顺利启动登录:root,1234.新版本不用改install.sh,也不用编译dtb,看来还是有改进。
15、终于可以用armbian-config了。关键能用hostapt来开启热点。
——apt update
——配置热点前要先把hostapd和dnsmq先装上。apt install hostapd,apt install dnsmq
——在armbian-config里选hotspot配置热点,省掉编辑好几个配置文件
2023.3.31用armbian-config安装samba,transmission,docker
16、配置了samba,但暂时还不能从windows10来访问,后面慢慢找原因,目前暂时不是很需要。
17、transmission的配置参考的文章:Armbian安装下载神器Transmission - 麦克斯和雪莉的部落阁 (haibara.cn)。service transmission-daemon stop,vim /etc/transmission-daemon/settings.json,chmod -R 777 /home/share/downloads。美化WebUI
18、armbian 安装docker 简明教程-斐讯无线路由器以及其它斐迅网络设备-恩山无线论坛 - Powered by Discuz! (right.com.cn)。大体参照这篇教程安装docker,不过没有用docker阿里云镜像,好像速度也不会特别慢。
2023.4.1可道云准备:Armbian搭建LNMP环境
19、基本照着这篇文章来搭建LNMP,在安装php7.4时apt install php7.4-fpm php7.4-mysql php7.4-curl php7.4-gd php7.4-mbstring php7.4-xml php7.4-xmlrpc php7.4-zip php7.4-opcache php7.4-bcmath -y找不到软件包,下了php-7.4.0.tar.gz打算手动安装,在补装libxml2后,再试试apt install,居然成功了,是跟网络环境的关系吗?
Armbian搭建LNMP环境 - 麦克斯和雪莉的部落阁 (haibara.cn)
2023.5.16
20.安装Homeassistant
——严格遵照homeassistant官网的教程安装:https://www.home-assistant.io/in ... home-assistant-core。
——This guide assumes that you already have an operating system setup and have installed Python 3.10 (including the package python3-dev) or newer.
——INSTALL DEPENDENCIES:Before you start, make sure your system is fully updated, all packages in this guide are installed with apt, if your OS does not have that, look for alternatives.
- apt-get update
- apt-get upgrade -y
复制代码 ——Install the dependencies:
- apt-get install -y python3 python3-dev python3-venv python3-pip bluez libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libtiff5 libturbojpeg0-dev tzdata
复制代码 The above-listed dependencies might differ or missing, depending on your system or personal use of Home Assistant.这些依赖先用核对一下系统里是否已装上,例如:
Add an account for Home Assistant Core called homeassistant. Since this account is only for running Home Assistant Core the extra arguments of -rm is added to create a system account and create a home directory. - sudo useradd -rm homeassistant
复制代码CREATE THE VIRTUAL ENVIRONMENT First we will create a directory for the installation of Home Assistant Core and change the owner to the homeassistant account. - sudo mkdir /srv/homeassistant
复制代码Next up is to create and change to a virtual environment for Home Assistant Core. This will be done as the homeassistant account. - sudo -u homeassistant -H -s
复制代码Once you have activated the virtual environment (notice the prompt change to (homeassistant) homeassistant@raspberrypi:/srv/homeassistant $) you will need to run the following command to install a required Python package. - python3 -m pip install wheel
复制代码Once you have installed the required Python package, it is now time to install Home Assistant Core! - pip3 install homeassistant==2023.5.3
复制代码Start Home Assistant Core for the first time. This will complete the installation for you, automatically creating the .homeassistant configuration directory in the /home/homeassistant directory, and installing any basic dependencies.
You can now reach your installation via the web interface on http://homeassistant.local:8123.
If this address doesn’t work you may also try http://localhost:8123 or http://X.X.X.X:8123 (replace X.X.X.X with your machines’ IP address). When you run the hass command for the first time, it will download, install and cache the necessary libraries/dependencies. This procedure may take anywhere between 5 to 10 minutes. During that time, you may get a site cannot be reached error when accessing the web interface. This will only happen the first time. Subsequent restarts will be much faster.
20.安装之后让homeassistant开机启动:https://community.home-assistant ... sing-systemd/199497
21.安装HACS
|