4.8 KiB
SETUP
-
tmux 1.6 or newer is needed to runs these scripts. This script relies on tmux reporting that the "Pane is dead". That is how the script knows that is nothing running in that pane and to restart it for another loop. Seeing "Pane is dead" is normal and expected.
-
To exit the scripts without any worry of causing problems. Click into the Monitor pane, top left and Ctrl-c. This will stop the monitor script. When all of the other panes show dead, then it is ok to run Ctrl-a c and in new window run killall tmux.
-
These scripts were written and tested on Ubuntu 12.10 where bash is located at /bin/bash. You may need to create a symlink or edit these scripts accordingly.
-
Please backup your database first. Something like this should do it.
mysqldump --opt -u root -p newznab > ~/newznab_backup.sql
-
The first step is to decide whether or not you will convert your database to the InnoDB engine. The InnoDB has a lot of benefits, too many to list here, but more ram is required. How much exactly, depends on too many things to list here.
-
If you decide to convert your database, I recommend using kevin123's github. I recommend only converting the binaries a parts table, using compressed tables. But, there are many choices. I suggest you read his README and follow his recommendations. Or, simply:
cd /var/www/newznab/misc/testing
git clone https://github.com/kevinlekiller/Newznab-InnoDB-Dropin.git kev-innodb
cd kev-innodb/lib/innodb
php convertToInnoDB.php
- Now, Clone my github. Theses scripts should be able to run from any path, but this location is where I was asked to put it.
cd /var/www/newznab/misc/update_scripts/nix_scripts/
git clone https://github.com/jonnyboy/newznab-tmux.git tmux
cd tmux
- Edit the paths, timers, username, what to run and then accept.
cp config.sh defaults.sh
nano defaults.sh
- Edit some permissions and a file, run this as root. If, when you run ./start.sh you see 0 nzb's and you are sure there are more than 0 left to import, verify the path to the nzb's in .tmux_user.conf in the conf folder and is created at first run.
cd scripts && ./set_perms.sh
- Run my script, as user. If, you have grsecurity in you kernel, you will need to run using sudo if you use nmon or bwm-ng.
cd ../ && ./start.sh
-
Additional scripts included in the script folder. I have included prepare.sh to make updating these sctipts alittle easier. I also included a svn updater, svn.sh. It performs a forced updated, which overwrites any changes you may have may to the stock nn+ scripts.
-
If you connect using putty, then under Window/Translation set Remote character set to UTF-8.
-
If you are using the powerline statusbar, you will most likely need a patch font. The ttf Consolas from powerline-fonts is the only one that I have found to be nearly complete and work with putty and Win7. The otf fonts should be fine, although I am not able to test.
-
You must edit any file that is called from misc/testing/ in order for it to actually do something, and update_parsing is good for fixing a few releases everytime it runs, not a silver bullet though.
-
Now all panes should be running smoothly. If any script exits early, the error message should be displayed. It will run again during the next monitor cycle.
-
Join in the converstion at irc://moonlight.se.eu.synirc.net/newznab-tmux.
-
Thanks go to all who offered their assistance and improvement to these scripts, especially kevin123, zombu2, epsol, DejaVu, ajeffco, pcmerc, zDefect, shat, evermind, coolcheat, sy, ll, crunch, ixio, AlienX, Solution-X, cryogenx, convict, wicked, McFuzz, pyr2044 and Kragger. If, your nick is missing from this this, PM and I'll fix it quick.
-
These scripts include scripts written by kevin123's, itandrew's, tmux-powerline and thewtex.

* If, you find these scripts useful and would like to show your support, please use one of the donation links below. Donations are greatly appreciated. Thank you

