Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Edge HMI

Configure the proxy settings on a Linux computer or device

Configure the proxy settings on a Linux computer or device

  • Last UpdatedOct 29, 2026
  • 2 minute read

Configure the proxy settings for the command-line interface (CLI) on a Linux computer or device โ€” specifically, set the environment variables used by the shell.

Before you begin this task, you should know the host name or IP address of your network gateway or proxy server, as well as the port number (if any) of the proxy service. If you do not know, ask your network administrator.

If the proxy service requires authentication, you should also know your user name and password for that service.

You do not need to be an administrator or superuser on the Linux computer or device in order to perform this task, as long as you are logged on as the same user that runs the project runtime.

Note: This task describes how to configure the proxy settings for Bash, which is the most commonly used shell on Debian-based distributions of Linux. If you are using another distribution of UNIX/Linux, or if you are using a shell other than Bash, adjust the steps below as needed.

To configure the proxy settings:

  1. Make sure you are logged on as the same user that runs the project runtime.

  2. Open your .bashrc file in a text editor.

    $ nano ~/.bashrc

    The .bashrc file contains commands that are automatically run when a non-interactive shell is opened. (A non-interactive shell runs without direct input from the user. Applications like the project runtime use non-interactive shells to perform background tasks.)

  3. Edit the .bashrc file to include the following settings:

    export http_proxy=<URL of proxy service> export https_proxy=<URL of proxy service> export ftp_proxy=<URL of proxy service>

    Examples of the URL:

    http://proxy-server

    http://proxy-server.mynetwork.com

    http://gateway.mynetwork.com:3128

    http://username:password@gateway.mynetwork.com:3128

  4. Save and close the .bashrc file.

    If you are using nano, as described above, press Ctrl+X to exit.

Once these environment variables are set, they will be available whenever a new Command Prompt window is opened.

Related Links