-
Notifications
You must be signed in to change notification settings - Fork 109
Installation
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.
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
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.
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!