小白福利 斐讯N1的HassIO自动安装镜像终于来了
前段时间给大家发布了HassOS的自编译版本(https://sumju.net/?p=3230),里面包括了各种虚拟机和树莓派的固件下载,但是唯独没有斐讯N1的。
经过一段时间的研究,我承认自己能力有限,无法使用BuildRoot来编译对应斐讯N1的HassOS的固件。
但是为了喜欢Home Assistant的朋友能更方便的低成本使用HassOS的各种功能,所以我用变通的方式制作了一个斐讯N1的Armbian镜像,这个镜像会自动安装HassIO,无需人工干预,HassIO使用起来跟HassOS一样,也方便日后大家跟着我的教程继续后期的智能接入。
由于斐讯N1的EMMC比较小,本镜像如刷入EMMC之后剩余空间大约2.5G,当然如果你一直跑在U盘上也是OK的。
使用方法:
1.确保斐讯N1已经降级并且具备刷Arabian的条件,如果你还是安卓请参考这个视频降级:https://youtu.be/pcy7Yj1mHjg
2.刷入镜像到U盘。
重要的事情说三遍,写好U盘保证N1不开机的状态插盘再开机!!!!! 重要的事情说三遍,写好U盘保证N1不开机的状态插盘再开机!!!!! 重要的事情说三遍,写好U盘保证N1不开机的状态插盘再开机!!!!!
3.使用有线连接让盒子有互联网,U盘启动。 (如果需要用WiFi,U盘启动前,修改U盘boot分区下的armbian_first_run.txt里的信息用于启动连WiFi)
4.SSH登陆itcommander.local 密码:1234 ,登陆后根据提示更改密码,更改密码成功后重启N1。
重要的事情说三遍,重启之前用date命令检查一下系统时间是否正确!!!!! 重要的事情说三遍,重启之前用date命令检查一下系统时间是否正确!!!!! 重要的事情说三遍,重启之前用date命令检查一下系统时间是否正确!!!!!
(这一步可以开始使用./install.sh命令写入EMMC,也可以之后需要的时候再写。)
5.等待1小时左右访问http://itcommander.local:8123端口完成初始设置。
下载地址:
更多教程 https://sumju.net
视频教程: https://www.youtube.com/channel/UCf8MbF6J9xWf1m9guutozlw/
电报 群 https://t.me/joinchat/J26zVFGMhWWB1sBTFvcjaA
电报频道 https://t.me/itcommander
Twitter https://twitter.com/itcommander2
Facebook:https://www.facebook.com/itcommander.itcommander.1
用户名和密码不正确??
请问支持蓝牙设备接入?谢谢
支持
成功安装了这个系统,请问大神连接蓝牙后播放音乐卡顿,每次执行 bluetoothctl scan on 然后 bluetoothctl scan off 后可以流畅播放10-20秒,然后又卡顿。很郁闷,求助
大佬辛苦了 每次都会照顾小白 赞爆
docker 装不上。。。
网络连接了才能装
度盘提取码错误。
不可能
请问我用WIFI连接一直卡在Preparing Home Assistant,是不是必须得连网线才行啊?
WiFi可以的
这个是在docker上装的homeassistant吧?以前的教程是不是直接在armbian系统中操作的?
是的
ssh登陆提示:密码不对。恳求大神帮忙分析一下
这不算问题吧?把英文报错和提示信息翻译一下就有了。
docker端口多少
请问一下第五步,等了好久还是打不开,怎么才可以看进度呀?
改完ssh密码等就行了
可能是网不好吧…两个小时了还打不开
你好,再请教一下,第五个步骤,我等了一晚都没有成功。然后我又重新来了一遍前面的步骤,也没有成功。我需要怎么操作呢?
/opt目录下有手动安装脚本
运行手动安装脚本会写到emmc么?只想u盘运行。
不会
但会sudo报错,因为你u盘被安卓修改了权限。
我emmc里是小钢炮,不是安卓。
先下来学习一下,
先下来学习一下,在好多地方出现错误了
等了一天还是不能访问我,进/opt下手动安装显示以下内容
root@itcommander:/opt# ./installer.sh
[warn]
[warn] If you want more control over your own system, run
[warn] Home Assistant as a VM or run Home Assistant Core
[warn] via a Docker container.
[warn]
[warn] If you want to abort, hit ctrl+c within 10 seconds…
[warn]
sudo: error in /etc/sudo.conf, line 0 while loading plugin “sudoers_policy”
sudo: /usr/lib/sudo/sudoers.so must be owned by uid 0
sudo: fatal error, unable to load plugins
请问这是什么问题?
貌似没有sudo命令?
你改完密码不要新建用户就重启
麻烦告诉下该怎么操作。
文章里不是有步骤?看不懂中文可以用Google翻译一下。
[warn] Docker is using json-file and not ‘journald’ as the logging driver, this is not supported.
[info] Creating NetworkManager configuration
提示这个然后退出,请问下这是什么没配置好吗?
/opt/下有手动安装脚本
手动用脚本安装最后还是提示这个,要修改什么配置吗?
U盘被安卓修改了权限,sudo就会提示不安全报错。
大佬照顾一下小小白,多说一下怎么解决?目前试了几次,最后安装完都提示这个。然后开机提示:
rc.local[1375]:warning:error loading config file: .dockercfg: $HOME is not defined
started Docker application container engine.
rc.local[1375]:warning:error loading config file: .dockercfg: $HOME is not defined
stopping Avahi mDNS/DNS-SD Stack…
stopped Avahi mDNS/DNS-SD Stack…
starting Avahi mDNS/DNS-SD Stack…
started Avahi mDNS/DNS-SD Stack…
rc.local[1375]: RTNETLINK answers:file exists
rc.local[1375]:Error: Nexthop has invalid gateway
rc.local[1375]:warning:error loading config file: .dockercfg: $HOME is not defined
rc.local[1375]:warning:error loading config file: .dockercfg: $HOME is not defined
[FAILED] Failed to start /etc/rc.local Compatibility.
我也是一样。
运行docker info得到的信息是:
Server:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 19.03.9
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 8fba4e9a7d01810a393d5d25a3621dc101981175
runc version: dc9208a3303feef5b3839f4323d9beb36df0a9dd
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 5.3.0-aml-g12
Operating System: Debian GNU/Linux 10 (buster)
OSType: linux
Architecture: aarch64
CPUs: 4
Total Memory: 1.763GiB
Name: itcommander
ID: CAZF:UYR5:2KHJ:MSOS:XMI5:HMTK:IUXY:YQ2J:T4GP:J35A:XQNA:QUM6
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Registry Mirrors:
http://registry.docker-cn.com/
http://docker.mirrors.ustc.edu.cn/
http://hub-mirror.c.163.com/
Live Restore Enabled: false
难道每个人装的docker版本还不一样么?
密码的确不对,我登录为
itcommander.local
1234
求博主解答
这个安装固件和https://sumju.net/?p=1268 里面的这个有什么区别吗?搞不懂
用这个,这个新
感谢大佬回复,按照其他的评论在opt里面找到安装脚本,期待可以使用。我原来安装了旧的版本,其他功能都有,就是8123打不开,好像是frontend什么问题,希望这个OK。
多次手动脚本安装,最后都是如下提示:
[warn] Docker is using json-file and not ‘journald’ as the logging driver, this is not supported.
[info] Creating NetworkManager configuration
提示这个然后退出,请问下这是什么没配置好吗?
docker没装对
同样的问题 你怎么解决的
emmc里是安卓,或者是网络屏蔽了GitHub都会失败
[error] Please set machine for aarch64
大神这是什么问题
自动安装吧
就是运行了/opt下手动安装脚本报错的
重装了很多次
开机也是有这个错误
8123端口也进不去
[FAILED] Failed to start /etc/rc.local Compatibility.
emmc里是安卓系统,修改了U盘文件属性造成。
重新格式化U盘?
emmc里不要是安卓系统就可以
./install.sh命令 我都没有用啊
emmc怎么清除?
./install.sh命令,emmc文件不完整报错
不会
更改密码后系统又提示建立新用户,我建立后才输入reboot重启,没影响吧?
试试看就知道了
等到现在,登网页打不开ha,要重新刷入u盘开始么
emmc里是安卓我,或者没有修改默认密码,就会这样。
大佬出个简单的视频教程照顾下小白吧
手动运行opt下的installer后所有内容如下:
containerd installer.sh openwrt
root@itcommander:/opt# ./installer.sh
[warn]
[warn] If you want more control over your own system, run
[warn] Home Assistant as a VM or run Home Assistant Core
[warn] via a Docker container.
[warn]
[warn] If you want to abort, hit ctrl+c within 10 seconds…
[warn]
Hit:1 https://mirrors.tuna.tsinghua.edu.cn/debian buster InRelease
Get:2 https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease [51.9 kB]
Get:3 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports InRelease [46.7 kB]
Get:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InRelease [65.4 kB]
Get:5 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/main armhf Packages.diff/Index [27.8 kB]
Get:6 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/main arm64 Packages.diff/Index [27.8 kB]
Get:7 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/main arm64 Contents (deb).diff/Index [27.9 kB]
Get:8 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/main armhf Contents (deb).diff/Index [27.9 kB]
Get:9 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/main armhf Packages 2021-02-10-0759.42.pdiff [597 B]
Get:10 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/main arm64 Packages 2021-02-10-0759.42.pdiff [597 B]
Get:11 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/main arm64 Contents (deb) 2021-02-10-0759.42.pdiff [260 B]
Get:9 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/main armhf Packages 2021-02-10-0759.42.pdiff [597 B]
Get:11 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/main arm64 Contents (deb) 2021-02-10-0759.42.pdiff [260 B]
Get:10 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/main arm64 Packages 2021-02-10-0759.42.pdiff [597 B]
Get:12 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/main armhf Contents (deb) 2021-02-10-0759.42.pdiff [262 B]
Get:12 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/main armhf Contents (deb) 2021-02-10-0759.42.pdiff [262 B]
Get:13 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates/main arm64 Packages [262 kB]
Get:14 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates/main armhf Packages [261 kB]
Get:15 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates/main Translation-en [142 kB]
Hit:16 https://minio.k-space.ee/armbian/apt buster InRelease
Fetched 942 kB in 9s (99.4 kB/s)
Reading package lists… Done
Reading package lists… Done
Building dependency tree
Reading state information… Done
apparmor-utils is already the newest version (2.13.2-10).
avahi-daemon is already the newest version (0.7-4+b1).
bash is already the newest version (5.0-4).
curl is already the newest version (7.64.0-4+deb10u1).
dbus is already the newest version (1.12.20-0+deb10u1).
jq is already the newest version (1.5+dfsg-2+b1).
software-properties-common is already the newest version (0.96.20.2-2).
0 upgraded, 0 newly installed, 0 to remove and 93 not upgraded.
Reading package lists… Done
Building dependency tree
Reading state information… Done
network-manager is already the newest version (1.14.6-2+deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 93 not upgraded.
Reading package lists… Done
Building dependency tree
Reading state information… Done
bluez is already the newest version (5.50-1.2~deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 93 not upgraded.
[warn] Docker is using json-file and not ‘journald’ as the logging driver, this is not supported.
[info] Creating NetworkManager configuration
到这儿就退出了。
原来已经做过降级,刷入yyf系统。现在yyf系统下,用“adb shell reboot update”命令重启后,系统进入recovery模式,没有直接启动U盘;如果断电重新启动机器,则默认进入YYF系统,也没有从U盘启动。这个应该咋整呀
登网页打不开ha,是不是docker没安装对?
docker端口多少
放了一晚上也没有自动安装上啊
你的问题应该出在,文章里提到的重要事情说三遍。
就是先插入的u盘才上的电,可以进入armbian,但是不自动安装hassio。
那就是网络问题了,估计是GitHub某些域名被屏蔽了
github也能访问,就是速度慢一些。
不一定,GitHub很多域名的
还有解决方案么?
文章里有一部分是重要的事情说三遍,你估计错在这里。
就是先插入的u盘才上的电,可以进入armbian,但是不自动安装hassio。
现在还可以用吗?安装了好几次的没有成功
大陆用户没有科学上网就别试了,浪费时间
成功了
SSH用itcommander.local连接不上,用IP可以连接,另外系统时间是UTC时区,慢8小时,需要修改吗?
root@itcommander:/opt# ./installer.sh
[warn]
[warn] If you want more control over your own system, run
[warn] Home Assistant as a VM or run Home Assistant Core
[warn] via a Docker container.
[warn]
[warn] If you want to abort, hit ctrl+c within 10 seconds…
[warn]
Ign:1 https://mirrors.tuna.tsinghua.edu.cn/debian buster InRelease
Ign:3 https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease
Ign:4 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports InRelease
Ign:5 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InRelease
Err:6 https://mirrors.tuna.tsinghua.edu.cn/debian buster Release
Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 101.6.15.130 443]
Err:7 https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates Release
Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 101.6.15.130 443]
Err:8 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports Release
Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 101.6.15.130 443]
Err:9 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates Release
Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 101.6.15.130 443]
Get:2 http://mirrors.bfsu.edu.cn/armbian buster InRelease [18.3 kB]
Get:10 http://mirrors.bfsu.edu.cn/armbian buster/main arm64 Packages [282 kB]
Get:11 http://mirrors.bfsu.edu.cn/armbian buster/main armhf Packages [248 kB]
Get:12 http://mirrors.bfsu.edu.cn/armbian buster/main armhf Contents (deb) [25.0 MB]
Get:13 http://mirrors.bfsu.edu.cn/armbian buster/main arm64 Contents (deb) [25.8 MB]
Get:14 http://mirrors.bfsu.edu.cn/armbian buster/buster-utils armhf Packages [98.1 kB]
Get:15 http://mirrors.bfsu.edu.cn/armbian buster/buster-utils arm64 Packages [135 kB]
Get:16 http://mirrors.bfsu.edu.cn/armbian buster/buster-utils armhf Contents (deb) [18.7 kB]
Get:17 http://mirrors.bfsu.edu.cn/armbian buster/buster-utils arm64 Contents (deb) [58.4 kB]
Get:18 http://mirrors.bfsu.edu.cn/armbian buster/buster-desktop arm64 Packages [26.1 kB]
Get:19 http://mirrors.bfsu.edu.cn/armbian buster/buster-desktop armhf Packages [27.6 kB]
Get:20 http://mirrors.bfsu.edu.cn/armbian buster/buster-desktop arm64 Contents (deb) [33.6 kB]
Get:21 http://mirrors.bfsu.edu.cn/armbian buster/buster-desktop armhf Contents (deb) [96.8 kB]
Reading package lists… Done
E: The repository ‘https://mirrors.tuna.tsinghua.edu.cn/debian buster Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository ‘https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository ‘https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository ‘https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
这样怎么办呢
failed to start /etc/rc.local compatibility