fritolays

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by fritolays

  1. On 10/27/2022 at 12:09 PM, hugenbdd said:

    How to ignore a SINGLE file

    1.) Find the path of the file you wish to ignore.
        ls -ltr /mnt/cache/Download/complete/test.txt
            root@Tower:/# ls -ltr /mnt/cache/Download/complete/test.txt
            -rwxrwxrwx 1 root root 14 Oct 27 11:32 /mnt/cache/Download/complete/test.txt*
    2.) Copy the complete path used.  
        /mnt/cache/Download/complete/test.txt
    3.) Create a text file to hold the ignore list.
        vi /mnt/user/appdata/mover-ignore/mover_ignore.txt
    4.) Add a file path to the mover_ignore.txt file
        While still in vi press the i button on your keyboard.
        Right click mouse.
    5.) Exit and Save
        ESC key, then : key, then w key, then q key
    6.) Verify file was saved
        cat /mnt/user/appdata/mover-ignore/mover_ignore.txt
        "This should print out 1 line you just entered into the mover_ignore.txt"
    7.) Verify the find command results does not contain the ignored file
        find "/mnt/cache/Download" -depth | grep -vFf '/mnt/user/appdata/mover-ignore/mover_ignore.txt'
        /mnt/cache/Download is the share name on the cache. (Note, cache name could be different if you have multiple caches or changed the default name)

     

    How to ignore Muliple files.

    1.) Find the paths of the files you wish to ignore
        ls -ltr /mnt/cache/Download/complete/test.txt
        ls -ltr /mnt/cache/Download/complete/Second_File.txt
    2.) Copy the complete paths used to a separate notepad or text file.
        /mnt/cache/Download/complete/test.txt
        /mnt/cache/Download/complete/Second_File.txt
    3.) Copy the paths in your notepad to the clip board. 
        Select, the right click copy
    4.) Create a text file to hold the ignore list.
        vi /mnt/user/appdata/mover-ignore/mover_ignore.txt
    5.) Add the file paths to the mover_ignore.txt file
        While still in vi press the i button on your keyboard.
        Right click mouse.

        You should now have two file paths in the file.
    6.) Exit and Save
        ESC key, then : key, then w key, then q key
    7.) Verify file was saved
        cat /mnt/user/appdata/mover-ignore/mover_ignore.txt
        "This should print out 2 lines you just entered into the mover_ignore.txt"
    8.) Verify the find command results does not contain the ignored files
        find "/mnt/cache/Download" -depth | grep -vFf '/mnt/user/appdata/mover-ignore/mover_ignore.txt'
        /mnt/cache/Download is the share name on the cache. (Note, cache name could be different if you have multiple caches or changed the default name)


    How to Ignore a directory
    instead of a file path, use a directory path.  no * or / at the end.
    This may cause issues if you have other files or directories named the similar but with extra text.

    /mnt/cache/Download/complete

    *Note /mnt/cache/Download/complete  will also ignore /mnt/cache/Download/complete-old 

     

     

    *I use vi in this example instead of creating a file in windows, as windows can add ^m characters to the end of the line, causing issues in Linux.   This would not be an issue if dos2unix was included in unRAID.

     

    **Basic vi commands

    https://www.cs.colostate.edu/helpdocs/vi.html

     

    So I wrote a script to help manage which files and folders to exclude.

    When the mover runs it will convert line endings to unix format, validate file and directory paths, then compile a complete exclusion list which is then passed to the mover.

    Its progress and any errors can be viewed in Unraid's system log (Tools -> System Log).

     

    https://gist.github.com/fritolays/da5b835080ad0a4f8a48013b7b7745d8

  2. On 9/23/2022 at 1:37 PM, flyize said:

    Is there a way to run this script in the background, without having to keep the tab open? A quick Google says I need NerdPack to install screen, which is no longer supported. So I'd like to make sure this continues without my input and/or laptop being connected to the Unraid server.

     

    Check out tmux as an alternative to screen.

    Its available to install via the Nerd Pack plugin.

    Github - tmux wiki

    tmux cheat sheet

     

    Create new named session
      tmux new -s sessionname
    
    Close current session (same as exit command)
      Ctrl+D
    
    Detach from current session (run in background)
      Ctrl+B then D
    
    List current sessions
      tmux ls
    
    Attach to last session
      tmux a
    
    Attach to specific session
      tmux a -t sessionname

     

  3. On 5/25/2021 at 3:35 PM, fritolays said:

    So I am not able to get torguard working via wireguard.

    I have generated a known good config that works on my phone via lte and on my desktop.

     

    It does not work with this docker however.

    Watching the log in debug mode it reads "Having issues resolving name 'www.google.com'"

    Keeps trying for x times then just fails.

    Connecting to the console of this docker, I cannot ping the dns and thus cant get any name resolution.

    At this point it attempts to get the vpn public IP but fails as it can resolve any address.

     

    Thus far I've completely removed docker and reinstalled it, completely removed deluge and reinstalled it...

    Any ideas of what I can try?

     

    Ok so I figured this out....

    If you happen to connect via the official TorGuard desktop app it seems to change how TorGuard generates wireguard configs.

     

    Specifically the allowedips line in wg0.conf, TorGuard may generate:

    AllowedIPs = 0.0.0.0/1, 128.0.0.0/1

    While binhex seems to only want:

    AllowedIPs = 0.0.0.0/0

     

    After correcting this I was able to once again connect without issue. I also switched to the official wireguard desktop app and that does not seem to cause config generator issues anymore.

  4. So I am not able to get torguard working via wireguard.

    I have generated a known good config that works on my phone via lte and on my desktop.

     

    It does not work with this docker however.

    Watching the log in debug mode it reads "Having issues resolving name 'www.google.com'"

    Keeps trying for x times then just fails.

    Connecting to the console of this docker, I cannot ping the dns and thus cant get any name resolution.

    At this point it attempts to get the vpn public IP but fails as it can resolve any address.

     

    Thus far I've completely removed docker and reinstalled it, completely removed deluge and reinstalled it...

    Any ideas of what I can try?

  5. So I've been trying to get a fivem server up using your docker.

    It installs and boots fine, but if I attempt to add any resource assets I get a could not make hard link error.

    The odd thing is that I am able to connect to the docker and make said link manually, but fivem doesnt see it?

    Anyone else have any idea how to fix this?

    A quick google seems to show that I'm not the only one out there with beef.