[HOWTO] Dropbox (CLI) in OMV

  • Got Dropbox up and working: (thx to the authors of this blog-posts [1] [2])
    all kudos go to them ;)


    Tutorial Version 0.2:
    32-bit:

    Code
    cd ~ && wget -O - "http://www.dropbox.com/download?plat=lnx.x86" | tar xzf -


    64-bit:

    Code
    cd ~ && wget -O - "http://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -


    execute

    Code
    ~/.dropbox-dist/dropboxd


    move dropbox (binary) folders to /opt and create a link:

    Code
    mv .dropbox /opt/dropbox
    mv .dropbox-dist /opt/dropbox-dist
    ln -s /opt/dropbox .dropbox
    ln -s /opt/dropbox-dist .dropbox-dist


    create a "Shared Folder" in OMV for your Dropbox-Content and link it with the Dropbox-(Document)-Folder in /home/user/

    Code
    mv ~/Dropbox Dropbox_old
    ln -s /your/path/to/the_new_created/folder ~/Dropbox


    Put this in /etc/init.d/dropbox and edit line
    DROPBOX_USERS="yourusername"
    to match a username in OMV, _not_ your dropbox-name



    execute

    Code
    chmod +x dropbox
    update-rc.d dropbox defaults


    dropbox should run on the next reboot

  • everything works exept put script in init.d


    after

    Code
    chmod +x dropbox
    update-rc.d dropbox defaults


    i got :

    Code
    update-rc.d: using dependency based boot sequencing
    insserv: Script dropbox is broken: incomplete LSB comment.
    insserv: missing `Provides:' entry: please add.
    insserv: missing `Required-Start:' entry: please add even if empty.
    insserv: missing `Required-Stop:'  entry: please add even if empty.
    insserv: missing `Default-Start:'  entry: please add even if empty.
    insserv: missing `Default-Stop:'   entry: please add even if empty.
    insserv: Default-Start undefined, assuming empty start runlevel(s) for script `dropbox'
    insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script `dropbox'
  • are you in /etc/init.d/, when you execute chmod +x dropbox?


    Please try

    Code
    chmod +x /etc/init.d/dropbox
    update-rc.d dropbox defaults


    and then post the output of

    Code
    ls -l /etc/init.d/dropbox


    Of course you have to be "root" when doing all this ;)
    Thx

  • Code
    root@omv:~#     insserv dropbox
    insserv: Script dropbox is broken: incomplete LSB comment.
    insserv: missing `Provides:' entry: please add.
    insserv: missing `Required-Start:' entry: please add even if empty.
    insserv: missing `Required-Stop:'  entry: please add even if empty.
    insserv: missing `Default-Start:'  entry: please add even if empty.
    insserv: missing `Default-Stop:'   entry: please add even if empty.
    insserv: Default-Start undefined, assuming empty start runlevel(s) for script `dropbox'
    insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script `dropbox'


    Code
    root@omv:~# /etc/init.d/dropbox
    Usage: /etc/init.d/dropbox {start|stop|reload|force-reload|restart|status}


    Code
    root@omv:~# ls -l /etc/init.d/dropbox
    -rwxr-xr-x 1 root root 2314 08-02 08:45 /etc/init.d/dropbox
  • Try the script at the end if this post. Please edit it _on_ your OMV-Server with "nano" or "vi" to prevent some glitches with WIN-linebreaks ...
    Put it in /etc/init.d/ and overwrite your existing one. Then do a

    Code
    chmod +x /etc/init.d/dropbox
    update-rc.d dropbox defaults


    Hopefully this is helping you out.

  • downloaded your attachment, replaced variables regarded to username in omv

    Code
    root@omv:/# update-rc.d dropbox defaults
    update-rc.d: using dependency based boot sequencing


    after reboot nothing happens, folder is empty, script doesnt report status...and not starting in boot process...

    Code
    root@omv:~# /etc/init.d/dropbox start
    Starting dropbox...
    root@omv:~# /etc/init.d/dropboxstartup status
    Dropbox isn't running!


    Code
    /etc/init.d/dropbox
    Usage: /etc/init.d/dropbox {start|stop|reload|force-reload|restart|status}


    Code
    root@omv:~# /etc/init.d/dropbox status
    root@omv:~# /etc/init.d/dropbox restart
    Stopping dropbox...
    Starting dropbox...
    root@omv:~# /etc/init.d/dropbox status
    root@omv:~#


    :/


    i have another script who started and reported service start and state :



    Code
    root@omv:~# /etc/init.d/dropboxstartup status
    Downloading 92 files (144.8 kB/sec, 1 hr left)
  • Hi
    I have installed and configured dropbox and it syncs.
    The problem is that the when I make a folder from the web version of dropbox and then log in to my shared folder in OMV with ssh as a user I have made in OMV I dont have permisiion to open the folder.
    Dropbox cli runs as root and the dropbox folder belongs to a share witch the user I connect to OMV with has read/write permission.


    Any help would be appreciated. :)

  • Hi there,
    I am not an experienced linux user, but have a NAS with OMV running and followed this guide to get Dropbox working on it.


    I have doubts whether I put the right path in /etc/init.d/dropbox
    this is what I have:


    export PATH="$/media/33f8ebcb-76b1-46c4-a585-d8cd8a74c3b0/Dropbox:+/media/33f8ebcb-76b1-46c4-a585-d8cd8a74c3b0/Dropbox:/usr/sbin:/sbin"


    Further, I have tried several usernames (root, admin, and other OMV users), but dropbox doesn't start after a reboot.
    When manually starting it with /etc/init.d/dropbox start
    I keep getting the following:
    Starting dropbox...
    /etc/init.d/dropbox: 88: getent: not found
    /etc/init.d/dropbox: 88: cut: not found


    Anyone an idea what is wrong and how to solve this?


    Thanks a lot,
    Derek

  • Hi Solo0815,
    Thanks for your quick reply. I removed the "$" and rebooted, but still got the same errors, also when trying with different usernames.
    I then realised I didn't do the following after changing /etc/init.d/dropbox
    chmod +x /etc/init.d/dropbox
    update-rc.d dropbox defaults


    I did that, and got the following:


    update-rc.d: using dependency based boot sequencing
    insserv: Script dropbox-old is broken: incomplete LSB comment.
    insserv: missing `Provides:' entry: please add.
    insserv: missing `Required-Start:' entry: please add even if empty.
    insserv: missing `Required-Stop:' entry: please add even if empty.
    insserv: missing `Default-Start:' entry: please add even if empty.
    insserv: missing `Default-Stop:' entry: please add even if empty.
    insserv: Default-Start undefined, assuming empty start runlevel(s) for script `dropbox-old'
    insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `dropbox-old'


    I did rename the original /etc/init.d/dropbox to dropbox-old, so it looks like something is pointing to the old script. Do you know how I can change that?


    Thanks again,
    Derek

  • Quick update - I just copied /etc/init.d/dropbox to /etc/init.d/dropbox-old so both scripts are identical.
    When running update-rc.d dropbox defaults, I now got:
    update-rc.d: using dependency based boot sequencing


    When starting either dropbox or dropbox-old, I keep getting (this example is for dropbox-old script, but same result for dropbox script:


    Starting dropbox...
    /etc/init.d/dropbox-old: 88: getent: not found
    /etc/init.d/dropbox-old: 88: cut: not found


    Hope you can help..
    Thanks,
    Derek

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!