サーバー
webdav
davfs2
# apt-get install davfs2
Sould unprivileged users be allowed to mount WEBDAV resources ? -> Yes
# vi /etc/davfs2/secrets
https://dav.box.com/dav xxxxx@mail.net PWD
# chmod go-rwx /etc/davfs2/secrets
(参考) http://dorodorodoroid.hatenablog.com/entry/2015/02/01/090657
以下、autofsを使う場合は不要
# vi /etc/fstab https://dav.box.com/dav/ /mnt/box davfs user,noauto 0 0 # mount -t davfs -o rw https://dav.box.com/dav /mnt/box
autofs
# apt-get install autofs
# vi /etc/auto.master
/net /etc/auto.webdav
# vi /etc/auto.webdav
box -fstype=davfs,rw,dir_mode=0777,file_mode=0666 :https://dav.box.com/dav (コロンの後にスペースをいれてはいけない)
# service autofs restart
メモ
dropbox dav接続は、サードパーティのサービスがあるけど有料…
参考
update-rc.d
update-rc.dの場合
# update-rc.d protect-fs default (登録)
# update-rc.d protect-fs remove (削除)
insservの場合
# insserv -d apache (登録)
# insserv -r apache (削除)
sysv-rc-confもある
(参考) http://server-setting.info/debian/debian-like-chkconfig.html
run level
1: シングルユーザモード 5: マルチユーザモード(GUI) 3: マルチユーザモード(txt)