2017-09-05 00:53:02

https://home-assistant.io/docs/installation/raspberry-pi/

已经安装步骤安装了带桌面的树莓派系统,在SD卡的根目录新建文件SSH.txt,然后删除后缀名.txt,将恶意SD插入树莓派,启动就可以使用SSH命令登录了。

sudo apt-get update

sudo apt-get upgrade -y

sudo apt-get install python3 python3-venv python3-pip

Reading package lists... Done
Building dependency tree
Reading state information... Done
python3 is already the newest version (3.5.3-1).
python3-pip is already the newest version (9.0.1-2).
python3-venv is already the newest version (3.5.3-1).
python3-venv set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

 

sudo useradd -rm homeassistant

$ cd /srv
$ sudo mkdir homeassistant
$ sudo chown homeassistant:homeassistant homeassistant

chown [-R] [用户名称:组名称] [文件或目录]

$ sudo su -s /bin/bash homeassistant
$ cd /srv/homeassistant
$ python3 -m venv .
$ source bin/activate

 

(homeassistant) homeassistant@raspberrypi:/srv/homeassistant $ pip3 install home assistant
Collecting homeassistant
Downloading homeassistant-0.52.1-py2.py3-none-any.whl (7.3MB)
100% |████████████████████████████████| 7.4MB 7.1kB/s
Collecting aiohttp==2.2.5 (from homeassistant)
Downloading aiohttp-2.2.5.tar.gz (788kB)
100% |████████████████████████████████| 798kB 11kB/s
Collecting pytz>=2017.02 (from homeassistant)
Downloading pytz-2017.2-py2.py3-none-any.whl (484kB)
100% |████████████████████████████████| 491kB 7.0kB/s
Collecting pyyaml<4,>=3.11 (from homeassistant)
Downloading PyYAML-3.12.tar.gz (253kB)
100% |████████████████████████████████| 256kB 9.4kB/s
Collecting async-timeout==1.2.1 (from homeassistant)
Downloading async_timeout-1.2.1-py3-none-any.whl
Collecting jinja2>=2.9.5 (from homeassistant)
Downloading Jinja2-2.9.6-py2.py3-none-any.whl (340kB) 100% |████████████████████████████████| 348kB 18kB/sCollecting chardet==3.0.4 (from homeassistant) Downloading chardet-3.0.4-py2.py3-none-any.whl (133kB) 100% |████████████████████████████████| 143kB 11kB/sCollecting voluptuous==0.10.5 (from homeassistant) Downloading voluptuous-0.10.5.tar.gz (41kB) 100% |████████████████████████████████| 51kB 17kB/sCollecting astral==1.4 (from homeassistant) Downloading astral-1.4-py2.py3-none-any.whlCollecting requests==2.14.2 (from homeassistant) Downloading requests-2.14.2-py2.py3-none-any.whl (560kB) 100% |████████████████████████████████| 563kB 10kB/sCollecting typing<4,>=3 (from homeassistant) Downloading typing-3.6.2-py3-none-any.whlRequirement already satisfied: pip>=8.0.3 in ./lib/python3.5/site-packages (from homeassistant)Collecting multidict>=2.1.4 (from aiohttp==2.2.5->homeassistant) Downloading multidict-3.1.3.tar.gz (118kB) 100% |████████████████████████████████| 122kB 9.3kB/sCollecting yarl>=0.11 (from aiohttp==2.2.5->homeassistant) Downloading yarl-0.12.0.tar.gz (132kB) 100% |████████████████████████████████| 133kB 18kB/sCollecting MarkupSafe>=0.23 (from jinja2>=2.9.5->homeassistant) Downloading MarkupSafe-1.0.tar.gzBuilding wheels for collected packages: aiohttp, pyyaml, voluptuous, multidict, yarl,MarkupSafeRunning setup.py bdist_wheel for aiohttp ... errorComplete output from command /srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-20h68syg/aiohttp/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpa7vgh_ubpip-wheel---python-tag cp35: usage:-c [global_opts] cmd1 [cmd1_opts][cmd2 [cmd2_opts]...]or:-c --help [cmd1 cmd2 ...]or:-c --help-commandsor:-c cmd --help error: invalid command 'bdist_wheel'----------------------------------------Failed building wheel for aiohttpRunning setup.py clean for aiohttpRunning setup.py bdist_wheel for pyyaml ... errorComplete output from command /srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-20h68syg/pyyaml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpsx8fngxzpip-wheel---python-tag cp35: usage:-c [global_opts] cmd1 [cmd1_opts][cmd2 [cmd2_opts]...]or:-c --help [cmd1 cmd2 ...]or:-c --help-commandsor:-c cmd --help error: invalid command 'bdist_wheel'----------------------------------------Failed building wheel for pyyamlRunning setup.py clean for pyyamlRunning setup.py bdist_wheel for voluptuous ... errorComplete output from command /srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-20h68syg/voluptuous/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpit2li645pip-wheel---python-tag cp35: WARNING:Couldnot locate pandoc,usingMarkdown long_description. usage:-c [global_opts] cmd1 [cmd1_opts][cmd2 [cmd2_opts]...]or:-c --help [cmd1 cmd2 ...]or:-c --help-commandsor:-c cmd --help error: invalid command 'bdist_wheel'----------------------------------------Failed building wheel for voluptuousRunning setup.py clean for voluptuousRunning setup.py bdist_wheel for multidict ... errorComplete output from command /srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-20h68syg/multidict/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpvknq293hpip-wheel---python-tag cp35: usage:-c [global_opts] cmd1 [cmd1_opts][cmd2 [cmd2_opts]...]or:-c --help [cmd1 cmd2 ...]or:-c --help-commandsor:-c cmd --help error: invalid command 'bdist_wheel'----------------------------------------Failed building wheel for multidictRunning setup.py clean for multidictRunning setup.py bdist_wheel for yarl ... errorComplete output from command /srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-20h68syg/yarl/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmp4sfjw_wbpip-wheel---python-tag cp35: usage:-c [global_opts] cmd1 [cmd1_opts][cmd2 [cmd2_opts]...]or:-c --help [cmd1 cmd2 ...]or:-c --help-commandsor:-c cmd --help error: invalid command 'bdist_wheel'----------------------------------------Failed building wheel for yarlRunning setup.py clean for yarlRunning setup.py bdist_wheel forMarkupSafe... errorComplete output from command /srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-20h68syg/MarkupSafe/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmp8zijlp_zpip-wheel---python-tag cp35: usage:-c [global_opts] cmd1 [cmd1_opts][cmd2 [cmd2_opts]...]or:-c --help [cmd1 cmd2 ...]or:-c --help-commandsor:-c cmd --help error: invalid command 'bdist_wheel'----------------------------------------Failed building wheel forMarkupSafeRunning setup.py clean forMarkupSafeFailed to build aiohttp pyyaml voluptuous multidict yarl MarkupSafeInstalling collected packages: chardet, multidict, async-timeout, yarl, aiohttp, pytz, pyyaml,MarkupSafe, jinja2, voluptuous, astral, requests, typing, homeassistantRunning setup.py install for multidict ...doneRunning setup.py install for yarl ...doneRunning setup.py install for aiohttp ...doneRunning setup.py install for pyyaml ...doneRunning setup.py install forMarkupSafe...doneRunning setup.py install for voluptuous ...doneSuccessfully installed MarkupSafe-1.0 aiohttp-2.2.5 astral-1.4 async-timeout-1.2.1 chardet-3.0.4 homeassistant-0.52.1 jinja2-2.9.6 multidict-3.1.3 pytz-2017.2 pyyaml-3.12 requests-2.14.2 typing-3.6.2 voluptuous-0.10.5 yarl-0.12.0(homeassistant) homeassistant@raspberrypi:/srv/homeassistant $

 

