Page 1 of 1

Compiling Mullvad VPN app on Pi 4B

Posted: Thu Feb 27, 2020 9:28 am
by count_wakula
Hi,

I am trying to compile the open source Mullvad VPN app on Pi 4B running DietPi (a raspbian 9.0 distribution).

They do include instructions on their github page:

https://github.com/mullvad/mullvadvpn-a ... /README.md

However, I don't feel confident enough in my linux CLI skills to experiment with this.

As I see it, I have to do the following steps to compile and install Mullvad VPN:

1. Check out from git repo

Code: Select all

git clone https://github.com/mullvad/mullvadvpn-app.git
cd mullvadvpn-app
git submodule update --init
2. Get all build dependencies

Code: Select all

# For building the daemon
sudo apt install gcc libdbus-1-dev
# For building the installer
sudo apt install rpm
3. Get/install rust

Just download and unpack the node-v12.xxxx.tar.xz tarball and add its bin directory to your PATH.

I am actually not sure how to go about this.

4. Build the application

Code: Select all

./build.sh --dev-build
As I understand, this should create a ARM deb file, which I then install.

How do I get it run at boot? Do I need run something similar to this:

For Raspbian:

Code: Select all

sudo useradd -rm mullvad -G pi -s /usr/sbin/nologin
For DietPi:

Code: Select all

sudo useradd -rm mullvad -G dietpi -s /usr/sbin/nologin
Do I need to create a systemd service?

Any additional guidance would be greatly appreciated. I've compiled headless applications on DietPi before, but only with the help of in-depth, step by step guides for Raspbian/DietPi.

Re: Compiling Mullvad VPN app on Pi 4B

Posted: Thu Feb 27, 2020 1:00 pm
by fruitoftheloom
count_wakula wrote:
Thu Feb 27, 2020 9:28 am
Hi,

I am trying to compile the open source Mullvad VPN app on Pi 4B running DietPi (a raspbian 9.0 distribution).

They do include instructions on their github page:

https://github.com/mullvad/mullvadvpn-a ... /README.md

However, I don't feel confident enough in my linux CLI skills to experiment with this.

As I see it, I have to do the following steps to compile and install Mullvad VPN:

1. Check out from git repo

Code: Select all

git clone https://github.com/mullvad/mullvadvpn-app.git
cd mullvadvpn-app
git submodule update --init
2. Get all build dependencies

Code: Select all

# For building the daemon
sudo apt install gcc libdbus-1-dev
# For building the installer
sudo apt install rpm
3. Get/install rust

Just download and unpack the node-v12.xxxx.tar.xz tarball and add its bin directory to your PATH.

I am actually not sure how to go about this.

4. Build the application

Code: Select all

./build.sh --dev-build
As I understand, this should create a ARM deb file, which I then install.

How do I get it run at boot? Do I need run something similar to this:

For Raspbian:

Code: Select all

sudo useradd -rm mullvad -G pi -s /usr/sbin/nologin
For DietPi:

Code: Select all

sudo useradd -rm mullvad -G dietpi -s /usr/sbin/nologin
Do I need to create a systemd service?

Any additional guidance would be greatly appreciated. I've compiled headless applications on DietPi before, but only with the help of in-depth, step by step guides for Raspbian/DietPi.

Where does it state it is suitable software for ARMHF Linux ??

https://mullvad.net/en/download/

Works on Ubuntu 16.04.2+, Debian 9+ (64 bit only) Linux

https://mullvad.net/en/help/install-mullvad-app-linux/

Re: Compiling Mullvad VPN app on Pi 4B

Posted: Sat Feb 29, 2020 11:50 am
by count_wakula
Their binaries are for x64, that's why I wanted to compile a version for ARM.

Re: Compiling Mullvad VPN app on Pi 4B

Posted: Sat Feb 29, 2020 1:28 pm
by fruitoftheloom
count_wakula wrote:
Sat Feb 29, 2020 11:50 am
Their binaries are for x64, that's why I wanted to compile a version for ARM.

You would need to Build from Source Code if it is available, the Binaries appear to be pre-compiled for x86-64....

...personally would find an alternative !!

Re: Compiling Mullvad VPN app on Pi 4B

Posted: Wed Mar 04, 2020 6:12 pm
by count_wakula
fruitoftheloom wrote:
Sat Feb 29, 2020 1:28 pm
count_wakula wrote:
Sat Feb 29, 2020 11:50 am
Their binaries are for x64, that's why I wanted to compile a version for ARM.

You would need to Build from Source Code if it is available, the Binaries appear to be pre-compiled for x86-64....

...personally would find an alternative !!
That's what I am trying to figure out.

The linked pages described compiling not installing. As I understand it the instructions allow you to compile a ARM .deb that can then be installed on DietPi/Raspbian.

There are very few reputable alternative that allow port-forwarding at the VPN level.