This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import bencode | |
import re | |
import sys | |
# Inspired by https://github.com/ctminime/QB_Migrate_to_Linux | |
# Need `pip3 install bencode.py`. | |
# Run in folder like "/home/user/.local/share/data/qBittorrent/BT_backup/" (configured in qBitTorrent). | |
# Takes 2 parameters: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://github.com/xtaci/kcptun/releases/download/v20180316/kcptun-linux-amd64-20180316.tar.gz | |
tar xvf kcptun-linux-amd64-20180316.tar.gz | |
sudo mv server_linux_amd64 /usr/local/bin/kcptun_server | |
sudo mv client_linux_amd64 /usr/local/bin/kcptun_client | |
sudo mkdir -p /etc/kcptun | |
sudo bash -c "cat <<EOT > /etc/kcptun/server_conf.json | |
{ | |
\"listen\": \":4321\", | |
\"target\": \"127.0.0.1:8421\", |