-
Notifications
You must be signed in to change notification settings - Fork 29
Lagarto on the RaspberryPI
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
- Download image and grab SD card
- Initializing Raspbian
- Connecting via SSH
- Test lagarto
- Run OpenRemote
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.
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.
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.
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".
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
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.