How to Run Multiple Dropbox Accounts in Mac and Linux

Previously, we have done a tutorial on setting up multiple Dropbox accounts in Windows 7. There is no reason for us to leave out Mac and Linux as well. So here is it, the tutorial to run multiple Dropbox accounts in Mac and Linux.

Note: The below tutorial assumes that you have already installed (and configured) your primary Dropbox account in your computer. The Linux tutorial is based on Ubuntu Lucid and the Mac tutorial is based on OS X 10.6 Snow Leopard.

Linux

The default folder for Dropbox is /home/Dropbox. You have to setup another folder and configure another instance of Dropbox to run in that folder.

Firstly, create two custom folders. Both have the same name except that one has a “.” in front of its name (For example .dropbox-mte and dropbox-mte in this tutorial). The folder with the ‘.’ will contain the configuration files while the other one will contain your files to be synced.

Secondly, open the terminal and type the command:

The setup window will appear and guide you through the configuration process. When it asks you for the Dropbox location, check the option “I want to choose where to put my Dropbox folder” and select the other folder that you have created.

dropbox-linux-choose-folder

Run multiple dropbox accounts on startup

In your Linux, open a text editor (gEdit for Ubuntu). Paste the following:

Save the file as DropboxAltStarter.sh in your Home folder.

Make it executable:

Go to System -> Preferences -> Startup Applications. Click Add and include the following:

Name: 2nd instance of Dropbox
Command: /home/Username/DropboxAltStarter.sh

Click Ok.

Mac

The steps for Mac is similar to Linux.

Open the terminal (Utilities -> Terminal) and type the command:

The setup window will appear and guide you through the configuration process. When it asks you for the Dropbox location, check the option “I want to choose where to put my Dropbox folder” and select the custom folder that you have created.

You should also see two dropbox icons in the taskbar. If you close the terminal, the alternate dropbox account will also exit. Don’t worry, we can set it up to run automatically the next time you boot up.

dropbox-mac-taskbar

Run multiple dropbox on startup

To automatically run the second instances of Dropbox on startup, you have to create a small app and add it to the login items. It may sound daunting to create your own app, but it is actually very easy.

In your terminal, type

This will create the folder DropboxAlStarter.app in your Home directory.

Now, open a text editor (preferably TextWrangler, Text Edit does not work well with this), and paste the following code:

And save it with the name “Info.plist” inside “DropboxAltStarter.app/Contents” (You might want to save it to the desktop first, and then drag it to the DropboxAltStarter.app/Contents folder).

Open another new text file and paste the following lines:

Save the file as DropboxAltStarter (without any extension) in the folder DropboxAltStarter.app/Contents/MacOS.

Back to your terminal, type the following command to make your script executable:

Testing your app – Double click on the DropboxAltStarter app and see if it activates the second instances of Dropbox. If yes, congratulation, you have just created a Dropbox starter app.

Adding your app to startup item

Now go to System Preferences ->Account. Click on the Login Items tab. Click the “+” button at the bottom of the window.

dropbox-mac-startup-items

Navigate to your Home directory and add the DropboxAltStarter app to your startup list.

That’s it.

9 comments

  1. Worked for me EXCEPT, weirdly now the icon for my first instance of dropbox no longer shows up in my dockbar…even though both are running and sync just fine

  2. Hi everybody,
    it work well for mac users EXCEPT an error in the code for DropboxAltStarter –> the good one is:

    #!/bin/bash
    HOME=/Users/$USER/.dropbox-alt/Applications/Dropbox.app/Contents/MacOS/Dropbox

    Best,
    Alan

  3. Well, when closing termilnal windows with “HOME=$HOME/.dropbox-alt /Applications/Dropbox.app/Contents/MacOS/Dropbox &” the dropbox stops to sync!?

  4. Any idea how to adapt the icons that show up in the traybar (preferably for Ubuntu Unity in 11.10)? Now they all show up identical; some customizations might make them more recognizable. There appear some icons in ~/.dropbox-mte/.dropbox-dist/icons/hicolor/16×16/status, but they seem to get overruled by the ones in /usr/share/icons/ubuntu-mono-[light|dark]/apps/[22|24].

  5. Please update this for Mac OS 10.7 Lion.  The custom DropboxAltStarter.app does not work (at least for me), because it says it’s a PowerPC app that si no longer supported.

  6. This is great! Worked first time for me, and it really helped to know what each Terminal command line was doing.  Thank you!!

  7. Error in Ubuntu:
     HOME=$HOME/.dropbox-mte /usr/bin/dropbox start -iStarting Dropbox…Traceback (most recent call last):  File “/usr/bin/dropbox”, line 344, in handle_ok    self.dont_show_again_align.hide()AttributeError: ‘DownloadDialog’ object has no attribute ‘dont_show_again_align’

Comments are closed.

Sponsored Stories