Skip to main content

How to install proximamp on Linux, Windows and in Docker

Install proximamp to open ports of a computer or a server from the terminal, without the ProximaClient app. It runs on Linux x86_64 and arm64 with glibc 2.28 or newer (Debian 10, Ubuntu 20.04, RHEL 8 and newer, a Raspberry Pi 3 or newer with a 64-bit system) and on 64-bit Windows.

Install​

curl -fsSL https://s3.proximamp.com/cli/install.sh | sh

The script downloads the latest version for your processor and puts the program in /usr/local/bin, asking for your sudo password if needed. Without sudo the program goes to ~/.local/bin. PROXIMAMP_INSTALL_DIR sets another folder, and PROXIMAMP_VERSION a given version instead of the latest:

curl -fsSL https://s3.proximamp.com/cli/install.sh | PROXIMAMP_VERSION=1.0.0 sh

If you have no sudo rights, press Ctrl+C and put the program in your own folder:

curl -fsSL https://s3.proximamp.com/cli/install.sh | PROXIMAMP_INSTALL_DIR=~/.local/bin sh

If the script says the folder is not on PATH, add ~/.local/bin in bash and open a new terminal window:

echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc

On RHEL, AlmaLinux, Rocky Linux and Oracle Linux, sudo doesn't see programs in /usr/local/bin: there, install the program from dnf or type sudo env "PATH=$PATH" proximamp instead of sudo proximamp, for example:

sudo env "PATH=$PATH" proximamp update

Check​

Check the program (for the Docker image, use the command in its tab):

proximamp version
npx -y proximamp@latest version # without installing

The command prints the name and the version number, for example proximamp 1.0.1. If the command is not found, open a new terminal window or run the program by its full path: after the script, the one it named; on Windows, from the %LOCALAPPDATA%\Programs\proximamp folder:

~/.local/bin/proximamp version # the script without administrator rights
& "$env:LOCALAPPDATA\Programs\proximamp\proximamp.exe" version # Windows

Next: the first tunnel, and in Docker, a tunnel next to a server.

Remove​

To remove a Docker container, follow the steps on "How to open a server in Docker with proximamp". To remove the program from the computer:

  1. If you installed the service, remove it first (on Windows without sudo, in an administrator terminal):

    sudo proximamp service uninstall

    It runs on its own copy of the program and won't stop without this step.

  2. Sign out of the account:

    proximamp logout
    npx -y proximamp@latest logout # without installing
  3. Remove the program the way you installed it:

    sudo apt remove proximamp # apt
    sudo dnf remove proximamp # dnf
    npm uninstall -g proximamp # npm (with sudo if installed with sudo)
    sudo rm /usr/local/bin/proximamp # the script
    rm ~/.local/bin/proximamp # the script without administrator rights
    # npx: step 2 is enough

    If you gave the script your own folder (PROXIMAMP_INSTALL_DIR), delete proximamp from it.

    On Windows, stop the proximamp commands, including ones started in a hidden window, then delete the program's folder and take it out of your PATH, in PowerShell:

    $dir = "$env:LOCALAPPDATA\Programs\proximamp"
    Get-Process proximamp -ErrorAction SilentlyContinue | Where-Object { $_.Path -eq "$dir\proximamp.exe" } | Stop-Process -PassThru | Wait-Process
    Remove-Item -Recurse -Force $dir
    $p = ([Environment]::GetEnvironmentVariable('Path', 'User') -split ';') -ne $dir
    [Environment]::SetEnvironmentVariable('Path', ($p -join ';'), 'User')

Check:

proximamp version

The terminal says the command is not found.