The following document describes the steps to install software on an OpenRemote RI hardware. The steps described include creating a bootable USB flash drive and installing Voyage Linux and installing OpenRemote Controller software and required support software packages.
Create Bootable Flash Drive
The required hardware and software includes:
Download Voyage Linux Live CD ISO on your computer.
Download UNetbootin on your computer. The examples below are based on the Windows version of UNetbootin.
Install and start UNetbootin. Select install from ISO image and enter the path to the downloaded Voyage Linux Live CD ISO image (see image below).

Choose the target drive for installation and click 'OK'.
UNetbootin will install the ISO image to the USB flash drive.
Boot OpenRemote RI From External Flash Drive
Connect the USB flash to your OpenRemote RI hardware. Reboot or power on the device.
As the BIOS boots up, hit 'Delete' key to enter setup. Choose 'Advanced BIOS Features' (see image below) to change the boot order to start with your USB flash drive.

Next, choose the 'Hard Disk Boot Priority' (see image below). This is likely to show your internal CompactFlash at this point.

Finally, change the boot order to your external USB flash drive by using the 'Page Up' and 'Page Down' keys (TDK USB stick in the image shown below). Note that the external USB flash drive must be connected to the OpenRemote RI box in order to select it from the BIOS settings. Save the BIOS settings by hitting the 'F10' key.

You should now see Voyage Linux Live CD boot up from your external USB flash drive. Wait until the boot sequence reaches the login prompt. Then enter 'root' as the username and 'voyage' as the password.

Install Voyage Linux on OpenRemote RI CompactFlash Card
The following instructions can also be found on the 'README.live-cd' file on the root directory of the Voyage Live CD after boot and login.
Login
Create Distribution Directory For Installation
Make A Mount Point For Installation Disk
Format Target Disk Device
 | The next step will erase all existing data on the CompactFlash! |
