Install Dropbox In Ubuntu 18.04 LTS Server

8 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.

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.