Skip to content
Adrien Gallouët edited this page Apr 4, 2020 · 4 revisions

Glorytun only depends on libsodium version >= 1.0.4. Which can be installed on a wide variety of systems.

Linux is the platform of choice but the code is standard so it should be easily ported on other POSIX systems. It was successfully tested on OpenBSD, FreeBSD and MacOS.

Linux

Download the binary of the release you want here. For example if you want to install glorytun 0.3.4 on x86_64:

$ wget https://github.com/angt/glorytun/releases/download/v0.3.4/glorytun-0.3.4-x86_64-linux-musl.bin
$ chmod +x glorytun-0.3.4-x86_64-linux-musl.bin
$ ./glorytun-0.3.4-x86_64-linux-musl.bin version
0.3.4

It is really easy to get a working glorytun without being root. The only required capability is CAP_NET_ADMIN:

$ sudo setcap cap_net_admin=ep glorytun-0.3.4-x86_64-linux-musl.bin

Unix-like systems or exotic architectures

You will need git, make, gcc (or clang) and libsodium: To build and install the latest stable version from GitHub:

$ git clone https://github.com/angt/glorytun --recursive --branch stable
$ cd glorytun
$ make

When libsodium is too old or not available on your system, just call the script ./sodium.sh before make.

Finally, to install the stripped binary, call:

$ sudo make install

This will install the stripped binary in /usr/bin by default.

As usual you can use options CC, prefix and DESTDIR to adapt to your use-cases.

Cross-building a static binary

If you have a specific toolchain, like for example mips-linux-musl, building a static binary is easy as:

$ git clone https://github.com/angt/glorytun --recursive --branch stable
$ cd glorytun
$ ./sodium.sh mips-linux-musl
$ make X=mips-linux-musl

Enjoy!