User Tools

Site Tools


linux:dropbox

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:dropbox [2016/10/06 07:38]
jansen
linux:dropbox [2020/07/22 09:15] (current)
jansen [Setting up Dropbox on the Linux desktops]
Line 1: Line 1:
 ====== Dropbox ====== ====== Dropbox ======
  
-Dropbox is a nice tool to synchronize some documents between computers. It is available on our desktops, but take care of a couple of things:+Dropbox is a nice tool to synchronize some documents between computers. It is available on our Linux desktops, but take care of a couple of things:
  
-  * Dropbox offers 2GB storage. But synchronization implies, that a local copy is made. Default location is in your home directory, but perhaps you don't have 2GB there (or you don't want to waste the limited space that you have in home). So make sure you move your Dropbox folder to another location, preferably on the local disk of your desktop. (Dropbox preferences - Advanced tab).\\+  * Dropbox offers 2GB storage. But synchronization implies, that a local copy is made. Default location is in your home directory, but perhaps you don't have 2GB there (or you don't want to waste the limited space that you have in home). So make sure you move your Dropbox folder to another location, preferably on the local disk of your desktop. (Dropbox preferences - Advanced tab).
 Not only will that prevent quota problems on /home, it will also be faster, because your local copy is actually local. Not only will that prevent quota problems on /home, it will also be faster, because your local copy is actually local.
-  * Disable LAN sync (Dropbox preferences - general tab). It would only be useful to synchronize between computers in the local network, but the computers in our network can share disks through automountso there just is no point to have Dropbox generate lot of network traffic to duplicate a feature we already offer (with much greater flexibility, and not limited to a single directory of 2 GB). +  * **IMPORTANT**: As of October 2018, Dropbox is giving warnings that it will stop working on unsupported filesystems, which includes nfs (network file system, eg the /home disk). Two scenarios to solve this: 
-  Do not run Dropbox on multiple desktops at the same time. Dropbox isn't aware of the factthat a data location like ''/net/computername/something'' is shared between computers, it will try to synchronize from that location on one computer, to that same location on another computerpotentially overwriting or damaging the filesAnd again: there is no need to use Dropbox to synchronize between computers in our network  +  - A new setup of Dropbox will by default start in ''/home'' and complain. Go into the preferences and move Dropbox to a location on the local disk (''/data1'' or ''/data2''). That should solve the issue and stop the warnings. 
-  However, synchronizing between desktop and laptop is possible, and useful. No harm theresince there are no shared disks. But here as well, LAN sync will not work, so switch it off please.+  - If you followed earlier advice, and moved ''~/Dropbox'' to a local disk, but kept a symbolic link, the warning will appear since dropbox apparently doesn't understand this. Unfortunatelyyou can not simply tell Dropbox where the directory actually is. So here is series of actions to work around it, and end up with the desired setup: Dropbox on the local data diskwithout the link and without complaints 
 +    * Close dropbox to make sure nothing is running 
 +    Rename the Dropbox directory on your local diskE.g. ''mv /data1/yourusername/Dropbox /data1/yourusername/Dropbox2'
 +    * Remove the symbolic link in  your home directoryand create new one: ''rm ~/Dropbox; ln -s /data1/yourusername/Dropbox2 ~/Dropbox'' 
 +    * Restart dropbox. It will complain, as usual. 
 +    * Go to the preferences and tell Dropbox to move its data from ''~/Dropbox'' to ''/data1/yourusername''. So actually, it will go through the symbolic link and move ''Dropbox2'' to ''Dropbox'' in the new location 
 +    * Restart dropbox again. It will now work with the local location (''/data1/yourusername/Dropbox''
 +    * If you want, you can now remove the symbolic link from your home directory 
 +  - An alternative method tricks dropbox into seeing another directory as your homeso you can avoid using the nfs mounted home diskHowever, using this method, dropbox cannot be started automatically when you log in, you have to use the commandline to start it up, although file manager access will work once started. 
 +    Stop Dropbox if it is already running 
 +    * Create the directory where you want the Dropbox files on the local disk, eg ''/data1/yourusername'' 
 +    * Point HOME to that location, and start installing dropbox:  ''( setenv HOME /data1/yourusername ; dropbox start -i )'' 
 +    * Next time you log inrepeat this command without the -i option: ''( setenv HOME /data1/yourusername ; dropbox start )''
  
 ====== Setting up Dropbox on the Linux desktops ====== ====== Setting up Dropbox on the Linux desktops ======
Line 13: Line 25:
  
 Note that Dropbox sync is not running when you don't have a desktop session active, eg if you log in over ssh. You can still add files to your Dropbox folder, and they will be sync'd the next time dropbox is started on the desktop, or commandline synchronization is started (see below). Note that Dropbox sync is not running when you don't have a desktop session active, eg if you log in over ssh. You can still add files to your Dropbox folder, and they will be sync'd the next time dropbox is started on the desktop, or commandline synchronization is started (see below).
 +
 +Some important settings:
 +  * Location of your Dropbox folder. See above. Use the local disk of your desktop, not /home
 +  * Disable LAN sync (Dropbox preferences - general tab). It would only be useful to synchronize between computers in the local network, but the computers in our network can share disks through automount, so there just is no point to have Dropbox generate a lot of network traffic to duplicate a feature we already offer (with much greater flexibility, and not limited to a single directory of 2 GB).
 +  * Do not run Dropbox on multiple desktops at the same time. Dropbox isn't aware of the fact, that a data location like ''/net/computername/something'' is shared between computers, it will try to synchronize from that location on one computer, to that same location on another computer, potentially overwriting or damaging the files. And again: there is no need to use Dropbox to synchronize between computers in our network 
 +  * However, synchronizing between desktop and laptop is possible, and useful. No harm there, since there are no shared disks. But here as well, LAN sync will not work, so switch it off please.
  
 ====== Commandline tools ====== ====== Commandline tools ======
 Dropbox also provides a commandline tool to handle your shared folder. The command is called ''dropbox'', and is usually called with sub-commands to check the status (''dropbox status''), start dropbox if not already running (''dropbox start''). See the man page or ''dropbox help'' for more details. Dropbox also provides a commandline tool to handle your shared folder. The command is called ''dropbox'', and is usually called with sub-commands to check the status (''dropbox status''), start dropbox if not already running (''dropbox start''). See the man page or ''dropbox help'' for more details.
 +
 +====== Dropbox on Windows ======
 +It is unfortunately not possible to have Dropbox working on the Windows pcs that are part of the domain. This seems to be a known bug with user profiles that are stored on a central cerver, something Dropbox currently cannot handle. On those machines, you are limited to using the dropbox web interface for uploading and downloading your files. \\
 +Alternatively, one can use other [[cloud storage]] tools such as [[OwnCloud]], which do work on Windows domains.
  
 ====== See also ====== ====== See also ======
 See also [[https://www.dropbox.com]] \\ See also [[https://www.dropbox.com]] \\
-''man dropbox'' for the manual page of the commandline tool.+''man dropbox'' for the manual page of the commandline tool.\\ 
 +See [[Cloud storage]] for a list of other, similar programs. 
  
linux/dropbox.1475739498.txt.gz · Last modified: 2016/10/06 07:38 by jansen