notebook:copy_config.gateway.json_to_unifi_controller

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
notebook:copy_config.gateway.json_to_unifi_controller [2018/05/27 19:45] – added additional information festernotebook:copy_config.gateway.json_to_unifi_controller [2025/05/12 13:37] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== COPY CONFIG.GATEWAY.JSON TO UNIFI CONTROLLER ====== ====== COPY CONFIG.GATEWAY.JSON TO UNIFI CONTROLLER ======
-\\ + 
-__**Mac OS X / Linux**__ +<bootnote warning>Adding a custom **config.gateway.json** could cause unintended consquences such as a provisioning loop on your USG. Please be careful and validate your file via **[[https://jsonlint.com/ | JSONlint]]** before creating or replacing on your controller; however, this **DOES NOT** promise proper provisioning...**ONLY** that the JSON is valid.</bootnote> 
-\\+ 
 + 
 +===== Mac OS X / Linux =====
   * Open Terminal on your machine   * Open Terminal on your machine
   * Navigate to the folder where the **config.gateway.json** file resides on your computer.   * Navigate to the folder where the **config.gateway.json** file resides on your computer.
   * Enter the following :   * Enter the following :
-      * <code>python -m SimpleHTTPServer 8000</code> +      * <code>scp config.gateway.json <user>@x.x.x.x:<site path></code
-      * Port 8000 is the default, however, you can change to any unused port and use below. +<bootnote  
-      <bootnote>This will create a webserver from your machine.</bootnote>  +      * <user> - your user account on the UniFi Controller's operating system 
- +      * x.x.x.x - UniFi Controller's IP 
-  * Open another Terminal instance. +      * <site path- Path to <unifi-baseon controller (see below) 
-  * SSH into your controller. +</bootnote>
-  * Navigate to the location of the folder <unif-basewhere **config.gateway.json** should exist. +
-    [[https://help.ubnt.com/hc/en-us/articles/115004872967| UniFi - Where is <unifi_base>]] for information on where the folder resides. +
-\\ +
-    * Unifi Controller Example (with only one site in default): +
-      * <code>cd /srv/unifi/data/sites/default/</code> +
-\\ +
-  * The following command will pull the **config.gateway.json** file from the directory where the file resides on your pc and copy it to the controller+
-    * <code>wget http://X.X.X.X:8000/config.gateway.json</codewhere X.X.X.X is the IP of the computer above. +
-\\ +
-  * Rename the file to replace the current version. +
-    *<code>mv config.gateway.json.1 config.gateway.json</code>+
  
-<bootnote warning>Adding a custom **config.gateway.json** could cause unintended consquences such as a provisioning loop on your USG. Please be careful and validate your file via **[[https://jsonlint.com/ | JSONlint]]** before creating or replacing on your controller.</bootnote>+* [[https://help.ubnt.com/hc/en-us/articles/115004872967UniFi - Where is <unifi_base>]] - for information on where the folder resides.
  • notebook/copy_config.gateway.json_to_unifi_controller.1527468327.txt.gz
  • Last modified: 2025/05/12 13:37
  • (external edit)