updated installation instructions

This commit is contained in:
k4yt3x 2023-02-03 02:06:51 +00:00
parent aa164078b4
commit b5e2e99480

View File

@ -2,41 +2,46 @@
wg-meshconf is a tool that will help you to generate peer configuration files for WireGuard mesh networks. You can easily and quickly create WireGuard mesh networks using this tool. wg-meshconf is a tool that will help you to generate peer configuration files for WireGuard mesh networks. You can easily and quickly create WireGuard mesh networks using this tool.
## Installation (Pip; Recommended) ## Installation (PyPI)
wg-meshconf is available on PyPI. You can install it with pip and run the program via the `wg-meshconf` command. **This is the recommended way to install wg-meshconf for regular users.** This installation method installs the newest release version of wg-meshconf and all of the required dependencies from PyPI.
```shell ```shell
# installing the program with pip # installing the program with pip
pip3 install --user -U wg-meshconf # note that Pip for Python3 might be named "pip3" on some systems
pip install --user -U wg-meshconf
# running the program # running the program
wg-meshconf showpeers wg-meshconf showpeers
``` ```
## Installation (Manual) You may now run the program by executing the `wg-meshconf` command.
Alternatively, if you do not want to install the program into the system with pip, you can clone this repository using `git` or download the [master branch's ZIP file](https://github.com/k4yt3x/wg-meshconf/archive/master.zip). ## Installation (GitHub)
Alternatively, if you would like to install the program directly from source code, you can follow the steps below. If you would like to install directly from the Git repository:
```shell
# install the HEAD (latest) commit
pip install 'wg-meshconf@git+https://github.com/k4yt3x/wg-meshconf.git'
# install from a specific tag or commit
pip install 'wg-meshconf@git+https://github.com/k4yt3x/wg-meshconf.git@2.5.1'
pip install 'wg-meshconf@git+https://github.com/k4yt3x/wg-meshconf.git@aa16407'
```
You can also clone it and install it locally.
```shell ```shell
# cloning the repository with git # cloning the repository with git
git clone https://github.com/k4yt3x/wg-meshconf.git git clone https://github.com/k4yt3x/wg-meshconf.git
# download the master branch's ZIP file # enter the directory
wget https://github.com/k4yt3x/wg-meshconf/archive/master.zip cd wg-meshconf
# decompress the ZIP file # install the program with Pip
unzip wg-meshconf-master.zip # Pip and PDM will take care of dependency installation
``` pip install -U .
Then, you will need to install Python's dependencies.
```shell
# if you cloned this repository
pip3 install --user -Ur wg-meshconf/wg_meshconf/requirements.txt
# if you downloaded and decompressed the zip file
pip3 install --user -Ur wg-meshconf-master/wg_meshconf/requirements.txt
``` ```
## Learn by an Example ## Learn by an Example