[New Feature] Linux installer

Discuss newly added features or request new features.
hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [New Feature] Linux installer

Post by hugbug » 04 May 2015, 08:57

Good question, thanks for asking.

Migrating an old installation made from source code to the installation with installer
A standard installation from source with "make install" spreads files into many places including "/ust/bin" , "/etc" and "/usr/share".

The installer is designed to install the application as container in one directory. Everything is there and it can be easily removed or reinstalled if necessary.

Don't do "--destdir /usr/local/bin" because it will put many files and also folders "webui" and "scripts" there. Instead install into a new empty directory.

Restoring settings
Then start nzbget and import settings from the old config-file, but don't import section PATH. Then adjust the options in the PATH section according to your liking, you can use all your old paths except for options WebDir and ConfigTemplate which your should keep unchanged.
Alternatively: restore all settings including PATH-section but then (directly after restore and before saving) change options WebDir and ConfigTemplate :

Code: Select all

ConfigTemplate=${AppDir}/webui/nzbget.conf.template
WebDir=${AppDir}/webui

Saner
Posts: 8
Joined: 27 Dec 2013, 07:46

Re: [New Feature] Linux installer

Post by Saner » 04 May 2015, 16:18

Cheers that worked perfectly.

The only slight hitch was for some reason I had to use the full path, using {appdir} threw a 404 I am presuming this is a problem with my old box, but I thought I should mention it just to be sure.

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [New Feature] Linux installer

Post by hugbug » 04 May 2015, 16:26

My bad, missed $ before {AppDir}:

Code: Select all

ConfigTemplate=${AppDir}/webui/nzbget.conf.template
WebDir=${AppDir}/webui

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [New Feature] Linux installer

Post by hugbug » 04 May 2015, 16:30

Update:
  • fixed: option --destdir didn't work;
  • detection of MIPS (big endian) may not work. Still not tested, anyone can test this?
Installer updated.

andreofgyn
Posts: 5
Joined: 05 May 2015, 17:16

Re: [New Feature] Linux installer

Post by andreofgyn » 05 May 2015, 20:00

Wow, great! Thanks.

No more compiling on my x86 NAS, almost ready for an auto-update feature, hum!?

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [New Feature] Linux installer

Post by hugbug » 05 May 2015, 20:04

andreofgyn wrote:almost ready for an auto-update feature, hum!?
Yep ;)

So, have you tested it? What NAS model?

andreofgyn
Posts: 5
Joined: 05 May 2015, 17:16

Re: [New Feature] Linux installer

Post by andreofgyn » 05 May 2015, 21:05

Yeah, flawless working on my Netgear Readynas Ultra 2.

It's a pain in the ass to install the required libraries to compile without break something on my NAS model, you just made my life easier, I was suffering since version 0.4.0 testing. :lol:

LeoKesler
Posts: 4
Joined: 20 Oct 2014, 14:33

Re: [New Feature] Linux installer

Post by LeoKesler » 05 May 2015, 23:41

Wandboard Quad rev B1
Kernel and ubuntu15.04 netinstall by https://www.eewiki.net/display/linuxonarm/Wandboard

Install OK. Works OK. No issues so far.

Code: Select all

uname -a
Linux WandBoard 4.0.1-armv7-x2 #1 SMP

cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 10 (v7l)
BogoMIPS        : 6.00
Features        : half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x2
CPU part        : 0xc09
CPU revision    : 10

processor       : 1
model name      : ARMv7 Processor rev 10 (v7l)
BogoMIPS        : 6.00
Features        : half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x2
CPU part        : 0xc09
CPU revision    : 10

processor       : 2
model name      : ARMv7 Processor rev 10 (v7l)
BogoMIPS        : 6.00
Features        : half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x2
CPU part        : 0xc09
CPU revision    : 10

processor       : 3
model name      : ARMv7 Processor rev 10 (v7l)
BogoMIPS        : 6.00
Features        : half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x2
CPU part        : 0xc09
CPU revision    : 10

Hardware        : Freescale i.MX6 Quad/DualLite (Device Tree)
Revision        : 0000
Serial          : 0000000000000000
How I will update for a new version/revision ?
Does your installer to check for dependencies ?

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [New Feature] Linux installer

Post by hugbug » 05 May 2015, 23:54

To update put the new version of installer (when it came out) into the directory with nzbget-folder (no INTO nzbget folder) and run the installer or alternatively run installer from any directory with extra parameter "--destdir /path/to/nzbget-dir".

What dependencies do you mean? Linux with kernel 2.6 or newer and a supported CPU are the only requirements.

LeoKesler
Posts: 4
Joined: 20 Oct 2014, 14:33

Re: [New Feature] Linux installer

Post by LeoKesler » 06 May 2015, 00:03

hugbug wrote:To update put the new version of installer (when it came out) into the directory with nzbget-folder (no INTO nzbget folder) and run the installer or alternatively run installer from any directory with extra parameter "--destdir /path/to/nzbget-dir".

What dependencies do you mean? Linux with kernel 2.6 or newer and a supported CPU are the only requirements.
Dependencies like unrar, openssl etc...

Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests