Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Compile packages using UnRaid?

Featured Replies

I've recently upgraded to 4.3 and with that some of my customizations no longer worked, specifically, hellanzb.  I was able to get everything working again by replacing compiled libraries with slackware 12 libraries from the old slack 10 stuff.  However, I ran into a wall trying to find a version of par2cmdline that would work.  I think gpar2 would work in its place but have been unable to find a pre-compiled version of either one for slackware 12. 

 

So... how difficult is it to compile something like this?  I really don't want to have to install slackware on one of my existing machines just to compile, though as a last resort I am willing.  I'm hoping that someone knows what I need to install on UnRaid (temporarily) to allow me to compile packages.  Or, alternatively, is there a way I could compile by running a virtual slackware12 on windows?  Or failing both of those options... is anyone willing to just compile this for me?  I'd prefer to know how to do it myself for such future cases.

 

If there was a guide that we mortals could follow I think it could benefit many.

 

-xbit

virtual slackware12 on windows

Entirely possible with vmware or virtual box.

 

If you can find the source and SlackBuiild scripts for the par2cmdline someone here can compile and make a package for you.

  • Author

I'll have to look into the vmware option... anyone here try this before?

 

If someone is willing, here are the links to the source and scripts.

 

Here you can find source for both par2cmdline and gpar2.

http://sourceforge.net/project/showfiles.php?group_id=30568

 

I could only find a build script for par2cmdline... and I'm not 100% on if that's what it even is. ;)

http://slackware.linux.or.id/pub/linuxpackages/slackware-12.0/SlackBuilds/system/par2cmdline/

 

 

I'll have to look into the vmware option... anyone here try this before?

 

I'm using a Slackware VM (VMware) to build a package I'm working on.  I think using a VM is preferable to using a real machine because it is so much more convienent.  I keep a clean copy of my VM and when I make a mistake or want to try to redo something, all I have to do is make a copy of my clean copy.  It's much easier to take a few minutes to copy a file and have a fresh starting point that to have to reinstall from scratch if you totally blow something up. 

 

  • Author

I can't seem to find a working download of slackware 12 for vmware.  Anyone have a link they can share? 

Have you already downloaded VMware Server (which is free)?  I made my VM by downloading the Slackware ISO, installing it on a new VMware VM, and then using josetann's "install unRAID on a harddrive" instructions.  I don't mind sharing, but it's about 2.5 GB.  Actually, I'm going to be traveling for the next week, so sharing it while I'm gone wouldn't create any hardships on me.  If someone could tell me how to seed a torrent (I mean explicitly) by tomorrow, I could do that.

Also, this is a Slackware 12 virtual appliance available from the VMware site: 

  http://www.vmware.com/appliances/directory/966

 

You could easily use this as a starting point to use either josetann or BubbaQ's instructions to build a development environment.

  • Author

musicmann,

 

