『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
楼主: jyz_0501

[基础教程] 【六神分享】Raspbian无人值守 一键安装Docker+Hassio 支持3B+

  [复制链接]

175

主题

2967

帖子

7606

积分

超级版主

我就是六神

Rank: 8Rank: 8

积分
7606
金钱
4614
HASS币
398

活跃会员教程狂人灌水之王

QQ
 楼主| 发表于 2018-12-19 17:53:31 | 显示全部楼层
本帖最后由 jyz_0501 于 2018-12-19 17:54 编辑
zxh 发表于 2018-12-17 19:15
大神你好,那我无法在电脑中查看到共享的文件夹呀?还需要怎么配置呢? ...

如果你电脑的工作域是workgroup的话,可以在网上邻居里发现samba的共享目录,如果不是需要改变一下samba的配置

可以参考脚本中的

echo "`date +%H:%M:%S`>>>>>>>>>>安装Samba Git Screen Net-tools Nmap工具软件,配置Samba共享目录<<<<<<<<<<"
sudo apt-get install -y samba screen git net-tools nmap
echo "
[global]
netbios name = raspberrypi
server string = The Pi File Center
workgroup = WORKGROUP
hosts allow =
remote announce =
remote browse sync =
create mask = 0777
directory mask = 0777
force user = root
force create mode = 0777
force directory mode = 0777
hosts allow = 

[Home Assistant] 
path = /usr/share/hassio
comment = No comment
browsable = yes
read only = no
valid users =
writable = yes
guest ok = yes
public = yes


[Pi Home] 
path = /
comment = No comment
browsable = yes
read only = no
valid users = 
writable = yes
guest ok = yes
public = yes


[Pi Share] 
path = /home/pi
comment = No comment
browsable = yes
read only = no
valid users = 
writable = yes
guest ok = yes
public = yes
" >>/etc/samba/smb.conf

sudo nano /etc/samba/smb.conf 这个 然后改一下 workgroup = WORKGROUP
之后 重启samba
sudo service smbd restart

回复

使用道具 举报

0

主题

45

帖子

304

积分

严重灌水用户

积分
304
金钱
259
HASS币
0
发表于 2018-12-20 12:49:54 | 显示全部楼层
jyz_0501 发表于 2018-12-19 17:53
如果你电脑的工作域是workgroup的话,可以在网上邻居里发现samba的共享目录,如果不是需要改变一下samba的 ...

十分感谢
回复

使用道具 举报

0

主题

45

帖子

304

积分

严重灌水用户

积分
304
金钱
259
HASS币
0
发表于 2018-12-20 12:53:20 | 显示全部楼层
jyz_0501 发表于 2018-12-19 17:53
如果你电脑的工作域是workgroup的话,可以在网上邻居里发现samba的共享目录,如果不是需要改变一下samba的 ...

十分感谢!!!^ _ ^
回复

使用道具 举报

0

主题

10

帖子

64

积分

注册会员

Rank: 2

积分
64
金钱
54
HASS币
0
发表于 2018-12-23 18:20:27 | 显示全部楼层
为什么我做到最后一步,等待中,按下回车没有用,然后就卡在那里了,是不是不需要打echo "`date +%H:%M:%S`>>>>>>>>>>请用浏览器打开IP:9010,完成Portainer的配置"
read -p "等待中,按 回车键 进行下一步"
echo "`date +%H:%M:%S`>>>>>>>>>>输出Hassio日志<<<<<<<<<<"
sudo journalctl -fu hassio-supervisor.service这步
回复

使用道具 举报

0

主题

10

帖子

64

积分

注册会员

Rank: 2

积分
64
金钱
54
HASS币
0
发表于 2018-12-23 18:55:00 | 显示全部楼层
stoger 发表于 2018-4-21 19:45
这个是刷好系统,连接上路由就一步一步按照教程操作,一直到成功显示后就登陆路由看的时间,应该是差不多 ...

