winget install Python.Python.3.11
If winget does not work, download and install manually: https://www.python.org/downloads/windows/
winget install git.git
If winget does not work, download and install manually: https://git-scm.com/download/win
winget install gsudo wireguard.wireguard
Run this powershell script (paste into powershell). We do not need admin privileges.
We do not support any installer package yet.
You need to open new commnandline window if you just installed python and git
Set-ExecutionPolicy -Scope CurrentUser unrestricted
pip install virtualenv
mkdir -ErrorAction SilentlyContinue ${env:HOMEDRIVE}${env:HOMEPATH}/lvpn
mkdir -ErrorAction SilentlyContinue ${env:HOMEDRIVE}${env:HOMEPATH}/lvpn/src
cd ${env:HOMEDRIVE}${env:HOMEPATH}/lvpn/src
git clone https://github.com/limosek/lvpn.git
cd lvpn
python -m virtualenv virtualenv
. virtualenv\scripts\activate.ps1
pip install -r requirements.txt
python client.py -h
# Add shortcut to Desktop
$TargetScript = $(resolve-path client.py)
$ShortcutFile = [Environment]::GetFolderPath("Desktop") + "\LVPN.lnk"
$WScriptShell = New-Object -ComObject WScript.Shell
$Shortcut = $WScriptShell.CreateShortcut($ShortcutFile)
$Shortcut.TargetPath = (Get-Command python).Path
$Shortcut.Arguments = $TargetScript.ToString()
$Shortcut.Save()
echo OK
You should see general help message for client. Continue to client-config
Install Pyton
As a root, run these commands
apt update
apt install python3 python3-pip python3-venv unzip
You should see general help message for client. Continue to client-config
As a user, continue
cd ~/lvpn/src
git clone https://github.com/limosek/lvpn.git
cd lvpn
python -m venv venv
. venv/scripts/activate
pip3 install -r requirements.txt
python3 client.py -h
echo OK
You should see general help message for client. Continue to client-config
Set-ExecutionPolicy -Scope CurrentUser unrestricted
cd ${env:HOMEDRIVE}${env:HOMEPATH}/lvpn/src/lvpn
git pull
python -m venv venv
. venv\scripts\activate.ps1
pip install -r requirements.txt
python client.py -h
echo OK
You should see general help message for client. Continue to client-config
cd ~/lvpn/src/lvpn
git pull
. venv\scripts\activate
pip3 install -r requirements.txt
python3 client.py -h
echo OK
You should see general help message for client. Continue to client-config