Installing MAPLE ################### This section describes how to use the installation script to download and install MAPLE. This script will make a folder called ``maple-config`` in your user's home directory with a ``docker-compose.yml`` and a ``config.yml`` file. The ``config.yml`` file contains all of the parameters and settings for MAPLE and will be modified in future sections. .. warning:: By default, the script will attempt to configure your ethernet network interface ``eth0`` with a static IP following the format ``10.TE.AM.15`` using `NetworkManager`. **Your terminal will get disconnected if this is interface you using for SSH.** If you want to modify or disable network configuration, see the `Advanced`_ section below. .. note:: Installation may take over 1 hour depending on your internet speed since you must pull the necessary Docker image (~1.5GB) .. note:: If you run the script multiple times, your config.yml and docker-compose.yml files will not be overwritten. Installation ============= 1. Copy & paste (right click to paste in PuTTY) the following line into your terminal connected to your Raspberry Pi (or other device) to download the installation script. Press enter to run the command. .. code-block:: bash wget -O install-maple.sh https://raw.githubusercontent.com/cudy789/MAPLE/refs/heads/main/install.sh .. image:: /res/installation/putty-download-maple.png 2. Run the installation script using the following command .. code-block:: bash bash install-maple.sh 3. The installation script will ask you to enter your team number to set a static IP address. Type your team number into the terminal, then hit enter. .. image:: /res/installation/putty-team-number.png 4. The script will ask you to confirm your entry. Type ``y``, then press enter. .. image:: /res/installation/putty-team-number-confirm.png 5. You will see the following once the script has finished running .. image:: /res/installation/putty-finished-installing-maple.png 6. Logout of the Raspberry Pi (close PuTTY) and log back in 7. Change directory (``cd``) to the new folder with the MAPLE configuration files .. code-block:: bash cd ~/maple-config 8. Run ``docker-compose pull``. This will take a few minutes to complete. .. code-block:: bash docker-compose pull .. image:: /res/installation/putty-compose-finished-pull.png Now you're ready to configure your cameras! Advanced ========= To skip network configuration altogether, run the script with ``SKIP_STATIC_IP=1`` .. code-block:: bash # Skip static IP assigment SKIP_STATIC_IP=1 bash install-maple.sh You can override the ``STATIC_IP`` and ``INTERFACE`` bash environment variables as well to change the IP address and interface. .. code-block:: bash # Specify static IP and interface STATIC_IP=192.168.1.13 INTERFACE=eth1 bash install-maple.sh .. warning:: `FRC FMS has a reserved IP range for teams to use for static IPs. `_ Make sure your static IP choice falls within this allowed range. You can run the downloaded ``set-ip.sh`` script at any time to change your static IP configuration. Removing a static IP ~~~~~~~~~~~~~~~~~~~~~ If you accidentally set a static IP on the wrong interface or want to remove the static IP for any reason, use the following commands. 1. Find your connection name that you want to delete .. code-block:: bash $ sudo nmcli con show NAME UUID TYPE DEVICE MAPLE connection 5146a95d-45b9-4606-b6b7-37a22b284d20 ethernet eth0 preconfigured 6fb8db51-35b6-42bb-ad87-a34a5530efed wifi wlan0 lo 42ff8627-9480-4911-86ac-d41aea7838aa loopback lo Wired connection 1 2fc4b307-c88d-3f00-93f0-ea4c3759dec8 ethernet -- 2. Delete the connection .. code-block:: bash sudo nmcli con delete "MAPLE connection" .. toctree:: :maxdepth: 1