July 14, 201114 yr gfjardim: that in reference to the simpleFeatures package? Share that with speeding_ant so he can re-post it on his page. Yes, this is about fixing some metadata, permissions and ownership that OSX messes up. #!/bin/bash URL="http://unraid-simplefeatures.googlecode.com/files/simpleFeatures-0.7-unraid-speeding_ant.tgz" # Make the temp directory [ -e "/simple" ] && rm -rf /simple mkdir /simple cd /simple #Download and extract the file wget $URL explodepkg `basename $URL` rm `basename $URL` # Remove metadata files and fix permissions and ownership find /simple \( -iname "._*" -o -iname ".DS_Store" \) -exec rm '{}' \; find /simple -type d -exec chmod 755 '{}' \; -exec chown root:root '{}' \; find /simple -type f -exec chmod 644 '{}' \; -exec chown root:root '{}' \; chmod 755 ./install/doinst.sh ./usr/bin/* ./usr/sbin/* # Make the new package makepkg /boot/extra/`basename $URL` # Clean the temp directory rm -rf /simple On the line makepkg, I get the following: root@Tower:/simple# makepkg /boot/extra/`basename $URL` Slackware package maker, version 3.14159. Searching for symbolic links: No symbolic links were found, so we won't make an installation script. You can make your own later in ./install/doinst.sh and rebuild the package if you like. This next step is optional - you can set the directories in your package to some sane permissions. If any of the directories in your package have special permissions, then DO NOT reset them here! Would you like to reset all directory permissions to 755 (drwxr-xr-x) and directory ownerships to root.root ([y]es, [n]o)? Any idea why? and how should i answer it? I thought your previous lines set the perms? That's interesting. It seems to execute wget $URL; explodepkg `basename $URL` without a problem. I wonder why it hiccups on makepkg /boot/extra/`basename $URL` Try modifying the script at the top, as such: URL="http://unraid-simplefeatures.googlecode.com/files/simpleFeatures-0.7-unraid-speeding_ant.tgz" FILE="`basename $URL`" explodepkg $FILE rm $FILE makepkg /boot/extra/$FILE
July 14, 201114 yr Author The makepkg command will ask if you want to set the permissions when it builds. Type makepkg into unRAID terminal to get the option for automatically giving yes or no to that question. I can't remember it off the top of my head.
July 14, 201114 yr Ahh, ok, that makes sense. But it's still weird that the $URL variable wasn't interpolated, and basename wasn't executed...I figure it would execute what's in backticks (`) first, then pass that as an argument to "makepkg" -- unless makepkg runs first, doesn't see a switch for permissions, and proceeds to shit on the command line. What a rude CLI!
July 14, 201114 yr Author I see that it has little backticks on each side of basename $URL. Maybe best to capture the basename in variables first: FILENAME=$(basename $URL) Then you can call: makepkg -c y /boot/extra/$FILENAME /boot/extra/$FILENAME.tgz
July 14, 201114 yr Sorry guys, I may have confused you, I should have stated what troubled me. Here goes, first i did not have a directory called 'extra' (still learning the OS and how things work), I assumed it would create the directory, it did not. I created the directory, then reran it worked. Second in what I posted, what troubled me was the line "Searching for symbolic links:No symbolic links were found," So I though something was missing. But now thinking and looking at it again, may be you are supposed to (if you wanted to) some how provide the symbolic links and it would then create the installation script. But in our case were dont want to? as speeding_ant has the 'doinst.sh' (installation script) layed out already... Did I get this right? P.S. I got the game plan worked out for ssmtp last night, hopefully execute it soon and get it over to you.
July 14, 201114 yr Author Nope - you got it right. No symbolic links are included in the package, so none were found Nothing to see here, move along!
July 14, 201114 yr Author Haha - all good. Looking forward to your SSMTP solution. Again, really appreciate you taking the time to learn and sort that out. There's potential for SimpleFeatures gui to become the default unRAID gui. My plugin may exist no more! Therefore, it's good to know other people can create plugins and get into the game as well. Tom has confirmed he's working on a package manager too. These are exciting times!
July 15, 201114 yr There's potential for SimpleFeatures gui to become the default unRAID gui. My plugin may exist no more! Therefore, it's good to know other people can create plugins and get into the game as well. Tom has confirmed he's working on a package manager too. These are exciting times! This is pretty cool. Good to see unRAID growing from within the community. @speeding_ant very cool stuff with SF. I have yet to install it but I just got through reading the entire thread. My task for the weekend is to install it on my server. Looking forward to exploring. we'll provide feedback. J
July 15, 201114 yr speeding_ant: That's what I had modified in the script Well, using a variable for the filename. Not too familiar with Bash though, so I just put the backticks in quotes -- I think it'll work just like the scalar $();
July 16, 201114 yr Hi there, don't know if this is causing this, however I'm getting on my console lots of errors from /usr/local/emhttp/plugins/webGUI/template.php on line 150. I have version0.70 already installed with beta 9. Here is my syslog. syslog-2011-07-16.txt
July 16, 201114 yr Author Syslog provides no insight to this issue. However, I'll re-check my code on Template.php. Cheers
July 18, 201114 yr Feature Request, Can you add a mount/unmount USB drive option. Very simple interms of actually doing this http://lime-technology.com/wiki/index.php?title=Mounting_an_external_USB_drive_having_an_existing_NTFS_file_system_in_READ/WRITE_mode_to_transport_files_from/to_unRaid_server
July 19, 201114 yr Author Hi Warlock. I'll put it on the list "To-Do". May not make it into SimpleFeatures, but could be a good plugin! Cheers
July 20, 201114 yr found a minor bug The footer indicating "Array Started" on the iPhone in landscape does not stay at the bottom of the page when you scroll down. It ends up in the middle of the page. I'll attach some screenshots a little later. J edit: attached screenshots
July 20, 201114 yr Hi Warlock. I'll put it on the list "To-Do". May not make it into SimpleFeatures, but could be a good plugin! Cheers Nice 1
July 20, 201114 yr I have another suggestion, for the email notifications, can we not have an option that we can set to only mail is errors are detected ?
July 20, 201114 yr A display bug, due to latest webGUI I think? You have to check a button to enable the Reboot button (I believe one more too, just can't recall), yet the button is still green while "disabled" -- not sure if there's a CSS class tied to the button while it's disabled, but maybe it could be greyed out, or made some other color than the rest of the "enabled" buttons?
July 23, 201114 yr EDIT: Fixed this. It was Adblock Plus for anyone who also experiences this. Thanks for this amazing GUI. Just installed this. Running beta9. Something definitely isn't right here. Installed to Flash drive: /packages/simpleFeatures-0.7-unraid-speeding_ant.tgz In 'go' script: installpkg /boot/packages/simpleFeatures-0.7-unraid-speeding_ant.tgz Browser: Firefox v5.0 (Latest)
July 26, 201114 yr Hello! Just registered to thank you for your amazing work. unRAID now finally looks nice :-) And to help you out a bit, in 5beta10 the stats page is a bit messed up on my testing system: http://imageshack.us/photo/my-images/97/unraidstats.jpg/ Edit: Only happens if there are just the parity and one data disks. After I added more, it looks fine again :-)
July 26, 201114 yr Author I have another suggestion, for the email notifications, can we not have an option that we can set to only mail is errors are detected ? I'll be fixing this at some point soon
July 28, 201114 yr Author Hello! Just registered to thank you for your amazing work. unRAID now finally looks nice :-) And to help you out a bit, in 5beta10 the stats page is a bit messed up on my testing system: http://imageshack.us/photo/my-images/97/unraidstats.jpg/ Edit: Only happens if there are just the parity and one data disks. After I added more, it looks fine again :-) Actually in middle of setting up server, saw this bug so I'll try and fix it! Cheers
July 28, 201114 yr NOD32 and Menu Bar/Icons If I have NOD32 v5 installed the menu bar is no longer charcoal but becomes transparent and all the disk icons are missing. If I uninstall NOD32 it's all fine again ?
Archived
This topic is now archived and is closed to further replies.