Desktop Synchronization Client for Nuxeo
This is an ongoing development project for desktop synchronization of local folders with remote Nuxeo workspaces.
Watch this screencast to get a 6 min overview of this project.
See USERDOC/Nuxeo Drive for complete up-to-date documentation.
Note: this documentation follows the Drive version of the master branch, which could evolve rapidly. To see the documentation of a given Drive release, use this kind of link:
# For Drive 2.1.113 go to:
https://github.com/nuxeo/nuxeo-drive/release-2.1.113/README.md
The source code of Nuxeo Drive is available under the GNU LGPL v2.1 described in LICENSE.txt.
Installing Nuxeo Drive requires two components: the nuxeo-drive
server addon for the Nuxeo Platform and a desktop program on the user's computer.
Once the Marketplace package is installed, the macOS/Windows desktop client package can be downloaded from the Home > Nuxeo Drive tab or from the update website. Administrator rights are not required.
You can also fetch the latest development version from the our Continous Integration server.
All the necessary dependencies (such as the Python interpreter and the Qt / PyQt for the client side user interface) are included and will not impact any alternative version you may have already installed on your computer.
There is currently no universal package to download. In the meantime you can install it from the source code.
Has been reported to work on Ubuntu >= 12.04.
The easiest and safest way to build Drive is to follow the same steps as we do on Jenkins.
First note that Nuxeo Drive uses Extended file attributes through the xattr Python wrapper.
On FreeBSD and macOS, xattrs are enabled in the default kernel.
On GNU/Linux, depending on the distribution, you may need a special mount option (user_xattr
) to enable them for a given file system, e.g.:
sudo mount -o remount,user_xattr /dev/sda3
Nuxeo Drive is officially supported on Python 3.6+.
Install Nuxeo Drive requirements and Nuxeo Drive itself. These are common installation actions, not depending on the package manager. From the folder containing the Nuxeo Drive source code (this repository):
git checkout "release-4.0.0" # Or whatever release you want, starting with 4.0.0 and newer
export WORKSPACE="$(pwd)"
./tools/linux/deploy_jenkins_slave.sh --install
Then, when you want to launch Drive, simply type:
export WORKSPACE="$(pwd)"
./tools/linux/deploy_jenkins_slave.sh --start
To easily manage all dependencies and packaging steps, we created several Jenkinsfiles you can reuse. They are located in the tools/jenikins folder. You may also want to read the docs/deployment.md.
-
Launch the Nuxeo Drive program (e.g. from the Start menu under Windows).
A new icon should open in the system tray and a popup menu should open asking the user for the URL of the Nuxeo server and credentials.
-
In the Nuxeo web interface, mark workspaces and folders for synchronization.
-
You can now go to the local Nuxeo Drive folder by using the menu of the system tray icon.
The desktop synchronization client can also be operated from the command-line:
-
Make sure that the
ndrive
program is installed in a folder that has been added to thePATH
enviroment variable of your OS.- If you installed the .dmg package for macOS, the binary is:
/Applications/Nuxeo\ Drive.app/Contents/MacOS/ndrive
- You can alias it in your
~/.bashrc
with:
alias ndrive="/Applications/Nuxeo\ Drive.app/Contents/MacOS/ndrive"
-
Launch Nuxeo Drive (no automatic background mode yet, this will come in future versions):
ndrive
Under Windows you can launch
ndrive.exe
instead to avoid keeping the cmd console open while Nuxeo Drive is running instead. -
The first time you run this command a dialog window will open asking for the URL of the Nuxeo server and your user credentials.
Alternatively you can bind to a Nuxeo server with your user credentials using the following commandline arguments:
ndrive bind-server nuxeo-username https://server:port/nuxeo --password secret
This will create a new folder called Nuxeo Drive in your home folder on GNU/Linux & macOS and under the Documents folder on Windows.
-
Go to your Nuxeo with your browser, navigate to workspaces or folder where you have permission to create new documents.
-
Click on the Nuxeo Drive icon right of the title of the folder to treat this folder as a new synchronization root.
Alternatively you can do this operation from the commandline with:
ndrive bind-root "/default-domain/workspaces/My Workspace"
You can now create office documents and folders locally or inside Nuxeo and watch them getting synchronized both ways automatically.
Translations are managed with Crowdin.
The reference file i18n.json contains the labels and the English values.
Translations for other languages are managed in the nuxeo-drive Crowdin project, e.g. French.
The sync-nuxeo-drive-crowdin Jenkins job triggers a daily synchronization of:
- The i18n.json reference file to Crowdin. This file can be edited and changes must be pushed to the current repository.
- The Crowdin translation files to the i18n folder, e.g. i18n-fr.json. These files must never be edited from the source tree.
-
Generate a bug report in the Advanced tab of the Settings panel of the Nuxeo Drive client.
You can also log TRACE information directly in the console by using the following command-line:
ndrive --log-level-console=TRACE
-
Create a GitHub issue mentionning the version of the Nuxeo Platform, your operating system name and version (e.g. Windows 7), the steps to reproduce the error and a copy of the logs.
-
For long running sessions, it is better to dump the debug information in a log file. This can be done with the following command:
ndrive --log-level-file=TRACE
By default the location of the log file is:
~/.nuxeo-drive/logs/
where~
stands for the location of the user folder. For instance:- Under Windows 7 and 8:
C:\Users\username\.nuxeo-drive\logs
- Under macOS:
/Users/username/.nuxeo-drive/logs
- Under GNU/Linux:
/home/username/.nuxeo-drive/logs
- Under Windows 7 and 8:
The backlog is handled on JIRA.
See the contributor guide if you wish to actually contribute to the Nuxeo Drive code base.