Compare commits
No commits in common. "5a2ac0c3dceb3935aeaf5427ede73154defc2fca" and "a8b1029ad29191d85ed9a85f6a06234bb32af1ed" have entirely different histories.
5a2ac0c3dc
...
a8b1029ad2
16
README.md
16
README.md
|
@ -13,19 +13,7 @@ A TORch solution consists of 3 processes:
|
|||
* MQTT broker - Any MQTT broker, reachable via IPv4 or Tor, through TLS or insecure communications
|
||||
* `torch-subscriber` - Listens for and handles onion hostname publications
|
||||
|
||||
## Installation
|
||||
|
||||
### Install Package from Rudefox Debian Repo
|
||||
|
||||
1. Add the [Rudefox Repo](https://rudefox.io/repo/) as an `apt` source
|
||||
|
||||
2. Install the `torch-agent` package
|
||||
|
||||
```bash
|
||||
sudo apt install torch-agent
|
||||
```
|
||||
|
||||
### Build Debian Package from Source
|
||||
## Build Debian Package
|
||||
|
||||
If you don't already have a GPG key, generate one:
|
||||
|
||||
|
@ -37,7 +25,7 @@ Using the e-mail address you provided during GPG key generation, run `build-deb.
|
|||
|
||||
```bash
|
||||
./build-deb.sh john@doe.com
|
||||
apt update && apt install build/torch-agent_0.0.5-1_all.deb
|
||||
apt update && apt install build/torch-agent_0.0.4-1_all.deb
|
||||
```
|
||||
|
||||
This will:
|
||||
|
|
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -1,4 +1,4 @@
|
|||
torch-agent (0.0.5-1) stable; urgency=medium
|
||||
torch-agent (0.0.4-1) stable; urgency=medium
|
||||
|
||||
* Update
|
||||
|
||||
|
|
|
@ -35,6 +35,15 @@ In a separate terminal window, run the subscriber:
|
|||
|
||||
#### Run TORch Agent in Vagrant
|
||||
|
||||
[Build](..) the latest source into a Debian package and copy it to `example/`
|
||||
|
||||
```bash
|
||||
cd ..
|
||||
./make-pkg.sh john@doe.com
|
||||
cp -f build/torch-agent_0.0.4-1_all.deb example/
|
||||
cd example
|
||||
```
|
||||
|
||||
Run the Vagrant box in a third terminal window:
|
||||
|
||||
```bash
|
||||
|
|
|
@ -3,4 +3,3 @@ setuptools~=50.3.2
|
|||
stdeb3~=0.9.0.post2
|
||||
paho-mqtt~=1.5.1
|
||||
stem>=1.8.0
|
||||
PySocks
|
||||
|
|
|
@ -16,7 +16,6 @@ install_requires =
|
|||
setuptools~=50.3.1
|
||||
pip~=20.2.3
|
||||
stem
|
||||
PySocks
|
||||
|
||||
[options.entry_points]
|
||||
console_scripts = torch-agent=torch_agent.torch_agent:main
|
||||
|
|
|
@ -1 +1 @@
|
|||
__version__ = "0.0.5"
|
||||
__version__ = "0.0.4"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from stem.control import Controller
|
||||
import stem.connection
|
||||
import paho.mqtt.client as mqtt
|
||||
import socks
|
||||
from paho.mqtt.client import socks
|
||||
import ssl
|
||||
import socket
|
||||
import json
|
||||
|
|
Loading…
Reference in New Issue
Block a user