This blog post describes how to mount the T-Online Mediencenter via WebDAV on Ubuntu Linux and on Windows 7 (64bit).
Resources
- http://wiki.ubuntuusers.de/Internetanwendungen#Onlinespeicher (German)
- http://wiki.ubuntuusers.de/WebDAV (German)
- http://anderes-en.de/blog.php?mode=view&blog=11 (German)
How To for Mac OS X
- Open Finder.
- Press [⌘]-[k].
- Connect to
https://webdav.mediencenter.t-online.de - Enter email address and password.
How To for Ubuntu Linux
First, install the required package davfs2:
sudo apt-get install davfs2
SUID bit for mount.davfs to be able to mount as non-root user and add your user to the group davfs2:
sudo chmod u+s /usr/sbin/mount.davfs
sudo usermod -a -G davfs2 philipp
(Instead of sudo chmod ... in the first commands above you can also run sudo dpkg-reconfigure davfs2 and confirm YES (set SUID bit) )
Now we create the directory mediencenter in the user path ~/:
mkdir ~/mediencenter
Finally we are prepared to add the mountpoint to the configuration file /etc/fstab.
So edit the file using sudo gedit /etc/fstab and add the following lines:
# T-Online Mediencenter
https://webdav.mediencenter.t-online.de/ /home/username/mediencenter davfs rw,noauto,user 0 0
Now for the T-Online credentials we want to store them in a secured folder:
mkdir ~/.davfs2
touch ~/.davfs2/secrets
chmod 600 ~/.davfs2/secrets
gedit ~/.davfs2/secrets
In the file ~/.davfs2/secrets enter:
/home/username/mediencenter meine.email@t-online.de password
Now copy the davfs2.conf from the global configuration directory to your local config dir and change it:
cp /etc/davfs2/davfs2.conf ~/.davfs2/
gedit ~/.davfs2/davfs2.conf
Just the setting if_match_bug is important:
if_match_bug 1
cache_size 1 # MiByte
table_size 4096
delay_upload 1
gui_optimize 1
To mount the T-Online Mediencenter via WebDAV, now all you have to do is:
mount ~/mediencenter
Mount on Windows
http://www.html-world.de/program/webdav_4.php
to mount this on Windows 7 64bit (see http://foren.t-online.de/foren/read/service/medien-center/mc-webdav-laufwerk-unter-win7-64bit-doch-moeglich,442,4989391,fid=84b72be.html#msg-4991533 ) :
@echo off
echo WebDAV T-Online MC Zugriff
REM Hier bitte den Benutzername (ohne @t-online.de eingeben) sowie das Passwort
set usr=roadrunner2k
set pwd=geheim-und-nicht-für-dich!
REM Erzeugen des WebDAV Laufwerks
if exist T: goto trennen
goto verbinden
:verbinden
echo Die Verbindung zum WebDAV Laufwerk wird hergestellt.
Net use T: https://webdav.mediencenter.t-online.de /user:%usr% %pwd% /persistent:no
goto ende
:trennen
echo Das vorhandene Laufwerk wird getrennt.
net use T: /d
:ende
Explanation of the script:
- Tests if T: already exists.
- If true it will be disconnected.
- Should T: not exist, it would be created with the settings “usr” and “pwd”.
So you can first connect (first run of the script) and then disconnect (second run of the script).
First of all: Thank you for this post!
I followed it step by step and recognized that the connection was unstable (lots of 0-byte-files and some files were not even created). I figured out that there was the conf option in
/etc/fstabmissing, so now it looks like this and is seems to work:[...] zusammengestellt und getestet. z.B.: http://anderes-en.de/blog.php?mode=view&blog=11 http://blog.philippklaus.de/2010/04/mount-t-online-mediencenter-via-webdav/ Es wurden nur geringfuegige Aenderungen vorgenommen. [...]