Jump to content

jowi

Members
  • Posts

    1,192
  • Joined

  • Last visited

Posts posted by jowi

  1. So if i understand correctly, the .dropbox.img file (sparsefile, formatted as ext4) is an actual file that persists somewhere on the array or ssd in another location then were Dropbox archive is. Lets say it is /mnt/disk1/temp/.dropbox.img

     

    Then we have a 2nd location, the actual location you enter in Dropbox, where Dropbox will sync its files to,

    lets say this is /mnt/cache/Dropbox

     

    And the .dropbox.img file is then mounted at /mnt/cache/Dropbox?

    So that /mnt/cache/Dropbox folder will basically show the contents of the .img file? (or the other way around)

    So Dropbox reads and writes to and from /mnt/cache/Dropbox but actually it is the .img file that will contain the data?

  2. I did use the shebang line after the first attempt, and i did save it using np++. Not sure about the Linux line endings, np++ just shows CRLF.

    I also think the instructions (!) are too complicated; why make a backup and rsync back ets. Just stop Dropbox, remove the contents, create the image/loopback and let Dropbox sync itself to it on startup, would be simpler.

  3. Depends on where you currently have stored Dropbox... mine was on a unassigned device. Also depends on where you want the dropbox to be afterwards. In my case, on my /mnt/cache in a Dropbox folder.

     

    And yes, commands placed after each other in a file, is called a script.

  4. Jeezes what a f$E^&%^&* mess this... it did not work, but now i got a .dropbox.img file i can not delete.  Help?

     

    *edit* after 3.5 heart attacks i found that the folder the .img was in, had it's 'i' attribute set... removed that, and now it's gone... *wipes sweat of face*

     

    I'm gonna use the usb stick. That is something i understand :)

  5. I can't get that script to work at all. I put it in a .sh file, but it crashes on the empty lines, if i remove these, i get errors like: dd: invalid number: ‘10G\r\r’

    etc... 

     

    How do you run this?

     

    
    # Location of the image which will contain the new ext4 partition
    
    DROPBOXFILE=/mnt/cache/Dropbox/.dropbox.img
    
    # Current location of my Dropbox folder
    
    DROPBOXHOME=/mnt/disks/SanDisk32GUSB/Dropbox
    
    # Where we will copy the folder to. If you have little space, you could make this # a folder on a USB drive DROPBOXBACKUP=/mnt/cache/Temp/old_Dropbox
    
    # What size is the Dropbox image file going to be. It makes sense to set this # to whatever the capacity of your Dropbox account is, or a little more.
    
    DROPBOXSIZE="10G"
    
    # Create a 'sparse' file which will start out small and grow to the maximum # size defined above. So we don't eat all that space immediately.
    
    dd if=/dev/zero of="$DROPBOXFILE" bs=1 count=0 seek="$DROPBOXSIZE"
    
    # Format it ext4, because Dropbox Inc. says so
    
    mkfs.ext4 "$DROPBOXFILE"
    
    # Move the current Dropbox folder to the backup location
    
    mv "$DROPBOXHOME" "$DROPBOXBACKUP"
    
    # Make a new Dropbox folder to replace the old one. This will be the mount point # under which the sparse file will be mounted
    
    mkdir "$DROPBOXHOME"
    
    # Make sure the mount point can't be written to if for some reason the partition # doesn't get mounted. We don't want dropbox to see an empty folder and think 'yay, let's delete # all his files because this folder is empty, that must be what they want'
    
    chattr +i "$DROPBOXHOME"
    
    # Mount the sparse file at the dropbox mount point
    
    mount -o loop "$DROPBOXFILE" "$DROPBOXHOME"
    
    # Copy the files from the existing dropbox folder to the new one, which will put them # inside the sparse file. You should see the file grow as this runs.
    
    rsync -a "$DROPBOXBACKUP"/ "$DROPBOXHOME"/
    
    # Create a line in our /etc/fstab so this gets mounted on every boot up
    
    echo "$DROPBOXFILE" "$DROPBOXHOME" ext4 loop,defaults,rw,relatime,exec,user_xattr 0 0 | sudo tee -a /etc/fstab
    
    # Let's unmount it so we can make sure the above line worked
    
    umount "$DROPBOXHOME"
    
    # This will mount as per the fstab mount -a # Set ownership and permissions on the new folder so Dropbox has access
    
    chown $(id -un) "$DROPBOXHOME" chgrp $(id -gn) "$DROPBOXHOME"
    
    

     

    
    ./convert_dropbox.sh: line 1: #: command not found
    
    ./convert_dropbox.sh: line 2: $'\r': command not found
    
    ./convert_dropbox.sh: line 3: $'\r': command not found
    
    ./convert_dropbox.sh: line 4: $'\r': command not found
    
    ./convert_dropbox.sh: line 6: $'\r': command not found
    
    ./convert_dropbox.sh: line 7: $'\r': command not found
    
    ./convert_dropbox.sh: line 8: $'\r': command not found
    
    ./convert_dropbox.sh: line 10: $'\r': command not found
    
    ./convert_dropbox.sh: line 12: $'\r': command not found
    
    ./convert_dropbox.sh: line 13: $'\r': command not found
    
    ./convert_dropbox.sh: line 14: $'\r': command not found
    
    ./convert_dropbox.sh: line 16: $'\r': command not found
    
    dd: invalid number: ‘’
    
    ./convert_dropbox.sh: line 18: $'\r': command not found
    
    ./convert_dropbox.sh: line 20: $'\r': command not found
    
    mke2fs 1.44.0 (7-Mar-2018)
    
    ' on device ''alid blocks '
    
    ./convert_dropbox.sh: line 22: $'\r': command not found
    
    ./convert_dropbox.sh: line 24: $'\r': command not found
    
    mv: target ''$'\r' is not a directory
    
    ./convert_dropbox.sh: line 26: $'\r': command not found
    
    ./convert_dropbox.sh: line 28: $'\r': command not found
    
    mkdir: cannot create directory ‘’: No such file or directory
    
    ./convert_dropbox.sh: line 30: $'\r': command not found
    
    ./convert_dropbox.sh: line 32: $'\r': command not found
    
    chattr: No such file or directory while trying to stat 
    
    ./convert_dropbox.sh: line 34: $'\r': command not found
    
    ./convert_dropbox.sh: line 36: $'\r': command not found
    
    mount: bad usage
    
    Try 'mount --help' for more information.
    
    ./convert_dropbox.sh: line 38: $'\r': command not found
    
    ./convert_dropbox.sh: line 40: $'\r': command not found
    
    rsync: failed to set times on "/mnt/cache/Temp/\#015/.": Operation not permitted (1)
    
    rsync: symlink "/mnt/cache/Temp/\#015/init" -> "/sbin/init" failed: Operation not permitted (1)
    
    rsync: recv_generator: mkdir "/mnt/cache/Temp/\#015/bin" failed: Operation not permitted (1)
    
    *** Skipping any contents from this failed directory ***
    
    rsync: recv_generator: mkdir "/mnt/cache/Temp/\#015/boot" failed: Operation not permitted (1)
    
    *** Skipping any contents from this failed directory ***
    
    rsync: recv_generator: mkdir "/mnt/cache/Temp/\#015/dev" failed: Operation not permitted (1)
    
    *** Skipping any contents from this failed directory ***
    
    rsync: mkstemp "/mnt/cache/Temp/\#015/.wget-hsts.ZE4WcX" failed: Operation not permitted (1)
    
    rsync: recv_generator: mkdir "/mnt/cache/Temp/\#015/etc" failed: Operation not permitted (1)
    
    *** Skipping any contents from this failed directory ***
    
    rsync: recv_generator: mkdir "/mnt/cache/Temp/\#015/home" failed: Operation not permitted (1)
    
    *** Skipping any contents from this failed directory ***
    
    rsync: recv_generator: mkdir "/mnt/cache/Temp/\#015/lib" failed: Operation not permitted (1)
    
    *** Skipping any contents from this failed directory ***
    
    rsync: recv_generator: mkdir "/mnt/cache/Temp/\#015/lib64" failed: Operation not permitted (1)
    
    *** Skipping any contents from this failed directory ***
    
    rsync: recv_generator: mkdir "/mnt/cache/Temp/\#015/mnt" failed: Operation not permitted (1)
    
    *** Skipping any contents from this failed directory ***
    
    

  6. I've added a USB stick using the unassigned devices plugin, formatted it as EXT4, pointed the docker to it and voila, dropbox is now running :)

    Since Dropbox is constantly synced between all different devices, i don't need it to persists on the array anyway, but it is nice to have acces to it from within UNRAID.

  7. I've been using a 250GB SATA SSD for some time now, and now i'm upgrading my UNRAID server with a Xeon CPU (in stead of an core-i3) and 16GB in stead of 4GB memory, so i can run some VM's as well. Now i do i want to get a bigger SSD/cache drive to run the VM's (and dockers etc) from, so i was thinking of getting a 1TB SSD.

     

    I understand that the M.2 interface is the way to go these days, so i was thinking of getting an M.2 SSD, using a PCIe to M.2 adapter, since the X9SCM doesn't have M.2 slots on the motherboard natively.

     

    Has anyone used this in a X9SCM? Will it work without any problems? I don't have to boot from it, it is just ment as SSD/cache in UNRAID.

  8. Thanks, i'll try that. 

     

    Another thing i noticed; i'm using a python postprocessing script in sabnzbd that renames the downloaded file, adds some info from thetvdb, and moves it to the right place in the array, refreshes sonarr's history so sonarr knows the new name i gave it, and last but not least, i'm sending myself an email that episode x from series y is downloaded. Everything seems to work, except for sending the email... it looks like it gets sent without errors or exceptions, using smtp, ssl (port 587, with correct credentials etc) but it is not getting delivered, i never get the email? Is there something i need to change in my code now i'm sending from inside this vpn?

     

    *edit* seems to be a provider issue... i've been using a fake email adres as sender, e.g. [email protected]. I think the ISP changed something so you can't do that anymore; if i'm using my actual, real email address it works... probably an anti spam countermeasure or something.

  9. Thanks. I tried the method of checking the ip address under Q2, if i do this for the sabnzbd-vpn docker, i get the ip address my VPN provider gave me, so that seems ok. But if i do the same for the Sonarr docker, where i've setup sonarr to use the sabnzbd-vpn as proxy, it gives me the ip adress of my original ISP... or is this correct?

  10. I've set this up using a custom VPN provider, and after some minor issues it looks like it is working. VPN is enabled, i can see in the logging the VPN is set up, and sabnzbd is actually downloading... i'm also using the VPN created here for e.g. sonarr, by setting sonarr's proxy to vpn's ip:8118. Sonarr works as well as it seems.

     

    But is there a way to make sure it i actually working as it should? No dns leaking etc? Other tests?

    i mean sab is downloading, but i can't really tell if it is actually doing it over the vpn or not?

  11. Scanning problem solved :) but trial period is over... I have an Alexa dot 2, so my idea is to stream mymedia over bluetooth to a bluetooth device connected to my receiver. I'm thinking of an Audioengine B1 or an Arcam rBlink. Now, it is great to order Alexa around with mymedia, and it will play over bluetooth, but... i have to find a way to set the right input on my receiver when mymedia starts playing. As far as i can see, there is no possibility to use MyMedia as an IFTTT trigger or as a 'thing' in Stringify? Any ideas? I'm look for something like "IF mymedia is playing, THEN tell Logitech Harmony to select input 2" 

×
×
  • Create New...