{"id":7014,"date":"2018-12-31T01:48:46","date_gmt":"2018-12-31T01:48:46","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=7014"},"modified":"2019-01-08T09:46:27","modified_gmt":"2019-01-08T09:46:27","slug":"how-to-install-dropbox-on-centos-7-server","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/12\/31\/how-to-install-dropbox-on-centos-7-server\/","title":{"rendered":"How to install Dropbox on CentOS 7 Server"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linux4one.com\/wp-content\/uploads\/2018\/11\/How-to-install-Dropbox-on-CentOS-7-1.jpg\" alt=\"How to install Dropbox on CentOS 7\" width=\"750\" height=\"350\" \/>How to install Dropbox on CentOS 7<\/p>\n<h2>Install Dropbox on CentOS 7<\/h2>\n<p>Dropbox is the online storage service supports Linux distros. Dropbox provides online storage to backup and store data automatically with security. It has both free and paid plan. In the free plan, it provides 2GB storage if you want more storage then you can buy paid plans. In this tutorial, you are going to learn how to install Dropbox on CentOS 7 server.<\/p>\n<h3>Prerequisites<\/h3>\n<p>Before you start to install Dropbox on CentOS. You must have the non-root user account on your server with sudo privileges.<\/p>\n<h3>Install Dropbox Client<\/h3>\n<p>Here we will first install Dropbox Client. Download Dropbox Client using the following command.<\/p>\n<p>curl -Lo dropbox-linux-x86_64.tar.gz https:\/\/www.dropbox.com\/download?plat=lnx.x86_64<\/p>\n<p>Create a directory for Dropbox installation by using the following command.<\/p>\n<p>sudo mkdir -p \/opt\/dropbox<\/p>\n<p>Now extract the downloaded file inside \/opt\/dropbox directory.<\/p>\n<p>sudo tar xzfv dropbox-linux-x86_64.tar.gz &#8211;strip 1 -C \/opt\/dropbox<\/p>\n<h3>Setup account for Dropbox<\/h3>\n<p>In this section, we will link your Dropbox account to Dropbox client on your server to do so execute the following command.<\/p>\n<p>\/opt\/dropbox\/dropboxd<\/p>\n<p>You will get the following output, just copy the link given inside output and run it inside your favorite browser on your local machine.<\/p>\n<p>Host ID Link:<br \/>\nThis computer isn&#8217;t linked to any Dropbox account&#8230;<br \/>\nPlease visit https:\/\/www.dropbox.com\/cli_link_nonce?nonce=3d88f2e1f2949265ebcac8d159913770 to link this device.<\/p>\n<p>If you have existing Dropbox account then just Sign in otherwise create a new account on Dropbox.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/lxer.com\/image\/gif;base64,R0lGODdhAQABAPAAAP\/wAAACwAAAAAAQABAEACAkQBADs=\" alt=\"Install Dropbox on CentOS - Register to Dropbox\" width=\"1365\" height=\"684\" \/>Install Dropbox on CentOS \u2013 Register to Dropbox<\/p>\n<p>Once you complete above process you will see the following output on your CentOS system.<\/p>\n<p>Link success output:<br \/>\nThis computer is now linked to Dropbox. Welcome Sammy<\/p>\n<p>You have successfully linked your Dropbox account to Dropbox client. <u>A new Dropbox directory is created inside the HOME directory to store synchronized Dropbox files.<\/u> Now Enter Ctrl+c to setup Dropbox as a service.<\/p>\n<h3>Setup Dropbox as a Service<\/h3>\n<p>To set up Dropbox as a service, you should create a init script and Systemd unit file to do so enter the following command.<\/p>\n<p>sudo curl -o \/etc\/init.d\/dropbox https:\/\/gist.githubusercontent.com\/thisismitch\/6293d3f7f5fa37ca6eab\/raw\/2b326bf77368cbe5d01af21c623cd4dd75528c3d\/dropboxsudo curl -o \/etc\/systemd\/system\/dropbox.service https:\/\/gist.githubusercontent.com\/thisismitch\/6293d3f7f5fa37ca6eab\/raw\/99947e2ef986492fecbe1b7bfbaa303fefc42a62\/dropbox.service<\/p>\n<p>Run following script to make above files executables.<\/p>\n<p>sudo chmod +x \/etc\/systemd\/system\/dropbox.service \/etc\/init.d\/dropbox<\/p>\n<p>\/etc\/sysconfig\/dropbox file should contain system user names who will run Dropbox. Run following command to edit this file.<\/p>\n<p>sudo nano \/etc\/sysconfig\/dropbox<\/p>\n<p>Set username as given in below example then save and exit the file.<\/p>\n<p>DROPBOX_USERS=&#8221;john&#8221;<\/p>\n<p>Now reload the Systemd daemon.<\/p>\n<p>sudo systemctl daemon-reload<\/p>\n<p>Now start and enable Dropbox service executing following command.<\/p>\n<p>sudo systemctl start dropbox &amp;&amp; sudo systemctl enable dropbox<\/p>\n<h3>Install Dropbox CLI<\/h3>\n<p>Enter following command to download the Dropbox CLI script.<\/p>\n<p>cd ~ &amp;&amp; curl -LO https:\/\/www.dropbox.com\/download?dl=packages\/dropbox.py<\/p>\n<p>Make the file executable by running following command.<\/p>\n<p>chmod +x ~\/dropbox.py<\/p>\n<p>As Dropbox CLI expects ~\/.dropbox-dist to contain your Dropbox installation files to do so run following command.<\/p>\n<p>ln -s \/opt\/dropbox ~\/.dropbox-dist<\/p>\n<p>Now you can run Dropbox client by using following command. It will instructions for how to use Dropbox CLI.<\/p>\n<p>~\/dropbox.py<\/p>\n<p>You can check the status of Dropbox by typing following command.<\/p>\n<p>~\/dropbox.py status<\/p>\n<p>You should get following output<\/p>\n<p>Output:<br \/>\nUp to date<\/p>\n<p>To turn off the automatic LAN sync use following command.<\/p>\n<p>~\/dropbox.py lansync n<\/p>\n<p>If you want more information about a specific command enter following command<\/p>\n<p>~\/dropbox.py help sharelink<\/p>\n<p>Above command will provide you more information about <u>sharelink<\/u> command.<\/p>\n<p>dropbox running<\/p>\n<p>Returns 1 if running 0 if not running.<\/p>\n<p>Check status of dropbox by typing<\/p>\n<p>~\/dropbox.py status<\/p>\n<p>If Dropbox is not active then start service by running following command<\/p>\n<p>~\/dropbox.py start<\/p>\n<p>To stop dropbox service enter following command<\/p>\n<p>~\/dropbox.py stop<\/p>\n<p>Get sync status of Dropbox file by typing<\/p>\n<p>~\/dropbox.py filestatus Dropbox\/test.txt<\/p>\n<p>Generate shareable link for a file by typing<\/p>\n<p>~\/dropbox.py sharelink Dropbox\/test.txt<\/p>\n<p>You can exclude the directory from syncing by using the following command<\/p>\n<p>~\/dropbox.py exclude add Dropbox\/dir1<\/p>\n<p>To list excluded directories type following command<\/p>\n<p>~\/dropbox.py exclude list<\/p>\n<p>Remove directory from excluded list typing<\/p>\n<p>~\/dropbox.py exclude remove Dropbox\/dir1<\/p>\n<h3>Link Additional Dropbox Account<\/h3>\n<p>To link additional Dropbox account run following command then copy the given url in output.<\/p>\n<p>\/opt\/dropbox\/dropboxd<\/p>\n<p>Now go to the URL given in the output and complete the authentication process.<br \/>\nThen add the user inside \/etc\/default\/dropbox file.<\/p>\n<p>sudo nano \/etc\/default\/dropbox<\/p>\n<h3>Unlink Dropbox Account<\/h3>\n<p>First stop the Dropbox service.<\/p>\n<p>sudo service dropbox stop<\/p>\n<p>Remove the user from \/etc\/default\/dropbox file.<\/p>\n<p>sudo nano \/etc\/default\/dropbox<\/p>\n<p>Then delete Dropbox user directry using following command replacing USERNAME with the real username of system.<\/p>\n<p>sudo rm -r ~\/USERNAME\/Dropbox<\/p>\n<p>Now start the Dropbox service.<\/p>\n<h3>Conclusion<\/h3>\n<p>You have successfully learned how to install Dropbox on CentOS 7. If you have any queries don\u2019t forget to comment below.<\/p>\n<p><a href=\"http:\/\/lxer.com\/module\/newswire\/ext_link.php?rid=264307\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to install Dropbox on CentOS 7 Install Dropbox on CentOS 7 Dropbox is the online storage service supports Linux distros. Dropbox provides online storage to backup and store data automatically with security. It has both free and paid plan. In the free plan, it provides 2GB storage if you want more storage then you &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/12\/31\/how-to-install-dropbox-on-centos-7-server\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to install Dropbox on CentOS 7 Server&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7014","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/7014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=7014"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/7014\/revisions"}],"predecessor-version":[{"id":7328,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/7014\/revisions\/7328"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=7014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=7014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=7014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}