Install instructions for Linux:
This Install needs to be done on all nodes of the network exactly the same, no matter if it is the server/hub or a node. ## Install Dependencies
We will be using apt to install development tools and dependencies before we download the source code of Tinc.
First we will download essential packages to compile Tinc as a sudo user.
sudo apt install build-essential automake libssl-dev liblzo2-dev libbz2-dev zlib1g-dev libncurses5-dev libreadline-dev net-tools wget
Download Tinc
Navigate into a tmp folder. - (Note: I was getting errors running the configure file in the tmp folder)
cd /tmp
Download tinc 1.1 with wget and uncompres the downloaded item to a folder with tar.
wget https://www.tinc-vpn.org/packages/tinc-1.1pre17.tar.gz
tar xvf tinc-1.1pre17.tar.gz
Install from source
Navigate into the folder and run the configure file to set tinc up.
cd tinc-1.1pre17
sh ./configure
Install Tinc!
make
sudo make install
Config Settings
Once installed, create a configuration directory. All configurations of tinc will happen in this folder. Using tinc subcommands (like invite / join), result in changes to the files in this folder.
sudo mkdir -p /usr/local/etc/tinc/
we also need to make a folder to hold the pid (working file)
sudo mkdir -p /usr/local/var/run/
Tinc App Image
The tinc executable is installed in
/usr/local/sbin/tinc
This means that you can only run tinc as sudo, since sbin directory saves binary executables that can be ran only by sudo (s+bin)