Install Dropbox In Ubuntu 18.04 LTS Server

install Dropbox in Ubuntu 18.04 LTS

15 Responses

  1. Reg Natarajan says:

    Really helpful. Thank you.

  2. Ming Liu says:

    Thank you very much for your article.

    I’m trying to install dropbox to a new ubunto 18.04 on a VPS, and got stuck at the second command ~/.dropbox-dist/dropboxd with following error:

    Unable to monitor entire Dropbox folder hierarchy. Please run “echo fs.inotify.max_user_watches=100000 | sudo tee -a /etc/sysctl.conf; sudo sysctl -p” and restart Dropbox to fix the problem.

    then,
    [[email protected] ~]# echo fs.inotify.max_user_watches=100000 | sudo tee -a /etc/sysctl.conf; sudo sysctl -p
    fs.inotify.max_user_watches=100000
    sysctl: permission denied on key ‘fs.inotify.max_user_watches’
    sysctl: permission denied on key ‘fs.inotify.max_user_watches’
    sysctl: permission denied on key ‘fs.inotify.max_user_watches’

    I found somebody suggests to add this line to /etc/sysctl.conf
    fs.inotify.max_user_watches=1028576

    But it didn’t help me at all. What else can i do?

  3. sk says:

    Never faced this error, so I am not sure if it works. Do the following and let me know if it works.

    Edit sysctl.conf file:

    $ sudo vi /etc/sysctl.conf

    Add the following line at the end of the above file:

    fs.inotify.max_user_watches = 1048576

    Save and close the file.

    Apply the changes:

    $ sudo sysctl -p

    Finally, stop and restart dropbox service:

    $ sudo systemctl stop dropbox
    $ sudo systemctl start dropbox

  4. xy2z says:

    Working great on Ubuntu 16.04 – thanks

  5. Tom says:

    Thanks for the guide. Everything worked. However, it is using the ~/Dropbox directory on my system drive for the Dropbox folder. I want to move that to my data drive. All of the guides I find for moving this refer to the GUI version. I have seen people suggest symlinks but the Dropbox site advises against that. I just want to point Dropbox from ~/Dropbox to /mnt/data/Dropbox.

  6. Nick G says:

    Very helpful, thank you.
    Quick side note for folks that might get an error on “.dropbox-dist/dropboxd” on a fresh install of Ubuntu 18 AND installing via SSH AND your SSH lient does X forwarding by default:

    $ unset DISPLAY

  7. Riccardo Mannella says:

    Thanks! Really useful.

  8. Justin Russell says:

    This is great and I enjoyed the easy-to-follow instructions, but am lost in understanding what determines what get’s uploaded to Dropbox?
    Is there a way to create a cronjob to perform a backup of small amounts of data at regular intervals?

  9. Guido van Harten says:

    On my computer I have Ubuntu 18.04 LTS Server. On this computer is Nextcloud installed.
    I want to sync 3 Dropbox accounts – in separate folders.
    Therefore I connect account #1, using the connecting link in an incognito window, syncing all files and folders onto the Nextcloud folder of account #1
    and the same operation for accounts #2 and #3.

    Because I do not waste time, I am looking for an option to do that using a script.
    Can you help me writing such a script?

  10. Guido van Harten says:

    Referring to my question above: is there an option to set the directory Dropbox is downloading the files onto?
    At this moment the files are downloaded to /root/Dropbox. I think my question can be solved if I can define the destination directory of the downloaded files.

  11. Guido van Harten says:

    It seems the given instructions at this website doesn’t work with the most recent release of Ubuntu (20.04 – today I used the beta release).

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.