I did try that link in my initial search and found it to be dead. :(  There was also one other slackware 12 link, but it had no torrent and the download link just went to some unrelated website.

 

If you'd be willing to host a torrent I'd be very grateful.  I really have only a small amount of torrent experience so I can't tell you from personal experience how to do it, but I found a couple of links that should do the trick.

 

http://torrentfreak.com/how-to-create-a-torrent/

http://www.torrentreactor.net/guide/how_make_seed_torrent_files.php

 

I too tried to DL this torrent, with similar experience to xbit.  Can someone help?

 

Thanks!

this is why we need our own virtual appliance. trusting random ones on the net to be OK and stay alive isnt a long term solution.

 

Making a vm is easy once we decide some criteria. See other thread.

  • 3 weeks later...

Xbit -- did you ever succeed with hellanzb?  I would really appreciate any tips you can offer (or anyone else, for that matter).  Thanks very much.

  • Author

Yes, I got it working thanks to WeeboTech compiling the par2cmdline utility for me.  If you'd like I'd be happy to help you out with whatever you need.  How far did you get?  Or are you at step 1?  It might have to wait until the weekend before I have enough time to be really helpful.

If you'd like I'd be happy to help you out with whatever you need.  How far did you get?  Or are you at step 1?

 

Thanks very much for the offer Xbit!  I could absolutely use your help.  Unfortunately, I didn't get very far on this one on my own.

 

I'm a novice Linux user in that I have no formal training or experience.  However, I have been playing around on it for a year or so (because of the great app hellanzb which I run on my ubuntu laptop).  I spend a lot of time reading (and re-reading) this forum and have been able to do a lot so far with my new unRAID system.  From instructions in this forum I have implemented the Media Player disk spin up script, the smartctl v5.38 script, installed screen and twonky from the go script, and almost have the smtp_check_unraid.sh script working (it only returns the results of /proc/mdcmd in the email body, nothing else even though the echo command has it included). So I'm quickly getting familiar with unRAID and have installed hellanzb a number of times (on ubuntu).

 

I'm still on Step 1 because I can't find a any instructions on how to install hellanzb on unRAID and have no idea where to start.  Maybe this is one of those where I have to decompress the bzimage and do something and recompress it or setup a development environment in vmware -- I read about this process in these forums a while ago.

 

Any help you could give someone who is willing to research but still needs step by step instructions would be greatly appreciated.  If I can somehow get it together with help I will document the steps for others.  I know a friend or two who would love this functionality. 

 

There is no immediate urgency for your help -- at your convenience please.  I already run hellanzb from a dedicated laptop so I'm OK there.

 

Thanks again!!

Alright, since you said hellanzb will run on unRAID  I dug into it and gave it a try.  I think I got pretty far.  Here's where I am so far --

 

- I have these packages install from my GO script

----- python-2.5.2-i486_1.tgz

----- twisted-8.0.1-noarch-1sl.tgz

----- unrar-3.7.8-i486-1stc_slack12.1.tgz

----- zope.interface-3.3.0-i486-1ced.tgz

 

- I put the par2 file in /boot/ (the file from par2cmd compiled by WeeboTech - thanks!)

 

- I have an edited hellanzb.conf file that I copy to /usr/etc/ that makes the default hellanzb directory /boot/packages/hellanzb-0.13/

 

- I have the hellanzb install files in a folder at /boot/packages/hellanzb-0.13/

 

After I boot the system I --

 

- telnet to unRAID

- cd /boot/packages/hellanzb-0.13

- cp /boot/packages/hellanzb-0.13/hellanzb.conf /usr/etc/

- cd /boot/

- hellanzb.py (to start hellanzb)

 

Here is what I see in the terminal window --

 

root@Tower:/boot# hellanzb.py

Traceback (most recent call last):

  File"/usr/bin/hellanzb.py", line 14, in <module>

    from Hellanzb.Core import main

  File "/usr/lib/python2.5/site-packages/Hellanzb/Core.py", line 9, in <module>

    from Hellanzb.HellaReactor import HellaReactor

  File "/usr/lib/python2.5/site-packages/Hellanzb/HellaReactor.py", line 13, in <module>

    from twisted.internet.selectreactor import SelectReactor

  File "/usr/lib/python2.5/site-packages/twisted/internet/selectreactor.py", line 17, in <module>

  from zope.interface import implements

ImportError: No module named zope.interface

root@Tower:/boot#

 

Any ideas on the zope.interface error? 

 

Thanks for your help.

 

 

Recommended structure is

 

/boot/custom/usr/share/packages

If you want to keep these together then consider

 

/boot/custom/usr/share/packages/Hellanzb

 

For your etc files use

 

/boot/custom/etc or /boot/custom/usr/etc

 

The tree built should be within the custom directory to assure consistency.

 

See this Wiki article for more information

http://lime-technology.com/wiki/index.php?title=Third_Party_Boot_Flash_Plugin_Architecture

 

I dont want to fork this thread (so if you want more info start a new one)... howver i have done lots and lots of experimentation with usenet tools and nzb tools and whilst a bit bloaty i find sabnzbd far superior to hella.

  • Author

Yes, I tried to install sabnzb first, but couldn't get it to work.  For my purposes, I'm not really sure how it could be any better.  I run it as a daemon process and simply drop off my nzb files into a 'dropoff' folder on unRaid, it downloads, pars, and unrars into a completed folder.  That's all I really need it to do.  I'm sure both of these tools have other features such as completion notification and such, but I don't really care about that.  I'll drop it off and come get it in a few hours or next day.  :)  However, if anyone has need of sabnzb features, please feel free to start a sab thread.  I think hellanzb might be an abandoned project since the last update on their website is over a year ago.

 

