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. JS学习笔记Day8

    一.内置函数Math 1.Math 1)Math.abs() 求绝对值 2)Math.PI 圆周率 2.求近似值: 1)Math.round() 四舍五入(负数: >0.5 进一 <=0. ...

  2. iframe 自适应高度、父子页面传值、回调

    总结一下最近用iframe遇到的问题与解决办法: 结构:主页面main.html,里面套用iframe.iframe不能出现滚动条,自适应子页面高度.内容多了滚动条是main.html页面的. 1.  ...

  3. mysql中常用的函数

    -- 基本上都是抄的别人整理的 -- 一.数学函数 ABS(x) -- 返回x的绝对值 BIN(x) -- 返回x的二进制(OCT返回八进制,HEX返回十六进制) CEILING(x) -- 返回大于 ...

  4. JGUI源码:鼠标中键滚动再次优化(5)

    //电脑端中键滚动事件 var mousewheel = getBrowserInfo() == "Firefox" ? "DOMMouseScroll" : ...

  5. TestNg和spring3测试报错:Failed to read candidate component class-遁地龙卷风

    java.lang.IllegalStateException:Failed to load ApplicationContext Caused by: org.springframework.bea ...

  6. python 模块 wmi 远程连接 windows 获取配置信息

    测试工具应用: https://ask.csdn.net/questions/247013 wmi连接不上报错问题集 https://blog.csdn.net/xcntime/article/det ...

  7. git知识总结-1.git基础之基本术语

    1.前言 git是一种分布式版本管理工具,本文主要是通过阅读博客中几篇讲述git的优秀文章,并对文章进行整理.提炼总结得出一份git的说明文档. 本文档介绍了git的基本原理及常用操作,目标是通过阅读 ...

  8. k64 datasheet学习笔记26--Oscillator (OSC)

    1.前言 OSC模块是一个晶体振荡器. 该模块使用晶体或谐振器与外部连接,为MCU产生一个参考时钟. 主要为下图红色框住的部分 2.特性和模式 Supports 32 kHz crystals (Lo ...

  9. ASP.NET Web API系列教程(目录)(转)

    注:微软随ASP.NET MVC 4一起还发布了一个框架,叫做ASP.NET Web API.这是一个用来在.NET平台上建立HTTP服务的Web API框架,是微软的又一项令人振奋的技术.目前,国内 ...

  10. 【原创】大叔问题定位分享(25)ambari metrics collector内置standalone hbase启动失败

    ambari metrics collector内置hbase目录位于 /usr/lib/ams-hbase 配置位于 /etc/ams-hbase/conf 通过ruby启动 /usr/lib/am ...