<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.domoticz.com/index.php?action=history&amp;feed=atom&amp;title=Installing_and_running_Domoticz_on_CubieBoard2</id>
	<title>Installing and running Domoticz on CubieBoard2 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.domoticz.com/index.php?action=history&amp;feed=atom&amp;title=Installing_and_running_Domoticz_on_CubieBoard2"/>
	<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=Installing_and_running_Domoticz_on_CubieBoard2&amp;action=history"/>
	<updated>2026-09-18T20:45:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wiki.domoticz.com/index.php?title=Installing_and_running_Domoticz_on_CubieBoard2&amp;diff=8010&amp;oldid=prev</id>
		<title>Johanvandyck: /* Make Domoticz startup at boot time (Also needed for Web Update) */</title>
		<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=Installing_and_running_Domoticz_on_CubieBoard2&amp;diff=8010&amp;oldid=prev"/>
		<updated>2017-02-12T19:52:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Make Domoticz startup at boot time (Also needed for Web Update)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This guide is for installing domoticz on a cubieboard2 or cubietruck&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Firmware Requirements=&lt;br /&gt;
You need a microSD card from at least 4GB.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Please install the latest software from: https://www.armbian.com/download/&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
For cubietruck use: http://www.igorpecovnik.com/2013/12/24/cubietruck-debian-wheezy-sd-card-image/comment-page-1/&amp;lt;br&amp;gt;&lt;br /&gt;
For cubieboard2 use: https://www.armbian.com/cubieboard-2/&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select the Mainline Jessie kernel 4.x.x image&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== For old cubieboard images: ==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
after you boot for the first time (username root, password 1234), flash this image on the nand or ssd,&amp;lt;br&amp;gt;&lt;br /&gt;
scripts can be found in the /root folder&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
This script (for nand at least) you have to execute 2 times&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
After you booted from the nand or ssd, update the system with:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create Linaro user:&lt;br /&gt;
Add a user called &amp;#039;linaro&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
adduser linaro&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
next add this user to the sudo group&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
adduser linaro sudo&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
next we make sure we do not need to enter a password when issuing a sudo command&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
visudo&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
at the bottom of this file place the following line:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
linaro ALL=(ALL) NOPASSWD: ALL&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== For current images: ==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
- after reboot (for 2 times), the disk is expanded automatically. You can login (username root, password 1234) via tty or ssh. &lt;br /&gt;
You are asked to change pwd foor root. You are asked to add a sudo enabled user. Type &amp;quot;linaro&amp;quot; as user.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
sudo apt-get update&amp;lt;br&amp;gt;&lt;br /&gt;
sudo apt-get upgrade&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Domoticz Setup=&lt;br /&gt;
Login to your cubieboard with the &amp;quot;linaro&amp;quot; user (for windows you can use the program putty)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Setup you timezone with:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;sudo dpkg-reconfigure tzdata&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing from Binary (old images) ==&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
mkdir domoticz&lt;br /&gt;
&lt;br /&gt;
cd domoticz&lt;br /&gt;
&lt;br /&gt;
wget http://domoticz.sourceforge.net/beta/domoticz_linux_armv7l.tgz&lt;br /&gt;
&lt;br /&gt;
tar xvfz domoticz_linux_armv7l.tgz&lt;br /&gt;
&lt;br /&gt;
rm domoticz_linux_armv7l.tgz&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing from Binary (new images) ==&lt;br /&gt;
Login as linaro user&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd ~&lt;br /&gt;
&lt;br /&gt;
mkdir domoticz&lt;br /&gt;
&lt;br /&gt;
cd domoticz&lt;br /&gt;
&lt;br /&gt;
sudo curl -L install.domoticz.com | bash&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
follow the wizard.&amp;lt;br&amp;gt;&lt;br /&gt;
- select http and or https access&amp;lt;br&amp;gt;&lt;br /&gt;
- select used ports. I choose 80 (https) and 443 (https)&amp;lt;br&amp;gt;&lt;br /&gt;
- select web root folder&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Test Domoticz =&lt;br /&gt;
&lt;br /&gt;
== old images: ==&lt;br /&gt;
First we are going to test if domoticz is correctly installed:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
While still in the domoticz folder (if not issue: &amp;#039;&amp;#039;&amp;#039;cd ~/domoticz&amp;#039;&amp;#039;&amp;#039;)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
./domoticz&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
domoticz should now start, to quit domoticz press &amp;#039;&amp;#039;&amp;#039;control-c&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== current images ==&lt;br /&gt;
- open a browser, go to your website. (output of setup will show the ip and port info)&lt;br /&gt;
&lt;br /&gt;
=Make Domoticz startup at boot time (Also needed for Web Update) - auto done for installation &amp;quot;current images&amp;quot;=&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
sudo cp domoticz.sh /etc/init.d&lt;br /&gt;
&lt;br /&gt;
sudo chmod +x /etc/init.d/domoticz.sh&lt;br /&gt;
&lt;br /&gt;
sudo update-rc.d domoticz.sh defaults&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Edit the startup script and point the DAEMON location to point to the installation folder:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
sudo nano /etc/init.d/domoticz.sh &amp;lt;/code&amp;gt;[ or use the vi editor ]&lt;br /&gt;
&lt;br /&gt;
Change:&lt;br /&gt;
&amp;lt;code&amp;gt;DAEMON=/home/pi/domoticz/domoticz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In to:&lt;br /&gt;
&amp;lt;code&amp;gt;DAEMON=/home/linaro/domoticz/domoticz&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want to use another web interface port change:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
OPTIONS=&amp;quot;-www 8080&amp;quot;&lt;br /&gt;
&amp;lt;/code&amp;gt; For example: 8070&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Start Domoticz&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
sudo service domoticz.sh start&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now connect with a browser &amp;lt;code&amp;gt; ip:port&amp;lt;/code&amp;gt; to see if it is up and running.&lt;br /&gt;
&lt;br /&gt;
=Updating Domoticz=&lt;br /&gt;
Use the Web Interface to update Domoticz (Setup-&amp;gt;Check for Updates)&amp;lt;br&amp;gt;&lt;br /&gt;
Choose Beta or Stable in the application settings&lt;br /&gt;
&lt;br /&gt;
Compiling from scratch with CubieTruck (dualcore 1 GHz) takes 38:30 min.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Domoticz]]&lt;br /&gt;
[[Category:Install]]&lt;br /&gt;
[[Category:Setup]]&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>Johanvandyck</name></author>
	</entry>
</feed>