🐧
Installing on Linux (CLI)

Initial setup

1. Computer Preparation

Begin by updating your package lists. The below command downloads package lists from your repositories and "updates" them to get information on the newest versions of packages and their dependencies. It will do this for all repositories and PPAs.
Run the following command:
1
sudo apt-get update
Copied!
You'll notice a bunch of package lists were downloaded. Once this is complete, run the below command to fetch new versions of any packages we currently have installed on the system:
1
sudo apt-get upgrade
Copied!
You'll be prompted to authorise the use of disk space. Type y and press Enter to authorise.
If you do not have curl installed on your computer, now is also a good time to install it, as we will use it later:
1
sudo apt install curl
Copied!

2. Installation

You only need to do this step the first time you want to set up the Lokinet repository. After you've done it once, the repository will automatically update whenever you fetch new system updates.
This first command installs the public key used to sign official Lokinet binaries.
1
curl -s https://deb.imaginary.stream/public.gpg | sudo apt-key add -
Copied!
The next command tells apt where to find the packages:
1
echo "deb https://deb.imaginary.stream $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/imaginary.stream.list
Copied!
Note: if you're running Linux Mint and get an error with this command, check out Troubleshooting.
Then resync your package repositories with:
1
sudo apt update
Copied!
Now install Lokinet:
1
sudo apt install lokinet
Copied!
Congratulations, Lokinet is now installed and running in the background.

Starting and stopping Lokinet

To start Lokinet manually, run the following command:
1
sudo systemctl start lokinet
Copied!
To stop Lokinet manually, run the following command:
1
sudo systemctl stop lokinet
Copied!

Updating Lokinet

To update Lokinet, run the following command:
1
sudo apt update && sudo apt install lokinet && sudo lokinet-bootstrap && sudo systemctl
Copied!

Using Lokinet

Head over to Exit nodes or Accessing SNApps for an overview of the exciting things you can do with Lokinet up and running!

CLI installation troubleshooting

Failed to decode boostrap RC

If your bootstrap is not configured properly, run the following command:
1
sudo lokinet-bootstrap
Copied!
Then restart Lokinet:
1
sudo systemctl restart lokinet
Copied!

Linux Mint does not work with (lsb-release)

It has been reported that Linux Mint users may need to use the following command instead of the second command in 2. Installation:
1
echo "deb https://deb.imaginary.stream bionic main" | sudo tee /etc/apt/sources.list.d/imaginary.stream.list
Copied!
Last modified 13d ago