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.

unMENU 1.5 ... now available for download.

Featured Replies

THanks

 

Mine dont look like whats on the front page.  I need to double check a few things though as this is still in development

 

Mick

  • Replies 1.3k
  • Views 368k
  • Created
  • Last Reply

ok, possibly a really dumb question, but where do you download ver 1.5 of unmenu?

ok, possibly a really dumb question, but where do you download ver 1.5 of unmenu?

 

See the first message in this thread that tells you to get the unMenu installer from here.

 

http://code.google.com/p/unraid-unmenu/

 

The installer will then fetch what it needs when you run it.

I was just confused about the installer version (mistaking that for the unMenu version).

OK - running the installer will fetch the most recent version.  It is also how you can apply updates.

Hello,

 

I have a Problem with the UserScrpt's.

The included Scripts are working, but all aditionals arn't.

Not even a simple one as this:

 

#define USER_SCRIPT_LABEL TEST-TEST

#define USER_SCRIPT_DESCR TEST Script

echo "Hello Test-Test-Test"

 

I have also tryed the scripts from the Twoky Thread:

http://lime-technology.com/forum/index.php?topic=11758.0

 

But they are also not working.

 

If I look with: ls -l

 

The rights for the scripts ale always the same, for the aditionals and the originals.

 

Any idea?

 

 

The uses UnRaid is 5.0-beta14

 

cu

Matthias

  • Author

Hello,

 

I have a Problem with the UserScrpt's.

The included Scripts are working, but all aditionals arn't.

Not even a simple one as this:

 

#define USER_SCRIPT_LABEL TEST-TEST

#define USER_SCRIPT_DESCR TEST Script

echo "Hello Test-Test-Test"

 

I have also tryed the scripts from the Twoky Thread:

http://lime-technology.com/forum/index.php?topic=11758.0

 

But they are also not working.

 

If I look with: ls -l

 

The rights for the scripts ale always the same, for the aditionals and the originals.

 

Any idea?

 

 

The uses UnRaid is 5.0-beta14

 

cu

Matthias

Only two possibilities...

 

One.  you have MS-DOS carriage-return/linefeeds at the ends of your lines in your script

(solution, use an editor that does not add carriage returns)

or

Two:  you've not named it so it shows up on the user scripts page.  (The file names must match the expected pattern of

NN-unmenu_user_script_wwwwwwwww

Where NN =  a number and wwwwwww = a unique string identifying the script.

 

I just created a script, exactly like yours, and it fails if there are carriage returns at the ends of lines, but works perfectly if I use a proper editor and only use newlines instead of MS-DOS carriage-return/newline pairs.

 

To see if you have carriage returns, you can use

cat -v script_name

If you see "^M" at the ends of lines, you've found your issue.

 

below is a script that will not work... as it has carriage returns at the ends of lines.

cat -v 44-unmenu_user_script_test

#define USER_SCRIPT_LABEL TEST-TEST^M

#define USER_SCRIPT_DESCR TEST Script^M

echo "Hello Test-Test-Test"^M

 

See here in the wiki: http://lime-technology.com/wiki/index.php?title=FAQ#Why_do_my_scripts_have_problems_with_end-of-lines.3F

@ Joe L.

You are my personal Hereo!!!

Thanke You, that solved my Problem with the Scripts.

 

I was using Notepad++, now I gave Notepad2 a try, and... ;D

 

One thing ist left, if I run the Twonky Stop Script, UnMenu crashes and Twonky stays alive.....

 

BTW, if I look at UnMenu I get a lot of "last message repeated xyz times"

What have I done wrong now? :-\

 

