Compilation and Installation
Below is a guide on how to compile Rosenpass yourself, including via the binary files. This can be used to compile Rosenpass for systems not yet fully supported, such as Debian, and provides a more customised experience.
- You can compile Rosenpass yourself. This gives you the advantage of ensuring that you use Rosenpass as exactly as the source code is in Git.
- Install the dependencies. Under Debian, you can do this with the following command:
sudo apt-get --yes install libsodium-dev libclang-dev cmake pkg-config git build-essential
- If you want to use Rosenpass with WireGuard, install WireGuard. On Debian, you can do this with the following command:
sudo apt-get --yes install wireguard
- Install Rust >= 1.64.0 (as of 2023-07-01). This can be achieved using Rustup, for example.
- Clone the Git Repository:
git clone https://github.com/rosenpass/rosenpass.git
- Change to the Rosenpass directory:
cd rosenpass
- Switch to the version you want to install. Without switching, you will install and compile the dev version. Find the name of the version that you would like to install on the releases page, or find the name of the latest release. Use the following command to switch to version, e.g., 0.2.2:
git checkout v0.2.2
- Compile Rosenpass, this may take a while:
cargo build --release
- Install Rosenpass:
sudo install target/release/rosenpass /usr/local/bin
- If you want the Rosenpass helper:
rp
It can be installed it with:
sudo install rp /usr/local/bin
That’s it! You have now downloaded, compiled, and installed Rosenpass.
- If Rosenpass is not yet available for your distribution, you can attempt to download it manually.
- Download the desired version for your operating system from the releases page, or directly jump to the latest version.
- Unzip the file. On Linux you can use tar for this:
tar xf rosenpass-x86_64-linux-0.2.2.tar
- Install Rosenpass:
sudo install bin/rosenpass /usr/local/bin
- If you want the Rosenpass helper:
rp
It can be installed it with:
sudo install bin/rp /usr/local/bin
- Delete the downloaded files:
rm -r rosenpass-x86_64-linux-0.2.2.tar bin/
That’s it! You have now downloaded and installed Rosenpass.