Jump to content

Porkie

Members
  • Posts

    41
  • Joined

  • Last visited

Posts posted by Porkie

  1. I had the same issue with the script to but I got it to run by editing it.

     

    #!/bin/bash
    
    # Check if python3 is installed (can be installed through NerdPack)
    if [[ "$(python3 -V)" =~ "Python 3" ]]; 
    then
        # Check if undervolt is already installed
        [[ ! "$(undervolt --version)" =~ "undervolt" ]];
            wget http://slackware.cs.utah.edu/pub/slackware/slackware64-current/slackware64/ap/undervolt-20200612_07d0c70-x86_64-1.txz -P /tmp
            upgradepkg --install-new /tmp/undervolt-20200612_07d0c70-x86_64-1.txz
        fi
        # Undervolt CPU
        undervolt --gpu -75 --core -100 --cache -100 --uncore -100 --analogio -100
        undervolt --read

    But I run into another issue.

     

    Resolving slackware.cs.utah.edu (slackware.cs.utah.edu)... 155.98.64.87
    Connecting to slackware.cs.utah.edu (slackware.cs.utah.edu)|155.98.64.87|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 14936 (15K) [text/plain]
    Saving to: '/tmp/undervolt-20200612_07d0c70-x86_64-1.txz.1'
    
    0K .......... .... 100% 13.2K=1.1s
    
    2020-10-21 17:10:06 (13.2 KB/s) - '/tmp/undervolt-20200612_07d0c70-x86_64-1.txz.1' saved [14936/14936]
    
    
    +==============================================================================
    | Skipping package undervolt-20200612_07d0c70-x86_64-1 (already installed)
    +==============================================================================
    
    Traceback (most recent call last):
    File "/usr/bin/undervolt", line 33, in
    sys.exit(load_entry_point('undervolt==0.3.0', 'console_scripts', 'undervolt')())
    File "/usr/lib64/python3.8/site-packages/undervolt.py", line 411, in main
    set_offset(plane, offset, msr)
    File "/usr/lib64/python3.8/site-packages/undervolt.py", line 222, in set_offset
    write_msr(write_value, msr.addr_voltage_offsets)
    File "/usr/lib64/python3.8/site-packages/undervolt.py", line 81, in write_msr
    os.write(f, pack('Q', val))
    OSError: [Errno 5] Input/output error
    temperature target: -0 (100C)
    Traceback (most recent call last):
    File "/usr/bin/undervolt", line 33, in
    sys.exit(load_entry_point('undervolt==0.3.0', 'console_scripts', 'undervolt')())
    File "/usr/lib64/python3.8/site-packages/undervolt.py", line 455, in main
    voltage = read_offset(plane, msr)
    File "/usr/lib64/python3.8/site-packages/undervolt.py", line 208, in read_offset
    write_msr(value_to_write, msr.addr_voltage_offsets)
    File "/usr/lib64/python3.8/site-packages/undervolt.py", line 81, in write_msr
    os.write(f, pack('Q', val))
    OSError: [Errno 5] Input/output error
    Script Finished Oct 21, 2020 17:10.06

     

  2. 19 minutes ago, trajpar said:

    I'm getting an rclone mount error when running the rclone_mount.sh scipts with bind option set to "N"

     

    Script location: /tmp/user.scripts/tmpScripts/rclone_mount/script
    Note that closing this window will abort the execution of this script
    04.02.2020 17:20:08 INFO: *** Starting mount of remote cryptsend
    04.02.2020 17:20:08 INFO: Checking if this script is already running.
    04.02.2020 17:20:08 INFO: Script not running - proceeding.
    04.02.2020 17:20:08 INFO: Mount not running. Will now mount cryptsend remote.
    04.02.2020 17:20:08 INFO: Recreating mountcheck file for cryptsend remote.
    2020/02/04 17:20:08 DEBUG : rclone: Version "v1.51.0" starting with parameters ["rcloneorig" "--config" "/boot/config/plugins/rclone/.rclone.conf" "copy" "mountcheck" "cryptsend:" "-vv" "--no-traverse"]
    2020/02/04 17:20:08 DEBUG : Using config file from "/boot/config/plugins/rclone/.rclone.conf"
    2020/02/04 17:20:09 DEBUG : mountcheck: Modification times differ by -2m20.521233913s: 2020-02-04 17:20:08.241233913 -0600 CST, 2020-02-04 23:17:47.72 +0000 UTC
    2020/02/04 17:20:10 INFO : mountcheck: Copied (replaced existing)
    2020/02/04 17:20:10 INFO :
    Transferred: 32 / 32 Bytes, 100%, 17 Bytes/s, ETA 0s
    Transferred: 1 / 1, 100%
    Elapsed time: 1.8s

    2020/02/04 17:20:10 DEBUG : 7 go routines active
    2020/02/04 17:20:10 DEBUG : rclone: Version "v1.51.0" finishing with parameters ["rcloneorig" "--config" "/boot/config/plugins/rclone/.rclone.conf" "copy" "mountcheck" "cryptsend:" "-vv" "--no-traverse"]
    04.02.2020 17:20:10 INFO: Completed creation of mountcheck file for cryptsend remote.
    04.02.2020 17:20:10 INFO: *** Creating mount for remote cryptsend
    04.02.2020 17:20:10 INFO: sleeping for 5 seconds
    Usage:
    rclone mount remote:path /path/to/mountpoint [flags]

    Flags:
    --allow-non-empty Allow mounting over a non-empty directory.
    --allow-other Allow access to other users.
    --allow-root Allow access to root user.
    --attr-timeout duration Time for which file/directory attributes are cached. (default 1s)
    --daemon Run mount as a daemon (background mode).
    --daemon-timeout duration Time limit for rclone to respond to kernel (not supported by all OSes).
    --debug-fuse Debug the FUSE internals - needs -v.
    --default-permissions Makes kernel enforce access control based on the file mode.
    --dir-cache-time duration Time to cache directory entries for. (default 5m0s)
    --dir-perms FileMode Directory permissions (default 0777)
    --file-perms FileMode File permissions (default 0666)
    --fuse-flag stringArray Flags or arguments to be passed direct to libfuse/WinFsp. Repeat if required.
    --gid uint32 Override the gid field set by the filesystem.
    -h, --help help for mount
    --max-read-ahead SizeSuffix The number of bytes that can be prefetched for sequential reads. (default 128k)
    --no-checksum Don't compare checksums on up/download.
    --no-modtime Don't read/write the modification time (can speed things up).
    --no-seek Don't allow seeking in files.
    -o, --option stringArray Option for libfuse/WinFsp. Repeat if required.
    --poll-interval duration Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable. (default 1m0s)
    --read-only Mount read-only.
    --uid uint32 Override the uid field set by the filesystem.
    --umask int Override the permission bits set by the filesystem.
    --vfs-cache-max-age duration Max age of objects in the cache. (default 1h0m0s)
    --vfs-cache-max-size SizeSuffix Max total size of objects in the cache. (default off)
    --vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
    --vfs-cache-poll-interval duration Interval to poll the cache for stale objects. (default 1m0s)
    --vfs-case-insensitive If a file name not found, find a case insensitive match.
    --vfs-read-chunk-size SizeSuffix Read the source objects in chunks. (default 128M)
    --vfs-read-chunk-size-limit SizeSuffix If greater than --vfs-read-chunk-size, double the chunk size after each chunk read, until the limit is reached. 'off' is unlimited. (default off)
    --volname string Set the volume name (not supported by all OSes).
    --write-back-cache Makes kernel buffer writes before sending them to rclone. Without this, writethrough caching is used.

    Use "rclone [command] --help" for more information about a command.
    Use "rclone help flags" for to see the global flags.
    Use "rclone help backends" for a list of supported services.
    Command mount needs 2 arguments minimum: you provided 1 non flag arguments: ["/mnt/user/mount_rclone/cryptsend"]
    04.02.2020 17:20:15 INFO: continuing...
    04.02.2020 17:20:15 CRITICAL: cryptsend mount failed - please check for problems.
     

    Just set it to Y and use a local ip similar to you server and it will work, I tried with just N too and got the same error too.

  3. Can I suggest another upload script, I had lots of issues with big files and running the normal upload script and things getting all screwy in rclone with fuse files and it moving things to bin and re uploading over and over if the file took longer than a hour to upload. Checkers for seeing if the script is running are not working for me with the original upload script.

     

    I came across another upload script that seems to work better and also has the benefit of directing where which folders get uploaded to. So you could have 3 or 4 shared drives and as long as you set them up in rclone you can direct certain folders to it. For example a movies shared drive, one for tv, music etc.

     

    #!/bin/bash
    # RClone Config file
    # Custom script specific to USER
    
    # Lockfile
    LOCKFILE="/var/lock/`basename $0`"
    
    
    # Rclone arguments
    ARGS=(-P --checkers 3 --log-file /mnt/user/appdata/other/logs/upload_rclone.log -v --tpslimit 3 --transfers 3 --drive-chunk-size 32M --exclude queue/** --exclude nzb/** --exclude intermediate/** --exclude complete/** --exclude downloads/** --exclude *fuse_hidden* --exclude *_HIDDEN --exclude .recycle** --exclude *.backup~* --exclude *.partial~* --exclude *.log~* --delete-empty-src-dirs --bwlimit 8M --tpslimit 3 --min-age 30m --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36")
    
    # Create exclusion file
    #touch /home/user/.config/rclone/upload_excludes
    
    
    (
      # Wait for lock for 5 seconds
      flock -x -w 5 200 || exit 1
    
    # Move older local files to the cloud
    rclone move /mnt/user/local/google_vfs/movies gdrive_media_vfs:movies "${ARGS[@]}"
    rclone move /mnt/user/local/google_vfs/tv gdrive_media_vfs:tv "${ARGS[@]}"
    
    ) 200> ${LOCKFILE}

    this script is just a example and should work for standard install from here, but if you wanted to use extra drives like say ebooks, make a shared drive called ebooks configure that in rclone and add the drive to your mount command. Then for rclone move command in the script I posted here you just add.

    rclone move /mnt/user/local/google_vfs/ebooks gdrive_ebooks:ebooks "${ARGS[@]}"

    This is just a example but it seems to work much better, also you dont really need so much excludes as the files have already been processed. I added the excludes anyway but im sure they can be removed.

     

     

  4. 17 minutes ago, endiz said:

    Well that wouldn't work since you still need the original Plex Transcoder binary... But this gave me a good idea. Outside of the container, I put the new transcoder binary in /config/ and created another script to automate the move:

     

    
    #!/bin/sh
    mv /usr/lib/plexmediaserver/Plex\ Transcoder /usr/lib/plexmediaserver/Plex\ Transcoder2
    cp /config/Library/Application\ Support/Plex\ Media\ Server/Plex\ Transcoder /usr/lib/plexmediaserver/

    Now I just have to execute it each time the docker updates..

    Do you even need to move it, wouldnt a symlink work?

  5. Today I finally managed to get Plexdrive5 working quite well with a little help of cross referencing from the Cloudbox project and seeing how they did things. I had the rclone plugin working but it just was not working all that great. I would get freezes and sometimes things just wouldn't play and the kids would complain.

     

    First thing I did was to create a new project called plexdrive at https://console.developers.google.com to get a client id and client secret. You can follow this guide for reference on how to do it. https://github.com/Cloudbox/Cloudbox/wiki/Google-Drive-API-Client-ID-and-Client-Secret Once you have your client id and secret keep them handy in a notepad file or something for later.

     

    Next create a folder in appdata called plexdrive so you will a path of /mnt/user/appdata/plexdrive

     

    Download plexdrive5 using https://github.com/dweidenfeld/plexdrive/releases/download/5.0.0/plexdrive-linux-amd64 and rename the file just to plexdrive and place it into /mnt/user/appdata/plexdrive.

     

    Open a terminal to unraid and run chmod -R 777 /mnt/user/appdata/plexdrive/  (I'm not sure if 777 is OK to use and maybe 775 would be better).

     

    Now we will run plexdrive for the first time using.

    /mnt/user/appdata/plexdrive/plexdrive mount -v 3 --refresh-interval=1m --chunk-check-threads=8 --chunk-load-threads=8 --chunk-load-ahead=4 --max-chunks=100 --fuse-options=allow_other,read_only --config=/mnt/user/appdata/plexdrive --cache-file=/mnt/user/appdata/plexdrive/cache.bolt /mnt/cache/plexdrive

    My mount point in unraid is /mnt/cache/plexdrive change this in the above command to your needs but it must not point to a array disk or share that is on the array. Unraid doesnt not like it and will throw a bunch of errors in the logs.

     

    On first run it will ask you for you client id and secret and it will give you a link to copy from terminal into your browser to auth it, copy the auth code into terminal to complete. Plexdrive will then do its thing and mount to location you added as above. When you see "First cache build process started..." crtl c to stop plexdrive.

     

    Next create a user script I called mine plexdrive and copy the same command we used above to to install plexdrive into the user script and save. Then click run script in background and your mount should be working. I have set this to run on array start but I haven't tested it yet but my content loads fast and plays really well. 

    • Like 1
  6. 3 hours ago, elmn8r said:

    Would be awesome if someone could help out the non-techies by creating a docker for xteve or the new telly.  I'll help anyway I can to test it...

    I posted instructions for telly1.1 version (I think its 1.1) a few posts above which currently works fine, version 1.5 is still in alpha and is not functioning as it should right now. Its a very simple template and you drop a config file in the mapped folder. Use the above links to get a base config file and edit to your needs. There is also a container for xTeve which works but I dont think its on the appstore and you need to create your own template.

  7. The repo has changed, it is now tellytv/telly. There is also a new branch dev. If you want to use the dev branch use the tag tellytv/telly:dev or if you need ffmpeg tellytv/telly:dev-ffmpeg. If you use the new beta/dev tags then you need to create a new xml but it a simple one. Also you will need to create a telly.config.toml and add it to your mapped folder for example /mnt/user/appdata/telly.

     

    You can find info or a base config file at https://github.com/tellytv/telly/tree/dev. Here is a screenshot of my xml for the new beta for people that need it.

     

    TTDh2EM.png

  8. I only came across DietPi a day or so ago which seems a interesting rpi project that is easy to install using Kvm after a few procedures.

     

    First go to https://dietpi.com and download their Vmware vdmk image to your Unraid machine. Then we need to convert the image to a qcow2 image using qemu. To convert the image use the following command and adjust paths and file names accordingly.

     

    qemu-img convert /mnt/user/isos/DietPi_VMware-x86_64-Stretch.vmdk -O qcow2 dietpi.qcow2

     

    Once the file is converted which should take not to long we need to make a linux vm template using seabios and for the first drive set to manual and point to the qcow2 we just created and set that drive to sata. Set ram and cpus as you require, save and boot. here is a working vm template with instructions from above.

     

    fSBo4tP.png

     

    Dietpi seems to offer a lot of packages/software from the installer, i was surprised at what was available and also just being able to run a rpi image without any hassle seemed cool.

    • Like 1
  9. Im trying to do a straight swap with a Amd  R9 285 to a gifted Amd RX Vega 56. If I put the Vega i my system Unraid doesnt boot correctly it will get past bios page and start to load Unraid but it will halt at some point and nothing loads. No Vm's/containers starts I can not login into the server webui.

  10. For any container to communicate with each other they have to run the same network mode ie bridge/br0. So at home a run a few containers in br0 mode ie plex and plexpy, They need to be on the same network mode so that they can communicate stats if not plexpy cannot read stats from plex because its on a different network. I run this same example using telly. Telly will not communicate if say plex is on bridged mode and telly is on br0.

  11. Hi I purchased a INVENTEC B800 Motherboard for my dual xeon setup, they are cheap on Ebay if your willing to take a risk on importing one from Hong Kong. 

     

    My problem is actually finding any info on these boards, Unraid reports this board as being a ZTSYSTEM - A9DRPF-10S, I did a search of the serial number on the zt-system website for available downloads and drivers but the site does not recognize the serial number. I'm only looking for a bios update because currently in the current bios I do not see any options to set the onboard vga to first boot rather than it taking the pci-e slot.

     

    The board runs great and I have not had much of a issue but its pain sometimes with vm's and gpu pass through, although I have a working gaming vm I have trouble with reboots/shutdowns of vm's and have to do a full system reboot for the vm's to become alive on my screen again. If I do not do a full system reboot I end up with black screen.

×
×
  • Create New...