Medics Newznab Ubuntu 14.04 setup guide

medic install destructions ๐Ÿ™‚
sudo gnome-terminal

cd /var
mkdir www
cd www
mkdir newznab
chmod 777 /var/www/newznab

cd back to root
Install PHP.

apt-get install php5 php5-dev php-pear
apt-get install php5-gd php5-mysql php5-curl

The next thing we need to do is edit the PHP configuration

gedit /etc/php5/cli/php.ini

Change these settings:
register_globals = Off i think Off is default mine were already set to Off
max_execution_time = 120
memory_limit = -1
date.timezone = Europe/London

apt-get install mysql-server-5.5
apt-get install mysql-client-5.5
apt-get install libmysqlclient-dev

sudo apt-get install -y apache2
sudo gedit /etc/php5/apache2/php.ini

Change these settings:
register_globals = Off i think Off is default mine was already set to Off
max_execution_time = 120
memory_limit = -1
date.timezone = Europe/London

Create the site configuration file for Apache

sudo gedit /etc/apache2/sites-available/newznab.conf

Paste this into the file and save it.

<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName localhost
# These paths should be fine
DocumentRoot /var/www/newznab/www
ErrorLog /var/log/apache2/error.log
LogLevel warn
ServerSignature Off
# <Directory “/var/www/newznab/www”>
<Directory /var/www/newznab/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
Require all granted
</Directory>

# Alias /covers /var/www/newznab/recources/covers
</VirtualHost>

Now we need to disable the default Apache settings, enable the one we just created for Newznab and enable modrewrite:

In /etc/apache2/sites-available the Newznab file must be called newznab.conf

sudo a2dissite 000-default.conf
sudo service apache2 restart
sudo a2ensite newznab
sudo service apache2 restart
sudo a2enmod rewrite
sudo service apache2 restart

Install Unrar

sudo apt-get install unrar

Now Mediainfo install:

sudo apt-get install -y python-software-properties
sudo add-apt-repository ppa:shiki/mediainfo
sudo apt-get update
sudo apt-get install mediainfo
Now install SVN

sudo apt-get install subversion

svn co svn://svn.newznab.com/nn/branches/nnplus /var/www/newznab
userย *****
passย *****
yes

Checked out revison 3201

Set the permissions on directories as well:

sudo chmod 777 /var/www/newznab/www/lib/smarty/templates_c
sudo chmod 777 /var/www/newznab/www/covers/movies
sudo chmod 777 /var/www/newznab/www/covers/anime
sudo chmod 777 /var/www/newznab/www/covers/music
sudo chmod 777 /var/www/newznab/www
sudo chmod 777 /var/www/newznab/www/install
sudo chmod 777 /var/www/newznab/nzbfiles/

Install Screen

sudo apt-get install screen
then
cd /var/www/newznab/misc/update_scripts/nix_scripts
cp newznab_screen.sh newznab_screen_local.sh

gedit newznab_screen_local.sh
Set the Newznab_Path to export NEWZNAB_PATH=”/var/www/newznab/misc/update_scripts”

Open up http://localhost/install in a web browser:

Once setup is done on the site page some options to set:
Put your Newznab ID in

Unrar Path
/usr/bin/unrar

Mediainfo Path
/usr/bin/mediainfo

In Usenet Settings Section

Perform Integrated Update Cleanup – Set to Yes

Password Settings – Deep
Delete Passworded Releases – Yes

Spotnab Settings
Auto Discovery – Yes

Then add your groups ๐Ÿ™‚

Tested and working on Ubuntu 12.04 and 14.04

Like this Article? Share it!

About the Author

Author Gravatar
Tom

Tom's a developer who has a love of all things technical. 7TB For the fileserver just isn't enough for him these days. You can usually find him buying things he doesn't need or watching Reading FC.

Related Posts

One Comment

  1. Hey Tom…great rundown..thanks for all the work. Have you used DariusIII Tmux scripts with this? Also..just a quick question. For the apache2 file you have this…# These paths should be fine DocumentRoot /var/www/newznab/www. I ran the restart files and it kept asking for a newznab/www folder that I didnt have in there. Just curious.

Leave a Comment