Please login or register.

Login with username, password and session length
Advanced search  

News:

The X10Hub (PiX10Hub) is here! Created by the Community, for the Community.:)% #:)

Author Topic: Installing HomeGenie on Raspbian Buster  (Read 56 times)

petera

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 19
  • Posts: 1069
Installing HomeGenie on Raspbian Buster
« on: September 12, 2019, 11:15:27 AM »

For those still using HomeGenie on a Raspberry Pi or any other Linux based machine you may or may not be aware that currently you cannot install it on Raspbian Buster, the latest release of the Raspbian operating system. It appears that the package installation manager Gdebi is failing for reasons I won't go into here. Until the author makes the necessary changes the only way to install HomeGenie on Raspbian Buster successfully is to install it manually.The offending dependencies have been removed using the method below.

Please find below a very simple copy/paste procedure which will have HomeGenie up and running on your Raspberry Pi.Make sure you make a HomeGenie Backup of you settings as you will need them later.

I'm assuming at this stage after nearly one year everyone knows how to create a Raspbian image on an SD card. If not there's plenty of instruction on how to do so on this forum and here https://www.raspberrypi.org/documentation/installation/installing-images/. Don't forget to drop a blank SSH text file and the wpa_supplicant.conf file with all your wifi credentials into the boot folder of your SD card. This can be done in Windows after you have created the Raspbian Buster image. Again these instructions can be found on the forum or the web.

===================================================================================================
Now that you have a copy Raspbian Buster on an SD card just pop it into your Raspberry Pi and power it up. Access it remotely using either SSH or for Windows users PuTTY. You can now configure your personal settings using the following command
===================================================================================================

sudo raspi-config


===================================================================================================
Once you have this completed just reboot your Pi and you're ready to install HomeGenie.

Open another session of SSH or PuTTY and copy/paste these instruction line by line into your SSH or PuTTY session

This will install the necessary sources and certificates for the latest version of Mono
===================================================================================================


sudo apt install apt-transport-https dirmngr gnupg ca-certificates

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

echo "deb https://download.mono-project.com/repo/debian stable-raspbianbuster main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list

sudo apt update


===================================================================================================
The following command will install the latest version of Mono. Ensure you copy/paste it in one single block into your SSH/PuTTY session. It is one single command.
===================================================================================================


sudo apt-get install mono-runtime libmono-corlib2.0-cil libmono-system-web4.0-cil libmono-system-numerics4.0-cil libmono-system-serviceprocess4.0-cil libmono-system-data4.0-cil libmono-system-core4.0-cil libmono-system-servicemodel4.0a-cil libmono-windowsbase4.0-cil libmono-system-runtime-serialization-formatters-soap4.0-cil libmono-system-runtime-serialization4.0-cil libmono-system-xml-linq4.0-cil mono-dmcs


===================================================================================================
Now that we have Mono installed we need to install some HomeGenie dependencies. This will download and install HomeGenie into the /pi/home/homegenie folder.
===================================================================================================


sudo apt-get install alsa-utils lame

sudo apt-get install libv4l-0

sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev

sudo apt-get install arduino-mk empty-expect


===================================================================================================
Now that we have Mono and all the relevant dependencies installed it's time to download and install HomeGenie
===================================================================================================


wget https://github.com/genielabs/HomeGenie/releases/download/v1.3-stable.5/homegenie_1.3-stable.5.tgz

tar xzvf homegenie_1.3-stable.5.tgz

===================================================================================================
Now we need to create a service file that will launch HomeGenie everytime you reboot.
===================================================================================================

sudo nano /etc/systemd/system/homegenie.service


===================================================================================================
Just copy the contents of this into the editor you opened and press the ctrl-x keys, then press y and enter key to save.
===================================================================================================

[Unit]
Description=Homegenie Server
After=network.target

[Service]
WorkingDirectory=/home/pi/homegenie
ExecStart=/usr/bin/mono /home/pi/homegenie/HomeGenie.exe --log
Restart=always

[Install]
WantedBy=multi-user.target


===================================================================================================
Now that you have your homegenie.service created you need to enable it
===================================================================================================

sudo systemctl enable homegenie.service


===================================================================================================
Now to start HomeGenie
===================================================================================================

sudo systemctl start homegenie.service



You can access HomeGenie in the usual way. It will have been installed on Port 80 as a new install. Once you have HomeGenie started go to

Configure->Maintenance->Configuration and Data and restore from the backup you made earlier. You're now running HomeGenie with the latest version of Raspbian Buster with all you original settings

« Last Edit: September 17, 2019, 03:46:29 PM by petera »
Logged
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.