The 'format-cf.sh' script will create /dev/hda1 ext2 partition on /dev/hda disk device.
Start voyage.update Installation Script
Choose 1: Create new Voyage Linux disk (hit 'Enter' for default).
Hit 'Enter' for default (we mounted the distribution to /tmp/root in the earlier steps).
Choose 2 (hit 'Enter' for default).
Choose 5 - ALIX.
Choose 3 (hit 'Enter' for default).
Enter '/dev/hda1'.
Choose '1' (hit 'Enter' for default)
Type '/tmp/cf' or hit enter for default (we created '/tmp/cf' in earlier steps).
Choose 4 (hit 'Enter' for default).
Type 'grub' (hit enter for default).
Choose 1 (hit 'Enter' for default).
Choose 5 (hit 'Enter' for default).
Select 2. The 3D3 board comes with a VGA output so you can use the full console interface.
Choose 6 (hit 'Enter' for default).
Answer yes. The installation script will copy the files to CF card.
Choose 7 (hit 'Enter' for default). Reboot your OpenRemote RI box. Remove the external USB flash drive.
Prepare Voyage Installation for OpenRemote Controller Software
After rebooting your OpenRemote RI box, log back into the system.
The default install mounts the file-system in read-only mode to avoid wearing down the flash with writes. In order to make changes on the CF card, you need first to remount the file-system in read-write mode.
Now you are able to perform normal persistent operations, like changing your root password (recommended!)
Internet Connection for Software Setup
The next few steps set up the OpenRemote RI hardware with an Internet connection to ease the software installation. The idea is to set up the OpenRemote RI as a client to an existing Internet connection, not to set it up as a router or access point to other Internet enabled devices (such as an iPhone). The instructions to set up the OpenRemote RI as a proper wireless access point will follow later.
Internet Connection via LAN
The default install has been configured with DHCP for the LAN port (eth0) which should work as normal. Plug-in your ethernet cable, you should receive an IP address and you can access the Internet.
If this doesn't seem to work, if you need some extra configuration, let us know in the comments section or in the forums.
Internet Connection via WiFi
The default Voyage Linux install comes with MadWifi (Multiband Atheros Driver for Wireless Fidelity) packages. The Winstron DCMA81 MiniPCI wireless card is based on the Atheros chipset.
If you already have an Internet connection set up via LAN, and don't care about WiFi connection at this point, feel free to skip the following steps until the Install OpenRemote Controller Software section.
The WiFi connection information here is based on the following assumptions:
- Available wireless access point supporting 802.11g
- Network with DHCP server
- Open or shared key WEP security
Note that this section only covers setting up OpenRemote RI as a WLAN client connecting to an existing wireless access point. Steps required to set OpenRemote RI hardware as a wireless access point are covered later.
Set Up Wireless Network Interface
First, make sure you are logged in as 'root' user in your OpenRemote RI box.
Check the current wireless network interface status by executing 'iwconfig' command:
Network interface 'lo' stands for your local loopback interface (i.e. network packets sent to this interface are immediately looped back, never sent to the wire).
Network interface 'eth0' is the LAN card interface for wired connections.
Interface 'wifi0' is the base WLAN card (Winstron DCMA81 with Atheros chipset) on the OpenRemote RI box.
The MadWifi toolset will create virtual WLAN devices on top of the base 'wifi0' device. It's therefore possible to have multiple WLAN devices for a single physical WiFi card (some acting as clients, some as wireless access points). For now, we will settle with just one WLAN client device for software download purposes.
Create network interface 'orc0' by executing the following command:
If you now execute 'iwconfig' again, you should see the new virtual WLAN device listed:
Now we need to bring up the actual physical network interface. Check the current active interfaces via 'ifconfig' command:
Now add 'orc0' to the list:
If you now execute 'ifconfig' command again, you should see both the 'wifi0' and 'orc0' wireless network devices added and active:
Now, associate the WLAN interface with an access point identifier. The AP identifier should be known to you. You can use 'iwlist orc0 scan' to get a list of access points but we will not cover the details here.
where you replace "JuhaHome" with your access point ID.
If you execute 'iwconfig' again now, you should see that the ESSID has been set with the given identifier:
At this point, if you have an open access point (which you in most cases shouldn't), i.e. no security, you can try directly to obtain an IP address for your wireless interface:
Assuming you don't live quite that recklessly, you need to complete a few more steps to enable encryption for the wireless interface.
The next steps cover WEP security only. WPA and WPA2 is supported in MadWifi via http://hostap.epitest.fi/wpa_supplicant. We haven't tested the WPA steps yet.
To use an open WEP key, execute the following two commands:
Note, should you need a shared key, use 'authmode 2' instead.
Now, if you execute 'iwconfig' one more time, you should see the key associated with your virtual WLAN device:
Now, request an IP address from DHCP server with the following command:
WiFi is working.
Install OpenRemote Controller Software
The following steps contain information on how to install OpenRemote Controller software and its support software components. The steps here assume you've already build your OpenRemote RI hardware and installed Voyage Linux distribution on it (including a working Internet connection) as described above.
The following additional software installations will be covered:
Install Java Development Kit
First download and copy Sun Java SE Development Kit 6on an external USB storage. These instructions assume an external USB stick. You can use the same one as with installing the Voyage Linux live CD on your OpenRemote RI box.
When downloading, choose 'Linux' as platform and read and agree to the license agreement.
Login to your OpenRemote RI box if you haven't already.
Insert the USB stick. You should see the new USB device being added to the system. Pay attention to which system device identifier is being assigned to it.
In this case you can see the device being added at '/dev/sda1'.
Then mount the USB stick and copy the JDK installation binary onto your CompactFlash. Follow the steps to start the installation of JDK on your system:
Now you can check your Java installation by executing the virtual machine:
Install LIRC
Login to your OpenRemote RI box if you haven't already.
Remount the filesystem as read-write if necessary:
And make sure your apt repository is up-to-date with package information:

By default Voyage Linux uses ftp.hk.debian.org as its apt repository source. We've found this location quite unreliable for large updates (frequent disconnects or lost packets).
If you are having issues with apt-get update or apt-get install, you can try to modify the repository source to a different location.
In your '/etc/apt/sources.list' file, modify the first uncommented line to:deb http://ftp.debian.org/debian etch mainThen execute 'apt-get update' and now instead of the default 'ftp.hk.debian.org', your apt updates should be directed to ftp.debian.org which in many cases is a more reliable source. Other known debian apt package mirrors may also work.
Next, download lirc-0.8.4a.tar.gz. You can either download it separately to a USB flash drive in which case you need to mount the external USB drive and copy the LIRC package to your CF card, similar to what was explained for Java SDK in the previous steps.
Alternatively, you can fetch the package directly using 'wget':
Install the required packages with apt-get and unpack the LIRC package:
Note that the following instructions for LIRC apply only for the CommandIR II infrared recommended as part of [OpenRemote RI Hardware].
On the following dialog screen, choose '1 Driver configuration' first (see picture #1 below) then '8 USB devices' (see picture #2 below) and finally '8 CommandIR Multi-IR Transceiver (userspace)' (see picture #3 below). Note that for the sake of simplicity you want the user space drivers instead of the kernel drivers.
After selecting ok, again from the main dialog screen choose '2 Software configuration' (see picture #4 below) and unselect (use space bar) '1 Compile tools for X-Windows' (see picture #5 below).
Now choose '3 Save configuration & run configure' (see picture #6 below) from the main dialog.

After configure has finished, first initiate make to compile LIRC for CommandIR II and then 'make install' to install the compiled binaries on your OpenRemote RI box.
After a successful install you can test your lircd daemon by executing the following command:
The expected output should list 'commandir' as supported driver:
Configure Your Remote Controls
The following steps are somewhat specific to your particular setup, i.e. which devices you want to remotely control with infrared and which remote controls do you have.
For this example, we will configure the OpenRemote RI box to send remote codes for three separate remote controls: one for Samsung LCD TV (M87 series TV that comes with Samsung remote model BN59-00603A), Apple Remote (model A1156) and Sony's Playstation 2 remote (model SCPH-10150).
Download the correct LIRC configuration files for your remote. In our case:
Merge the files into a 'lircd.conf' file. For our example, this would look like this:
Sample LIRCD Configuration
Copy the lircd.conf file into your '/etc' directory.
Now start lircd and send a few sample infrared commands from your OpenRemote box:
If your device(s) respond to the infrared commands, you know that your OpenRemote RI hardware and its infrared extension are working correctly.
Install OpenRemote Controller Software

TODO – This section is not done yet.
Set Up OpenRemote RI As Wireless Access Point

TODO – This section is not done yet.