您好,您是全部将附件的代码都复制下来了,还是有取舍的
回复

使用道具 举报

0

主题

10

帖子

64

积分

注册会员

Rank: 2

积分
64
金钱
54
HASS币
0
发表于 2018-12-23 22:14:31 | 显示全部楼层
请问大哥,为什么我做到最后一步它就是不读取日记
回复

使用道具 举报

0

主题

10

帖子

64

积分

注册会员

Rank: 2

积分
64
金钱
54
HASS币
0
发表于 2018-12-25 17:39:10 | 显示全部楼层
jyz_0501 发表于 2018-6-23 20:36
sudo journalctl -fu hassio-supervisor.service   

没有日志输出吗??

楼主怎么解决了吗,我没有输出日志
回复

使用道具 举报

0

主题

25

帖子

125

积分

注册会员

Rank: 2

积分
125
金钱
100
HASS币
0
发表于 2019-1-7 18:10:36 | 显示全部楼层
谢谢,我用你的教程安装成功,这个太省事了。
回复

使用道具 举报

0

主题

25

帖子

125

积分

注册会员

Rank: 2

积分
125
金钱
100
HASS币
0
发表于 2019-1-8 02:04:08 | 显示全部楼层
我的是3B版本,不是3B+,可以用吗?
回复

使用道具 举报

0

主题

37

帖子

163

积分

论坛积极会员

积分
163
金钱
125
HASS币
0
发表于 2019-1-11 23:50:59 | 显示全部楼层

15:46:37>>>>>>>>>>添加HTTPS传输软件包以及CA证书<<<<<<<<<<
Reading package lists... Error!
E: Problem parsing dependency 20
E: Error occurred while processing wireshark-dev (NewVersion2)
E: Problem with MergeList /var/lib/apt/lists/mirrors.ustc.edu.cn_raspbian_raspbian_dists_stretch_main_binary-armhf_Packages
E: The package lists or status file could not be parsed or opened.

15:46:44>>>>>>>>>>添加Docker 官方GPG密钥<<<<<<<<<<
OK

15:46:49>>>>>>>>>>添加 Docker CE 软件源<<<<<<<<<<
deb [arch=armhf] https://mirrors.ustc.edu.cn/docker-ce/linux/raspbian     stretch     stable

15:46:52>>>>>>>>>>更新 apt 软件包缓存并安装Docker CE<<<<<<<<<<
Hit:1 http://mirrors.ustc.edu.cn/raspbian/raspbian stretch InRelease
Hit:2 http://mirrors.aliyun.com/raspbian/raspbian stretch InRelease
Get:3 https://mirrors.ustc.edu.cn/docker-ce/linux/raspbian stretch InRelease [31.1 kB]
Get:4 https://mirrors.ustc.edu.cn/docker-ce/linux/raspbian stretch/stable armhf Packages [4,354 B]
Fetched 35.4 kB in 2s (13.4 kB/s)
Reading package lists... Error!
E: Problem parsing dependency 20
E: Error occurred while processing wireshark-dev (NewVersion2)
E: Problem with MergeList /var/lib/apt/lists/mirrors.ustc.edu.cn_raspbian_raspbian_dists_stretch_main_binary-armhf_Packages
E: The package lists or status file could not be parsed or opened.
Reading package lists... Error!
E: Problem parsing dependency 20
E: Error occurred while processing wireshark-dev (NewVersion2)
E: Problem with MergeList /var/lib/apt/lists/mirrors.ustc.edu.cn_raspbian_raspbian_dists_stretch_main_binary-armhf_Packages
E: The package lists or status file could not be parsed or opened.

15:47:05>>>>>>>>>>将当前用户添加到 Docker 组<<<<<<<<<<

15:47:06>>>>>>>>>>创建 DockerCE 仓库镜像<<<<<<<<<<
{
  "registry-mirrors": ["https://registry.docker-cn.com"]
}

