count_wakula
Posts: 8
Joined: Sat Mar 31, 2018 7:27 pm

Compiling Mullvad VPN app on Pi 4B

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.

fruitoftheloom
Posts: 23549
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Compiling Mullvad VPN app on Pi 4B

Thu Feb 27, 2020 1:00 pm

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/
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

count_wakula
Posts: 8
Joined: Sat Mar 31, 2018 7:27 pm

Re: Compiling Mullvad VPN app on Pi 4B

Sat Feb 29, 2020 11:50 am

Their binaries are for x64, that's why I wanted to compile a version for ARM.

fruitoftheloom
Posts: 23549
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Compiling Mullvad VPN app on Pi 4B

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 !!
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

count_wakula
Posts: 8
Joined: Sat Mar 31, 2018 7:27 pm

Re: Compiling Mullvad VPN app on Pi 4B

Wed Mar 04, 2020 6:12 pm

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.

Return to “Beginners”