sudo gnome-terminal
cd /var
mkdir www
cd www
mkdir newznab
chmod 777 /var/www/newznab
mkdir www
cd www
mkdir newznab
chmod 777 /var/www/newznab
cd back to root
Install PHP.
Install PHP.
apt-get install php5 php5-dev php-pear
apt-get install php5-gd php5-mysql php5-curl
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
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
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
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
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.
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
#
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
Require all granted
# Alias /covers /var/www/newznab/recources/covers
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
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 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
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/
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
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”
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
Put your Newznab ID in
Unrar Path
/usr/bin/unrar
/usr/bin/unrar
Mediainfo Path
/usr/bin/mediainfo
/usr/bin/mediainfo
In Usenet Settings Section
Perform Integrated Update Cleanup – Set to Yes
Password Settings – Deep
Delete Passworded Releases – Yes
Delete Passworded Releases – Yes
Spotnab Settings
Auto Discovery – Yes
Auto Discovery – Yes
Then add your groups
Tested and working on Ubuntu 12.04 and 14.04
No comments:
Post a Comment