Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
livebox:portable [2014/02/24 02:37] – brett | livebox:portable [2016/01/30 01:05] – brett | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== HAH Portable ====== | ====== HAH Portable ====== | ||
- | This 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 HAH system, there are many functions in the webserver that just don't work or make sense to be there. | ||
+ | </ | ||
Get the code | Get the code | ||
< | < | ||
- | 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 |
</ | </ | ||
+ | |||
====== Ubuntu build notes ====== | ====== Ubuntu build notes ====== | ||
Line 13: | 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 21: | Line 26: | ||
Start with updating the package cache. | Start with updating the package cache. | ||
< | < | ||
- | apt-get update | + | sudo apt-get update |
</ | </ | ||
Build packages required. | Build packages required. | ||
< | < | ||
- | apt-get install build-essential libxml2-dev libcurl4-openssl-dev flex | + | sudo apt-get install build-essential libxml2-dev libcurl4-openssl-dev flex |
</ | </ | ||
Runtime packages required. | Runtime packages required. | ||
< | < | ||
- | 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. | ||
< | < | ||
- | apt-get install dpkg | + | sudo apt-get install dpkg |
</ | </ | ||
- | Stopping apache2 as kloned will use port 80 | + | Stopping apache2 as kloned will use port 80 - Not needed on the Pi but it won't hurt to check. |
< | < | ||
- | update-rc.d -f apache2 remove | + | sudo update-rc.d -f apache2 remove |
</ | </ | ||
===== 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 53: | Line 63: | ||
===== Direct installation ===== | ===== Direct installation ===== | ||
- | To directly install you'll need to build and install as root | + | To directly install you'll need to build and install as root. Note this will NOT install the / |
< | < | ||
sudo INSTALL_DIR=/ | sudo INSTALL_DIR=/ | ||
</ | </ | ||
+ | ===== 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 the external hardware to work on a non-livebox device you will 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. |