(homeassistant) $ hass

一堆提示符中间包含这个

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Hello, and welcome to Home Assistant!

We'll hope that we can make all your dreams come true.

Here are some resources to get started:

- Configuring Home Assistant:
https://home-assistant.io/getting-started/configuration/

- Available components:
https://home-assistant.io/components/

- Troubleshooting your configuration:
https://home-assistant.io/getting-started/troubleshooting-configuration/

- Getting help:
https://home-assistant.io/help/

This message is generated by the introduction component. You can
disable it in configuration.yaml.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

网页无法打开

 
接着安装samba看看
少了一个sqlalchemy依赖

(homeassistant) homeassistant@raspberrypi:/srv/homeassistant $ pip3 install sqlalchemy

13树莓派手动安装Home Assistant的更多相关文章

  1. 树莓派虚拟环境手动安装HA

    树莓派手动安装 https://www.home-assistant.io/docs/installation/raspberry-pi/ sudo apt-get update sudo apt-g ...

  2. rpm 更新/升级 软件包(libGL-devel手动安装过程)

    rpm参数解释 -i 安装 -h 解压rpm的时候打印50个斜条 (#) -v 显示详细信息 升级命令rpm -Uvh rpm文件名 参数解释 -U 升级 -h 解压rpm的时候打印50个斜条 (#) ...

  3. VM的Linux CentOS系统的VMTools的手动安装

    VM的Linux CentOS系统的VMTools的手动安装 一是没时间安装,另外是一直用的是VM的绿色版,里面没有Linux.iso 文件 今天晚上安装上了 linux 的vmtools ,再也不用 ...

  4. 在 Linux 虚拟机中手动安装或升级 VMware Tools

    对于 Linux 虚拟机,您可以使用命令行工具手动安装或升级 VMware Tools. 本次Linux 虚拟机为CentOS6.5 先决条件开启虚拟机.确认客户机操作系统正在运行.由于 VMware ...

  5. linux手动安装sbt过程

    ubuntu14 手动安装sbt 参见官网配置说明http://www.scala-sbt.org/release/tutorial/Manual-Installation.html 1.下载sbt通 ...

  6. OpenSUSE 13.1上安装StrongSwan

    结果: 1)iOS 7.1设备能够拨IPSec VPN到StrongSwan电脑上面来 - Connect to VPN 2)iOS 设备浏览器能够訪问StrongSwan VPN所在的内网地址服务器 ...

  7. 树莓派4B安装Raspbian系统及配置

    2019/11/11, 树莓派4B, Raspbian Buster 摘要:给树莓派4B安装系统及基础配置 树莓派实验室参考文档 准备工具 树莓派4B硬件 SD卡格式化工具 SD Formatter ...

  8. MySQL CentOS7 手动安装

    手动安装MySQL的目的: 1.一个服务器上可以同时装多个版本,甚至相同版本MySQL的多个实例,这种需求很常见: 2.一次初始化和配置后,可以快速复制到本服务器或其他服务器,及封装为初始MySQL的 ...

  9. PyCharm虚拟环(Project Interpreter)手动安装第三方包图解教程

    PyCharm虚拟环(Project Interpreter)手动安装第三方包图解教程 an鑫_wolfxin2010 关注 2018.03.13 21:58* 字数 313 阅读 3782评论 1喜 ...

