{"id":629,"date":"2012-01-22T12:08:46","date_gmt":"2012-01-22T12:08:46","guid":{"rendered":"https:\/\/noi3.org\/site\/?p=629"},"modified":"2012-01-22T12:08:46","modified_gmt":"2012-01-22T12:08:46","slug":"install-dropbox-on-ubuntu-server-10-a-11","status":"publish","type":"post","link":"https:\/\/site.noi3.org\/?p=629","title":{"rendered":"Install Dropbox On Ubuntu Server (10 &#038; 11)"},"content":{"rendered":"<p> \t<img decoding=\"async\" alt=\"Dropbox FUSION Icon By Parthiban Mohanraj\" src=\"http:\/\/ubuntuservergui.com\/wp-content\/uploads\/2011\/04\/Dropbox-FUSION-528.png\" style=\"border-width: 0px; border-style: solid; width: 250px; height: 175px;\" title=\"Dropbox FUSION Icon By Parthiban Mohanraj\" \/><br \/> \tThis post will help you install the Linux Dropbox client on your headless Ubuntu Server and link it up to your Dropbox account. Unlike the process of <a href=\"http:\/\/ubuntuservergui.com\/ubuntu-server-guide\/mount-s3-ubuntu-server\">mounting an S3 bucket<\/a> we looked at before the Dropbox approach is a much better solution for sharing files. If you&rsquo;re a daily Dropbox user you&rsquo;ll quickly get hooked on the convenience of having your servers in the same file sharing loop as all your other Dropbox connected devices!<\/p>\n<p>  <!--more-->  <\/p>\n<p> \t<img loading=\"lazy\" decoding=\"async\" alt=\"Dropbox FUSION Icon By Parthiban Mohanraj\" border=\"0\" height=\"400\" src=\"http:\/\/ubuntuservergui.com\/wp-content\/uploads\/2011\/04\/Dropbox-FUSION-528.png\" title=\"Dropbox FUSION Icon By Parthiban Mohanraj\" width=\"528\" \/><\/p>\n<div> \tDropbox FUSION Icon By <a href=\"http:\/\/kamikaze00x.deviantart.com\/gallery\/?offset=48#\/d221bc1\" target=\"_blank\">Parthiban Mohanraj<\/a><\/div>\n<p> <\/p>\n<p> \tThis post will help you install the Linux Dropbox client on your headless Ubuntu Server and link it up to your Dropbox account. Unlike the process of <a href=\"http:\/\/ubuntuservergui.com\/ubuntu-server-guide\/mount-s3-ubuntu-server\">mounting an S3 bucket<\/a> we looked at before the Dropbox approach is a much better solution for sharing files. If you&rsquo;re a daily Dropbox user you&rsquo;ll quickly get hooked on the convenience of having your servers in the same file sharing loop as all your other Dropbox connected devices!<\/p>\n<h4> \tInstalling Dropbox<\/h4>\n<p> \tStart off by downloading the Linux version of Dropbox onto your server. These steps have been tested on Ubuntu Server 10.10 and 11.04.<\/p>\n<p> \tDownload the <em>32Bit Version<\/em><\/p>\n<div>\n<div>\n<pre style=\"font-family:monospace;\"> <span style=\"color: #c20cb9; font-weight: bold;\">wget<\/span> <span style=\"color: #660033;\">-O<\/span> dropbox.tar.gz <span style=\"color: #ff0000;\">&quot;http:\/\/www.dropbox.com\/download\/?plat=lnx.x86&quot;<\/span><\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<p> \tDownload the <em>64Bit Version<\/em><\/p>\n<div>\n<div>\n<pre style=\"font-family:monospace;\"> <span style=\"color: #c20cb9; font-weight: bold;\">wget<\/span> <span style=\"color: #660033;\">-O<\/span> dropbox.tar.gz <span style=\"color: #ff0000;\">&quot;http:\/\/www.dropbox.com\/download\/?plat=lnx.x86_64&quot;<\/span><\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<p> \tIf you unsure which version you need you can quickly check by running <em>uname -a<\/em>.<\/p>\n<div>\n<div>\n<pre style=\"font-family:monospace;\"> <span style=\"color: #c20cb9; font-weight: bold;\">sudo<\/span> <span style=\"color: #c20cb9; font-weight: bold;\">uname<\/span> <span style=\"color: #660033;\">-a<\/span><\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<p> \tIf the uname output has an <em>i686<\/em> at the end you need the 32Bit version and if it has <em>x86_64<\/em> you want the 64Bit version.<\/p>\n<p> \tWhen you extract the Dropbox archive it will automatically place its files in the home directory of the the user you&rsquo;re logged in as under: <em>~\/.dropbox<\/em>. You can always move these files later but its something to keep in mind.<\/p>\n<p> \tExtract the Dropbox archive<\/p>\n<div>\n<div>\n<pre style=\"font-family:monospace;\"> <span style=\"color: #c20cb9; font-weight: bold;\">tar<\/span> <span style=\"color: #660033;\">-xzvf<\/span> dropbox.tar.gz<\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<h4> \tLinking Your Server to Your Dropbox Account<\/h4>\n<p> \tBefore you take the next step you&rsquo;ll want to make sure your LANG <a href=\"https:\/\/help.ubuntu.com\/community\/EnvironmentVariables\" target=\"_blank\">environment variable<\/a> is set to a value other than NULL.<\/p>\n<p> \tCheck the value of your <em>LANG<\/em> environment variable<\/p>\n<div>\n<div>\n<pre style=\"font-family:monospace;\"> printenv LANG     <span style=\"color: #000000; font-weight: bold;\">\/\/<\/span> outputs en_US.UTF-<span style=\"color: #000000;\">8<\/span> on my machine<\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<p> \tTo connect the Dropbox client on your server to your Dropbox account you&rsquo;ll need to copy the link it outputs into a browser window and then login to your Dropbox account.<\/p>\n<p> \tRun dropboxd on your server<\/p>\n<div>\n<div>\n<pre style=\"font-family:monospace;\"> ~<span style=\"color: #000000; font-weight: bold;\">\/<\/span>.dropbox-dist<span style=\"color: #000000; font-weight: bold;\">\/<\/span>dropboxd<\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<p> \tIt will start outputting a link similar to this one every few seconds<\/p>\n<div>\n<div>\n<pre style=\"font-family:monospace;\"> This client is not linked to any account... Please visit https:<span style=\"color: #000000; font-weight: bold;\">\/\/<\/span>www.dropbox.com<span style=\"color: #000000; font-weight: bold;\">\/<\/span>cli_link?<span style=\"color: #007800;\">host_id<\/span>=1c1497d78b543178b9349a7c1a8b087a<span style=\"color: #000000; font-weight: bold;\">&amp;<\/span><span style=\"color: #007800;\">cl<\/span>=en_US to <span style=\"color: #c20cb9; font-weight: bold;\">link<\/span> this machine.<\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<p> \tThe trick to a smooth link is to make sure you <strong>leave dropboxd running while you follow the link<\/strong>. You don&rsquo;t need to access the link from the server you&rsquo;re trying to install Dropbox on. You can copy and paste that link into a browser running on a separate machine and Dropbox will authorize the client running on your server.<\/p>\n<p> \tOnce it succeeds you&rsquo;ll see the message <em>Client successfully linked, Welcome!<\/em> on your server and it will stop printing the authorization link.<\/p>\n<p> \tHit ctrl c to terminate the process<\/p>\n<div>\n<div>\n<pre style=\"font-family:monospace;\"> Client successfully linked, Welcome<span style=\"color: #000000; font-weight: bold;\">!<\/span><\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<p> \tOnce the Dropbox client on your server is successfully linked it will automatically create a Dropbox folder under ~\/Dropbox for the user you&rsquo;re logged in as. All your folders will be visible under the Dropbox folder but since the Dropbox service isn&rsquo;t actually running on your server yet you you won&rsquo;t be able to see the files inside these folders until the client is running and has a check to synchronize.<\/p>\n<p> \tYou can manually start the service by running<\/p>\n<div>\n<div>\n<pre style=\"font-family:monospace;\"> ~<span style=\"color: #000000; font-weight: bold;\">\/<\/span>.dropbox-dist<span style=\"color: #000000; font-weight: bold;\">\/<\/span>dropbox<\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<p> \tHowever, a better option for controlling the Dropbox client is to setup an Ubuntu service management script for it.<\/p>\n<h4> \tStart Dropbox Automatically On Boot<\/h4>\n<p> \tDropbox provides a handy little service management script that makes it easy to start, stop and check the status of the Dropbox client.<\/p>\n<p> \tCreate a new file for the service management script<\/p>\n<div>\n<div>\n<pre style=\"font-family:monospace;\"> <span style=\"color: #c20cb9; font-weight: bold;\">sudo<\/span> <span style=\"color: #c20cb9; font-weight: bold;\">vi<\/span> <span style=\"color: #000000; font-weight: bold;\">\/<\/span>etc<span style=\"color: #000000; font-weight: bold;\">\/<\/span>init.d<span style=\"color: #000000; font-weight: bold;\">\/<\/span>dropbox<\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<p> \tPaste the following script into the new file<\/p>\n<div>\n<div>\n<pre style=\"font-family:monospace;\"> <span style=\"color: #666666; font-style: italic;\">#!\/bin\/sh<\/span> <span style=\"color: #666666; font-style: italic;\"># dropbox service<\/span> <span style=\"color: #666666; font-style: italic;\"># Replace with linux users you want to run Dropbox clients for<\/span> <span style=\"color: #007800;\">DROPBOX_USERS<\/span>=<span style=\"color: #ff0000;\">&quot;user1 user2&quot;<\/span> &nbsp; <span style=\"color: #007800;\">DAEMON<\/span>=.dropbox-dist<span style=\"color: #000000; font-weight: bold;\">\/<\/span>dropbox &nbsp; start<span style=\"color: #7a0874; font-weight: bold;\">(<\/span><span style=\"color: #7a0874; font-weight: bold;\">)<\/span> <span style=\"color: #7a0874; font-weight: bold;\">{<\/span>     <span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;Starting dropbox...&quot;<\/span>     <span style=\"color: #000000; font-weight: bold;\">for<\/span> dbuser <span style=\"color: #000000; font-weight: bold;\">in<\/span> <span style=\"color: #007800;\">$DROPBOX_USERS<\/span>; <span style=\"color: #000000; font-weight: bold;\">do<\/span>         <span style=\"color: #007800;\">HOMEDIR<\/span>=<span style=\"color: #000000; font-weight: bold;\">`<\/span><span style=\"color: #c20cb9; font-weight: bold;\">getent<\/span> <span style=\"color: #c20cb9; font-weight: bold;\">passwd<\/span> <span style=\"color: #007800;\">$dbuser<\/span> <span style=\"color: #000000; font-weight: bold;\">|<\/span> <span style=\"color: #c20cb9; font-weight: bold;\">cut<\/span> -d: -f6<span style=\"color: #000000; font-weight: bold;\">`<\/span>         <span style=\"color: #000000; font-weight: bold;\">if<\/span> <span style=\"color: #7a0874; font-weight: bold;\">[<\/span> <span style=\"color: #660033;\">-x<\/span> <span style=\"color: #007800;\">$HOMEDIR<\/span><span style=\"color: #000000; font-weight: bold;\">\/<\/span><span style=\"color: #007800;\">$DAEMON<\/span> <span style=\"color: #7a0874; font-weight: bold;\">]<\/span>; <span style=\"color: #000000; font-weight: bold;\">then<\/span>             <span style=\"color: #007800;\">HOME<\/span>=<span style=\"color: #ff0000;\">&quot;<span style=\"color: #007800;\">$HOMEDIR<\/span>&quot;<\/span> start-stop-daemon <span style=\"color: #660033;\">-b<\/span> <span style=\"color: #660033;\">-o<\/span> <span style=\"color: #660033;\">-c<\/span> <span style=\"color: #007800;\">$dbuser<\/span> <span style=\"color: #660033;\">-S<\/span> <span style=\"color: #660033;\">-u<\/span> <span style=\"color: #007800;\">$dbuser<\/span> <span style=\"color: #660033;\">-x<\/span> <span style=\"color: #007800;\">$HOMEDIR<\/span><span style=\"color: #000000; font-weight: bold;\">\/<\/span><span style=\"color: #007800;\">$DAEMON<\/span>         <span style=\"color: #000000; font-weight: bold;\">fi<\/span>     <span style=\"color: #000000; font-weight: bold;\">done<\/span> <span style=\"color: #7a0874; font-weight: bold;\">}<\/span> &nbsp; stop<span style=\"color: #7a0874; font-weight: bold;\">(<\/span><span style=\"color: #7a0874; font-weight: bold;\">)<\/span> <span style=\"color: #7a0874; font-weight: bold;\">{<\/span>     <span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;Stopping dropbox...&quot;<\/span>     <span style=\"color: #000000; font-weight: bold;\">for<\/span> dbuser <span style=\"color: #000000; font-weight: bold;\">in<\/span> <span style=\"color: #007800;\">$DROPBOX_USERS<\/span>; <span style=\"color: #000000; font-weight: bold;\">do<\/span>         <span style=\"color: #007800;\">HOMEDIR<\/span>=<span style=\"color: #000000; font-weight: bold;\">`<\/span><span style=\"color: #c20cb9; font-weight: bold;\">getent<\/span> <span style=\"color: #c20cb9; font-weight: bold;\">passwd<\/span> <span style=\"color: #007800;\">$dbuser<\/span> <span style=\"color: #000000; font-weight: bold;\">|<\/span> <span style=\"color: #c20cb9; font-weight: bold;\">cut<\/span> -d: -f6<span style=\"color: #000000; font-weight: bold;\">`<\/span>         <span style=\"color: #000000; font-weight: bold;\">if<\/span> <span style=\"color: #7a0874; font-weight: bold;\">[<\/span> <span style=\"color: #660033;\">-x<\/span> <span style=\"color: #007800;\">$HOMEDIR<\/span><span style=\"color: #000000; font-weight: bold;\">\/<\/span><span style=\"color: #007800;\">$DAEMON<\/span> <span style=\"color: #7a0874; font-weight: bold;\">]<\/span>; <span style=\"color: #000000; font-weight: bold;\">then<\/span>             start-stop-daemon <span style=\"color: #660033;\">-o<\/span> <span style=\"color: #660033;\">-c<\/span> <span style=\"color: #007800;\">$dbuser<\/span> <span style=\"color: #660033;\">-K<\/span> <span style=\"color: #660033;\">-u<\/span> <span style=\"color: #007800;\">$dbuser<\/span> <span style=\"color: #660033;\">-x<\/span> <span style=\"color: #007800;\">$HOMEDIR<\/span><span style=\"color: #000000; font-weight: bold;\">\/<\/span><span style=\"color: #007800;\">$DAEMON<\/span>         <span style=\"color: #000000; font-weight: bold;\">fi<\/span>     <span style=\"color: #000000; font-weight: bold;\">done<\/span> <span style=\"color: #7a0874; font-weight: bold;\">}<\/span> &nbsp; status<span style=\"color: #7a0874; font-weight: bold;\">(<\/span><span style=\"color: #7a0874; font-weight: bold;\">)<\/span> <span style=\"color: #7a0874; font-weight: bold;\">{<\/span>     <span style=\"color: #000000; font-weight: bold;\">for<\/span> dbuser <span style=\"color: #000000; font-weight: bold;\">in<\/span> <span style=\"color: #007800;\">$DROPBOX_USERS<\/span>; <span style=\"color: #000000; font-weight: bold;\">do<\/span>         <span style=\"color: #007800;\">dbpid<\/span>=<span style=\"color: #000000; font-weight: bold;\">`<\/span>pgrep <span style=\"color: #660033;\">-u<\/span> <span style=\"color: #007800;\">$dbuser<\/span> dropbox<span style=\"color: #000000; font-weight: bold;\">`<\/span>         <span style=\"color: #000000; font-weight: bold;\">if<\/span> <span style=\"color: #7a0874; font-weight: bold;\">[<\/span> <span style=\"color: #660033;\">-z<\/span> <span style=\"color: #007800;\">$dbpid<\/span> <span style=\"color: #7a0874; font-weight: bold;\">]<\/span> ; <span style=\"color: #000000; font-weight: bold;\">then<\/span>             <span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;dropboxd for USER <span style=\"color: #007800;\">$dbuser<\/span>: not running.&quot;<\/span>         <span style=\"color: #000000; font-weight: bold;\">else<\/span>             <span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;dropboxd for USER <span style=\"color: #007800;\">$dbuser<\/span>: running (pid <span style=\"color: #007800;\">$dbpid<\/span>)&quot;<\/span>         <span style=\"color: #000000; font-weight: bold;\">fi<\/span>     <span style=\"color: #000000; font-weight: bold;\">done<\/span> <span style=\"color: #7a0874; font-weight: bold;\">}<\/span> &nbsp; <span style=\"color: #000000; font-weight: bold;\">case<\/span> <span style=\"color: #ff0000;\">&quot;$1&quot;<\/span> <span style=\"color: #000000; font-weight: bold;\">in<\/span> &nbsp;     start<span style=\"color: #7a0874; font-weight: bold;\">)<\/span>         start         <span style=\"color: #000000; font-weight: bold;\">;;<\/span> &nbsp;     stop<span style=\"color: #7a0874; font-weight: bold;\">)<\/span>         stop         <span style=\"color: #000000; font-weight: bold;\">;;<\/span> &nbsp;     restart<span style=\"color: #000000; font-weight: bold;\">|<\/span>reload<span style=\"color: #000000; font-weight: bold;\">|<\/span>force-reload<span style=\"color: #7a0874; font-weight: bold;\">)<\/span>         stop         start         <span style=\"color: #000000; font-weight: bold;\">;;<\/span> &nbsp;     status<span style=\"color: #7a0874; font-weight: bold;\">)<\/span>         status         <span style=\"color: #000000; font-weight: bold;\">;;<\/span> &nbsp;     <span style=\"color: #000000; font-weight: bold;\">*<\/span><span style=\"color: #7a0874; font-weight: bold;\">)<\/span>         <span style=\"color: #7a0874; font-weight: bold;\">echo<\/span> <span style=\"color: #ff0000;\">&quot;Usage: \/etc\/init.d\/dropbox {start|stop|reload|force-reload|restart|status}&quot;<\/span>         <span style=\"color: #7a0874; font-weight: bold;\">exit<\/span> <span style=\"color: #000000;\">1<\/span> &nbsp; <span style=\"color: #000000; font-weight: bold;\">esac<\/span> &nbsp; <span style=\"color: #7a0874; font-weight: bold;\">exit<\/span> <span style=\"color: #000000;\">0<\/span><\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<p> \tMake sure you replace the value of <em>DROPBOX_USERS<\/em> with a comma separated list of the linux users on your machine you want to run the Dropbox client to run for. Each user in the list should have a copy of the Dropbox files and folders that you extracted from the archive, available under their home directory.<\/p>\n<p> \tMake sure the script is executable and add it to default system startup run levels<\/p>\n<div>\n<div>\n<pre style=\"font-family:monospace;\"> <span style=\"color: #c20cb9; font-weight: bold;\">sudo<\/span> <span style=\"color: #c20cb9; font-weight: bold;\">chmod<\/span> +x <span style=\"color: #000000; font-weight: bold;\">\/<\/span>etc<span style=\"color: #000000; font-weight: bold;\">\/<\/span>init.d<span style=\"color: #000000; font-weight: bold;\">\/<\/span>dropbox <span style=\"color: #c20cb9; font-weight: bold;\">sudo<\/span> update-rc.d dropbox defaults<\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<p> \tControl the Dropbox client like any other Ubuntu service<\/p>\n<div>\n<div>\n<pre style=\"font-family:monospace;\"> <span style=\"color: #c20cb9; font-weight: bold;\">sudo<\/span> service dropbox start<span style=\"color: #000000; font-weight: bold;\">|<\/span>stop<span style=\"color: #000000; font-weight: bold;\">|<\/span>reload<span style=\"color: #000000; font-weight: bold;\">|<\/span>force-reload<span style=\"color: #000000; font-weight: bold;\">|<\/span>restart<span style=\"color: #000000; font-weight: bold;\">|<\/span>status<\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<div id=\"attachment_292\" style=\"width: 528px;\"> \t<img loading=\"lazy\" decoding=\"async\" alt=\"Dropbox Delorean By Dropbox Artwork Team\" border=\"0\" height=\"296\" src=\"http:\/\/ubuntuservergui.com\/wp-content\/uploads\/2011\/05\/dropbox-delorean.png\" title=\"Dropbox Delorean By Dropbox Artwork Team\" width=\"528\" \/> \t<\/p>\n<div> \t\tDropbox Delorean By Dropbox Artwork Team<\/div>\n<\/p><\/div>\n<p> \tDepending upon the number of files you have on Dropbox and the speed of your internet connection it may take some time for the Dropbox client to synchronize everything.<\/p>\n<h4> \tCheck Status with Dropbox CLI<\/h4>\n<p> \tDropbox has a command line python script available separately to provide more functionality and details on the status of the Dropbox client.<\/p>\n<p> \tDownload the dropbox.py script and adjust the file permissions<\/p>\n<div>\n<div>\n<pre style=\"font-family:monospace;\"> <span style=\"color: #c20cb9; font-weight: bold;\">wget<\/span> <span style=\"color: #660033;\">-O<\/span> ~<span style=\"color: #000000; font-weight: bold;\">\/<\/span>.dropbox<span style=\"color: #000000; font-weight: bold;\">\/<\/span>dropbox.py <span style=\"color: #ff0000;\">&quot;http:\/\/www.dropbox.com\/download?dl=packages\/dropbox.py&quot;<\/span> <span style=\"color: #c20cb9; font-weight: bold;\">chmod<\/span> <span style=\"color: #000000;\">755<\/span> ~<span style=\"color: #000000; font-weight: bold;\">\/<\/span>.dropbox<span style=\"color: #000000; font-weight: bold;\">\/<\/span>dropbox.py<\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<p> \tYou can download the script anywhere you like, I&rsquo;ve included it along with the rest of the Dropbox files.<\/p>\n<p> \tNow you can easily check the status of the Dropbox client<\/p>\n<div>\n<div>\n<pre style=\"font-family:monospace;\"> ~<span style=\"color: #000000; font-weight: bold;\">\/<\/span>.dropbox<span style=\"color: #000000; font-weight: bold;\">\/<\/span>dropbox.py status Downloading <span style=\"color: #000000;\">125<\/span> files <span style=\"color: #7a0874; font-weight: bold;\">(<\/span><span style=\"color: #000000;\">303.9<\/span> KB<span style=\"color: #000000; font-weight: bold;\">\/<\/span>sec, <span style=\"color: #000000;\">1<\/span> hr left<span style=\"color: #7a0874; font-weight: bold;\">)<\/span><\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<p> \tGet a full list of CLI commands<\/p>\n<div>\n<div>\n<pre style=\"font-family:monospace;\"> ~<span style=\"color: #000000; font-weight: bold;\">\/<\/span>.dropbox<span style=\"color: #000000; font-weight: bold;\">\/<\/span>dropbox.py <span style=\"color: #7a0874; font-weight: bold;\">help<\/span> &nbsp; Note: use dropbox <span style=\"color: #7a0874; font-weight: bold;\">help<\/span> <span style=\"color: #000000; font-weight: bold;\">&lt;<\/span><span style=\"color: #7a0874; font-weight: bold;\">command<\/span><span style=\"color: #000000; font-weight: bold;\">&gt;<\/span> to view usage <span style=\"color: #000000; font-weight: bold;\">for<\/span> a specific command. &nbsp;  status       get current status of the dropboxd  <span style=\"color: #7a0874; font-weight: bold;\">help<\/span>         provide <span style=\"color: #7a0874; font-weight: bold;\">help<\/span>  puburl       get public url of a <span style=\"color: #c20cb9; font-weight: bold;\">file<\/span> <span style=\"color: #000000; font-weight: bold;\">in<\/span> your dropbox  stop         stop dropboxd  running      <span style=\"color: #7a0874; font-weight: bold;\">return<\/span> whether dropbox is running  start        start dropboxd  filestatus   get current <span style=\"color: #c20cb9; font-weight: bold;\">sync<\/span> status of one or <span style=\"color: #c20cb9; font-weight: bold;\">more<\/span> files  <span style=\"color: #c20cb9; font-weight: bold;\">ls<\/span>           list directory contents with current <span style=\"color: #c20cb9; font-weight: bold;\">sync<\/span> status  autostart    automatically start dropbox at <span style=\"color: #c20cb9; font-weight: bold;\">login<\/span>  exclude      ignores<span style=\"color: #000000; font-weight: bold;\">\/<\/span>excludes a directory from syncing<\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<p> \tUse the <em>exclude<\/em> command to keep specific files or folders from syncing to your server<\/p>\n<div>\n<div>\n<pre style=\"font-family:monospace;\"> ~<span style=\"color: #000000; font-weight: bold;\">\/<\/span>.dropbox<span style=\"color: #000000; font-weight: bold;\">\/<\/span>dropbox.py <span style=\"color: #7a0874; font-weight: bold;\">help<\/span> exclude &nbsp; dropbox exclude <span style=\"color: #7a0874; font-weight: bold;\">[<\/span>list<span style=\"color: #7a0874; font-weight: bold;\">]<\/span> dropbox exclude add <span style=\"color: #7a0874; font-weight: bold;\">[<\/span>DIRECTORY<span style=\"color: #7a0874; font-weight: bold;\">]<\/span> <span style=\"color: #7a0874; font-weight: bold;\">[<\/span>DIRECTORY<span style=\"color: #7a0874; font-weight: bold;\">]<\/span> ... dropbox exclude remove <span style=\"color: #7a0874; font-weight: bold;\">[<\/span>DIRECTORY<span style=\"color: #7a0874; font-weight: bold;\">]<\/span> <span style=\"color: #7a0874; font-weight: bold;\">[<\/span>DIRECTORY<span style=\"color: #7a0874; font-weight: bold;\">]<\/span> ... &nbsp; <span style=\"color: #ff0000;\">&quot;list&quot;<\/span> prints a list of directories currently excluded from syncing.   <span style=\"color: #ff0000;\">&quot;add&quot;<\/span> adds one or <span style=\"color: #c20cb9; font-weight: bold;\">more<\/span> directories to the exclusion list, <span style=\"color: #000000; font-weight: bold;\">then<\/span> resynchronizes Dropbox.  <span style=\"color: #ff0000;\">&quot;remove&quot;<\/span> removes one or <span style=\"color: #c20cb9; font-weight: bold;\">more<\/span> directories from the exclusion list, <span style=\"color: #000000; font-weight: bold;\">then<\/span> resynchronizes Dropbox. With no arguments, executes <span style=\"color: #ff0000;\">&quot;list&quot;<\/span>.  Any specified path must be within Dropbox.<\/pre>\n<\/p><\/div>\n<\/p><\/div>\n<p> \tOnce the Dropbox service is running and fully syncrhonized you can access all your Dropbox files and easily share files on your server with all your other Dropbox connected gadgets!<\/p>\n<p> \tFor more resources and troubleshooting tips visit the <a href=\"http:\/\/wiki.dropbox.com\/TipsAndTricks\/TextBasedLinuxInstall\" target=\"_blank\">Text Based Linux Install<\/a> page on the Dropbox wiki and the <a href=\"http:\/\/forums.dropbox.com\/\" target=\"_blank\">Dropbox forums<\/a>. Happy syncing!<\/p>\n<div> \t<a href=\"http:\/\/ubuntuservergui.com\/2011\/05\">May 6, 2011 <\/a> <a href=\"http:\/\/ubuntuservergui.com\/ubuntu-server-guide\/install-dropbox-ubuntu-server#comments\"><span>17 Comments<\/span><\/a> <a href=\"http:\/\/bit.ly\/iGjFjU\" title=\"Short URL\">Short URL<\/a><\/div>\n<div> \t<a href=\"http:\/\/ubuntuservergui.com\/tag\/cloud-storage\" rel=\"tag\">cloud storage<\/a><\/div>\n<div id=\"disqus_thread\">\n<div id=\"dsq-content\">\n<ul id=\"dsq-comments\">\n<li id=\"dsq-comment-5\">\n<div id=\"dsq-comment-header-5\"> \t\t\t\t\t<cite id=\"dsq-cite-5\"><span id=\"dsq-author-user-5\">Prashant Raju<\/span><\/cite><\/div>\n<div id=\"dsq-comment-body-5\">\n<div id=\"dsq-comment-message-5\">\n<p> \t\t\t\t\t\t\tGreat post! Finally a guide that just works!<\/p>\n<p> \t\t\t\t\t\t\tKeep up the good work.<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li id=\"dsq-comment-6\">\n<div id=\"dsq-comment-header-6\"> \t\t\t\t\t<cite id=\"dsq-cite-6\">http:\/\/rawberg.com\/blog <span id=\"dsq-author-user-6\">David Feinberg<\/span><\/cite><\/div>\n<div id=\"dsq-comment-body-6\">\n<div id=\"dsq-comment-message-6\">\n<p> \t\t\t\t\t\t\tThanks for the kind words Prashant, glad to hear you got everything working!<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li id=\"dsq-comment-7\">\n<div id=\"dsq-comment-header-7\"> \t\t\t\t\t<cite id=\"dsq-cite-7\">http:\/\/putokaz.wordpress.com\/2011\/06\/05\/installing-dropbox-on-ubuntu-server\/ <span id=\"dsq-author-user-7\">Installing dropbox on Ubuntu server &laquo; Putokaz<\/span><\/cite><\/div>\n<div id=\"dsq-comment-body-7\">\n<div id=\"dsq-comment-message-7\">\n<p> \t\t\t\t\t\t\t[&#8230;] source: <a href=\"http:\/\/ubuntuservergui.com\/ubuntu-server-guide\/install-dropbox-ubuntu-server\" rel=\"nofollow\">http:\/\/ubuntuservergui.com\/ubuntu-server-guide\/install-dropbox-ubuntu-server<\/a> [&#8230;]<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li id=\"dsq-comment-8\">\n<div id=\"dsq-comment-header-8\"> \t\t\t\t\t<cite id=\"dsq-cite-8\"><span id=\"dsq-author-user-8\">Anonymous<\/span><\/cite><\/div>\n<div id=\"dsq-comment-body-8\">\n<div id=\"dsq-comment-message-8\">\n<p> \t\t\t\t\t\t\tWhat a great guide &mdash; very clear and, as Prashant said, it just works! Thanks and I look forward to your service launching.<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li id=\"dsq-comment-9\">\n<div id=\"dsq-comment-header-9\"> \t\t\t\t\t<cite id=\"dsq-cite-9\">http:\/\/rawberg.com\/blog <span id=\"dsq-author-user-9\">David Feinberg<\/span><\/cite><\/div>\n<div id=\"dsq-comment-body-9\">\n<div id=\"dsq-comment-message-9\">\n<p> \t\t\t\t\t\t\tthanks for the positive feedback djmccormick!<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li id=\"dsq-comment-10\">\n<div id=\"dsq-comment-header-10\"> \t\t\t\t\t<cite id=\"dsq-cite-10\"><span id=\"dsq-author-user-10\">Jonas Nystr&ouml;m<\/span><\/cite><\/div>\n<div id=\"dsq-comment-body-10\">\n<div id=\"dsq-comment-message-10\">\n<p> \t\t\t\t\t\t\tGreat! Thanks! Using the Dropbox GUI, it&rsquo;s possible to controll specifically what folders to be synced. Can this somehow be done from the command-line too?<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li id=\"dsq-comment-11\">\n<div id=\"dsq-comment-header-11\"> \t\t\t\t\t<cite id=\"dsq-cite-11\">http:\/\/rawberg.com\/blog <span id=\"dsq-author-user-11\">David Feinberg<\/span><\/cite><\/div>\n<div id=\"dsq-comment-body-11\">\n<div id=\"dsq-comment-message-11\">\n<p> \t\t\t\t\t\t\tYou got it, you just have to use the exclude command.<br \/> \t\t\t\t\t\t\t<a href=\"http:\/\/wiki.dropbox.com\/TipsAndTricks\/UsingDropboxCLI#EXCLUDE\" rel=\"nofollow\">http:\/\/wiki.dropbox.com\/TipsAndTricks\/UsingDropboxCLI#EXCLUDE<\/a><\/p>\n<\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li id=\"dsq-comment-18\">\n<div id=\"dsq-comment-header-18\"> \t\t\t\t\t<cite id=\"dsq-cite-18\"><span id=\"dsq-author-user-18\">Kyle<\/span><\/cite><\/div>\n<div id=\"dsq-comment-body-18\">\n<div id=\"dsq-comment-message-18\">\n<p> \t\t\t\t\t\t\tFor some reason, the nice format of this guide makes this look much friendlier. lol!<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li id=\"dsq-comment-19\">\n<div id=\"dsq-comment-header-19\"> \t\t\t\t\t<cite id=\"dsq-cite-19\"><span id=\"dsq-author-user-19\">Darksteel Shaman<\/span><\/cite><\/div>\n<div id=\"dsq-comment-body-19\">\n<div id=\"dsq-comment-message-19\">\n<p> \t\t\t\t\t\t\tIncredible guide! Got dropbox up and running in no time! Thanks a bunch <img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-628\" alt=\":)\" border=\"0\" src=\"https:\/\/noi3.org\/site\/wp-content\/uploads\/2012\/01\/icon_smile.gif\" width=\"15\" height=\"15\" \/><\/p>\n<\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li id=\"dsq-comment-20\">\n<div id=\"dsq-comment-header-20\"> \t\t\t\t\t<cite id=\"dsq-cite-20\">http:\/\/rawberg.com\/blog <span id=\"dsq-author-user-20\">David Feinberg<\/span><\/cite><\/div>\n<div id=\"dsq-comment-body-20\">\n<div id=\"dsq-comment-message-20\">\n<p> \t\t\t\t\t\t\tGlad to hear it worked out for you Darksteel and thanks for the positive feedback!<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li id=\"dsq-comment-25\">\n<div id=\"dsq-comment-header-25\"> \t\t\t\t\t<cite id=\"dsq-cite-25\">http:\/\/adminsgoodies.com\/dropbox-on-linux-server-how-to-includeexclude-folders\/ <span id=\"dsq-author-user-25\">Dropbox on linux server &ndash; how to include\/exclude folders? &ndash; Admins Goodies<\/span><\/cite><\/div>\n<div id=\"dsq-comment-body-25\">\n<div id=\"dsq-comment-message-25\">\n<p> \t\t\t\t\t\t\t[&#8230;] Background: I&rsquo;m trying out the solutions for installing Dropbox on a linux server given here, and it seems to work fine: <a href=\"http:\/\/ubuntuservergui.com\/ubuntu-server-guide\/install-dropbox-ubuntu-server\" rel=\"nofollow\">http:\/\/ubuntuservergui.com\/ubuntu-server-guide\/install-dropbox-ubuntu-server<\/a> [&#8230;]<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li id=\"dsq-comment-36\">\n<div id=\"dsq-comment-header-36\"> \t\t\t\t\t<cite id=\"dsq-cite-36\"><span id=\"dsq-author-user-36\">Daniel<\/span><\/cite><\/div>\n<div id=\"dsq-comment-body-36\">\n<div id=\"dsq-comment-message-36\">\n<p> \t\t\t\t\t\t\tThank you for this post, very helpful <img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-628\" alt=\":)\" border=\"0\" src=\"https:\/\/noi3.org\/site\/wp-content\/uploads\/2012\/01\/icon_smile.gif\" width=\"15\" height=\"15\" \/><\/p>\n<\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li id=\"dsq-comment-37\">\n<div id=\"dsq-comment-header-37\"> \t\t\t\t\t<cite id=\"dsq-cite-37\"><span id=\"dsq-author-user-37\">Adamjseed<\/span><\/cite><\/div>\n<div id=\"dsq-comment-body-37\">\n<div id=\"dsq-comment-message-37\">\n<p> \t\t\t\t\t\t\tDavid, Great tutorial.<\/p>\n<p> \t\t\t\t\t\t\tDo you know how to move the drobox folder to a different location on a headless install?<\/p>\n<p> \t\t\t\t\t\t\tIm thinking that I may need to install the full client and forward the x11 to move it.<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li id=\"dsq-comment-38\">\n<div id=\"dsq-comment-header-38\"> \t\t\t\t\t<cite id=\"dsq-cite-38\">http:\/\/rawberg.com\/blog <span id=\"dsq-author-user-38\">David Feinberg<\/span><\/cite><\/div>\n<div id=\"dsq-comment-body-38\">\n<div id=\"dsq-comment-message-38\">\n<p> \t\t\t\t\t\t\tHave you tried manually changing the PARENT_DIR setting in the dropbox.py file?<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li id=\"dsq-comment-39\">\n<div id=\"dsq-comment-header-39\"> \t\t\t\t\t<cite id=\"dsq-cite-39\">http:\/\/rawberg.com\/blog <span id=\"dsq-author-user-39\">David Feinberg<\/span><\/cite><\/div>\n<div id=\"dsq-comment-body-39\">\n<div id=\"dsq-comment-message-39\">\n<p> \t\t\t\t\t\t\tGlad to hear it helped you out!<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li id=\"dsq-comment-41\">\n<div id=\"dsq-comment-header-41\"> \t\t\t\t\t<cite id=\"dsq-cite-41\"><span id=\"dsq-author-user-41\">Sebastian Sawicki<\/span><\/cite><\/div>\n<div id=\"dsq-comment-body-41\">\n<div id=\"dsq-comment-message-41\">\n<p> \t\t\t\t\t\t\tHaven&rsquo;t you hear about upstart? Using \/etc\/init.d is deprecated ;]<br \/> \t\t\t\t\t\t\tWhat&rsquo;s more if you have root access it would be nice to place dropbox-dist files (which are mainly binaries and some libs) in some system folder. I&rsquo;ve putted it in \/opt\/dropbox-dist :<br \/> \t\t\t\t\t\t\t# sudo mv ~\/.dropbox-dist \/opt\/dropbox-dist<br \/> \t\t\t\t\t\t\t# sudo chown -R root:root \/opt\/dropbox-dist<br \/> \t\t\t\t\t\t\t# sudo chmod -R go-w \/opt\/dropbox-dist<\/p>\n<p> \t\t\t\t\t\t\t&hellip;there is no need in having same binaries for each user.<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li id=\"dsq-comment-42\">\n<div id=\"dsq-comment-header-42\"> \t\t\t\t\t<cite id=\"dsq-cite-42\">http:\/\/rawberg.com\/blog <span id=\"dsq-author-user-42\">David Feinberg<\/span><\/cite><\/div>\n<div id=\"dsq-comment-body-42\">\n<div id=\"dsq-comment-message-42\">\n<p> \t\t\t\t\t\t\tGood tips Sebastian, thanks for sharing!<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<\/li>\n<\/ul>\n<hr \/>\n<p> \t\t\tArticolul original: <a href=\"http:\/\/ubuntuservergui.com\/ubuntu-server-guide\/install-dropbox-ubuntu-server\">aici<\/a><\/p>\n<\/p><\/div>\n<\/p><\/div>\n<hr \/>\n<p> \t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post will help you install the Linux Dropbox client on your headless Ubuntu Server and link it up to your Dropbox account. Unlike the&hellip;<\/p>\n","protected":false},"author":1,"featured_media":628,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[295,206,248],"class_list":["post-629","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-informatica","tag-dropbox","tag-server","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/site.noi3.org\/index.php?rest_route=\/wp\/v2\/posts\/629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/site.noi3.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/site.noi3.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/site.noi3.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/site.noi3.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=629"}],"version-history":[{"count":0,"href":"https:\/\/site.noi3.org\/index.php?rest_route=\/wp\/v2\/posts\/629\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/site.noi3.org\/index.php?rest_route=\/wp\/v2\/media\/628"}],"wp:attachment":[{"href":"https:\/\/site.noi3.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/site.noi3.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/site.noi3.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}