Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
docker_notes:fileshare [2024-12-22 Sun wk51 11:47] – [File Sharing] baumkpdocker_notes:fileshare [2025-01-05 Sun wk01 11:25] (current) – [syncthing] baumkp
Line 6: Line 6:
   *Nextcloud - a full privately hosted publicly accessible file shareing application, with many additional features   *Nextcloud - a full privately hosted publicly accessible file shareing application, with many additional features
   *Syncthing - A files synchronising system   *Syncthing - A files synchronising system
 +  *Unison - A files synchronising system
   *Privatebin - An encrypted file publicly accessible file sharing server   *Privatebin - An encrypted file publicly accessible file sharing server
 +  *inotify - A Linux application to provide notification with a file has changed
  
 =====Nextcloud===== =====Nextcloud=====
 +Nextcloud is an open source content collaboration platform.  At its core is file-sharing, but it has many other core functions as well as extensibility with additional installed applications.  While Nextcloud can securely share files it is not focused as a **simple**, public, and secure file-sharing platform.
 +
 [[https://nextcloud.com/|Nextcloud]] and [[https://owncloud.com/|Owncloud]] has build in file sharing.  However these platforms provided many other functions and hence setup and basic file sharing is more complex than simply file sharing only applications.  They also do not necessarily have the same basic functionality as simple file share applications. [[https://nextcloud.com/|Nextcloud]] and [[https://owncloud.com/|Owncloud]] has build in file sharing.  However these platforms provided many other functions and hence setup and basic file sharing is more complex than simply file sharing only applications.  They also do not necessarily have the same basic functionality as simple file share applications.
  
-My implementation of [[https://wiki.kptree.net/doku.php?id=docker_notes:docker-nextcloud|Nextcloud]] on Docker.+I have been using Nextcloud and before that Owncloud from which Nextcloud was forked since circa 2013.  My server setup is described here: 
 +  *kptree  [[https://wiki.kptree.net/doku.php?id=docker_notes:docker-nextcloud|nextcloud]] is Docker based setup, that I currently use, since 2022. 
 +  *kptree [[https://wiki.kptree.net/doku.php?id=home_server:web_server_setup#nextcloud_setup|nextcloud]] is a VM setup previously I used.
  
 =====syncthing===== =====syncthing=====
Line 17: Line 23:
  
 Syncthing is a **free and open source** peer-to-peer file synchronization application available for Windows, macOS, Linux, Android, and BSD. It can sync files between devices on a local network, or between remote devices over the Internet. Data security and data safety are built into its design. Version 1.0 was released in January 2019 after five years in beta. Syncthing is a **free and open source** peer-to-peer file synchronization application available for Windows, macOS, Linux, Android, and BSD. It can sync files between devices on a local network, or between remote devices over the Internet. Data security and data safety are built into its design. Version 1.0 was released in January 2019 after five years in beta.
 +
 +The following is a systemd service file that can be used to start the syncthing service.  It is taken from https://github.com/syncthing/syncthing/releases and based upon the user specific type.  So create a new systemd service, ''/lib/systemd/system/syncthing@.service''
 +++++syncthing@.service|
 +<code>[Unit]
 +Description=Syncthing - Open Source Continuous File Synchronization for %I
 +Documentation=man:syncthing(1)
 +After=network.target
 +StartLimitIntervalSec=60
 +StartLimitBurst=4
 +
 +[Service]
 +User=%i
 +ExecStart=/usr/bin/syncthing serve --no-browser --no-restart --logflags=0
 +Restart=on-failure
 +RestartSec=1
 +SuccessExitStatus=3 4
 +RestartForceExitStatus=3 4
 +
 +# Hardening
 +ProtectSystem=full
 +PrivateTmp=true
 +SystemCallArchitectures=native
 +MemoryDenyWriteExecute=true
 +NoNewPrivileges=true
 +
 +# Elevated permissions to sync ownership (disabled by default),
 +# see https://docs.syncthing.net/advanced/folder-sync-ownership
 +#AmbientCapabilities=CAP_CHOWN CAP_FOWNER
 +
 +[Install]
 +WantedBy=multi-user.target</code> ++++
 +
 +''systemctl daemon-reload'' to update systemd.
 +
 +To use example: ''sudo systemctl status syncthing@user.service''
  
 ====References==== ====References====
Line 43: Line 84:
  
 ====Reference==== ====Reference====
 +  *The Linux Code [[https://thelinuxcode.com/unison-file-synchronization-between-two-servers/|How to Use Unison for Seamless File Synchronization Between Servers]]
 +  *Arch Linux [[https://man.archlinux.org/man/unison.1.en|Unison manual]]
 +  *[[https://www.cyberciti.biz/faq/unison-file-synchronizer-tool/|UNIX / Linux: HowTo Use unison File Synchronizer]]
 +  *[[https://github.com/bcpierce00/unison/blob/master/README.md|GIT Unison]]
 +  *[[https://www.cis.upenn.edu/~bcpierce/unison/|Unison Website]] superseded
   *[[https://github.com/bcpierce00/unison|Github Unison]] Old   *[[https://github.com/bcpierce00/unison|Github Unison]] Old
   *[[https://en.wikipedia.org/wiki/Unison_(software)|Wikipedia Unison]]   *[[https://en.wikipedia.org/wiki/Unison_(software)|Wikipedia Unison]]
Line 50: Line 96:
 =====privatebin===== =====privatebin=====
 [[https://privatebin.info/|PrivateBin]] is a minimalist, **open source** online pastebin where the server has zero knowledge of pasted data. [[https://privatebin.info/|PrivateBin]] is a minimalist, **open source** online pastebin where the server has zero knowledge of pasted data.
- +====Reference==== 
-[[https://github.com/PrivateBin/PrivateBin|Github PrivateBing]] +  *[[https://github.com/PrivateBin|Github Privatebin]] 
 +    *[[https://github.com/PrivateBin/PrivateBin|Github PrivateBin]] 
 +  *[[https://github.com/JamesTurland/JimsGarage/blob/main/PrivateBin/docker-compose.yaml|Jims Garage PrivateBin/docker-compose.yaml]]
 =====inotify===== =====inotify=====
  
Line 59: Line 106:
 ---- ----
  
-<- docker_notes:vpn|Back ^ docker_notes:index|Start page ^ docker_notes:hoarder|Next ->+<- docker_notes:vpn|Back ^ docker_notes:index|Start page ^ docker_notes:vnc|Next ->