Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Fri Sep 03, 2010 4:43 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 

Is the How To good and could it helps you?
yes 0%  0%  [ 0 ]
no 0%  0%  [ 0 ]
Ja 100%  100%  [ 1 ]
Nein 0%  0%  [ 0 ]
Total votes : 1
Author Message
 Post subject: [How to] Webdav on Freelink - davfs2&(fuse||coda)&mount&SSL
PostPosted: Mon Dec 24, 2007 12:39 am 
Offline
Newbie

Joined: Fri Sep 07, 2007 6:12 pm
Posts: 30
Location: Cologne, Germany
Hi

i'm using freelink with kernel 2.6.22 and I wanted to mount my gmx mediacenter account to trade files with my PC at work.
EDIT by Moon: German Translation - Webdav Speicherplatz von einem E-Mail Provider verwenden


  1. Compile your Kernel with coda and fuse- Activate "Coda file system support"
    -> I used Kernel 2.6.22

    Code:
    File Systems ->
        -> Network File Systems ->
               ->  <M> Coda file system support (advanced network fs)


    Code:
    File Systems ->
       -> <M> Kernel automounter support
       -> <M> Filesystem in Userspace support


    -> After compiling depmod -a & modprobe coda & modprobe fuse
    -> look at dmesg

    Coda Kernel/Venus communications, v6.0.0, coda@cs.cmu.edu
    fuse init (API version 7.8)

    You can download the Kernel Modules here: Download from goat|work (Thanks), Mirror

  2. Install davfs2
    Code:
    aptitude update
    aptitude upgrade
    aptitude install davfs2

    mkdir /tmp/test
    mount.davfs https://mediacenter.gmx.net /tmp/test/


    If you have Problems look at "Problems with gmx and davfs2 1.1.2"

  3. Create/Edit secrets file ( I use it for an gmx.de account)
    Code:
    nano /etc/davfs2/secrets

    ADD (for GMX):
    https://mediacenter.gmx.net     USER      PASSWORD


  4. Edit /etc/davfs2/davfs2.conf
    Code:
    nano /etc/davfs2/davfs2.conf

    #dav_user        davfs2            # system wide config file only
    #dav_group       fileserver            # system wide config file only
    #ignore_home                       # system wide config file only
    kernel_fs       fuse
    secrets         /etc/davfs2/secrets # user config file only
    ask_auth        0
    gui_optimize    0


  5. Mount it!
    # "https://mediacenter.gmx.net" - Link to gmx Mediacenter -> Add your Webdav Provider
    # "/myfolder_is_here" is your mount point.
    # "SAMBA_USER" - Your Samba User
    # "SAMBA_GROUP" - Your Samba Group

    mkdir /myfolder_is_here
    mount -t davfs -o conf=/etc/davfs2/davfs2.conf,uid=SAMBA_USER,gid=SAMBA_GROUP,user=davfs2 https://mediacenter.gmx.net /myfolder_is_here

  6. Mount on startup
    Code:
    nano /etc/rc.local

    ADD:
    # Mount my GMX Account
    mount -t davfs -o conf=/etc/davfs2/davfs2.conf,uid=SAMBA_USER,gid=SAMBA_GROUP,user=davfs2 https://mediacenter.gmx.net /myfolder_is_here &

  7. Encryption
    I dont want to use it but when you think that you are need a encryption for your provider then please look at these links:

  8. Troubleshooting

    • Compiling Error
      Code:
      In file included from fs/coda/psdev.c:45:
      include/linux/coda.h:248: error: expected specifier-qualifier-list before 'u_quad_t'
      make[2]: *** [fs/coda/psdev.o] Error 1
      make[1]: *** [fs/coda] Error 2
      make: *** [fs] Error 2

      You have two possibilities now:
      First: You can download 2005q3 and compile it
      Second: Forget Coda and use only Fuse

    • Problems with gmx and davfs2 1.1.2
      If you get an error message "mount.davfs: Connection failed, mounting anyway. File system will only be usable when connection comes up." then please update davfs2. This is a problem of the davfs2 version and gmx mediacenter.
      To see what version do you use type in bash: mount.davfs -V

      Code:
      aptitude remove davfs2
      aptitude install libneon26-dev libxml2-dev

      # Install davfs2 1.2.2
      mkdir /usr/src/davfs
      cd /usr/src/davfs
      wget http://kent.dl.sourceforge.net/sourceforge/dav/davfs2-1.2.2.tar.gz
      tar xvfz davfs2-1.2.2.tar.gz
      cd davfs2-1.2.2

      # Tip: I read "use --with-group=" -> But it doesnt work for me
      ./configure --prefix=/usr --with-ssl --with-group=GROUP CXXFLAGS="-O2 -mtune=arm9tdmi -march=armv5"
      make && make install

      # Add user and group
      groupadd davfs2
      adduser davfs2 --no-create-home --ingroup davfs2

      # Create a Symlink
      ln -s /usr/share/davfs2/ /etc/davfs2

      # Change Owner of secrets file and secure it
      chown root:root /etc/davfs2/secrets
      chmod 600 /etc/davfs2/secrets

      aptitude remove libneon26-dev libxml2-dev

    • Other Problems
      Use the debug mode
      Code:
      nano /etc/davfs2/davfs2.conf

      ADD:
      debug most


      And now look at /var/log/syslog with "cat /var/log/syslog"

    Hope this helps. Good luck!

  9. Useful Links

