Download source PDF Page last generated on 21:03, 24 March 2017 Github 
Installation
Installation..................................................................................................................................................... 1
Linux Debian Based..................................................................................................................................1
Windows 7 and up..................................................................................................................................... 2
OpenWRT Router......................................................................................................................................2
Manually Compiled Version.......................................................................................................................3
Linux Debian Based
Install pilight by using the apt repository in Debian / Ubuntu based distributions.
1. Login to your computer.
2. Make sure you are running as root. Run the following command and use your own password.
3. Add the apt repository to the apt sources list:
If you want to install the nightly version of pilight then also add:
4. pilight uses a signed repository. This means packages get validated before installation. So, to safely
download and install pilight packages the pilight key needs to be installed.
5. Now update the apt package list:
6. And install pilight
7. When no errors are shown, pilight will be installed and automatically started at boot time. To
manually start pilight:
8. And to stop pilight:
pi@pilight:~# sudo su
Password:
pi@pilight:~# echo "deb http://apt.pilight.org/ stable main" >
/etc/apt/sources.list.d/pilight.list
root@pilight:~# wget -O - http://apt.pilight.org/pilight.key | apt-key
add -
root@pilight:~# apt-get update
root@pilight:~# apt-get install pilight
root@pilight:~# service pilight start
root@pilight:~# service pilight stop
root@pilight:~# echo "deb http://apt.pilight.org/ nightly main" >>
/etc/apt/sources.list.d/pilight.list
Windows 7 and up
1. Go to http://download.pilight.org.
2. Download the latest Windows executable called pilight-vX.0-win32.exe. Run it to install pilight.
3. By default pilight will install into to c:\pilight\.
4. A default configuration can also be found in that folder.
5. If you want to use the pilight USB nano you can use the pilight-usb-nano.hex found in the default
folder.
OpenWRT Router
1. When using OpenWRT you are assumed also to know how to login to your router with SSH.
2. Go to http://download.pilight.org.
3. Download the latest pilight OpenWRT compilation called pilight-Atheros-AR9132-vX.0.tar.gz.
4. Unpack this file like this:
5. The OpenWRT package only contains pilight-daemon to save space.
6. A default configuration is put into /etc/pilight/config.json.
root@OpenWrt:~# tar -zxvf pilight-Atheros-AR9132-vX.0.tar.gz -C /
Manually Compiled Version
Manually compiling pilight is also a possibility. Use this method is you are not using a Debian-based or a
*BSD based operating system.
1. Login to your computer.
2. Make sure you are running as root. Run the following command and use your own password.
3. Install all packages needed for manually compiling pilight. The best way to do this depends on your
operating system. The packages needed for Debian are:
1. build-essential
2. cmake
3. git
4. dialog
5. libunwind-dev
6. libpcap-dev
4. Then download the pilight source code from the pilight GitHub:
5. Replace the [branch] with either master for the latest stable version. This version is exactly the
same as the stable version available through the apt repository. Or use development for the very
latest developmental build. A nightly pilight version is automatically generated each night and also
available through the pilight nightly apt repository.
6. pilight can be compiled with various built-in features which can be included or excluded. This is
done through a menu driven program. This program will also automatically compile and install
pilight:
7. When you are thrown back into the command prompt without error(s), pilight has been installed
successfully. It will also install a default configuration in /etc/pilight/config.json.
8. Make sure to run the following command after installation:
9. pilight can now be started with:
pi@pilight:~# sudo su
Password:
root@pilight:~# git clone --depth 5 -b [branch]
https://www.github.com/pilight/pilight.git
root@pilight:~# cd pilight
root@pilight:~/pilight# chmod +x setup.sh
root@pilight:~/pilight# ./setup.sh
root@pilight:~/pilight# ldconfig
root@pilight:~/pilight# service pilight start
Top