more G-Labs products

Author Topic: Installation on Raspberry - Network connection needed ?  (Read 1279 times)

January 01, 2016, 03:57:30 PM
Read 1279 times

duch

  • *
  • Information
  • Newbie
  • Posts: 20
Hello,

I would like to install the latest version Homegenie on Raspberry PI.

Before, I must say that I am a beginner with PI. The last time I did it, there was a package Raspbian with homegenie pre-installed but unfortunately, this package doesn't exist anymore.

So, I tried to do it manually :
- I've installed Raspian Jessie ... OK, no problem
- I've downoladed the latest Homegenie .deb package file and tried to install it by double clicking on it.

I've got this message

Quote
Failed to install file
There is no network connection available
Please check your connection settings and try again.

My question : Does Homegenie request a network connection for installation ?

If so : for technical reasons, I have now no connection. Is there a way to install HG without network connection ?

 Thank you for your help



January 01, 2016, 06:25:28 PM
Reply #1

dani

  • *****
  • Information
  • Global Moderator
  • Posts: 535
Carrefull with Jessie, I got problem with ZWave Key. If you plug unplug it change of port. It's better to use Wheezy actually.
And yes you need a network connection to install mono and update debian.
Here is a complete install procédure adapt from a comment of enterprised

Code: [Select]
1) Flash Debian image to card via Win32DiskImager (2015-05-05-raspbian-wheezy.img)

2) connect to 192.168.0.xxx port 22
   If using DHCP, sometimes the RPi will be on the DHCP IP address. 
   If not it may be on 192.168.0.xxx.  If not, use a network sniffer
   like Fing (Android) to locate the RPi.

3) change to DHCP
   sudo nano /etc/network/interfaces
   change 'iface * inet manual' to 'iface * inet dhcp

4) basic configuration
   sudo raspi-config
   * 1 Expand Filesystem
   * 4 International options
     - Change locale
       disable en_GB.UTF-8 UTF-8
       enable en_US.UTF-8 UTF-8
       default locale en_US.UTF-8
     - restart
     - Change time zone (US / Pacific-new)
     - Change keyboard layout (??? broken ???)
   sudo reboot

5) Install needed utilities/update system
   sudo apt-get install gdebi-core rpi-update
   sudo apt-get update
   sudo apt-get upgrade
   sudo rpi-update

6) Set up SSL certificates
   sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
   echo "deb [url]http://download.mono-project.com/repo/debian[/url] wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
   sudo apt-get update
   sudo apt-get install mono-complete
   sudo apt-get dist-upgrade
   sudo mozroots --import --ask-remove --machine
   #sudo certmgr -ssl smtps://smtp.mail.yahoo.com:465
   sudo certmgr -ssl smtps://smtp.gmail.com:465
   *** yahoo and most likely google require an app specific password ***

7) Install HG
   sudo wget [url]http://sourceforge.net/projects/homegenie/files/homegenie-beta_1.1.r505_all.deb[/url]
   sudo gdebi homegenie-beta_1.1.r505_all.deb
   ln -s /usr/local/bin/homegenie/log /home/pi/.
   *** OPTIONAL ***
     sudo nano /usr/local/bin/homegenie/startup.sh
      change:
        sudo $MONO HomeGenie.exe >/dev/null  2>&1
      to:
        sudo $MONO HomeGenie.exe >/usr/local/bin/homegenie/log/mono.log  2>/dev/null
   Log on to HG via web browser
   restore HG backup

« Last Edit: January 01, 2016, 06:39:11 PM by dani »

January 01, 2016, 11:50:50 PM
Reply #2

duch

  • *
  • Information
  • Newbie
  • Posts: 20
Thank you Dani for your help

I'll try this in a few days.

January 02, 2016, 10:32:45 AM
Reply #3

duch

  • *
  • Information
  • Newbie
  • Posts: 20
For this step ...

Quote
5) Install needed utilities/update system
   sudo apt-get install gdebi-core rpi-update
   sudo apt-get update
   sudo apt-get upgrade
   sudo rpi-update

... I suppose that I need a web access to update the system.

For technical reasons, my Raspberry can't have any access to the web. So, I ask myself if I could install the latest Homegenie .deb package file in a local network without any internet connection ? Or does this package need an entire internet access ?

Thank you for your help

January 02, 2016, 01:05:20 PM
Reply #4

dani

  • *****
  • Information
  • Global Moderator
  • Posts: 535
If you can install mono-complete and gdebi and after the last HG package, HG doesn't need permanent access to internet.
Only you need a local connection to access it with a browser.

January 02, 2016, 04:54:25 PM
Reply #5

duch

  • *
  • Information
  • Newbie
  • Posts: 20
Thanks again Dani

I think I'll try this second method. That seems to be easier for me.