Greetz Moon


EDIT:
Tip 4 all GMX Mediacenter users.
If you have more than one account (like private and business) you can mount it with a trick.
You can use your GMX Account number ("Kundennummer") for login.

# Edit /etc/davfs2/davfs2.conf
Code:
https://GMX_PRIVATE_NUMBER@mediacenter.gmx.net     USER      PASSWORD
https://GMX_BUSINESS_NUMBER@mediacenter.gmx.net     USER      PASSWORD


# Now you can mount your Accounts
Code:
mount -t davfs -o conf=/etc/davfs2/davfs2.conf,uid=SAMBA_BUSINESS_USER,gid=SAMBA_GROUP,user=davfs2 https://GMX_BUSINESS_NUMBER@mediacenter.gmx.net /your_business_folder/
mount -t davfs -o conf=/etc/davfs2/davfs2.conf,uid=SAMBA_PRIVATE_USER,gid=SAMBA_GROUP,user=davfs2 https://GMX_PRIVATE_NUMBER@mediacenter.gmx.net /your_private_folder/

_________________
LSPro, Freelink, 2.6.22
Meine Tutorials auf deutsch


Last edited by MoonMaker on Sun Mar 30, 2008 2:16 pm, edited 10 times in total.

Top
 Profile  
 
 Post subject: Re: [How to] Webdav on Freelink - davfs2/fuse/mount + SSL/TLS
PostPosted: Mon Dec 24, 2007 8:51 am 
Offline
Moderator
User avatar

Joined: Tue May 23, 2006 9:20 pm
Posts: 366
Location: Chicago USA
I just wanted to add that I ran through these instructions but am coming into this fatal error

Code:
In file included from fs/coda/psdev.c:45:
include/linux/coda.h:248: error: expected specifier-qualifier-list before 'u_quad_t'
make[2]: *** [fs/coda/psdev.o] Error 1
make[1]: *** [fs/coda] Error 2
make: *** [fs] Error 2


I'm using codesourcery's arm-2007q1 compiler, and have tried adding the kernel support to both the 2.6.22 make modules and the 2.6.16-gpl make modules.

I may try to download the 2005q3 or the 2007q3 to test, what did you use moonmaker?

_________________
1 LS-GL: (FreeLink - 2.6.22 kernel)- backup and media server...
As of June 11, 2010:
admin@LS320:~$ uptime
20:23:40 up 417 days, 20:09, 1 user, load average: 0.20, 0.21, 0.30

That's only because I had to move that time ago. Love this box and this community, wish I had more time to dedicate to it.


Top
 Profile  
 
 Post subject: Re: [How to] Webdav on Freelink - davfs2/fuse/mount + SSL/TLS
PostPosted: Mon Dec 24, 2007 10:19 am 
Offline
Newbie

Joined: Fri Sep 07, 2007 6:12 pm
Posts: 30
Location: Cologne, Germany
Hi Goat,

thats crazy. I dont know why you love Error Msgs. :-) I'm using 2005q3 and it works well.
If you dont want to download 2005q3 then only use fuse and forget coda.

greetz Moon

_________________
LSPro, Freelink, 2.6.22
Meine Tutorials auf deutsch


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group