Compare commits
No commits in common. "5a2ac0c3dceb3935aeaf5427ede73154defc2fca" and "a8b1029ad29191d85ed9a85f6a06234bb32af1ed" have entirely different histories.
5a2ac0c3dc
...
a8b1029ad2
18
README.md
18
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
|
* MQTT broker - Any MQTT broker, reachable via IPv4 or Tor, through TLS or insecure communications
|
||||||
* `torch-subscriber` - Listens for and handles onion hostname publications
|
* `torch-subscriber` - Listens for and handles onion hostname publications
|
||||||
|
|
||||||
## Installation
|
## Build Debian Package
|
||||||
|
|
||||||
### 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
|
|
||||||
|
|
||||||
If you don't already have a GPG key, generate one:
|
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
|
```bash
|
||||||
./build-deb.sh john@doe.com
|
./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:
|
This will:
|
||||||
|
@ -56,4 +44,4 @@ The configuation directory can be specified by
|
||||||
|
|
||||||
A fully configured example can be found [here](example)
|
A fully configured example can be found [here](example)
|
||||||
|
|
||||||
See the sample [`torch.conf`](torch.conf) file for additional configuration options and details
|
See the sample [`torch.conf`](torch.conf) file for additional configuration options and details
|
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
|
* Update
|
||||||
|
|
||||||
|
|
|
@ -35,10 +35,19 @@ In a separate terminal window, run the subscriber:
|
||||||
|
|
||||||
#### Run TORch Agent in Vagrant
|
#### 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:
|
Run the Vagrant box in a third terminal window:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
vagrant up
|
vagrant up
|
||||||
```
|
```
|
||||||
|
|
||||||
You should see that the broker received a connection from the Vagrant box at boot up and the subscriber received the onion hostname. You can use a local `tor` proxy to connect to the vagrant box using SSH and the onion hostname.
|
You should see that the broker received a connection from the Vagrant box at boot up and the subscriber received the onion hostname. You can use a local `tor` proxy to connect to the vagrant box using SSH and the onion hostname.
|
|
@ -3,4 +3,3 @@ setuptools~=50.3.2
|
||||||
stdeb3~=0.9.0.post2
|
stdeb3~=0.9.0.post2
|
||||||
paho-mqtt~=1.5.1
|
paho-mqtt~=1.5.1
|
||||||
stem>=1.8.0
|
stem>=1.8.0
|
||||||
PySocks
|
|
||||||
|
|
|
@ -16,7 +16,6 @@ install_requires =
|
||||||
setuptools~=50.3.1
|
setuptools~=50.3.1
|
||||||
pip~=20.2.3
|
pip~=20.2.3
|
||||||
stem
|
stem
|
||||||
PySocks
|
|
||||||
|
|
||||||
[options.entry_points]
|
[options.entry_points]
|
||||||
console_scripts = torch-agent=torch_agent.torch_agent:main
|
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
|
from stem.control import Controller
|
||||||
import stem.connection
|
import stem.connection
|
||||||
import paho.mqtt.client as mqtt
|
import paho.mqtt.client as mqtt
|
||||||
import socks
|
from paho.mqtt.client import socks
|
||||||
import ssl
|
import ssl
|
||||||
import socket
|
import socket
|
||||||
import json
|
import json
|
||||||
|
|
Loading…
Reference in New Issue
Block a user