7-Zip downloading from Linux

Linux related discussion about netjukebox
Post Reply
xtress
User
Posts: 1
Joined: Tue Apr 03, 2007 5:27 pm

7-Zip downloading from Linux

Post by xtress » Tue Apr 03, 2007 5:35 pm

Hello,

I've just installed the 4.0 version on a Linux server (gentoo)
Almost everything works, except the downloading from All tracks list, I get always a blank page, but I get it working when I browse in album list.
I there already a working string for 7za downloading?

User avatar
wbartels
netjukebox developer
Posts: 799
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels » Mon Apr 16, 2007 9:05 am

Sorry I don't have a Linux setup to test it.
When the next version of 7-Zip arrives (4.44) I will make a virtual machine and see if I can get it working.
If you find it out yourself in the meantime, please send me your solution.

wp180
User
Posts: 23
Joined: Tue Jan 16, 2007 11:50 pm
Location: Germany

Post by wp180 » Mon Apr 16, 2007 10:45 pm

i tried it very often to run 7za, but until now 7za isn't working here under linux.

regards

michael

User avatar
wbartels
netjukebox developer
Posts: 799
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: 7-Zip downloading from Linux

Post by wbartels » Sat Aug 06, 2011 6:40 pm

With netjukebox 5.29 and later on Ubuntu 10.04 this should work:

Code: Select all

sudo apt-get install p7zip-full
And set:

Code: Select all

$cfg['bin_dir']                     = 'nice -n 20 /usr/bin/';
or

Code: Select all

$cfg['bin_dir']                     = '/usr/bin/';

charliego
User
Posts: 27
Joined: Wed Jun 20, 2007 9:54 pm

Re: 7-Zip downloading from Linux

Post by charliego » Tue Aug 09, 2011 5:18 pm

To make it work on a QNAP nas server:
Download and install the QPKG Plugin Optware http://www.qnap.com/QPKG_detail.asp?qp_id=1 and enable it.
Login on your QNAP with a telnet client like putty http://www.putty.org/

Type from prompt:

Code: Select all

ipkg install p7zip
Modify config.inc.php and set:

Code: Select all

$cfg['bin_dir']                     = '/opt/bin/';
Works fine on QNAP TS-119.

User avatar
wbartels
netjukebox developer
Posts: 799
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: 7-Zip downloading from Linux

Post by wbartels » Tue Aug 09, 2011 11:17 pm

charliego thanks for your QNAP solution!
Willem

ix6tech
User
Posts: 49
Joined: Thu Jun 01, 2006 6:09 pm
Location: Dallas, TX
Contact:

Re: 7-Zip downloading from Linux

Post by ix6tech » Sun Aug 14, 2011 3:39 am

I am running into a similar issue with downloading albums as stated in previous posts.

I have checked and verified that cache is chmoded to 777.
Verified codecs for Linux exist (i.e. lame codec)
Verified functions are working for "nice" command.
Verified p7zip has been installed.


Linux Distribution Version: CentOS 5.6
netjukebox version 5.29.5

Just wondering if there is anything I am missing.

Here is the error output I usually get:

Destination file not created or filsize to small
File: /opt/lampp/htdocs/stream/cache/d/2/d2deed6672643340b312ff17266f6482dc1a2db8/ca19fhu6l9_cbe6ad441e9f8585aa3d14991fe8438a.zip
Command: nice -n 20 /usr/bin/7za a -tzip -mx0 -- "/opt/lampp/htdocs/stream/cache/d/2/d2deed6672643340b312ff17266f6482dc1a2db8/ca19fhu6l9_cbe6ad441e9f8585aa3d14991fe8438a.zip" @"/opt/lampp/htdocs/stream/cache/d/2/d2deed6672643340b312ff17266f6482dc1a2db8/ca19fhu6l9.txt"

I'm pretty sure it is something simple I am missing, but I just want to make sure I haven't.


Side Note:

When I run the following:

/usr/bin/7za a -tzip -mx0 -- "/opt/lampp/htdocs/stream/cache/d/2/d2deed6672643340b312ff17266f6482dc1a2db8/ca19fhu6l9_cbe6ad441e9f8585aa3d14991fe8438a.zip" @"/opt/lampp/htdocs/stream/cache/d/2/d2deed6672643340b312ff17266f6482dc1a2db8/ca19fhu6l9.txt"

or

nice -n 20 /usr/bin/7za a -tzip -mx0 -- "/opt/lampp/htdocs/stream/cache/d/2/d2deed6672643340b312ff17266f6482dc1a2db8/ca19fhu6l9_cbe6ad441e9f8585aa3d14991fe8438a.zip" @"/opt/lampp/htdocs/stream/cache/d/2/d2deed6672643340b312ff17266f6482dc1a2db8/ca19fhu6l9.txt"


It will compress in terminal without issue.

User avatar
wbartels
netjukebox developer
Posts: 799
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: 7-Zip downloading from Linux

Post by wbartels » Sun Aug 14, 2011 11:44 am

Strange, if it runs from the terminal it must be some security policy.
Does transcoding a single track work?
For example; When you have a flac file and download it with profile MP3 @ Portable.

PS
Check your netjukebox version, when running netjukebox 5.29.4 and up you should get another error message.

wp180
User
Posts: 23
Joined: Tue Jan 16, 2007 11:50 pm
Location: Germany

Re: 7-Zip downloading from Linux

Post by wp180 » Mon Sep 05, 2011 1:15 pm

Hello.

I updated my system after a long time. And now the 7-zip is working really good :)

Nice job.

Micha

Post Reply