15:47:09>>>>>>>>>>设置Docker自启动 重启Docker<<<<<<<<<<
Failed to restart docker.service: Unit docker.service not found.
[global]
trusted-host=mirrors.aliyun.com
index-url=http://mirrors.aliyun.com/pypi/simple
15:47:15>>>>>>>>>>获取最新源列表并更新软件<<<<<<<<<<
Hit:1 http://mirrors.ustc.edu.cn/raspbian/raspbian stretch InRelease
Hit:2 http://mirrors.aliyun.com/raspbian/raspbian stretch InRelease
Hit:3 https://mirrors.ustc.edu.cn/docker-ce/linux/raspbian stretch InRelease
Reading package lists... Error!
E: Problem parsing dependency 20
E: Error occurred while processing wireshark-dev (NewVersion2)
E: Problem with MergeList /var/lib/apt/lists/mirrors.ustc.edu.cn_raspbian_raspbian_dists_stretch_main_binary-armhf_Packages
E: The package lists or status file could not be parsed or opened.
Reading package lists... Error!
E: Problem parsing dependency 20
E: Error occurred while processing wireshark-dev (NewVersion2)
E: Problem with MergeList /var/lib/apt/lists/mirrors.ustc.edu.cn_raspbian_raspbian_dists_stretch_main_binary-armhf_Packages
E: The package lists or status file could not be parsed or opened.
Reading package lists... Error!
E: Problem parsing dependency 20
E: Error occurred while processing wireshark-dev (NewVersion2)
E: Problem with MergeList /var/lib/apt/lists/mirrors.ustc.edu.cn_raspbian_raspbian_dists_stretch_main_binary-armhf_Packages
E: The package lists or status file could not be parsed or opened.

15:47:36>>>>>>>>>>安装bash socat jq支持库软件<<<<<<<<<<
Reading package lists... Error!
E: Problem parsing dependency 20
E: Error occurred while processing wireshark-dev (NewVersion2)
E: Problem with MergeList /var/lib/apt/lists/mirrors.ustc.edu.cn_raspbian_raspbian_dists_stretch_main_binary-armhf_Packages
E: The package lists or status file could not be parsed or opened.

15:47:40>>>>>>>>>>安装Samba Git Screen Net-tools Nmap工具软件,配置Samba共享目录<<<<<<<<<<
Reading package lists... Error!
E: Problem parsing dependency 20
E: Error occurred while processing wireshark-dev (NewVersion2)
E: Problem with MergeList /var/lib/apt/lists/mirrors.ustc.edu.cn_raspbian_raspbian_dists_stretch_main_binary-armhf_Packages
E: The package lists or status file could not be parsed or opened.
15:47:45>>>>>>>>>>等待重启Samba<<<<<<<<<<
Failed to restart smbd.service: Unit smbd.service not found.

15:47:53>>>>>>>>>>拉取Docker可视化工具(portainer)<<<<<<<<<<
./docker_hassio.sh: line 176: docker: command not found
15:47:53>>>>>>>>>>配置Docker可视化工具到9010端口<<<<<<<<<<
./docker_hassio.sh: line 178: docker: command not found

15:47:53>>>>>>>>>>拉取 raspberrypi3-homeassistant镜像<<<<<<<<<<
./docker_hassio.sh: line 183: docker: command not found

15:47:53>>>>>>>>>>拉取 armhf-hassio-supervisor镜像<<<<<<<<<<
./docker_hassio.sh: line 187: docker: command not found
15:47:53>>>>>>>>>>使用root用户安装 Hass.io<<<<<<<<<<
[Error] Please install docker first

15:47:56>>>>>>>>>>安装完成,配置完Portainer后,输出Hassio日志<<<<<<<<<<
15:47:56>>>>>>>>>>请用浏览器打开IP:9010,完成Portainer的配置
等待中,按 回车键 进行下一步



怎么这么多错误啊?
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-24 08:51 , Processed in 0.275283 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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