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- 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
- 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"
- 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
- 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
- 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
- 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 &
- 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:
- 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!
- 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/