Building a debian package
Prerequisites
A Rust installation is required for this step. Installation instructions can be found here: rustup.rs
Install the cargo deb
prequisite for building a .deb
package:
cargo install cargo-deb
We also need to clone our repository somewhere:
git clone https://github.com/keybear/keybear && cd keybear
Build
Build the installation package:
cargo deb
This will produce a .deb
package in the target/debian
folder.
Install the package
Install the package:
sudo dpkg -i target/debian/keybear*.deb
Installing the package should start the systemd service, ensure it’s running without any errors:
sudo systemctl status keybear.service
Configure Tor
Let Tor load our configuration for the onion service, add the following line to /etc/tor/torrc
:
%include /etc/keybear/torrc
echo "%include /etc/keybear/torrc" | sudo tee -a /etc/tor/torrc
Restart the Tor service to enable the hidden service:
sudo systemctl restart tor.service
From source (advanced)
Cargo
Install the keybear binary:
cargo install keybear
Create a symbolic link in /usr/local/bin
:
ln -s $HOME/.cargo/bin/keybear /usr/local/bin/keybear