Set up your own nZEDb usenet indexer in no time at all. This is a docker based installation based on the super-slim alpine linux distro.
- Linux (64-bit x86 based distro - Debian, Ubuntu, whatever) or macOS 10+
- docker 1.11+
- git
- make
- python 2.7
- virtualenv
ProTip: Setup docker to run without having to use sudo unless you like typing in your password again and again.
$ git clone https://github.com/slydetector/simply-nzedb.git nzedb
$ cd nzedb
# Create a python virtualenv for docker-compose
$ make venv
# Create a copy of the *single* config file
$ cp etc/simply_nzedb.conf.example etc/simply_nzedb.conf
# Update config file with usenet, irc, socks, etc settings
$ vim etc/simply_nzedb.conf
# Setup the ./data dir which contains nzedb config, nzbs, mysql data, log files, etc
$ bin/setup_data_dir
# Start up nzedb to do initial setup
$ [sudo] make start
# This will run through the web setup for you using settings from simply_nzedb.conf.
# Logs are in web_setup.log
$ bin/web_setup
# Update settings db table with locations of various executables like ffmpeg, mediainfo, etc
# and subscribe to alt.binaries.teevee for verification
$ [sudo] bin/apply_defaults
# Restart to pick up changes
$ [sudo] make start
# Attach to tmux and verify things are working by
# next'ing through the windows.
#
# Cheat sheet for getting around in tmux:
#
# Key Action
# --------------------------------------
# Ctrl-a n Next window
# Ctrl-a c Create new window
# Ctrl-a d Detach from tmux
#
$ [sudo] make attach
Go to http://<hostname>:8800/browse?t=5000
and you should see some TV releases soon.
Congratulations, you've just accomplished the hardest part of running nZEDb, setting it up!
Run make
to see what else you can do.
$ make
Welcome to simply-nzedb!
Core commands:
attach - attach to nzedb's tmux session
backup - backup database. nzedb must be running
help - print this help
logs - print container logs
mysql - mysql client
mysqltuner - run mysql tuner
pull - pull the latest version
restore - restore last database backup. nzedb must be running
shell - shell into the nzedb container
start - start nzedb (restarts if it is already running)
status - shows running containers
stop - stops nzedb
Developer commands:
build - build docker images locally instead of downloading from docker hub
test - run acceptance tests
See UPGRADE.md for version specific upgrade instructions.
- Run
make backup
or you'll probably regret things if things go horribly wrong - Run
git pull
to update to the latest docker files - Run
make pull
to pull the latest docker images - Run
make start
to restart nZEDb. The database schema is updated if necessary when starting up.
If after an upgrade, make attach
fails, it is usually an indication that the database is getting updated or running migration steps. Use make logs | less -R
to check on the progress and try again in a few minutes.
You can customize mysql settings by creating data/etc_mysql_conf.d/nzedb.cnf
. e.g.
[mysqld]
key_buffer_size = 2G
innodb_buffer_pool_size = 8G
group_concat_max_len = 32768
- PreDB auto-population
Try the Gitter chat room