Startup – How to Run Dropbox at Startup Using Command-Line

command linedropboxstartup

Please excuse a simple question from a new Linux user.
Running Ubuntu 12.04 on a Dell Pentium(R) Dual-Core CPU E5800 @ 3.20GHz × 2.

I installed Dropbox OK with the command:

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

as suggested by the Dropbox web site, which worked fine.

Then the Dropbox daemon was run with the command:

  ~/.dropbox-dist/dropboxd

Again this worked well, Dropbox runs in the background giving easy access to my cloud data.

The Problem

How can I automatically run the dropbox daemon when the session is restarted? Current workaround is to open a terminal and enter the command:

  ~/.dropbox-dist/dropboxd

Many thanks

Best Answer

I had exactly the same problem and solve it by installing dropbox following these instructions, but substituting nautilus-dropbox by dropbox. That is, I installed dropbox by executing these commands:

sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 5044912E

sudo add-apt-repository "deb http://linux.dropbox.com/ubuntu $(lsb_release -sc) main"

sudo apt-get update

sudo apt-get install dropbox