NOTE! This site uses cookies and similar technologies.

If you not change browser settings, you agree to it.

I understand

Welcome, Guest
Username: Password: Remember me

TOPIC: Dropbox in openelec?

Dropbox in openelec? 5 years 6 months ago #1

  • zeppelin
  • zeppelin's Avatar
Hi

Is it possible to use dropbox in openelec?

I have tryed to install it manually just like in linux by the link below. I don't know what to do now, is it even possible to access dropbox from the menu in openelec?

www.dropbox.com/install?os=lnx
The administrator has disabled public write access.

Re: Dropbox in openelec? 5 years 6 months ago #2

  • chewitt
  • chewitt's Avatar
It's not something you can install directly, but someone could create a binary 'addon' for dropbox reasonably easily. It's quite self-contained as an app so it's mostly a question of unpacking the files in the installer and repackaging them into addon format with some python wrapper scripts to start the daemon when XBMC is started. It would be easy to manually navigate to the dropbox cache folders, or you could add them as a source in the XBMC GUI. It's not something the project devs will do though, so you need to find someone to code it, or do the work yourself if you have the right skills.
The administrator has disabled public write access.

Re: Dropbox in openelec? 5 years 6 months ago #3

  • Leopold
  • Leopold's Avatar
  • Offline
  • Expert Boarder
  • Posts: 331
  • Thank you received: 93
  • Karma: 32
EDIT: Instead of following these instructions it may be easier to use the add-on which is now available kodi.wiki/view/Add-on:Dbmc_%28Dropbox_add-on%29

I have dropbox installed in OpenELEC so that I can drop an .nzb into the SABnzbd watch folder when I'm not at home. If I have time I will have a go at creating a proper addon but in the mean time here are the notes I made for myself:


ssh to the box and use curl to download dropbox.
curl -L "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
curl -LO "https://www.dropbox.com/download?dl=packages/dropbox.py"
Make dropbox.py executable
chmod +x dropbox.py
Then run
.dropbox-dist/dropboxd
This client is not linked to any account...

Please visit www.dropbox.com/cli_link?host_id=al0ngstring0f4lph4num3ricch4r4ct3rs&cl=en_US to link this machine.
While this is running copy the link url and paste to a browser and login to confirm the link to the machine. Once confirmed you should get this message
Client successfully linked, Welcome Lee!
Now exit with Ctrl-C and run
./dropbox.py start
Starting Dropbox...Dropbox isn't running!
Done!
And check the status with
./dropbox.py status
Now make a link to the watch folder in the Dropbox folder
ln -s /storage/downloads/watch /storage/Dropbox/watch
To start dropbox automatically after a reboot add this line to
\\xbmc\Configfiles\autostart.sh (/storage/.config/autostart.sh)
/storage/dropbox.py start > /dev/null
Leopold's Repo - zip
- OpenELEC Dev Update
- OpenELEC RPi Config

Raspberry Pi 2 Model B
Last Edit: 2 years 5 months ago by Leopold. Reason: Point to Dropbox add-on
The administrator has disabled public write access.
The following user(s) said Thank You: propain, kimme, miha.kaufman

Re: Dropbox in openelec? 5 years 5 months ago #4

  • ericab
  • ericab's Avatar
  • Offline
  • Moderator
  • Posts: 555
  • Thank you received: 79
  • Karma: 70
thanks for this;

im not having much luck though;

after linking my OE machine, i run ./dropbox.py start

i get this:
Starting Dropbox...
The Dropbox daemon is not installed!
Run "dropbox start -i" to install the daemon



when i cd to the .dropbox-dist folder, and manually run ./dropboxd & and then try ./dropbox.py status, for example, i get expected results.

why cant i get dropbox.py to start dropbox ? (stopping it works just fine)
The administrator has disabled public write access.

Re: Dropbox in openelec? 5 years 5 months ago #5

  • kobik
  • kobik's Avatar
  • Offline
  • Senior Boarder
  • Posts: 140
  • Thank you received: 2
  • Karma: 1
Don't know if it's related in your case, but I already saw that dropbox.py should be in this location in order to function properly.
/storage/dropbox.py
Fusion E350 x86_64 PVR
The administrator has disabled public write access.

Re: Dropbox in openelec? 5 years 2 months ago #6

  • unabatedshagie
  • unabatedshagie's Avatar
Before I attempt this I have 1 question.

Is it possible to restrict the folder that are synced as I don't want to sync my whole 8Gb dropbox folder, I just want to sync one folder.
The administrator has disabled public write access.

Re: Dropbox in openelec? 5 years 2 months ago #7

  • kobik
  • kobik's Avatar
  • Offline
  • Senior Boarder
  • Posts: 140
  • Thank you received: 2
  • Karma: 1
It would sync your entire account.
What I did to resolve this is to create another DP account for my OE box and inviting myself (Profit! I gained another 500MB :)) and share folders between the accounts.
Fusion E350 x86_64 PVR
The administrator has disabled public write access.

Re: Dropbox in openelec? 5 years 2 months ago #8

  • unabatedshagie
  • unabatedshagie's Avatar
