Everything posted by hernandito
-
Some questions about Borg
Resistance is futile.
-
[Support] Linuxserver.io - Snapdrop
Sadly it does not work for me either. Devices don’t show up. iPhone, iPad and PC. All using Firefox. Web version works perfectly. I want a refund…. oh…. never mind… 😍
-
[Support] knex666 - FileBrowser
Hi Guys, I love this Docker... but I have a big pet peeve with it. I have a hard time dealing with how the icons for files and folders are so similar to each other. I created a feature request on their Github asking for a slight modification. I am not sure if it will be picked up. I created the below in Photoshop. I think if I were to study the code, I could figure out how to edit to get something similar to the above. My challenge is two-fold. One, from his Github, I need to identify the file that has the code that specifies this. With a little time, I can identify where it is and how to edit. Two (and most important) is that somehow his code gets compiled into a single file (called filebrowser) which is what runs in the Docker. Does anyone know how I can take the slightly modified code, and compile it into the one single file? I would really appreciate guidance on this. Thanks, H.
-
Icon suggestions
I still have a hard time understanding what this does... is it a backup? What is the purpose/goal of this? Sorry for being dense. Thanks, H.
-
Icon suggestions
-
Icon suggestions
-
Icon suggestions
Is this only applicable to btrfs?
-
Icon suggestions
Hi guys…. Can someone please provide a link that explains what Snapshots is”
-
new to Unraid
Best money ever spent. Welcome to unRAID. As you start to rely on your server, start using new drives. My advise is to start w/ big capacity on you parity drives…. If you get into media center storage, you are going to want lots of storage.
-
SABnzbd and NZBGet in Parallel
Not sure why you would need to use both. As you said, the arrs will only use one of them. I prefer NZBGet.
-
Additional Scripts For User.Scripts Plugin
Hi Meles.... in my case, my pool only contains "cache"... I have a single cache drive. What can I change on your script to reflect this? Thank you.
-
Additional Scripts For User.Scripts Plugin
Hi, I finally has a chance to give this a try... I believe your script is for: "Moves all non-hardlinked files from pool onto the array disk with the most free space" When you say pool, does this mean the cache disk? If yes... Say my movies are stored in: /mnt/user/Media/Movies What would be the proper way to invoke your script? I tried: script -f Movies -s Media --mvg then I get the below response: ------------------------------------------------------------------------------------------------------- Searching '/mnt//Media/Movies/' for non-hardlinked files to move to '/mnt/disk9/Media/Movies/' ------------------------------------------------------------------------------------------------------- ./script: line 99: cd: /mnt//Media/Movies/: No such file or directory Obviously its missing the /user/ portion of the path. How do I enter that? Do I need to edit the script itself? Thanks again! H.
-
Additional Scripts For User.Scripts Plugin
Thank you!!
-
Additional Scripts For User.Scripts Plugin
HI Guys. I would like to create a new script that invokes the daily cache mover... but ONLY to move SPECIFIC folders from cache drive to the array. Specifically I want to move the files in /mnt/cache/Media/Movies. Is there a way to do this? I found what I believe is the mover script in /usr/local/sbin/mover - pasted code below. I was hoping to find something specific to /mnt/cache... but no luck. I confess I don't fully understand the script below. I am afraid of screwing things up in my array if I edit and run the wrong thing. I suspect the section that I would need to change is: # Check for objects to move from pools to array for POOL in /boot/config/pools/*.cfg ; do for SHAREPATH in /mnt/$(basename "$POOL" .cfg)/*/ ; do SHARE=$(basename "$SHAREPATH") if grep -qs 'shareUseCache="yes"' "/boot/config/shares/${SHARE}.cfg" ; then find "${SHAREPATH%/}" -depth | /usr/local/sbin/move -d $LOGLEVEL fi done done The line above that reads: "for SHAREPATH in /mnt/$(basename "$POOL" .cfg)/*/ ; do" I would change to: "for SHAREPATH in /mnt/Media/Movies/$(basename "$POOL" .cfg)/*/ ; do" Can someone please advise if I am correct... if not, what do I need to change? Here is the complete mover script from /usr/local/sbin/mover: PIDFILE="/var/run/mover.pid" CFGFILE="/boot/config/share.cfg" LOGLEVEL=0 start() { if [ -f $PIDFILE ]; then if ps h $(cat $PIDFILE) | grep mover ; then echo "mover: already running" exit 1 fi fi if [ -f $CFGFILE ]; then # Only start if shfs includes pools if ! grep -qs 'shareCacheEnabled="yes"' $CFGFILE ; then echo "mover: cache not enabled" exit 2 fi if grep -qs 'shareMoverLogging="yes"' $CFGFILE ; then LOGLEVEL=1 fi fi if ! mountpoint -q /mnt/user0 ; then echo "mover: array devices not mounted" exit 3 fi echo $$ >/var/run/mover.pid [[ $LOGLEVEL -gt 0 ]] && echo "mover: started" shopt -s nullglob # Check for objects to move from pools to array for POOL in /boot/config/pools/*.cfg ; do for SHAREPATH in /mnt/$(basename "$POOL" .cfg)/*/ ; do SHARE=$(basename "$SHAREPATH") if grep -qs 'shareUseCache="yes"' "/boot/config/shares/${SHARE}.cfg" ; then find "${SHAREPATH%/}" -depth | /usr/local/sbin/move -d $LOGLEVEL fi done done # Check for objects to move from array to pools for SHAREPATH in $(ls -dv /mnt/disk[0-9]*/*/) ; do SHARE=$(basename "$SHAREPATH") if grep -qs 'shareUseCache="prefer"' "/boot/config/shares/${SHARE}.cfg" ; then eval "$(grep -s shareCachePool /boot/config/shares/${SHARE}.cfg | tr -d '\r')" if [[ -z "$shareCachePool" ]]; then shareCachePool="cache" fi if [[ -d "/mnt/$shareCachePool" ]]; then find "${SHAREPATH%/}" -depth | /usr/local/sbin/move -d $LOGLEVEL fi fi done rm -f $PIDFILE [[ $LOGLEVEL -gt 0 ]] && echo "mover: finished" } killtree() { local pid=$1 child for child in $(pgrep -P $pid); do killtree $child done [ $pid -ne $$ ] && kill -TERM $pid } # Caution: stopping mover like this can lead to partial files on the destination # and possible incomplete hard link transfer. Not recommended to do this. stop() { if [ ! -f $PIDFILE ]; then echo "mover: not running" exit 0 fi killtree $(cat $PIDFILE) sleep 2 rm -f $PIDFILE echo "mover: stopped" } case $1 in start) start ;; stop) stop ;; status) [ -f $PIDFILE ] ;; *) # Default is "start" # echo "Usage: $0 (start|stop|status)" start ;; esac Any advise is greatly appreciated. Thank you! H.
-
Execute UnRAID Script from Inside Swag
Are you able to do the phpseclib with the live output in your browser in Swag? I have tried every solution without the output only being displayed at the end. thanks
-
Execute UnRAID Script from Inside Swag
A big thank you for this! I managed to implement this and it works like a charm…. For me it’s a breakthrough that I have been wishing for a long time! the script above did not work for me… my script contain the install command line from Composer link in your first post. Then I added the command line in you first post. #!/bin/bash echo " " echo "===========================+++++++++++++++======" echo "Installing Hernando Custom Initialization Script" echo "====================+++++++++++++++=============" echo " " echo "-------------------" echo "Installing Composer" echo "-------------------" php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('sha384', 'composer-setup.php') === '906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" php composer-setup.php php -r "unlink('composer-setup.php');" echo " " echo "--------------------" echo "Installing PHPSecLib" echo "--------------------" php composer.phar require phpseclib/phpseclib:~2.0 echo " " echo "-------------" echo "Installing MC" echo "-------------" apk add mc echo " " echo "------------------" echo "Installing OpenSSH" echo "------------------" apk add openssh echo " " echo "----------------" echo "Installing Putty" echo "----------------" apk add putty echo " " echo "===========================================" echo "DONE! - Finished Installing Hernando Script" echo "===========================================" echo " I install MC, OpenSSH, and Putty as well. thank you so very much. I really appreciate your help. h.
-
Thoughts: Used Dual AMD CPUs & Motherboards
Years ago I went the used dual Xeon 2670 CPU and ATX SuperMicro motherboard way. From eBay. It was a thread that started here. It’s been and still is awesome. I believe these were pulled from old Facebook servers or something like that. I have a total of 16 cores / 32 threads. It was all very cheap where MB, CPUs and ram totaled like $500 ~ $600. I was curious about AMD and found something that’s potentially similar. There are matched pairs of AMD Opteron 2.6Ghz 12 core CPUs for $17. Then there are motherboards for dual Opteron CPUs that are quite cheap as well. I have not researched enough nor am I an AMD expert to see if CPUs and MBs are compatible. This would be 24 cores. Is this something similar and/or better than the used Xeon adventure? Or are these CPUs way inferior to the old Xeon E5 2670? My Xeon CPUs are probably well over 10 years old. The AMD items: CPUs Motherboard It sounds too good to be true… hoping to get some quick thoughts before I start diving down that rabbit hole. thanks. H.
-
Execute UnRAID Script from Inside Swag
VI is horrible.... nano is a little better... but maybe try installing Midnight Commander (mc) "apk add mc" and that has a text editor.... Also, from the Swag command line, you can also type "chmod -R 777 /config/" then you can edit the files in Windows using Notepad++... always take note that the line end should be set to UNIX:
-
Execute UnRAID Script from Inside Swag
Thank you. As a newbie you are doing great. it’s normal if you update a docker to loose anything you install. To overcome this, create a sub folder in /cache/appdata/swag and call it “custom-cont-init.d”. The in that folder, create a script file and call it “install-compose.sh”. Edit that file and enter all the command lines for installation. This way, any time the dockers gets updated, it will run this script, and reinstalls. thanks again. I will try it out in the morning. h.
-
Execute UnRAID Script from Inside Swag
Wow!! This looks promising. Thank you. Into which directory did you download/install Composer? can’t wait to try it. thank you. H.
-
Script after Docker Container Update
You can create a custom scrpt w UserScript plug-in where you can run it hourly or daily…. Or a custom cron setting.
-
[REQUEST] Webtrees
Hi…. Nginx is Swag….. if you have setup Swag, you will have /cache/app data/Swag/www/. Create a webtree sub folder in that and copy the files. Then to see it go to your Swags WebUI, for example 192.168.1.102:84/webtree. You only need proxy-confs when stuff is running on separate dockers. I assume you know how to access the Swag interface outside of you home network…..
-
Additional Scripts For User.Scripts Plugin
How can I execute a UserScript from inside a docker? In Swag, I want to create a php web page that has a link to execute a UserScript. The script tells other dockers to do stuff. I’m thinking that I will need to ssh into the unRAID console. I would love to see a php snippet on how to ssh and run the command. ‘’thank you.
-
Execute UnRAID Script from Inside Swag
Hi guys, I have an internal local PHP web site (not available from open internet) running on Swag. There should not be any security risk in doing this. I want to be able to execute an unRAID user script from that web site. I cannot figure out how to do it. I read that it can be achieved by using phpseclib. But I don’t know how to install it in Swag. There is very little info on installing it. I’m trying to ssh from php into my unRAID to execute command. But have not been able to. I have created a very nifty script. I use Kodi and Couch….Normally when new movie is added, the Kodi scan lasts a loooooong time. Big library. I also use my TinyMediaManager CLI docker to do a full scrape of /mnt/cache/Media/Movies after downloading. I have a PHP script that parses the subdirectories in folder above. Then I run a php script that instructs Kodi to run a scan of each of the new folders located now in /mnt/user/Media/Movies/“New Movie Folder1”. The scan takes 4 seconds and they are in the llibrary. Couchpotato has stopped being able to update Kodi Leía. I would love to execute this on the fly from my web site. Please help. Thank you, h.
-
[SUPPORT] SPACEINVADERONE - Windows11 UUP dump
Worked perfect for me using SpaceInvaders settings. Is there a way a legitimate way to enter a Product Key / Activation method? Here is how to enter product key. Takes a while for the script to run.. be patient. https://shaadlife.com/activate-windows-11/ Thank you Ed! H.