Installing EMQX server

Comments

9 comments

  • Avatar
    Firewalla

    Any reason you want to use it? I don't think MqTT broker is that easy to use for the home, I actually don't know how it can even be deployed, because each vendor is so different

     

    0
    Comment actions Permalink
  • Avatar
    Juan Black

    I would say I am the vendor. The devices are designed and built by myself. I have a system that works; tested. I don’t want to have the devices to have connections with the exterior.

    0
    Comment actions Permalink
  • Avatar
    Juan Black

    As I understand, EMQX has a linux installer. My question is regarding this: is it possible to install this on the Firewalla and have it run at startup? It needs few configurations for the server to operate correctly. These configurations need a graphic interface or they can also be made through the CLI. Wich brings me to another question, does firewalla has a process for installing applications that is different from a linux distro? Also, is it possible to access the graphic interface for any application or a cli from which to configure the application?

    It may be possible to configure it via file as well, but I want to make sure that it is possible to install it and run it; and, even perhaps, to control how it runs in terms of sandboxing.

    0
    Comment actions Permalink
  • Avatar
    Firewalla

    You definitly can install any linux tool and have it run during startup. Please see this example https://help.firewalla.com/hc/en-us/articles/360054056754-Customized-Scripting

     

    1
    Comment actions Permalink
  • Avatar
    Juan Black

    Does the installation of the tool have to be done by script as well?

    Does this mean that every time the device resets - loss of power - the application needs to be reinstalled? Or do I install it once and run the application by script every time the device resets?

    0
    Comment actions Permalink
  • Avatar
    Firewalla

    Yes.  (and NO)

    When you reboot the firewalla, it will go back to a clean state, so anything that's installed in the system partition will be gone. (anything in the 'special area', as in scripts, will stay)

    To start processes, you will have to follow the scripting to launch them. 

    1
    Comment actions Permalink
  • Avatar
    Juan Black

    Is it possible to install an application such as EMQX in the special area so that I don't have to reinstall it every time the device resets?

    0
    Comment actions Permalink
  • Avatar
    Firewalla

    I believe the directory ~pi/.firewalla/run can survive reboots. If you do need a lot of space, you can always mount a USB drive and the bootup script mount it during reboots

    See example https://help.firewalla.com/hc/en-us/articles/360053184374-Guide-Install-HomeBridge-on-Firewalla

     

    1
    Comment actions Permalink
  • Avatar
    Juan Black

    All this information in great! I will try this and come with more questions if they arise.

    0
    Comment actions Permalink

Please sign in to leave a comment.