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. PHP-max_execution_time与fpm.request_terminate_timeout介绍

    前段时间一位同事跟我说php脚本超时时间以fpm配置优先.经过自己测试后,其实不然,前面的观点只是在某些情况下成立. php脚本超时时间可以在php.ini的max_execution_time和fp ...

  2. mongodb3.6集群搭建:分片+副本集

    mongodb是最常用的noSql数据库,在数据库排名中已经上升到了前五.这篇文章介绍如何搭建高可用的mongodb(分片+副本)集群. 在搭建集群之前,需要首先了解几个概念:路由,分片.副本集.配置 ...

  3. Spark Java API 之 CountVectorizer

    Spark Java API 之 CountVectorizer 由于在Spark中文本处理与分析的一些机器学习算法的输入并不是文本数据,而是数值型向量.因此,需要进行转换.而将文本数据转换成数值型的 ...

  4. [物理学与PDEs]第2章习题9 粘性流体动能的衰减

    设 $\Omega\subset {\bf R}^3$ 为有界域, ${\bf u}$ 为 Navier-Stokes 方程组 (3. 4)-(3. 5) 满足边界条件 (3. 7) 的解, 其中体积 ...

  5. fetch 的控制器和观察者

    因为受 cancelable promise 的拖延,fetch 一直没有传统的 XHR 所拥有的 abort() 和 onprogress 功能,去年年底 cancelable promise 草案 ...

  6. 6.linux安装tomcat

    1.下载安装包 https://tomcat.apache.org/download-80.cgi       2.用 WinSCP 将本地的安装包 上传到 linux 服务器中   3.解压安装包( ...

  7. 项目改bug期间总结

    kotlin中使用labda 表到时注意参数,另外setOnClickListener() 和 setOnClickListener{} 差别很大的,使用要细心, 因为这个问题拿了大半天闷, 最后还是 ...

  8. JSP起源

    JSP起源: 在很多动态网页中,绝大部分内容都是固定不变的,只有局部内容需要动态产生和改变. 如果使用Servlet程序来输出只有局部内容需要动态改变的网页,其中所有的静态内容也需要程序员用Java程 ...

  9. python常用校验方法总结

    0x00 校验一个字符串是否是合法IP地址 ipv4举例:利用正则表达式来匹配 def checkip(ip): p = re.compile('^((25[0-5]|2[0-4]\d|[01]?\d ...

  10. linux服务器安装Mysql后,只能看到information_schema/test这两个库,无法修改密码

    参考链接:https://www.cnblogs.com/ThinkVenus/p/7670722.html 问题背景:登录mysql失败,密码错误,由此想到需要更改密码 然而,进入数据库后,只能看到 ...