16重新安装HA0.63
2018-02-24 14:17:46
https://home-assistant.io/docs/installation/raspberry-pi/
首先安装2017-11-29-raspbian-stretch树莓派镜像到SD卡,步骤如下:
下载镜像文件,转到网页https://www.raspberrypi.org/downloads/raspbian/,下载“Raspbian Stretch with desktop”的zip文件。
安装镜像文件到SD卡,转到https://www.raspberrypi.org/documentation/installation/installing-images/README.md,按照步骤安装。
下载镜像写入工具Etcher,转到网页https://etcher.io/下载当前操作系统指定版本的Etcher(我使用的是Etcher-Portable-1.3.1-x64),双击Etcher-Portable-1.3.1-x64.exe,弹出的截面点击“”,选择已经下载好的镜像文件,最后点击“Flash”按钮,等待镜像写入和校验完成后自动弹出读卡器。
运行用户run as为pi
python3 --version
更新整个系统到最新版本
pi@raspberrypi:~ $ sudo apt-get update
命中:1 http://mirrors.aliyun.com/raspbian/raspbian stretch InRelease
命中:2 http://archive.raspberrypi.org/debian stretch InRelease
正在读取软件包列表... 完成
pi@raspberrypi:~ $ sudo apt-get upgrade
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
正在计算更新... 完成
下列软件包的版本将保持不变:
wolfram-engine
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 1 个软件包未被升级。
建立虚拟环境If you’re on a Debian based system, you will need to install Python virtual environment support using
pi@raspberrypi:~ $ sudo apt-get install python3-pip python3-venv
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
python3-venv 已经是最新版 (3.5.3-1)。
python3-venv 已设置为手动安装。
python3-pip 已经是最新版 (9.0.1-2+rpt1)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 1 个软件包未被升级。
Create a virtual environment in your current directory:
pi@raspberrypi:~ $ python3 -m venv homeassistant
Open the virtual environment:
pi@raspberrypi:~ $ cd homeassistant
Activate the virtual environment:
pi@raspberrypi:~/homeassistant $ source bin/activate
Install wheel:
(homeassistant) pi@raspberrypi:~/homeassistant $ python3 -m pip install wheel
Collecting wheel
Downloading wheel-0.30.0-py2.py3-none-any.whl (49kB)
100% |████████████████████████████████| 51kB 40kB/s
Installing collected packages: wheel
Successfully installed wheel-0.30.0
Install Home Assistant:
(homeassistant) pi@raspberrypi:~/homeassistant $ python3 -m pip install homeassistant
Collecting homeassistant
Using cached homeassistant-0.63.3-py2.py3-none-any.whl
Requirement already satisfied: pip>=8.0.3 in ./lib/python3.5/site-packages (from homeassistant)
Collecting chardet==3.0.4 (from homeassistant)
Downloading chardet-3.0.4-py2.py3-none-any.whl (133kB)
100% |████████████████████████████████| 143kB 50kB/s
Collecting attrs==17.4.0 (from homeassistant)
Using cached attrs-17.4.0-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from homeassistant)
Using cached certifi-2018.1.18-py2.py3-none-any.whl
Collecting jinja2>=2.10 (from homeassistant)
Downloading Jinja2-2.10-py2.py3-none-any.whl (126kB)
100% |████████████████████████████████| 133kB 30kB/s
Collecting pytz>=2017.02 (from homeassistant)
Downloading pytz-2018.3-py2.py3-none-any.whl (509kB)
100% |████████████████████████████████| 512kB 30kB/s
Collecting yarl==1.1.0 (from homeassistant)
Downloading https://www.piwheels.hostedpi.com/simple/yarl/yarl-1.1.0-cp35-cp35m-linux_armv7l.whl (227kB)
100% |████████████████████████████████| 235kB 693kB/s
Collecting async-timeout==2.0.0 (from homeassistant)
Downloading async_timeout-2.0.0-py3-none-any.whl
Collecting voluptuous==0.10.5 (from homeassistant)
Using cached https://www.piwheels.hostedpi.com/simple/voluptuous/voluptuous-0.10.5-py3-none-any.whl
Collecting pyyaml<4,>=3.11 (from homeassistant)
Using cached https://www.piwheels.hostedpi.com/simple/pyyaml/PyYAML-3.12-cp35-cp35m-linux_armv7l.whl
Collecting requests==2.18.4 (from homeassistant)
Downloading requests-2.18.4-py2.py3-none-any.whl (88kB)
100% |████████████████████████████████| 92kB 47kB/s
Collecting aiohttp==2.3.10 (from homeassistant)
Using cached https://www.piwheels.hostedpi.com/simple/aiohttp/aiohttp-2.3.10-cp35-cp35m-linux_armv7l.whl
Collecting astral==1.5 (from homeassistant)
Downloading astral-1.5-py2.py3-none-any.whl
Collecting typing<4,>=3 (from homeassistant)
Downloading typing-3.6.4-py3-none-any.whl
Collecting MarkupSafe>=0.23 (from jinja2>=2.10->homeassistant)
Downloading https://www.piwheels.hostedpi.com/simple/markupsafe/MarkupSafe-1.0-cp35-cp35m-linux_armv7l.whl
Collecting multidict>=4.0 (from yarl==1.1.0->homeassistant)
Downloading https://www.piwheels.hostedpi.com/simple/multidict/multidict-4.1.0-cp35-cp35m-linux_armv7l.whl (444kB)
100% |████████████████████████████████| 450kB 147kB/s
Collecting idna>=2.0 (from yarl==1.1.0->homeassistant)
Downloading idna-2.6-py2.py3-none-any.whl (56kB)
100% |████████████████████████████████| 61kB 17kB/s
Collecting urllib3<1.23,>=1.21.1 (from requests==2.18.4->homeassistant)
Downloading urllib3-1.22-py2.py3-none-any.whl (132kB)
100% |████████████████████████████████| 133kB 35kB/s
Collecting idna-ssl>=1.0.0 (from aiohttp==2.3.10->homeassistant)
Downloading https://www.piwheels.hostedpi.com/simple/idna-ssl/idna_ssl-1.0.0-py3-none-any.whl
Installing collected packages: chardet, attrs, certifi, MarkupSafe, jinja2, pytz, multidict, idna, yarl, async-timeout, voluptuous, pyyaml, urllib3, requests, idna-ssl, aiohttp, astral, typing, homeassistant
Successfully installed MarkupSafe-1.0 aiohttp-2.3.10 astral-1.5 async-timeout-2.0.0 attrs-17.4.0 certifi-2018.1.18 chardet-3.0.4 homeassistant-0.63.3 idna-2.6 idna-ssl-1.0.0 jinja2-2.10 multidict-4.1.0 pytz-2018.3 pyyaml-3.12 requests-2.18.4 typing-3.6.4 urllib3-1.22 voluptuous-0.10.5 yarl-1.1.0
16重新安装HA0.63的更多相关文章
- Unable to perform unmarshalling at line number 16 and column 63 in RESOURCE hibernate.cfg.xml. Message: cvc-elt.1: 找不到元素 'hibernate-configuration' 的声明。
七月 02, 2017 4:32:37 下午 org.hibernate.Version logVersionINFO: HHH000412: Hibernate Core {5.2.10.Final ...
- Linux文件系统深度讨论【转】
本文旨在对Linux文件系统概念高级工作方式进行的讨论,不是对特定文件系统类型(如EXT4)如何工作的低级描述,也不是对文件系统命令的教程. 每台通用计算机都需要将各种类型的数据存储在硬盘驱动器( ...
- jpeg huffman coding table
亮度DC系数的取值范围及序号: 序号(size) 取值范围 0 0 1 - ...
- TIMIT语音库
TIMIT语音库有着准确的音素标注,因此可以应用于语音分割性能评价,同时该数据库又含有几百个说话人语音,所以也是评价说话人识别常用的权威语音库,但该语音库的商业用途是要花钱买的.下面的资源来自与MIT ...
- RFID 读写器 Reader Writer Cloner
RFID读写器的工作原理 RFID的数据采集以读写器为主导,RFID读写器是一种通过无线通信,实现对标签识别和内存数据的读出和写入操作的装置. 读写器又称为阅读器或读头(Reader).查询器(Int ...
- mac安装最新版本的git
文章转载自我的个人博客 http://www.iwangzheng.com/ 1.下载一个安装包哦 在mac下安装git,首先下载一个git安装包,这里我选的是git-1.9.3.tar , 因为这是 ...
- QQ2013登录报文简单分析(不可用于非法用途)
[NO.1 2013-05-08 00:31:16 046 SEND 115字节]02 31 03 08 25 27 B5 88 6F 91 D2 03 00 00 00 0101 01 00 00 ...
- Qt GUI@学习日志
day 1: Qt中类: 理解一个类最好还是从其类代码实现上看. 由此图可看出需要好好研究那几个重要的类:Qt/QEvent/QObject/QWidget/. QApplication: (比较复杂 ...
- Linux下做软RAID
1.查看有多少块硬盘可用#fdisk -l嗯,一般而言,留下系统盘不动,其它的盘如果大小相同的话,统统合起来做一个raid. 2.决定做什么类型的raid.raid-0.raid-1.raid-5?如 ...
随机推荐
- pta编译总结1
打印沙漏 (20 分) 本题要求你写个程序把给定的符号打印成沙漏的形状.例如给定17个“*”,要求按下列格式打印 ***** *** * *** ***** 所谓“沙漏形状”,是指每行输出奇数个符号: ...
- zabbix Server 4.0 部署及之内置item使用案例
zabbix Server 4.0 部署及之内置item使用案例 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 一.zabbix组件架构概述(图片摘自网络) 1>.zabbi ...
- 我对SAP Business One 项目实施的理解
一.什么是SAP: 大家都知道ERP是什么,ERP是企业资源计划管理系统.是指建立在信息技术基础上,集信息技术与先进管理思想于一身,以系统化的管理思想,为企业员工及决策层提供决策手段的管理平台.那么问 ...
- Docker下安装rabbitmq
拉取镜像 docker pull rabbitmq:-management 启动镜像(默认用户名密码),默认guest 用户,密码也是 guest docker run -d --: -p : rab ...
- 微信获取企业token流程
1.获取服务商Accesstoken(每10分钟企业微信会推送一次,两个小时后过期) 2.根据suitid.accesstoken.第三方企业corpid.第三方企业permanentcode,得到第 ...
- [再寄小读者之数学篇](2014-05-23 $\ln x-ax=0$ 有两个根时的估计)
已知函数 $f(x)=\ln x-ax$, 其中 $a$ 为常数. 如果 $f(x)$ 有两个零点 $x_1,x_2$. 试证: $x_1x_2>e^2$. 证明: 由 $$\bex \ln x ...
- [译]Ocelot - Request Aggregation
原文 Aggregate ReRoutes用来组合多个ReRoutes,将它们的响应结果映射到一个响应中返回给客户端. 为了使用Aggregate ReRoutes,你必须像下面的ocelot.jso ...
- bilibili存储型xss (绕过长度限制打乱顺序限制)
在个人空间的我的收藏中可编辑视频收藏的名称,之后尝试写入标签. http://space.bilibili.com/ 发现输出到前端的尖括号被转义了,不过出现了一个json接口,他的Content-T ...
- react中键盘enter事件处理
对于常见的搜索需求业务场景,用户输入完成后,点击enter事件请求数据,要求不提交页面,实现数据局部更新,这需要用到react中的表单Forms. 处理方法: (1)html书写 form标签中去掉a ...
- go语言学习 一
1.变量声明 指定变量类型,声明后若不赋值,使用默认值 根据值自行判定变量类型. 省略var, 注意 :=左侧的变量不应该是已经声明过的,否则会导致编译错误 2.go语言作用域 函数内定义的变量称为局 ...