Author Topic: Ubuntu 13.10 - 14.04 Install Script [Work In Progress]  (Read 9742 times)

Offline NZBmets

  • Prolific Indexer
  • ****
  • Posts: 260
  • Helpful: +11/-0
Ubuntu 13.10 - 14.04 Install Script [Work In Progress]
« on: 2014-04-09, 06:32:36 am »
Update
--------------------------------------------------------------------------------

The attached script is now considered stale and current development is
being managed as a Gist. You are encouraged to use the Gist version:

https://gist.github.com/NZBmets/359aecbbbad466ab4926

--------------------------------------------------------------------------------

Notes:
It is really designed for installing on a clean Ubuntu install / VM

QuickStart:
Log on as root and assign password if necessary

Code: [Select]
cd ~;
apt-get install git;
git clone https://gist.github.com/359aecbbbad466ab4926.git nZEDb_Install_Script;
cd nZEDb_Install_Script;
chmod a+x install_nZEDb.sh;
./install_nZEDb.sh;

Recommended:
MariaDb - it is the install I test most frequently so likely to be the best experience

Notes:
  • Uses Apache2 and provides a nZEDB.conf file which you should alter if necessary
  • Replaces any existing ffmpeg with a 64bit most current pre-compiled version
  • You can skip any section by commenting out the area (like skipping ffmpeg install)

It will purge previous database installs by default but can be changed to remove by altering the default variable (remove is a bit aggressive and why this is currently for new installs). The 'change' routine is a work-in-progress and might cause difficulty. Back up any existing databases you may want to preserve.

You can modify additional variable settingss (e.g. your timezone for the PHP.ini update by variable)
It prefers you to have already copied a nZEDb.conf & a my.cnf file to your ~ home directory
- If you go with mySql 5.6 there are my.cnf changes it warns you about
It is largely an adaption of Jonnyboy's script but a slightly different approach in some areas
It is a script - nothing magical but handy as hell

You still need to update apache2.conf manually (wasn't worth the automation) for
Code: [Select]
AllowOverride All
I also use a SQL script (attached) to modify groups I want active and to set backfill. I thought the example worth sharing as well.
After you have gone through the setup pages so that the DB is created, you can run the following
Code: [Select]
mysql nzedb -u root -p'yourPasswordNoSingleQuotes' < ~/activeGroups.sql
It activiates my desired groups, enables some blacklist rules, and disables some categories I don't want.

Enjoy
« Last Edit: 2014-05-27, 05:23:33 am by NZBmets »

Offline trev

  • Junior Indexer
  • **
  • Posts: 19
  • Helpful: +0/-0
Re: Ubuntu 13.10 Install Script [Work In Progress]
« Reply #1 on: 2014-05-05, 12:47:25 pm »
Is this still available?  I keep getting 404 errors when trying to download.

Offline NZBmets

  • Prolific Indexer
  • ****
  • Posts: 260
  • Helpful: +11/-0
Re: Ubuntu 13.10 Install Script [Work In Progress]
« Reply #2 on: 2014-05-05, 12:56:37 pm »
Here it is again for convenience. Many attachments seem to have difficulty since the server change.

I highly recommend the MariaDB (choice 2 I believe) when prompted. It is the one I tested installation with most.
« Last Edit: 2014-05-05, 02:11:24 pm by NZBmets »

Offline Stanlee

  • Newbie
  • *
  • Posts: 3
  • Helpful: +0/-0
Re: Ubuntu 13.10 - 14.04 Install Script [Work In Progress]
« Reply #3 on: 2015-01-04, 05:34:27 am »
Big thanks for the installation script. You saved my day! It works well on a digitalocean ubuntu 14.04 x64 droplet.

Offline fillister

  • Newbie
  • *
  • Posts: 2
  • Helpful: +0/-0
Re: Ubuntu 13.10 - 14.04 Install Script [Work In Progress]
« Reply #4 on: 2015-02-02, 02:50:53 pm »
Thank you for the script, I used it with ubuntu server 14.04 and the percona database.

Offline stanthewizzard

  • Junior Indexer
  • **
  • Posts: 7
  • Helpful: +0/-0
Re: Ubuntu 13.10 - 14.04 Install Script [Work In Progress]
« Reply #5 on: 2015-04-08, 03:58:06 am »
Excellent script

But I have an issue with 14.04 and mariadb
mysql doesn't restart after import of the my.cf file

regards

Offline w33ty

  • Junior Indexer
  • **
  • Posts: 18
  • Helpful: +0/-0
Re: Ubuntu 13.10 - 14.04 Install Script [Work In Progress]
« Reply #6 on: 2015-04-11, 07:37:55 am »
same as above :(