随机推荐

  1. Python并发编程之IO模型

    目录 IO模型介绍 阻塞IO(blocking IO) 非阻塞IO(non-blocking IO) IO多路复用 异步IO IO模型比较分析 selectors模块 一.IO模型介绍 Stevens ...

  2. 使用Eclipse创建动态的web工程

    使用Eclipse创建动态的web工程 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 一.修改工作区的编码 1>.点击Window选择Preferences 2>.将默 ...

  3. DUMP4 企业级电商项目 —— 对接支付宝扫码支付

    延展 <谈谈微信支付曝出的漏洞> [联调 DEMO下载地址]https://docs.open.alipay.com/194/105201/ [内置 一份 说明文档可做参考] [impor ...

  4. mvc 在弹出框中实现文件下载

    var myParent = parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent; ...

  5. python的wxpython包

    1,wxpython包简介 图形用户界面(Graphical User Interface,简称 GUI,又称图形用户接口)是指采用图形方式显示的计算机操作用户界面. wxpython这个包就可以被用 ...

  6. python 的生成器,yield的使用

    生成器 :含有yield 的关键字的函数就是一个生成器. 生成器的运行原理:调用函数时,当函数运行到yield时停止,返回值,下次调用时,就从这次的yield出继续执行,局部变量还是使用这次变量的值. ...

  7. ASP.NET Core学习之五 EntityFrameworkCore

    目的:运用EntityFrameworkCore ,使用codefirst开发 一.创建web项目 创建一个不进行身份验证的   ASP.NET Core Web Application (.NET ...

  8. zabbix使用自动发现监控esxi的磁盘存储storage

    zabbix使用自动发现监控esxi的磁盘存储storage 在任意一台可以访问vcenter的zabbix-agent服务器上添加exsi的磁盘监控模板即可 创建模板过程: custom.esxi. ...

  9. Python 爬虫 当当网图书 scrapy

    目标站点需求分析 获取当当网每个图书名字和评论数 涉及的库 scrapy,mysql 获取解析单页源码 保存到数据库中 结果

  10. RSF 分布式 RPC 服务框架的分层设计

    RSF 是个什么东西? 一个高可用.高性能.轻量级的分布式服务框架.支持容灾.负载均衡.集群.一个典型的应用场景是,将同一个服务部署在多个Server上提供 request.response 消息通知 ...