installing.rst 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. =============================================
  2. Installing the Desktop Synchronization Client
  3. =============================================
  4. You can download the latest version of the Nextcloud Desktop Synchronization
  5. Client from the `Nextcloud download page`_.
  6. There are clients for Linux, macOs, and Microsoft Windows.
  7. Installation on Mac OS X and Windows is the same as for any software
  8. application: download the program and then double-click it to launch the
  9. installation, and then follow the installation wizard. After it is installed and
  10. configured the sync client will automatically keep itself updated; see
  11. :doc:`autoupdate` for more information.
  12. Linux users must follow the instructions on the download page to add the
  13. appropriate repository for their Linux distribution, install the signing key,
  14. and then use their package managers to install the desktop sync client. Linux
  15. users will also update their sync clients via package manager, and the client
  16. will display a notification when an update is available.
  17. Linux users must also have a password manager enabled, such as GNOME Keyring or
  18. KWallet, so that the sync client can login automatically.
  19. You will also find links to source code archives and older versions on the
  20. download page.
  21. System Requirements
  22. ----------------------------------
  23. - Windows 8.1+
  24. - macOS 10.12+ (**64-bit only**)
  25. - macOS 10.10 & 10.11 (**64-bit and up to client legacy version 2.6.5 only**)
  26. - CentOS 6 & 7 (64-bit only)
  27. - Debian 8.0 & 9.0
  28. - Fedora 25 & 26 & 27
  29. - Ubuntu 16.04 & 17.04 & 17.10
  30. - openSUSE Leap 42.2 & 42.3
  31. .. note::
  32. For Linux distributions, we support, if technically feasible, the latest 2 versions per platform and the previous LTS.
  33. Customizing the Windows Installation
  34. ------------------------------------
  35. If you just want to install Nextcloud Desktop Synchronization Client on your local
  36. system, you can simply launch the `.msi` file and configure it in the wizard
  37. that pops up.
  38. Features
  39. ^^^^^^^^
  40. The MSI installer provides several features that can be installed or removed
  41. individually, which you can also control via command-line, if you are automating
  42. the installation, then run the following command::
  43. msiexec /passive /i Nextcloud-x.y.z-x64.msi
  44. The command will install the Nextcloud Desktop Synchronization Client into the default location
  45. with the default features enabled.
  46. If you want to disable, e.g., desktop shortcut icons you can simply change the above command to the following::
  47. msiexec /passive /i Nextcloud-x.y.z-x64.msi REMOVE=DesktopShortcut
  48. See the following table for a list of available features:
  49. +--------------------+--------------------+-----------------------------------+---------------------------+
  50. | Feature | Enabled by default | Description |Property to disable |
  51. +====================+====================+===================================+===========================+
  52. | Client | Yes, required | The actual client | |
  53. +--------------------+--------------------+-----------------------------------+---------------------------+
  54. | DesktopShortcut | Yes | Adds a shortcut to the desktop |``NO_DESKTOP_SHORTCUT`` |
  55. +--------------------+--------------------+-----------------------------------+---------------------------+
  56. | StartMenuShortcuts | Yes | Adds a shortcut to the start menu |``NO_START_MENU_SHORTCUTS``|
  57. +--------------------+--------------------+-----------------------------------+---------------------------+
  58. | ShellExtensions | Yes | Adds Explorer integration |``NO_SHELL_EXTENSIONS`` |
  59. +--------------------+--------------------+-----------------------------------+---------------------------+
  60. Installation
  61. ~~~~~~~~~~~~
  62. You can also choose to only install the client itself by using the following command::
  63. msiexec /passive /i Nextcloud-x.y.z-x64.msi ADDDEFAULT=Client
  64. If you for instance want to install everything but the ``DesktopShortcut`` and the ``ShellExtensions`` feature, you have two possibilities:
  65. 1. You explicitly name all the features you actually want to install (whitelist) where `Client` is always installed anyway::
  66. msiexec /passive /i Nextcloud-x.y.z-x64.msi ADDDEFAULT=StartMenuShortcuts
  67. 2. You pass the `NO_DESKTOP_SHORTCUT` and `NO_SHELL_EXTENSIONS` properties::
  68. msiexec /passive /i Nextcloud-x.y.z-x64.msi NO_DESKTOP_SHORTCUT="1" NO_SHELL_EXTENSIONS="1"
  69. .. NOTE::
  70. The Nextcloud `.msi` remembers these properties, so you don't need to specify them on upgrades.
  71. .. NOTE::
  72. You cannot use these to change the installed features, if you want to do that, see the next section.
  73. Changing Installed Features
  74. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  75. You can change the installed features later by using `REMOVE` and `ADDDEFAULT` properties.
  76. 1. If you want to add the the desktop shortcut later, run the following command::
  77. msiexec /passive /i Nextcloud-x.y.z-x64.msi ADDDEFAULT="DesktopShortcut"
  78. 2. If you want to remove it, simply run the following command::
  79. msiexec /passive /i Nextcloud-x.y.z-x64.msi REMOVE="DesktopShortcut"
  80. Windows keeps track of the installed features and using `REMOVE` or `ADDDEFAULT` will only affect the mentioned features.
  81. Compare `REMOVE <https://msdn.microsoft.com/en-us/library/windows/desktop/aa371194(v=vs.85).aspx>`_
  82. and `ADDDEFAULT <https://msdn.microsoft.com/en-us/library/windows/desktop/aa367518(v=vs.85).aspx>`_
  83. on the Windows Installer Guide.
  84. .. NOTE::
  85. You cannot specify `REMOVE` on initial installation as it will disable all features.
  86. Installation Folder
  87. ^^^^^^^^^^^^^^^^^^^
  88. You can adjust the installation folder by specifying the `INSTALLDIR`
  89. property like this::
  90. msiexec /passive /i Nextcloud-x.y.z-x64.msi INSTALLDIR="C:\Program Files\Non Standard Nextcloud Client Folder"
  91. Be careful when using PowerShell instead of `cmd.exe`, it can be tricky to get
  92. the whitespace escaping right there.
  93. Specifying the `INSTALLDIR` like this only works on first installation, you cannot simply re-invoke the `.msi` with a different path. If you still need to change it, uninstall it first and reinstall it with the new path.
  94. Disabling Automatic Updates
  95. ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  96. To disable automatic updates, you can pass the `SKIPAUTOUPDATE` property.::
  97. msiexec /passive /i Nextcloud-x.y.z-x64.msi SKIPAUTOUPDATE="1"
  98. Launch After Installation
  99. ^^^^^^^^^^^^^^^^^^^^^^^^^
  100. To launch the client automatically after installation, you can pass the `LAUNCH` property.::
  101. msiexec /i Nextcloud-x.y.z-x64.msi LAUNCH="1"
  102. This option also removes the checkbox to let users decide if they want to launch the client
  103. for non passive/quiet mode.
  104. .. NOTE::
  105. This option does not have any effect without GUI.
  106. No Reboot After Installation
  107. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  108. The Nextcloud Client schedules a reboot after installation to make sure the Explorer extension is correctly (un)loaded.
  109. If you're taking care of the reboot yourself, you can set the `REBOOT` property::
  110. msiexec /i Nextcloud-x.y.z-x64.msi REBOOT=ReallySuppress
  111. This will make `msiexec` exit with error `ERROR_SUCCESS_REBOOT_REQUIRED` (3010).
  112. If your deployment tooling interprets this as an actual error and you want to avoid that, you may want to set the `DO_NOT_SCHEDULE_REBOOT` instead::
  113. msiexec /i Nextcloud-x.y.z-x64.msi DO_NOT_SCHEDULE_REBOOT="1"
  114. Installation Wizard
  115. -------------------
  116. The installation wizard takes you step-by-step through configuration options and
  117. account setup. First you need to enter the URL of your Nextcloud server.
  118. .. image:: images/client-1.png
  119. :alt: form for entering Nextcloud server URL
  120. Enter your Nextcloud login on the next screen.
  121. .. image:: images/client-2.png
  122. :alt: form for entering your Nextcloud login
  123. On the Local Folder Option screen you may sync
  124. all of your files on the Nextcloud server, or select individual folders. The
  125. default local sync folder is ``Nextcloud``, in your home directory. You may
  126. change this as well.
  127. .. image:: images/client-3.png
  128. :alt: Select which remote folders to sync, and which local folder to store
  129. them in.
  130. When you have completed selecting your sync folders, click the Connect button
  131. at the bottom right. The client will attempt to connect to your Nextcloud
  132. server, and when it is successful you'll see two buttons: one to connect to
  133. your Nextcloud Web GUI, and one to open your local folder. It will also start
  134. synchronizing your files.
  135. .. image:: images/client-4.png
  136. :alt: A successful server connection, showing a button to connect to your
  137. Web GUI, and one to open your local Nextcloud folder
  138. Click the Finish button, and you're all done.
  139. .. Links
  140. .. _Nextcloud download page: https://nextcloud.com/download/#install-clients