2021-10-08 09:52:37 +00:00
## Installation
### Using the binary
Get the latest release from [releases][releases-url] page or download the source code and execute `make build` .
2023-10-08 16:46:03 +00:00
Run the program: `./tstor-[VERSION]-[OS]-[ARCH]`
2021-10-08 09:52:37 +00:00
2023-10-08 16:46:03 +00:00
Defaults are good enough for starters, but you can change them. Here is the output of `./tstor -help` :
2021-10-08 09:52:37 +00:00
```text
NAME:
2023-10-08 16:46:03 +00:00
tstor - Torrent client with on-demand file downloading as a filesystem.
2021-10-08 09:52:37 +00:00
USAGE:
2023-10-08 16:46:03 +00:00
tstor [global options] [arguments...]
2021-10-08 09:52:37 +00:00
GLOBAL OPTIONS:
2023-10-08 16:46:03 +00:00
--config value YAML file containing tstor configuration. (default: "./tstor-data/config.yaml") [$tstor_CONFIG]
--http-port value HTTP port for web interface (default: 4444) [$tstor_HTTP_PORT]
--fuse-allow-other Allow other users to acces to all fuse mountpoints. You need to add user_allow_other flag to /etc/fuse.conf file. (default: false) [$tstor_FUSE_ALLOW_OTHER]
2021-10-08 09:52:37 +00:00
--help, -h show help (default: false)
```
#### Prerequisites on windows
Download and install [WinFsp ](http://www.secfs.net/winfsp/ ).
### Using Docker
Docker run example:
```shell
docker run \
--rm -p 4444:4444 -p 36911:36911 \
--cap-add SYS_ADMIN \
--device /dev/fuse \
--security-opt apparmor:unconfined \
2023-10-08 16:46:03 +00:00
-v /tmp/mount:/tstor-data/mount:shared \
-v /tmp/metadata:/tstor-data/metadata \
-v /tmp/config:/tstor-data/config \
tstor/tstor:latest
2021-10-08 09:52:37 +00:00
```
Docker compose example:
```yaml
2023-10-08 16:46:03 +00:00
tstor:
container_name: tstor
image: tstor/tstor:latest
restart: always
ports:
- "4444:4444/tcp"
- "36911:36911/tcp"
volumes:
- /home/user/mount:/tstor-data/mount:shared
- /home/user/metadata:/tstor-data/metadata
- /home/user/config:/tstor-data/config
security_opt:
- apparmor:unconfined
devices:
- /dev/fuse
cap_add:
- SYS_ADMIN
2021-10-08 09:52:37 +00:00
```
## Usage
After executing and load all torrent or magnet files, a web interface will be available at `http://localhost:4444`
It contains information about the mounted routes and torrent files like download/upload speed, leechers, seeders...
### Configuration File
2023-10-08 16:46:03 +00:00
You can see the default configuration file with some explanation comments [here ](https://git.kmsign.ru/royalcat/tstor/blob/master/templates/config_template.yaml ).
2021-11-29 10:53:37 +00:00
### Routes
Here there is a list of all available routes with their torrents and some info. You can add and remove torrents from here too.
2023-10-08 16:46:03 +00:00
![routes screen ](images/tstor-routes-border-large.png )
2021-12-09 16:39:26 +00:00
2021-11-29 10:53:37 +00:00
### Servers
2023-10-08 16:46:03 +00:00
Servers is a way to generate magnet files from folders.
All servers configured using the config yaml file will be here.
When some data is changed on these folders, a new magnet URI will be generated.
2021-11-29 10:53:37 +00:00
You can share that magnet URI with anyone to share these files.
2021-12-09 16:39:26 +00:00
2023-10-08 16:46:03 +00:00
![server screen ](images/tstor-server-border.png )
2021-12-09 16:39:26 +00:00
### Logs
You can check logs in real time from the web interface:
2023-10-08 16:46:03 +00:00
![logs screen ](images/tstor-logs-border.png )