bluto:

I don't know what is causing your zope problem, I didn't use it in my setup.  I'll look tonight or tomorrow how I have things configured and let you know.  I remember spending many hours searching for precompiled libraries.  FYI, it's all done with go script, no bzimage creation or anything complicated (remember, I had to get help from weeboTech for par2cmdline, so I'm no linux guy myself.)

 

 

I dont want to...

Dam NASUSER.. now you've fork()ed it all up! LOL!!  :D

Xbit, no worries on the help.  I have it running on a test usb stick.  Now I will move  it to my real server.  I'll let you know if I have any questions but thanks to you and all of the members who have helped.  I'll post a guide when I sort it all out.

 

Thanks again!

  • Author

Bluto,

 

I just sat down this morning to get ready to write up what I had done and saw that you already have it working.  Good job!  When I looked it it wasn't as complicated as I remembered.  All the pre-compiled libraries I remembered were actually for getting mencoder to work.  I use this to combine avi's that have been split back into a single avi.

Well, I finally figured out how to get hellanzb installed on unRAID.

 

Thanks Xbit.  Just seeing that someone got this running was enough to get me to dig in and figure it out.  I learned a lot along the way as I am a novice Linux user.  BTW -- do you use a swap file for this?  Is it necessary?  I have 4gb of RAM.

 

This write up is partly to help others who want to get this app running and partly to help those new to unRAID and Linux with a process that can be used to install certain packages.  I'm sure this isn't the best process, but this is my first crack at any of this and it worked for me.  I'll highlight the steps of the process in RED so you don't have to read the commentary if you don't want to.  Here goes --

 

The first step is to download hellanzb and start to understand it's prerequisites (dependencies).

This link will take you to the homepage where you will download the latest hellanzb and extract the folder (hellanzb-0.13) to your flash drive at /boot/custom/usr/share/packages/.

http://www.hellanzb.com/trac

 

On this page you can see that hellanzb has the following prerequisites.

 

hellanzb

--twisted v1.3

--rar

--par2cmdline

 

Now lets get the prerequisites and understand their prerequisites.  I used google to search for 'twisted slackware'.  I used this type of search for each prerequisite.  Sometimes you will see a link for a version of the prerequisite that is older and in a folder for an earlier version of slackware.  Usually on these sites there is a mechanism to change directories up a folder or select a newer version of slackware releases.  Always see if there is a version for slackware 12.1 first, if not then check for 12.0, and so on.

Here is the link to twisted --

http://repository.slacky.eu/slackware-12.1/system/twisted/8.0.1/

 

Notice that the prerequisite for hellanzb is twisted v1.3 and this appears to be the download for twisted v8.0.1.  That will meet the requirement so all is well to proceed.

Download the *.tgz file (twisted-8.0.1-noarch-1sl.tgz) to /boot/custom/usr/share/packages/.

 

On the webpage click the src/ link.  Now click the 'slack-required' link.  This shows the 3 prerequisites for twisted.

 

hellanzb

--twisted v1.3

-----glibc-solibs >= 2.7-i486-10

-----python >= 2.5.2-i486-1

-----zope.interface >= 3.3.0-noarch-1sl

--rar

--par2cmdline

 

Find them on this web site or google search for them.

Here is the link for glibc-solibs-2.7-i486-10 --

http://packages.slackware.it/package.php?q=12.1/glibc-solibs-2.7-i486-10

 

I couldn't find any documentation about prerequisites so I guess there aren't any.

 

Here is the link for python-2.5.2-i486-1 --

http://packages.slackware.it/package.php?q=12.1/python-2.5.2-i486-1

 

Here is the link for zope.interface-3.3.0-noarch-1sl.tgz --

http://darkstar.ist.utl.pt/slackware/addon/slacky/slackware-12.1/system/zope.interface/3.3.0/

 

I didn't see any prerequisites for python but there are for zope.  However, we already accounted for those earlier so there's nothing more to worry about.

 

Download all of these packages to /boot/custom/usr/share/packages/.

 

hellanzb

--twisted v1.3

-----glibc-solibs >= 2.7-i486-10

-----python >= 2.5.2-i486-1

-----zope.interface >= 3.3.0-noarch-1sl

-------glibc-solibs >= 2.7-i486-10

-------python >= 2.5.2-i486-1

--rar

--par2cmdline

 

Rar is found at the following link --

http://www.rarlab.com/rar_add.htm

Download the slackware version of the *.tgz file to /boot/custom/usr/share/packages/.

 

par2cmdline is found at the following link --

http://linuxtracker.org/index.php?page=torrent-details&id=a5bb90f0bf215ba06dc75e4b2819045fb0b491bf

Extract the file in the zip and move it to /boot/custom/usr/share/packages/. 

 

Now everything is in place and we need to setup the hellanzb.conf configuration file.

In a telnet session copy the hellanzb.conf.sample file to the proper location and rename to hellanzb.conf.  Use this command --

 

cp /boot/custom/usr/share/packages/hellanzb-0.13/etc/hellanzb.conf.sample /boot/custom/usr/etc/hellanzb.conf

 

Now edit the /boot/custom/usr/etc/hellanzb.conf file as necessary.  Here is a summary of the changes I made.

 

Hellanzb.LOG_FILE = '/mnt/disk11/hellanzb/logs/hellanzb.log'

Substitute your disk where mine says disk11.

This might not be the best strategy.  I tried to shutdown my server and all the drives showed as unformatted except #11 and I couldn't stop the array to shutdown or reboot.  I thought I was screwed!  Then I realized that I hadn't killed hellanzb (it was running background) and maybe the log files prevent disk11 from unmounting and therefore no shutdown.  I cleanly shutdown hellanzb (hellanzb shutdown) and then was able to shutdown and restart my server.  All appears good.  I wonder if I move the log files to the /boot/ disk if this would work better.  Also, I'm not sure if this inhibits spindown on disk11 or not.  I'll try to figure that out sometime.

 

hosts = [ 'unlimited.newshosting.com:119' ],

This is where you put your news server address.

 

username = 'xxxxxx',
password = 'xxxxxx',

This is where you enter your login credentials for your news server.

 

Hellanzb.PREFIX_DIR = '/mnt/disk11/hellanzb/'

This is where you want your files to be downloaded and where you want to dump *.nzb files to queue.  Make sure this disk has lots of room.  I would like to get this to work with user shares so data will dynamically flow to other disks as necessary.  I'm not sure how to do this yet.

 

Hellanzb.PAR2_CMD = '/boot/custom/usr/share/packages/par2'

This will tell hellanzb where to locate your par2 script you downloaded earlier.

 

Final step is to modify the GO script to install all of this for you upon reboot.

 

Here is my GO script.  The lines highlighted in RED are the ones that are relevant to hellanzb and should be added to your GO script.

 

#!/bin/bash

 

# Start the Management Utility

 

/usr/local/sbin/emhttp &

 

mkdir -p -v /var/log/wtmp

echo nameserver 192.168.1.1 >/etc/resolv.conf

echo 192.168.1.169 tower >>/etc/hosts

/boot/custom/usr/share/packages/twonkyvision/twonkymedia

#

installpkg /boot/custom/usr/share/packages/utempter-1.1.4-i486-1.tgz

installpkg /boot/custom/usr/share/packages/screen-4.0.3-i486-1.tgz

installpkg /boot/custom/usr/share/packages/cxxlibs-6.0.8-i486-4.tgz

installpkg /boot/custom/usr/share/packages/glibc-solibs-2.7-i486-10.tgz

installpkg /boot/custom/usr/share/packages/python-2.5.2-i486-1.tgz

installpkg /boot/custom/usr/share/packages/zope.interface-3.3.0-noarch-1sl.tgz

installpkg /boot/custom/usr/share/packages/twisted-8.0.1-noarch-1sl.tgz

installpkg /boot/custom/usr/share/packages/unrar-3.7.8-i486-1stc_slack12.1.tgz

#

cd /boot/custom/usr/share/packages/hellanzb-0.13/

python setup.py install

#

cp /boot/custom/usr/etc/hellanzb.conf /usr/etc/

#==========================================

# Un-comment this line if you have screen

# installed and want to launch hellanzb

# at boot in the background (detached).

# REMEMBER - You MUST SHUTDOWN hellanzb

# BEFORE rebooting or shutting down unRAID.

#

# screen -S hellanzb -d -m /usr/bin/hellanzb.py

#========================================

sleep 30

for i in /dev/md*

do

    blockdev --setra 2048 $i

done

/boot/spin_drives.sh &

/boot/smarttest.sh

 

If you have screen installed you can un-comment the line in the GO script and hellanzb will be started in the background at boot up.  Otherwise, to start hellanzb telnet into unRAID and type 'hellanzb.py'.

 

After this runs, you will have a new folder on disk11 (and you will have a new user share after the next reboot called hellanzb if user shares are enabled).

 

Place your *.nzb files in /mnt/disk11/hellanzb/nzb/daemon.queue.  When hellanzb is running these files will automatically be queued and downloaded, par2 verified/repaired, and then unrar'd to /mnt/disk11/hellanzb/usenet.

 

If you want to see hellanzb's status open a new telnet session and type 'hellanzb.py status'.

If you want to shutdown hellanzb type 'hellanzb.py shutdown'.

 

Some of the things I would like to figure out are --

--how to setup VPN access to my daemon.queue folder so I can queue downloads from outside my firewall

--how to add 'hellanzb.py shutdown' to the unRAID shutdown script

--how to configure hellanzb to use user shares instead of explicitly naming disk11

--how to understand permissions.  For example, I cannot drop *.nzb from my ubuntu laptop into daemon.queue because the folder is read only.  If I FTP then everything works.  Probably because I log into FTP as root and hellanzb runs as root.  I think I am a different user when I access my unRAID server from ubuntu.

 

Good Luck!

  • Author

Hi bluto,

 

Great post.  I sure wish I had instructions like those when first trying to set this up.  I just wanted to note a couple of things I have different that might help with your shutdown issue.  First, I turned off logging once I got everything running. 

Hellanzb.LOG_FILE = None

 

Second I start it running by passing in a command to run it as a daemon process.

hellanzb.py -D

 

With this setup I am able to shutdown/restart the array w/o first killing the hellanzb process and all my disks spin down after the normal idle time.  I'm not sure why you are not able to write to your queue directory.  You could try setting the queue directory to a user share instead of "disk11" and make sure that user share is set to export read/write under "users" in unRaid's web interface.  This is how my queue is set up.  If you want the downloaded files to download always to disk11 you can change only the queue to be a user share, since those files are deleted by hellanzb once downloaded, and leave all the other directories to be disk11.  Also, under "users" I have user level security set to disabled.

 

Hope this helps.

 

 

...

This write up is partly to help others who want to get this app running and partly to help those new to unRAID and Linux with a process that can be used to install certain packages.

...

 

Thanks bluto for the detailed writeup!  Link added to the Best of the Forums, unRAID Addons and Tools section

  • 2 months later...
  • Author

par2cmdline torrent is no longer seeded.  You can download from the following link.  The download should work for at least 1 year.  The site says 1 year from last view.

 

http://drop.io/unraid_par2

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.