BTW, still got stuttering after some time, if I stream to my Panasonic Vierra TV.... :-[

 

cu

  • Author

One thing ist left, if I run the Twonky Stop Script, UnMenu crashes and Twonky stays alive.....

unMENU does not "crash"

 

It is waiting for the user-script to finish.  (and it is not finishing, so unMENU is simply waiting...)

as long as the script has a file-descriptor open, either stdout, or stderr, unMENU will wait for all the output.

 

If the twonky Stop script is not written properly, let its author know.

 

Joe L.

Hello,

 

this is the script:

echo "<pre>"

set -xv

av_pid=$(ps -ef | grep twonkymedia | grep -v grep | awk '{print$2}');

test "$av_pid" != "" && kill $av_pid

 

If I use telnet and enter the commands, it works.

If I restart unmenu via commandline, the Webinterface is up again.

 

cu

Well my unraid server is up and running. I installed unMenu 1.5 per the guide. All seemed to install well. I think its running. But for the life of me I cant seem to find it using //Tower:8080 

 

I currently use the ip of my unraid to access the web menu. 

 

Someone please help me.  thanks.

@ Joe L.

You are my personal Hereo!!!

That's why he's elevated to hero member.

All Hail Joe L!

Long Live the hero!

Long Live the hero!

 

Sorry, been watching too much Merlin these days.  ;D

 

Sorry, been watching too much Merlin these days.  ;D

Tis a good show!

  • 2 weeks later...

Hello,

 

I had an issue with unmenu that's worth reporting.  I have a fix, but don't know the scripts well enough to know if it's the correct fix.  Here goes...

 

I created a .conf file to allow me to manually install the gcc-g++ package.  The file is named gcc-g++-unmenu-package.conf and I dropped it into my the /boot/packages folder.  The file looks like this:

 

#UNMENU_RELEASE $Revision: 7 $ $Date: 2010-03-29 23:12:23 -0400 (Mon, 29 Mar 2010) $
PACKAGE_NAME gcc-g++ (C++ for GCC)
PACKAGE_DESCR 
PACKAGE_DESCR C++ support for the GNU Compiler Collection.
PACKAGE_DESCR This package contains those parts of the compiler collection needed to compile C++ code.
PACKAGE_DESCR
PACKAGE_URL http://slackware.cs.utah.edu/pub/slackware/slackware-13.1/slackware/d/gcc-g++-4.4.4-i486-1.txz
PACKAGE_FILE gcc-g++-4.4.4-i486-1.txz
PACKAGE_MD5 1957defd62ba44a58146d5988351027e

PACKAGE_INSTALLED /usr/bin/g++-gcc-4.4.4
PACKAGE_DEPENDENCIES The base gcc package is also required.
PACKAGE_INSTALLATION if [ ! -f /usr/bin/cc ]
PACKAGE_INSTALLATION then
PACKAGE_INSTALLATION   echo "<font color=red>gcc-g++ not installed because gcc has not been installed.<br>"
PACKAGE_INSTALLATION   echo "Install gcc first</font>"
PACKAGE_INSTALLATION   exit
PACKAGE_INSTALLATION fi
PACKAGE_INSTALLATION installpkg "${PACKAGE_DIRECTORY}"/gcc-g++-4.4.4-i486-1.txz
PACKAGE_VERSION_TEST /usr/bin/g++-gcc-4.4.4 --version 2>&1 | awk '{print$3}'
PACKAGE_VERSION_STRING 4.4.4
PACKAGE_MEMORY_USAGE Medium

 

The issue is that when you select the 'Select gcc-g++-4.4.4-i486-1.txz' button on the Pkg Manager page, the URI ends up having the '+' characters replaced with their corresponding ASCII hexadecimal value (%2B) and one ends up with a page which only shows the 'View All Available Packages Button'.  Now, I can manually change the %2B to a + in the url bar of the browser (I'm using FireFox 9.0.1 on a win XP box) and I get the page I was expecting, but this is not a desirable workflow.

 

Anyway, I tracked the offending .awk script (990-unmenu-wget.awk) and added a line with a gsub() call in the function CGI_setup, as follows:

 

function CGI_setup(   uri, version, i) {
  delete GETARG;         delete MENU;        delete PARAM
  GETARG["Status"] = ARGV[1]; GETARG["Method"] = ARGV[2]; GETARG["URI"] = ARGV[3]; 
  gsub("%2B", "+", ARGV[3])
  i = index(ARGV[3], "?")
  if (i > 0) {             # is there a "?" indicating a CGI request?
    split(substr(ARGV[3], 1, i-1), MENU, "[/:]")
    split(substr(ARGV[3], i+1), PARAM, "&")
    for (i in PARAM) {
      j = index(PARAM[i], "=")
      GETARG[substr(PARAM[i], 1, j-1)] = substr(PARAM[i], j+1)
    }
  } else {             # there is no "?", no need for splitting PARAMs
    split(ARGV[3], MENU, "[/:]")
  }
}

 

This follows a pattern I saw in some other awk scripts and it addresses the issue (the page now displays correctly, even if the url still has the + replaced with %2B).

 

Please let me know if there's a better way to solve this.

 

-JWR

  • Author

Hello,

 

I had an issue with unmenu that's worth reporting.  I have a fix, but don't know the scripts well enough to know if it's the correct fix.  Here goes...

 

I created a .conf file to allow me to manually install the gcc-g++ package.  The file is named gcc-g++-unmenu-package.conf and I dropped it into my the /boot/packages folder.  The file looks like this:

 

#UNMENU_RELEASE $Revision: 7 $ $Date: 2010-03-29 23:12:23 -0400 (Mon, 29 Mar 2010) $
PACKAGE_NAME gcc-g++ (C++ for GCC)
PACKAGE_DESCR 
PACKAGE_DESCR C++ support for the GNU Compiler Collection.
PACKAGE_DESCR This package contains those parts of the compiler collection needed to compile C++ code.
PACKAGE_DESCR
PACKAGE_URL http://slackware.cs.utah.edu/pub/slackware/slackware-13.1/slackware/d/gcc-g++-4.4.4-i486-1.txz
PACKAGE_FILE gcc-g++-4.4.4-i486-1.txz
PACKAGE_MD5 1957defd62ba44a58146d5988351027e

PACKAGE_INSTALLED /usr/bin/g++-gcc-4.4.4
PACKAGE_DEPENDENCIES The base gcc package is also required.
PACKAGE_INSTALLATION if [ ! -f /usr/bin/cc ]
PACKAGE_INSTALLATION then
PACKAGE_INSTALLATION   echo "<font color=red>gcc-g++ not installed because gcc has not been installed.<br>"
PACKAGE_INSTALLATION   echo "Install gcc first</font>"
PACKAGE_INSTALLATION   exit
PACKAGE_INSTALLATION fi
PACKAGE_INSTALLATION installpkg "${PACKAGE_DIRECTORY}"/gcc-g++-4.4.4-i486-1.txz
PACKAGE_VERSION_TEST /usr/bin/g++-gcc-4.4.4 --version 2>&1 | awk '{print$3}'
PACKAGE_VERSION_STRING 4.4.4
PACKAGE_MEMORY_USAGE Medium

 

The issue is that when you select the 'Select gcc-g++-4.4.4-i486-1.txz' button on the Pkg Manager page, the URI ends up having the '+' characters replaced with their corresponding ASCII hexadecimal value (%2B) and one ends up with a page which only shows the 'View All Available Packages Button'.  Now, I can manually change the %2B to a + in the url bar of the browser (I'm using FireFox 9.0.1 on a win XP box) and I get the page I was expecting, but this is not a desirable workflow.

 

Anyway, I tracked the offending .awk script (990-unmenu-wget.awk) and added a line with a gsub() call in the function CGI_setup, as follows:

 

function CGI_setup(   uri, version, i) {
  delete GETARG;         delete MENU;        delete PARAM
  GETARG["Status"] = ARGV[1]; GETARG["Method"] = ARGV[2]; GETARG["URI"] = ARGV[3]; 
  gsub("%2B", "+", ARGV[3])
  i = index(ARGV[3], "?")
  if (i > 0) {             # is there a "?" indicating a CGI request?
    split(substr(ARGV[3], 1, i-1), MENU, "[/:]")
    split(substr(ARGV[3], i+1), PARAM, "&")
    for (i in PARAM) {
      j = index(PARAM[i], "=")
      GETARG[substr(PARAM[i], 1, j-1)] = substr(PARAM[i], j+1)
    }
  } else {             # there is no "?", no need for splitting PARAMs
    split(ARGV[3], MENU, "[/:]")
  }
}

 

This follows a pattern I saw in some other awk scripts and it addresses the issue (the page now displays correctly, even if the url still has the + replaced with %2B).

 

Please let me know if there's a better way to solve this.

 

-JWR

I'll take a look when I get a moment to do some tests with your new package file.

(Thanks for creating the C++ package!!)

 

Odds are you have as good a fix as any.  The URI as sent by the browser to unRAID translates some special characters ("+" is one of them) to their  hex equivalent before sending it.  Your fix just converts it back when unMENU sees the submitted URI so it can be matched.

 

You are just the first to have a package name with a "+" within it.  (tough to describe C++ without it!)

 

Joe L.

  • 3 weeks later...

I have two different unRAID servers.  Both are running 5.0 b12a with unMENU 1.5 installed.  I've noticed that all my Western Digital drives have the entire model number truncated in the main page.  For example, a Western Digital WDC_WD20EADS-00S2B0_WD-WCAVY3112879 shows as 00S2B0_WD-WCAVY3112879 in unMENU's main page.  All my other WD drives show the samin unMENU, but they all display correctly in the stock GUI.  All other brands of drives display correctly in unMENU.  Is this a known issue or something?

  • Author

I have two different unRAID servers.  Both are running 5.0 b12a with unMENU 1.5 installed.  I've noticed that all my Western Digital drives have the entire model number truncated in the main page.  For example, a Western Digital WDC_WD20EADS-00S2B0_WD-WCAVY3112879 shows as 00S2B0_WD-WCAVY3112879 in unMENU's main page.  All my other WD drives show the samin unMENU, but they all display correctly in the stock GUI.  All other brands of drives display correctly in unMENU.  Is this a known issue or something?

Not previously reported, although I see mine does the same thing on a similar drive.

Probably has to do with the "-" in the drive name.

 

Joe L.

Could be.  If so, is it fixable?

  • Author

Could be.  If so, is it fixable?

I'm sure it is, but I have no time to fix it at this time. 

 

Give it a try yourself... likely it will be in unmenu.awk around line 1701.  It is there I'm splitting the name on the "-" character.  Apparently, at one point the names all had "ata-" prefacing them and I was just deleting everything prior to and including the first "-"  Instead, if the first 4 characters = "ata-" you want to perform the substring.

 

Joe L.

Would it be possible to get the source compressed with gzip?  Then I could download it on my unRaid and use it directly as gzip is provided, but unzip isn't.

 

thanks,

dave

  • Author

Would it be possible to get the source compressed with gzip?  Then I could download it on my unRaid and use it directly as gzip is provided, but unzip isn't.

 

thanks,

dave

what source are you referring to?

Could be.  If so, is it fixable?

I'm sure it is, but I have no time to fix it at this time. 

 

Give it a try yourself... likely it will be in unmenu.awk around line 1701.  It is there I'm splitting the name on the "-" character.  Apparently, at one point the names all had "ata-" prefacing them and I was just deleting everything prior to and including the first "-"  Instead, if the first 4 characters = "ata-" you want to perform the substring.

 

Joe L.

 

Change these lines at line 1700:

        if ( a ~ "diskName" )        { delete d; split(a,d,"[.=]"); disk_name[d[2]]=d[3]; }
        if ( a ~ "diskId" )          { delete d; split(a,d,"[.=]"); offset = index(d[3],"-")+1;
                                                 disk_id[d[2]]=substr(d[3],offset); }
        if ( a ~ "diskSerial" )      { delete d; split(a,d,"[.=]"); disk_serial[d[2]]=d[3]; }

 

to this:

 

        if ( a ~ "diskName" )        { delete d; split(a,d,"[.=]"); disk_name[d[2]]=d[3]; }
        if ( a ~ "diskId" )          { delete d; split(a,d,"[.=]"); disk_id[d[2]]=d[3]; }
        if ( a ~ "diskSerial" )      { delete d; split(a,d,"[.=]"); disk_serial[d[2]]=d[3]; }

 

That seems to fix it for me, however I only have Western Digital drives and they don't have the ata- prefix. Alternatively, if some drive still need to have the "ata-" prefix removed, use this:

 

        if ( a ~ "diskName" )        { delete d; split(a,d,"[.=]"); disk_name[d[2]]=d[3]; }
        if ( a ~ "diskId" )          { delete d; split(a,d,"[.=]"); if ( substr(d[3],1,4) == "ata-" )
                                                                         { disk_id[d[2]]=substr(d[3],5) }
                                                                    else { disk_id[d[2]]=d[3];} }
        if ( a ~ "diskSerial" )      { delete d; split(a,d,"[.=]"); disk_serial[d[2]]=d[3]; }

 

Would it be possible to get the source compressed with gzip?  Then I could download it on my unRaid and use it directly as gzip is provided, but unzip isn't.

 

thanks,

dave

what source are you referring to?

 

The unmenu_install1371.zip file.  I use unmenu to add zip/unzip to unRaid.  By default I've only found gzip and compress on unRaid so I can't unzip the file on my unRaid box.

 

dave

  • Author

Would it be possible to get the source compressed with gzip?  Then I could download it on my unRaid and use it directly as gzip is provided, but unzip isn't.

 

thanks,

dave

what source are you referring to?

The unmenu_install1371.zip file.  I use unmenu to add zip/unzip to unRaid.  By default I've only found gzip and compress on unRaid so I can't unzip the file on my unRaid box.

 

dave

I see...

 

You can see the entire unzipped" script here:

http://unraid-unmenu.googlecode.com/svn/trunk/unmenu_install

 

you should be able to grab a copy of it by simply invoking

mkdir /boot/unmenu

wget  -O /boot/unmenu/unmenu_install  http://unraid-unmenu.googlecode.com/svn/trunk/unmenu_install

 

 

Would it be possible to get the source compressed with gzip?  Then I could download it on my unRaid and use it directly as gzip is provided, but unzip isn't.

 

thanks,

dave

what source are you referring to?

The unmenu_install1371.zip file.  I use unmenu to add zip/unzip to unRaid.  By default I've only found gzip and compress on unRaid so I can't unzip the file on my unRaid box.

 

dave

I see...

 

You can see the entire unzipped" script here:

http://unraid-unmenu.googlecode.com/svn/trunk/unmenu_install

 

you should be able to grab a copy of it by simply invoking

mkdir /boot/unmenu

wget  -O /boot/unmenu/unmenu_install  http://unraid-unmenu.googlecode.com/svn/trunk/unmenu_install

 

perfect, thanks

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.