transforminteractive / alt-f

Automatically exported from code.google.com/p/alt-f
0 stars 0 forks source link

Add the davfs2 package #100

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Would it be possible to add the package davfs2 (and related dependencies) to 
Alt-F?

http://savannah.nongnu.org/projects/davfs2

My use case:

I want to create a permanent mount to webdav servers, for my NAS backup and 
easy access through my home network. Also, together with otixo cloud service 
(using webdav), I can mount services like Dropbox, GoogleDocs, Picasa and 
SkyDrive.

Original issue reported on code.google.com by miguel.d...@gmail.com on 26 Jun 2012 at 9:45

GoogleCodeExporter commented 9 years ago
What is your linux expertise? You will need it. And I'm getting ready for 
vacations...

Attached you find  neon and davfs2 packages that you can install using the 
'ipkg' command. Completely untested!

You will need to install libxml2 and probably the kernel-modules packages (fuse 
module)

You might have to create a davfs2 user and group.

davfs2-1.4.6 is currently unusable with uClibc, see 
http://savannah.nongnu.org/bugs/?31537

The attached package in really the current development trunk, which does not 
seems to be very active.

Please report back your findings.

Original comment by whoami.j...@gmail.com on 27 Jun 2012 at 12:11

Attachments:

GoogleCodeExporter commented 9 years ago
Olá João,

Infelizmente temo que o meu Linux seja relativamente básico. Posso contudo 
tentar instalar os pacotes com o ipkg, vou ver as instruções na Internet, mas 
temo que se encravar em algum ponto não consiga safar-me.

Depois digo-te alguma coisa! Boas férias!

Original comment by miguel.d...@gmail.com on 27 Jun 2012 at 9:42

GoogleCodeExporter commented 9 years ago
Olá Miguel,

I made a short and limited test, and it seems to work.
You have to first install the libxml2 and kernel-modules packages, using the 
webgui.

Download as root user the attached neon_0.29.6_arm.ipk and davfs2_1.4.6_arm.ipk 
to, eg, /root

~ # pwd
/root

~ # ls
davfs2_1.4.6_arm.ipk  neon_0.29.6_arm.ipk

~ # ipkg install neon_0.29.6_arm.ipk 
Installing neon (0.29.6) to /Alt-F...
Configuring neon
Successfully terminated.

~ # ipkg install davfs2_1.4.6_arm.ipk 
Installing davfs2 (1.4.6) to /Alt-F...
Configuring davfs2
Successfully terminated.

~ # addgroup -S -g 300 davfs2

~ # adduser -S -g "davfs2 user" -G davfs2 -u 300 -h /var/lib/davfs2 davfs2

~ # mkdir /mnt/dav

~ # mount -t davfs http://demo.sabredav.org/ /mnt/dav/
Please enter the username to authenticate with server
http://demo.sabredav.org/ or hit enter for none.
  Username: testuser
Please enter the password to authenticate user testuser with server
http://demo.sabredav.org/ or hit enter for none.
  Password: test 

~ # ls -l /mnt/dav/
total 3
drwxr-xr-x    3 root     root           136 Jun 27 16:03 addressbooks
drwxr-xr-x    3 root     root           136 Jun 27 16:02 calendars
drwx------    2 root     root            64 Jun 27 16:01 lost+found
drwxr-xr-x    3 root     root           136 Jun 27 16:02 principals
drwxr-xr-x    2 root     root           296 Jun 27 00:59 public

~ # cat /proc/mounts 
...
http://demo.sabredav.org/ /mnt/dav fuse 
rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,max_read=16384 0 0

~ # lsmod 
Module                  Size  Used by    Not tainted
fuse                   45348  2 
usblp                   8260  0 

~ # umount /mnt/dav

You now might have to set-up /etc/davfs2/secrets and /etc/davfs2/davfs2.conf.
For https/SSL things might become more complex, as you might have to make 
/etc/ssl/ca-bundle.crt (the Alt-F distributed list of know autorities) 
visible/available -- don't know if it is not picked-up automaticaly, you have 
to experiment (but https://www.crushftp.com/demo with user/pass=demo/demo seems 
to work, I was even able to store files there) 

Setting /etc/fstab with some default values will not survive a reboot, even if 
settings are saved in flash.

As the mount.davfs, umount.davfs and davfs2.conf manual pages are not 
distributed in the packages you have to search for them in the web.

Please report back your experiences
João

PS-Escrevi em Inglês para que outros possam beneficiar da conversa.

Original comment by whoami.j...@gmail.com on 27 Jun 2012 at 3:29

GoogleCodeExporter commented 9 years ago
Thanks!

Some differences on my screen from yours, when installing neon. Don't know if 
they are relevant:

# ipkg install neon_0.29.6_arm.ipk
Installing neon (0.29.6) to /Alt-F...
Installing libxml2 (2.7.8-1) to /Alt-F...
Downloading 
http://dl.dropbox.com/u/1555717/DNS-323/Alt-F/pkgs/unstable/libxml2_2.7.8-1_arm.
ipk
Configuring libxml2
Configuring neon
Successfully terminated.

I am being able to connect through https to otixo.com, I can list and download 
files, but not upload. I believe is something related with the permissions. As 
the folders are being listed with the permissions "rwxr-xr-x".

To list and download the files, I added one of the users (which I use to access 
my NAS) to the group davfs2.

Tonight I'll try to do more tests with other services and try to understand 
this question of the lack of permissions to upload files.

Original comment by miguel.d...@gmail.com on 28 Jun 2012 at 2:21

GoogleCodeExporter commented 9 years ago
I tested it, and it works when using the root user (copying, deleting listing). 
But, when I use another user, which also belongs to the davfs2 group, I can 
list, but not write...

Any ideas of what is missing?

Original comment by miguel.d...@gmail.com on 28 Jun 2012 at 11:14

GoogleCodeExporter commented 9 years ago
Vacations and a smartphone, is all I have now.

try linux.die.net/man/8/mount.davfs or find and follow a tutorial.

Original comment by Joao.fs....@gmail.com on 29 Jun 2012 at 12:29

GoogleCodeExporter commented 9 years ago
> But, when I use another user, which also belongs to the davfs2 group, I can 
list, but not write...

I can confirm this.
More work is needed, I'm afraid that I have to postpone this issue resolution 
for some time.

Original comment by whoami.j...@gmail.com on 10 Jul 2012 at 9:17

GoogleCodeExporter commented 9 years ago
Closed by svn commit 2142:

davfs2:
-install default configuration files in /usr/share/davfs2
-update patch, enabling ordinary users to mount fstab specified shares.
 'umount' is not allowed for ordinary users, so the 'sudo' package has to be
  installed and used

Original comment by whoami.j...@gmail.com on 25 Feb 2013 at 5:32

GoogleCodeExporter commented 9 years ago
doesnt work with https:

mount -t davfs https://www.box.com/dav /mnt/md0/webdav/
Please enter the username to authenticate with server
https://www.box.com/dav or hit enter for none.
  Username: myuser
Please enter the password to authenticate user thorsten@kost.sh with server
https://www.box.com/dav or hit enter for none.
  Password:
mount.davfs: Mounting failed.
SSL handshake failed: SSL disabled due to library version mismatch
mount: mounting https://www.box.com/dav on /mnt/md0/webdav/ failed: No such 
device

Original comment by Thorsten...@googlemail.com on 17 May 2013 at 6:51