Pricing Network
IP Address
18.208.126.130
Internet provider
Amazoncom
NOT CONNECTED
Your Internet provider can possibly track your Internet activity.
Help & SupportContact
IP Address
18.208.126.130
Internet provider
Amazoncom
NOT CONNECTED
Your Internet provider can possibly track your Internet activity.
Help Center

Building the IVPN CLI Client for Linux on a Raspberry Pi

  1. Install packages for compiling, building, and connecting:

    $ sudo apt install ruby ruby-dev ruby-full rpm curl git openvpn obfsproxy
    Note: Install the WireGuard package as required.
  2. Install FPM:

    $ sudo gem install --no-document fpm
    Fetching ...
    ...
    Successfully installed fpm-1.11.0
  3. Install the most recent version of Go via https://golang.org/dl/ for the ARMv6 architecture:

    $ wget -O go1.14.2.linux-armv6l.tar.gz https://dl.google.com/go/go1.14.2.linux-armv6l.tar.gz
    $ sudo tar -C /usr/local -xzf go1.14.2.linux-armv6l.tar.gz
    $ rm -i go1.14.2.linux-armv6l.tar.gz

    Note: Our IVPN Client requires Go version 1.13 or higher and the Raspbian repositories include an older version of the golang package:

    $ apt-cache policy golang
    golang:
      Installed: (none)
      Candidate: 2:1.11~1+b6
  4. Add Go to the $PATH and define the $GOPATH variable by adding two lines to the bottom of ~/.profile, then source the file:

    $ echo -e "\n\nPATH=$PATH:/usr/local/go/bin\nGOPATH=$HOME/go" >> ~/.profile
    $ source ~/.profile

    Verify the changes and add the $GOPATH folder:

    $ which go
    /usr/local/go/bin/go
    $ mkdir -v $GOPATH
    mkdir: created directory '/home/pi/go'
  5. Follow these steps for building the Official IVPN Client for Linux.

    1. Set the $GOPATH variable to your projects folder:

      $ export GOPATH=$HOME/go
    2. Create the folder structure:

      $ cd $GOPATH
      $ mkdir -p src/github.com/ivpn
    3. Clone the CLI project repository:

      $ cd $GOPATH/src/github.com/ivpn
      $ git clone https://github.com/ivpn/desktop-app-cli.git
    4. Clone daemon project repository:

      $ cd $GOPATH/src/github.com/ivpn
      $ git clone https://github.com/ivpn/desktop-app-daemon.git
    5. Compile the code and build a .DEB package:

      $ cd $GOPATH/src/github.com/ivpn/desktop-app-cli
      $ References/Linux/build-packages.sh -v 2.12.0
      ...
      ---------------------------
      DEB package...
      ...
      Created package {:path=>"ivpn_2.12.0_armhf.deb"}
      ---------------------------
    6. Packages can be found in $GOPATH/src/github.com/ivpn/desktop-app-cli/References/Linux/_out_bin/.

  6. Install the new package:

    $ sudo apt install $GOPATH/src/github.com/ivpn/desktop-app-cli/References/Linux/_out_bin/ivpn_2.12.0_armhf.deb
  7. Check our Command Line Client FAQ for the next steps.

Was this answer helpful?

Can you please tell us how we can improve this article?

Still have questions?

Get in touch and we'll get back to you in a few hours.

Contact Support

Interested in privacy?

Read our latest privacy news and keep up-to-date on IVPN services.

Visit the IVPN Blog