Jump to content

Tutorial for Google Drive, OneDrive, Amazon integration on Linux/Windows etc


Recommended Posts

Posted

Ubuntu Server:
Installing rclone
curl https://rclone.org/install.sh | sudo bash

Adding a cloud provider
Open a terminal windows
Type:
rclone config

Current remotes:

Name Type
==== ====

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q>

Type n to add a new cloud provider (Google Drive, OneDrive etc)

Now type the name. Choose a simple and non capitalized name (ie mygoogledrive instead of MyGoogleDrive)

name>

Type of storage to configure.
Choose a number from below, or type in your own value
1 / Amazon Drive
\ "amazon cloud drive"
2 / Amazon S3 (also Dreamhost, Ceph, Minio)
\ "s3"
3 / Backblaze B2
\ "b2"
4 / Dropbox
\ "dropbox"
5 / Encrypt/Decrypt a remote
\ "crypt"
6 / Google Cloud Storage (this is not Google Drive)
\ "google cloud storage"
7 / Google Drive
\ "drive"
8 / Hubic
\ "hubic"
9 / Local Disk
\ "local"
10 / Microsoft OneDrive
\ "onedrive"
11 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
\ "swift"
12 / SSH/SFTP Connection
\ "sftp"
13 / Yandex Disk
\ "yandex"

Type "drive" for Google Drive or "onedrive" for OneDrive.

Press ENTER. Do not type anything for client_id> and client_secret>

Next, press Y if you're running rclone on the same machine or not sure or N if you're running it through SSH/server/headless machine.

Remote config
Use auto config?
* Say Y if not sure
* Say N if you are working on a remote or headless machine or Y didn't work
y) Yes
n) No
y/n>

If we type Y, a browser windows will open. If you're not logged to Google Drive or OneDrive, it will ask you to login. Now authorize Rclone to access your files.

Success

Go back to rclone to continue

Your authorization code.
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d>

If it shows a fuzzy code as your authorization code, type y.
We're done.

Mounting your Google Drive/OneDrive folder

First, you have to create a folder so that we can see our Cloud's files inside that folder, so create a folder inside your home folder or anywhere you want.
I've created a folder called gabigoogledrive inside my home folder so I can use the command line below in a terminal:

Type:

rclone mount --allow mygoogledrive: /home/$USERNAME$/gabigoogledrive &

Note: replace $USERNAME$ with your name, let's say, "kevin" or "admin".
Now, it's simple. Open Gerbera UI and add your Google Drive or OneDrive folders.

If you want to make your linux distro to start rclone automatically you can create a cron job or a systemd service. I'd rather use a cron job with exactly the same line above.

Troubleshooting

What if Emby can't see my folder?
It's possible that Gerbera can't see a Cloud folder. All you have to do is add the --allow-other option with the same command line:

rclone mount mygoogledrive: /home/$USERNAME$/gabigoogledrive --allow-other &

Now you just have to add your mount folder to Emby Server.

 

For Windows

I'll create a post with part 2 and explain.

  • 1 month later...
Posted

How does the encryption works?

 

Encryption transparent to all clients (Browser, apps, Emby for Kodi, etc)?

Posted

Encryption for what exactly?

Posted

 

5 / Encrypt/Decrypt a remote

\ "crypt"

This line. Or did I misunderstood and the medias can be read by the Drive user without going through Emby/rclone?

Posted

Yes they can be read without going through Emby.

Posted

This line. Or did I misunderstood and the medias can be read by the Drive user without going through Emby/rclone?

 

Actually, everything goes through Emby. Rclone only mounts a folder with an encrypted account. For example, you use GoogleDrive and you want to set up an encrypted folder. Rclone uses your entire GoogleDrive account or just a folder.

Then, you can mount that encrypted folder like any other folder in Linux or like any other Drive in Windows.

It goes through Emby because Emby needs to know every file in order to process metadata and add it to your library.

I'm not using Emby anymore because it's totally paid, even for playback (wtf). Another reason I'm not using Emby anymore is that I don't know if it collects my data and use it. Plex surely does that.

Bye.

Posted

Actually, everything goes through Emby. Rclone only mounts a folder with an encrypted account. For example, you use GoogleDrive and you want to set up an encrypted folder. Rclone uses your entire GoogleDrive account or just a folder.

Then, you can mount that encrypted folder like any other folder in Linux or like any other Drive in Windows.

It goes through Emby because Emby needs to know every file in order to process metadata and add it to your library.

I'm not using Emby anymore because it's totally paid, even for playback (wtf). Another reason I'm not using Emby anymore is that I don't know if it collects my data and use it. Plex surely does that.

Bye.

 

@@gabrielluz, please check out our release announcement of Emby Server 4.0

 

https://emby.media/community/index.php?/blog/1/entry-447-announcing-emby-server-40/

 

Among the first highlights:

 

No Telemetry or Anonymous Usage Reporting

Posted

@@gabrielluz, no, we do not collect any log files, or even any log file names.

 

The emby server log file that gets written to your server's data folder does contain information used for troubleshooting, but this log file does not get sent anywhere. If we need it, we ask you to send it to us.

 

Does that make sense and clear this up?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...