跳转到内容
主菜单
主菜单
移至侧栏
隐藏
导航
Wiki首页
Domoticz 中文站
Domoticz 论坛
Domoticz Github
随机页面
特殊页面
特殊页面
所有页面
分类
最近更改
Domoticz
搜索
搜索
登录
个人工具
登录
查看“Install.txt”的源代码
页面
讨论
大陆简体
阅读
查看源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
查看源代码
查看历史
常规
链入页面
相关更改
特殊页面
页面信息
←
Install.txt
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
=安装前提= ==Windows== * VS2015 (社区版即可) * boost libraries, you probably have to set the correct include/lib folder in the project properties as I did not bootstrap mine * lua (provided in Domoticz sources): just build it (see lua/src/LuaMSVS/LuaMSVS.sln solution) ==Ubuntu / 树莓派 (wheezy)== <code>sudo apt-get install build-essential -y</code><br> <code>sudo apt-get install cmake libboost-dev libboost-thread-dev libboost-system-dev libsqlite3-dev subversion curl libcurl4-openssl-dev libusb-dev zlib1g-dev libssl-dev git</code><br> ==Debian stretch== <code>sudo apt-get install build-essential -y</code><br> <code>sudo apt-get install cmake libboost1.61-dev libboost-system1.61-dev libboost-thread1.61-dev libsqlite3-dev subversion curl libcurl4-openssl-dev libusb-dev zlib1g-dev libssl-dev git</code><br> ==树莓派 (Arch Linux)== <code>sudo pacman -S gcc cmake subversion boost sqlite make curl libusb zlib1g-dev</code> ==Debian (Mac OS)== See [[Mac_OSX]] ==群晖 (Synology)== ===Make sure the device is bootstrapped=== ===Install some packages=== <code>ipkg install gcc</code><br> <code>ipkg install make</code><br> <code>ipkg install optware-devel (dont worry about the wget-ssl error)</code><br> <code>ipkg install boost-dev</code><br> <code>ipkg install boost-thread</code><br> <code>ipkg install boost-system</code><br> <code>ipkg install boost-date-time</code><br> <code>ipkg install libcurl-dev</code><br> <code>ipkg install libusb</code><br> <code>ipkg install zlib1g-dev</code> ===Install cmake=== (Take a coffee while doing the bootstrap and make commands) <code>wget http://www.cmake.org/files/v2.8/cmake-2.8.10.tar.gz</code><br> <code>tar xvf cmake-2.8.10.tar.gz</code><br> <code>cd cmake-2.8.10</code><br> <code>./bootstrap</code><br> <code>make</code><br> <code>make install</code><br> <code>cd ..</code><br> <code>rm -R cmake-2.8.10</code><br> <code>rm cmake-2.8.10.tar.gz</code><br> ===Fix known pthread problem=== ====1. backup the pthread libraries found in /opt/arm-none-linux-gnueabi/lib/:==== <code>mkdir /opt/arm-none-linux-gnueabi/lib_disabled</code><br> <code>mv /opt/arm-none-linux-gnueabi/lib/libpthread* /opt/arm-none-linux-gnueabi/lib_disabled</code> ====2. Copy the pthread libraries found in /opt/lib==== <code>cp /lib/libpthread.so.0 /opt/arm-none-linux-gnueabi/lib/</code><br> <code>cd /opt/arm-none-linux-gnueabi/lib/</code><br> <code>ln -s libpthread.so.0 libpthread.so</code><br> <code>ln -s libpthread.so.0 libpthread-2.5.so</code> ====3.==== <code>cp /opt/lib/libboost_* /lib</code> Verify http://forum.synology.com/enu/viewtopic.php?p=185512#p185512 to check your /root/.profile ==== 4. Install the FTDI and usb drivers==== For a tutorial on a DS212+ see: http://sirloon.net/installing-usb-serial-modules-on-nas-synology-ds212 Basic installation: <code>insmod usbserial.kp</code><br> <code>insmod ftdi_sio.ko</code><br> <code>mknod /dev/usb/ttyUSB0 c 188 0</code> Plug your USB RFXtrx transceiver, verify it is found with <code>dmesg</code> You should see messages about it and an assigned usb device (in my case /dev/usb/ttyUSB0). Go back to root folder for the next steps: <code>cd</code> ==OpenZWave== OpenZWave is required for example to use an Aeon USB V2 ZWave adapter. === Install libudev-dev === We assume the specific dependencies for your system have been installed. <code>sudo apt-get install libudev-dev</code> === Compile OpenZWave=== <code><nowiki>git clone https://github.com/OpenZWave/open-zwave.git</nowiki></code><br> <code>ln -s open-zwave-read-only open-zwave</code><br> <code>cd open-zwave</code><br> <code>make</code><br> <code>cd ..</code> === Update OpenZWave=== <code> cd open-zwave<br> git pull<br> make clean<br> make<br> cd .. </code> =安装= 获取Domoticz源码并编译: <code>git clone <nowiki>https://github.com/domoticz/domoticz.git</nowiki> domoticz</code><br> <code>cd domoticz</code><br> <code>git pull</code><br> <code>cmake -DCMAKE_BUILD_TYPE=Release .</code><br> '''Note 1: For recent Debian version, these options may be required for compilation to succeed: '''<code>-DBOOST_LIBRARYDIR=/usr/lib/x86_64-linux-gnu -DBoost_USE_MULTITHREADED=OFF</code><br> '''Note 2: If you got <code>undefined reference to boost::atomics::detail::lockpool::get_lock_for(void const volatile*)'</code> linker error, append <code>-lboost_atomic</code> at the end of <code>./CMakeFiles/domoticz.dir/link.txt</code> ''' '''Note 3: If you face runtime issues please use''' <code>cmake -DCMAKE_BUILD_TYPE=Debug .</code>''' to recompile and review logs for troubleshooting''' <br> <code>make</code> '''Note: Compiling on the Raspberry Pi will take about 45 minutes''' You should now have the binary application, you can start it with <code>./domoticz</code> For additional parameters type: <code>sudo ./domoticz -h</code> =升级= 升级到新版本: * 停止应用程序 (control-c), 或者停止启动脚本<code>/etc/init.d/domoticz.sh stop</code> * 然后执行: <code>cd /home/pi/domoticz (or where you installed domoticz)</code><br> <code>git pull</code><br> <code>make</code> * 启动Domoticz If you have installed the Unix startup script (see below), you can also update with the provided script: <code>./updatedomo</code> =设置开机自动启动Domoticz (Unix only)= <code>sudo cp domoticz.sh /etc/init.d</code><br> <code>sudo chmod +x /etc/init.d/domoticz.sh</code><br> <code>sudo update-rc.d domoticz.sh defaults</code> 修改启动脚本,将DAEMON属性改为Domoticz安装目录: <code>sudo nano /etc/init.d/domoticz.sh</code><br> <code>DAEMON=/home/pi/domoticz/domoticz</code> 如果要使用其它端口供web访问,修改: <code>OPTIONS="-www 8080"</code> 现在,你可以通过以下命令来启动、停止Domoticz: <code>sudo /etc/init.d/domoticz.sh start</code> <code>sudo /etc/init.d/domoticz.sh stop</code> 检查Domoticz运行状态: <code>sudo /etc/init.d/domoticz.sh status</code> 如果系统支持,你也可以使用以下命令: <code>sudo service domoticz.sh start</code><br> <code>sudo service domoticz.sh stop</code><br> <code>sudo service domoticz.sh status</code> [[Category:Domoticz]] [[Category:手册]] [[Category:安装]]
返回
Install.txt
。
开关有限宽度模式