1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-26 19:39:53 +03:00
SoftEtherVPN/src/BUILD_UNIX.md

150 lines
4.0 KiB
Markdown
Raw Normal View History

This document describes how to build SoftEtherVPN for Unix based Operating systems
2014-01-04 17:00:08 +04:00
- [Requirements](#requirements)
* [Install requirements on Centos/RedHat](#install-requirements-on-centosredhat)
* [Install Requirements on Debian/Ubuntu](#install-requirements-on-debianubuntu)
- [Build from source code and instal](#build-from-source-code-and-instal)
- [How to Run SoftEther](#how-to-run-softether)
* [Start/Stop SoftEther VPN Server](#startstop-softether-vpn-server)
* [Start/Stop SoftEther VPN Bridge](#startstop-softether-vpn-bridge)
* [Start/Stop SoftEther VPN Client](#startstop-softether-vpn-client)
- [Using SoftEther without installation.](#using-softether-without-installation)
2014-01-04 17:00:08 +04:00
# Requirements
2014-01-04 17:00:08 +04:00
You need to install the following software to build SoftEther VPN for UNIX.
- Linux, FreeBSD, Solaris or Mac OS X.
- GNU Compiler Collection (gcc) and binary utilities. ***
2014-01-04 17:00:08 +04:00
- GNU Make (gmake).
- GNU C Library (glibc).
- POSIX Threads (pthread).
- OpenSSL (crypto, ssl).
- libiconv.
- readline.
- ncurses.
*It has been noted that clang is also supported as an alternative to gcc.*
## Install requirements on Centos/RedHat
2014-01-04 17:00:08 +04:00
```bash
sudo yum -y groupinstall "Development Tools"
sudo yum -y install cmake ncurses-devel openssl-devel readline-devel zlib-devel
```
2014-01-04 17:00:08 +04:00
## Install Requirements on Debian/Ubuntu
```bash
sudo apt -y install cmake gcc libncurses5-dev libreadline-dev libssl-dev make zlib1g-dev
```
2014-01-04 17:00:08 +04:00
# Build from source code and instal
2014-01-04 17:00:08 +04:00
To build the programs from the source code, run the following commands:
2014-01-04 17:00:08 +04:00
```bash
git clone https://github.com/SoftEtherVPN/SoftEtherVPN.git
cd SoftEtherVPN
./configure
make -C tmp
make -C tmp install
```
2014-01-04 17:00:08 +04:00
This will compile and install SoftEther VPN Server, Bridge and Client binaries under your executable path.
2014-01-04 17:00:08 +04:00
If any error occurs, please check the above requirements.
2014-01-04 17:00:08 +04:00
# How to Run SoftEther
2014-01-04 17:00:08 +04:00
## Start/Stop SoftEther VPN Server
2014-01-04 17:00:08 +04:00
To start the SoftEther VPN Server background service, run the following:
```bash
vpnserver start
```
2014-01-04 17:00:08 +04:00
To stop the service, run the following:
```bash
vpnserver stop
```
2014-01-04 17:00:08 +04:00
To configure the running SoftEther VPN Server service,
you can use SoftEther VPN Command Line Management Utility as following:
```bash
vpncmd
```
2014-01-04 17:00:08 +04:00
Or you can also use VPN Server Manager GUI Tool on other Windows PC to
connect to the VPN Server remotely. You can download the GUI Tool
from http://www.softether-download.com/.
## Start/Stop SoftEther VPN Bridge
2014-01-04 17:00:08 +04:00
To start the SoftEther VPN Bridge background service, run the following:
```bash
vpnbridge start
```
2014-01-04 17:00:08 +04:00
To stop the service, run the following:
```bash
vpnbridge stop
```
2014-01-04 17:00:08 +04:00
To configure the running SoftEther VPN Bridge service,
you can use SoftEther VPN Command Line Management Utility as following:
```bash
vpncmd
```
2014-01-04 17:00:08 +04:00
Or you can also use VPN Server Manager GUI Tool on other Windows PC to
connect to the VPN Bridge remotely. You can download the GUI Tool
from http://www.softether-download.com/.
## Start/Stop SoftEther VPN Client
2014-01-04 17:00:08 +04:00
To start the SoftEther VPN Client background service, run the following:
```bash
vpnclient start
```
2014-01-04 17:00:08 +04:00
To stop the service, run the following:
```bash
vpnclient stop
```
2014-01-04 17:00:08 +04:00
To configure the running SoftEther VPN Client service,
you can use SoftEther VPN Command Line Management Utility as following:
```bash
vpncmd
```
2014-01-04 17:00:08 +04:00
Or you can also use VPN Client Manager GUI Tool on other Windows PC to
connect to the VPN Client remotely. You can download the GUI Tool
from http://www.softether-download.com/.
# Using SoftEther without installation.
You can use any SoftEtherVPN component (server, client, bridge) without installing it, if you wish so.
In this case please do not run the `make install` command after compiling the source code, and head directly to the **bin/** directory. There you will find the generated binaries for SoftEtherVPN and those could be used without installing SoftEtherVPN.
2014-01-04 17:00:08 +04:00
************************************
Thank You Using SoftEther VPN !
By SoftEther VPN Open-Source Project
http://www.softether.org/