LibreVPN:Instalar/en

De HackLab
Saltar a: navegación, buscar


<languages/> Installation guide for LibreVPN/en

Install dependencies

To work, LibreVPN/en needs at least tinc. Optional dependencies are the Avahi daemon and its libraries, git and rsync to install and the GNU coreutils. If any other tools needs something else it'll tell you.

In distros with apt-get:

 apt-get install tinc avahi-daemon libnss-mdns git rsync 

In distros with pacman:

pacman -Sy tinc avahi nss-mdns git rsync

Using from git

LibreVPN's development is done in git. The configuration tools can be used directly from this repository.

Clone

git clone https://github.com/fauno/librevpn

The tools and configuration files will reside in the librevpn/ directory inside the directory where you cloned it, for instance in your home dir (~/librevpn/ or /home/you/librevpn).

Dialog-warning-yellow.svg Don't remove this directory after installing your node! It holds your node's configuration files and it'll be the place where you make changes to it.



Upgrade

Move into the repository's directory and upgrade it with git:

cd ~/librevpn
git pull


Using the development version

After cloning the repository you have to move to the develop branch. Development is done in this branch so it may be unstable. If you have any trouble please report it!

cd ~/librevpn
git checkout develop
git pull

Using it

After you clone the tool you don't need to do anything else. From this directory you can use them all.

cd ~/librevpn
./lvpn -h

You can also add this directory to your PATH to run them from any other place:

export PATH=~/librevpn:$PATH
lvpn -h


Install on system

From the development version

Follow steps from #Using from git and run as root:

sudo make PREFIX=/usr install

After this lvpn and its libraries will be installed on the system, but this step is only recommended if you're preparing distribution packages (.deb, .pkg.tar.xz, .rpm, etc.)

From repositories

From Parabola GNU/Linux-libre repositories you can install the librevpn package.

We're working on Debian-based distros repositories (Triquel, Mint, Ubuntu, etc.)