View Single Post
Old 08-30-2012, 10:06 AM   #1
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Mini WebDAV HowTo

The WebDAV services being provided by knetconnect.com have so far focused on browser access.
Browser access because that works on Linux, Mac, and Windows.

For users running Linux, the WebDAV remote directory may be mounted into your filesystem tree.

The following is adapted from:
http://www.thetechrepo.com/id=537

In the following, only the sub-domain, domain, folder, username, password, uid and gid have been changed from that used by the current members.
(I left the puncuation alone.)

So substitute your actual values in the following example for:
Domain: Konnect.con
Folder: ourbox
Remote username: myname
Remote password: mypass
LocalUID: itsme
LocalGID: itsme

Install the davfs2 package for your distribution.
That is the package's most common (Debian/Ubuntu) name.
It should be available in all Linux distributions.
If not found in your distribution and you are using an rpm package based system, search rpmfind.net for davfs2. There where 58 flavors to choose from there yesterday.

Make a local directory to serve as a mountpoint:
Code:
mkdir -p /home/itsme/ourbox
The new directory does not have to be in your home directory and its name need not be the same name as the remote folder. Use what makes sense to you on your system.

You will need the UID and GID names of that directory. Use stat to find them:
Code:
stat ourbox
  File: `ourbox'
  Size: 4096          Blocks: 8          IO Block: 4096   directory
Device: 97eh/2430d    Inode: 494005      Links: 2
Access: (0775/drwxrwxr-x)  Uid: ( 1000/  itsme)   Gid: ( 1000/  itsme)
Access: 2012-08-30 07:54:32.000000000 -0500
Modify: 2012-08-30 07:54:32.000000000 -0500
Change: 2012-08-30 07:54:32.000000000 -0500
For each WebDAV remote, you need to alter two system configuration files.

With a text editor, as the "superuser", edit /etc/davfs2/secrets by appending the line:
Code:
sudo nano /etc/davfs2/secrets

Append a line, with substitutions of the fields shown above, to read:
http://Konnect.con/ourbox myname mypass
With a text editor, as the "superuser", edit /etc/fstab by appending the line:
Code:
sudo nano /etc/fstab

Append a line, with substitutions of the fields shown above, to read:
http://Konnect.con/ourbox    /home/itsme/ourbox    davfs    noauto,users,uid=itsme,gid=itsme 0 0
That is all of the one-time setup required.

To use the remote directory as if it was part of your system file tree:
(assuming you put the folder in your home directory as shown above)
Code:
sudo mount ~/ourbox
You also need to umount it when done and before re-booting.
davfs2 does a lot of local caching, it takes it a noticable amount of time to sync with the remote.

The service on knetconnect.com implements file locking (as MySQL locked transactions).
You should not have problems mentioned on the 'net associated with WebDAV systems that do not support file locking.

Remember that this is a SHARED remote directory and the only controls (other than access control) is common sense.
So make a sub-directory of the shared directory for things specific to your use (like putting your EclipseCDT workspace on it).

Other than your read/write speeds being limited by your Internet connection (KnetConnect.com is on 10Gbs fiber, IPv4/IPv6) this mounted remote will work the same as any of your local directories.
It will be a rare program that can tell the difference between the local and remote directories.

This service does not support all of the fancy features of a true "Cloud", such as www.box.com, but it doesn't have the monthly fees either.

Yes, Virgina, you can do the same on your Kindle if you don't mind changing system file contents.

Last edited by knc1; 08-30-2012 at 12:11 PM.
knc1 is offline   Reply With Quote