diff --git a/Tips-and-Tricks.textile b/Tips-and-Tricks.textile index ed6237a..5066f65 100644 --- a/Tips-and-Tricks.textile +++ b/Tips-and-Tricks.textile @@ -97,3 +97,53 @@ export UNDERLINE='\\033[4m' +*Syncing todo.txt with ownCloud and webDav.* + +*Requirements:* + ownCloud instance URL & credentials.
+ ownCloud sync client for method 1
+ davfs2 support for method 2
+ + +*Method 1: ownCloud Sync Client* + + # Install the ownCloud Sync Agent. Directions "here":http://owncloud.org/sync-clients/
+ # Copy all of your todo.txt scripts, text files, and addons to a directory within the
+ default ownCloud sync directory. (Optionaly you can create a hard link to the ownCloud + directory but sym links do NOT work with the ownCloud sync client at this time).
+ # Follow the process described in:
**"Access todo.sh from anywhere in the file tree"** and **"Avoid typing todo.sh every time"**
+ + *Notes:*
+ + * Do this on all the devices where you would like your todo list available.
+ + * If the sync client is not an option or if it doesn't work so well for your distro
+ try method 2.
+ +*Method 2: WebDav mount.* + + # Install davfs2 support on your distro of choice. Directions for the command line and
+ the gui for most operating systems can be found "here":http://doc.owncloud.org/server/4.5/user_manual/connecting_webdav.html
+ # Follow steps 2 and 3 of Method1.
+ # A few options to consider:
+ + * Make the file system mount automatically using fstab.
+ * Use the guid and uid parameters on fstab to set group ownership and then add
+ users you'd like to give todo.txt access to instead of relying on the user
+ who mounts the webdav.
+ * Don't forget the 'exec' parameter. By default webdav won't let you
+ execute any files even if you change their file permissions!
+ * Read the mount.davfs2 man page for more exciting and useful options!
+ + *Special Note!:*
+ + You will receive errors when you try any of the todo features that require in-place + editing of files. You may receive an error like "sed: cannot rename /todo.txt: + I/O error. To insure you don't receive any errors, and can continue to happily use + ownCloud to sync your todo lists, disable file locks in davfs2.conf. + + Set use_locks to 0 in /etc/davfs2/davfs2.conf: +
+                  #use_locks 1
+                   use_locks 0
+