Skip to main content

Set Up on Linux

Follow these steps to configure your environment variables on a Linux system.

  1. Open a terminal window.

  2. Edit your shell configuration file (for example, .bashrc or .zshrc, depending on your shell).

    nano ~/.bashrc
  3. Add the environment variables to the end of the file.

    export BN_AGENT_NAME="agent-linux-01"
    export BN_AGENT_PORT=9500
    export BN_AGENT_SERVER_URL="http://192.168.1.100:8080"
    export BN_AGENT_SELFURL="http://192.168.1.52:9500"
    export BN_AGENT_DATA_DIR="/var/lib/buildninja/agent/data"
  4. Save and exit the file. Press Ctrl + X, then Y, and press Enter to confirm.

  5. Apply the changes to your current shell session.

    source ~/.bashrc