Skip to content

Lagarto on the RaspberryPI

Daniel Berenguer edited this page Jan 29, 2015 · 3 revisions

This installation method is deprecated. The new preferred method to install lagarto on the Raspberry (and on any other embedded computer) is explained here.


Introduction

Running Lagarto on a RaspberryPI is now a straightforward process. With panStamp's official image based on Raspbian you can avoid the steps about installing Python, ZeroMQ and the rest of dependencies necessary to make lagarto work on this platform.

Download image and grab SD card

You can download the latest panStamp image for Raspberry from here.

This image is created from the standard Raspbian image, which is then modified for own purposes. This image does not provide a graphical desktop interface and comes with all the necessary to run Lagarto.

Once you download the zip file, you have to decompress it and grab the contents into your SD card. This page explains how to flash your image under different OS's.

Under Linux, you can use dd to copy the image into the flash card:

# dd if=lagarto_rpi_XXXX.img of=/dev/sdc

where /dev/sdc is the SD card file system on your computer.

Initializing Raspbian

You will notice that the image only takes 2 GB of your SD card. If your card has a bigger size you can then expand the image. Logging into Raspbian for the first time will prompt you to configure your installation. Otherwise, you can run raspi-config any time.

Connecting via SSH

Raspbian comes with DHCP enabled by default so you will probably want to edit /etc/network/interfaces if you want to enter static network settings and /etc/resolv.conf for your DNS's. After that you can connect via SSH. Default user is "pi". Default password is "raspberry".

Test lagarto

lagarto-max and lagarto-swap are launched at start-up from a system script (/etc/init.d/panstamp) so 30 seconds after powering your Raspberry you should be able to connect to lagarto's embedded web server entering the following addresses from a web browser:

lagarto-swap : http://rpi_ip_address:8001
lagarto-max : http://rpi_ip_address:8002

Run OpenRemote

Even if OpenRemote is installed by default, it has been disabled from the official image due to an incompatibility with Oracle's license for the distribution of their new (pre-production) JDK8 for ARM. Instead, you have to manually install JDK8 for ARM with support for hard-float ABI by following this tutorial. After that, you have to re-enable all the lines about OpenRemote from /etc/init.d/panstamp

Finally, you can check that OpenRemote is running by opening the controller page from a web browser:

http://rpi_ip_address:8080/Controller

This tutorial explains how to use OpenRemote with lagarto.

Anti Swap

API for Anti Swap

Clone this wiki locally