Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
livebox:portable [2014/03/01 01:12] – [HAH Portable] brett | livebox:portable [2016/01/30 01:06] – [External hardware] brett | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== HAH Portable ====== | ====== HAH Portable ====== | ||
- | It is a trimmed up version of the HAH system | + | It is a trimmed up version of the HAH system that can be built and installed independently of the Livebox |
< | < | ||
- | As this is an unmodified port of the livebox | + | As this is an unmodified port of the Livebox |
</ | </ | ||
Get the code | Get the code | ||
< | < | ||
- | sudo apt-get install | + | sudo apt-get install |
- | svn checkout http://livebox-hah.googlecode.com/svn/ | + | git clone --branch portable --single-branch https://github.com/dbzoo/hah.git |
</ | </ | ||
Line 18: | Line 18: | ||
Tested on | Tested on | ||
* beaglebone running Ubuntu 13.10 (Saucy) | * beaglebone running Ubuntu 13.10 (Saucy) | ||
- | * raspberry pi running Raspbian Ubuntu (wheezy) | + | * Raspberry Pi running Raspbian Ubuntu (wheezy) |
Download ubuntu | Download ubuntu | ||
Line 34: | Line 34: | ||
Runtime packages required. | Runtime packages required. | ||
< | < | ||
- | sudo apt-get install lua5.1 lua-filesystem | + | sudo apt-get install lua5.1 lua-filesystem lua-rex-posix lua-socket |
</ | </ | ||
To build the package target you need the packaging stuff. | To build the package target you need the packaging stuff. | ||
Line 40: | Line 40: | ||
sudo apt-get install dpkg | sudo apt-get install dpkg | ||
</ | </ | ||
- | Stopping apache2 as kloned will use port 80 - Not needed on the PI but it won't hurt to check. | + | Stopping apache2 as kloned will use port 80 - Not needed on the Pi but it won't hurt to check. |
< | < | ||
sudo update-rc.d -f apache2 remove | sudo update-rc.d -f apache2 remove | ||
Line 46: | Line 46: | ||
===== Installation via a package ===== | ===== Installation via a package ===== | ||
+ | |||
+ | Make sure you are in the portable/ directory that you checked out from the GIT code repository. | ||
+ | < | ||
+ | cd portable | ||
+ | </ | ||
To build a .deb installable package for the armhf Architecture | To build a .deb installable package for the armhf Architecture | ||
Line 63: | Line 68: | ||
</ | </ | ||
+ | ===== Keeping up to date ===== | ||
+ | |||
+ | The best way to keep your portable distro up to date is "git pull" or "git fetch && git merge" | ||
+ | Then do a "make arm-deb" | ||
+ | The deb file will not overwrite your .ini customized .ini changes. | ||
+ | < | ||
+ | $ cd portable | ||
+ | $ git pull | ||
+ | $ make arm-deb | ||
+ | $ sudo dpkg -i build/*.deb | ||
+ | </ | ||
====== Fedora build notes ====== | ====== Fedora build notes ====== | ||
Tested on | Tested on | ||
- | * Tested on a Raspberry | + | * Tested on a Raspberry |
* Centos 5.5 x64 | * Centos 5.5 x64 | ||
You will need these pre-requisites installed to build | You will need these pre-requisites installed to build | ||
< | < | ||
- | yum install | + | yum install |
yum groupinstall " | yum groupinstall " | ||
</ | </ | ||
+ | |||
+ | ====== External hardware ====== | ||
+ | |||
+ | To get the external hardware to work on a non-livebox device you need to adjust the / | ||
+ | |||
+ | < | ||
+ | port=/ | ||
+ | initserial=+++ | ||
+ | </ | ||
+ | |||
+ | Why do you need this initserial=+++ configuration line? | ||
+ | |||
+ | The external hardware goes into a loop and listen on the serial port consuming all the console text the livebox emitted and simply discards it until it see the +++ token. |