Skip to content

Installation

George Joseph edited this page Apr 11, 2021 · 3 revisions

Installation

You have several options for installing DueUI:

Install DueUI directly on your Duet2, Maestro, Duet3, Duet3-Mini, etc.

  • Download the latest DueUI zip file from https://github.com/gtjoseph/DueUI/releases.
  • Upload the zip file to your Duet using Duet Web Control (DWC) / File Management/ System / Upload Files.
  • Make sure your config.g file allows Cross Origin Resource Sharing (CORS). To enable it, add C"*" to the end of your M586 P1 S1 so it looks like M586 P1 S1 C"*".
  • Point your browser at http://<your_duet>/dueui.html

Install DueUI on the SBC running the Duet Software Framework:

  • Download the latest DueUI zip file from https://github.com/gtjoseph/DueUI/releases.
  • Upload the zip file to your Duet using Duet Web Control (DWC) / File Management/ System / Upload Files.
  • Make sure the Duet Web Server allows Cross Origin Resource Sharing (CORS). To enable it, add "UseCors": true, right after "UseStaticFiles": true,.
  • Point your browser at http://<your_sbc>/dueui.html

Install DueUI in the webserver environment of your choice:

DueUI doesn't have any active server-side components. All it needs is a place where its files can be served to the browser. Just unzip the DueUI zip file in the location of your choice and update your web server config to point to it. As above, make sure your web server allows CORS.

  • For nginx the parameter is add_header Access-Control-Allow-Origin *;.
  • For Apache, you probably want something like this:
    <IfModule mod_headers.c>
      Header set Access-Control-Allow-Origin "*"
    </IfModule>

Clone this wiki locally