Ah, that's a pity. Don't really want to set up another account as you can't have two accounts connected to the desktop software.

Unless I can figure out a way to sync a folder in my main dropbox with a folder in the OpenElec only dropbox.
The administrator has disabled public write access.

Re: Dropbox in openelec? 5 years 2 months ago #9

  • kobik
  • kobik's Avatar
  • Offline
  • Senior Boarder
  • Posts: 140
  • Thank you received: 2
  • Karma: 1
You don't have to setup the second account on your PC.
You set it up only on the OE box and share a folder between the two.
That would sync this folder between them.
Fusion E350 x86_64 PVR
The administrator has disabled public write access.

Re: Dropbox in openelec? 5 years 2 months ago #10

  • unabatedshagie
  • unabatedshagie's Avatar
But then I'd have to use the website to upload files rather than just drop a file into a folder on my PC.

Not the end of the world just one step more than I'd like to ideally do.
The administrator has disabled public write access.

Re: Dropbox in openelec? 5 years 2 months ago #11

  • ultraman
  • ultraman's Avatar
  • Online
  • Platinum Boarder
  • Posts: 4647
  • Thank you received: 889
  • Karma: 324
unabatedshagie wrote:
But then I'd have to use the website to upload files rather than just drop a file into a folder on my PC.
And you do that here because you have shared folder between those 2 accounts.
ultraman == vpeter
LAMP addon - Linux, Apache, MySQL PHP bundle
Sundtek and HDHomeRun DVB driver addons
The administrator has disabled public write access.

Re: Dropbox in openelec? 5 years 2 months ago #12

  • lrusak
  • lrusak's Avatar
unabatedshagie wrote:
But then I'd have to use the website to upload files rather than just drop a file into a folder on my PC.

Not the end of the world just one step more than I'd like to ideally do.

with the following folders in your ~/ folder (/storage)
root ~ # ls /storage -a1
.dropbox-dist
Dropbox
downloads
dropbox.py
emulators
log
logfiles
lost+found
movies
music
pictures
screenshots
tvshows
videos
do the following
cd Dropbox
then
ls
it will list something like this.
root ~/Dropbox # ls -1
253 Solutions
APSC 201
APSC 253 Lab 3
APSC 259
Car Gear Selection (Ver.1).xlsx
Crane Cam.xlsx
Documents To Go
Kart setup manual.pdf
Lab 2 Hydrostatic Forces
Music
Simple Loudspeaker Design ver2.pdf
then to remove them and say I want to keep the one folder "Music" I would do the following
python ../dropbox.py exclude add *
python ../dropbox.py exclude remove Music
or it might be done with the following single command
python ../dropbox.py exclude add `ls | grep -iv Music`
Then you could link this folder to your music folder (or whatever)
Last Edit: 5 years 2 months ago by lrusak.
The administrator has disabled public write access.

Re: Dropbox in openelec? 5 years 2 months ago #13

  • propain
  • propain's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
Hi,
i was trying to get dropbox work on my eden beta7 32Bit (general build) but it didn't work out.
I was already stuck in the beginning. I guess i am too new to linux, so i don't really understand what i am doing when i used the tutorial above.

What i did already:
ssh to my htpc using putty as root pw openelec

- curl -L "www.dropbox.com/download?plat=lnx.x86" | tar xzf
- curl -L "www.dropbox.com/download?dl=packages/dropbox.py" -o dropbox.py

And thats where the problems begin
Next step would be .dropbox-dist/dropboxd and it fails whitch this error message:

-sh: .dropbox-dist/dropboxd: not found

ls /storage -a1 shows no .dropbox.dist
Only the dropbox.py is there.
I recognized rights for dropbox.py are: -rw-r--r-- Don't know if that's ok, i just recognized that the accessible folders have different rights. As i said before i am new to linux.

Any help would be appreciated
Last Edit: 5 years 2 months ago by propain. Reason: wrong openelec version in discription
The administrator has disabled public write access.

Re: Dropbox in openelec? 5 years 2 months ago #14

  • lrusak
  • lrusak's Avatar
propain wrote:
just do it in two steps
curl -L -O "https://www.dropbox.com/download?plat=lnx.x86"
then
tar xvf download?plat=lnx.x86

then you should see the .dropbox-dist file
Last Edit: 5 years 2 months ago by lrusak.
The administrator has disabled public write access.

Re: Dropbox in openelec? 5 years 2 months ago #15

  • propain
  • propain's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
Thanks,
ok the extraction part worked out now.
But now there's an Error Message i don't understand:
root ~ # .dropbox-dist/dropboxd

(dropbox:3411): Gtk-WARNING **: Could not find the icon 'dropboxstatus-logo'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
        http://icon-theme.freedesktop.org/releases

(dropbox:3411): Pango-CRITICAL **: No modules found:
No builtin or dynamically loaded modules were found.
PangoFc will not work correctly.
This probably means there was an error in the creation of:
  '/etc/pango/pango.modules'
You should create this file by running:
  pango-querymodules > '/etc/pango/pango.modules'

(dropbox:3411): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script                 ='latin'

(dropbox:3411): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script                 ='common'
The administrator has disabled public write access.