Warum nicht über Webdav ? ipk download hier
Den Demo Account konnte ich einhängen
Log:
Spoiler anzeigen
root@vuduo4k:# useradd davfs2
root@vuduo4k:# echo PASSWORD > pw
root@vuduo4k:# echo y >> pw
root@vuduo4k:# mount -t davfs https://demo2.nextcloud.com/remote.php/dav/files/NKdrxxxxxxx9QcN/ -o username=<username> /xxx < pw
Password: mount.davfs: the server certificate is not trusted
issuer: Let's Encrypt, US
subject: demo2.nextcloud.com
identity: demo2.nextcloud.com
fingerprint: 3e:a3:b3:9e:db:e7:a6:9c:a3:f2:7e:4f:f7:1a:7d:e4:bb:b9:93:2d
You only should accept this certificate, if you can
verify the fingerprint! The server might be faked
or there might be a man-in-the-middle-attack.
Accept certificate for this session? [y,N] mount.davfs: warning: the server does not support locks
root@vuduo4k:# ls /xxx
Documents Nextcloud Manual.pdf Nextcloud intro.mp4 Nextcloud.png Photos lost+found
root@vuduo4k:/# mount
/dev/root on / type ext4 (rw,relatime,nodelalloc,data=journal)
devtmpfs on /dev type devtmpfs (rw,relatime,size=275436k,nr_inodes=27128,mode=755)
...
https://demo2.nextcloud.com/remote.php/dav/files/NKdrxxxxxx9QcN/']NKdrxxxxxx9QcN on /xxx type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,max_read=16384)
root@vuduo4k:/#
EDIT:
automatisiert funktioniert das dann so:
Spoiler anzeigen
root@vuduo4k:~# echo "use_locks 0" >> /etc/davfs2/davfs2.conf
root@vuduo4k:~# echo "trust_server_cert /etc/davfs2/nextcloud.pem" >> /etc/davfs2/davfs2.conf
root@vuduo4k:~# echo "https://demo2.nextcloud.com/remote.php/dav/files/7ZKg9xxxxxxWmJpb/ 7ZKg9xxxxxWmJpb PASSWORD" >> /etc/davfs2/secrets
root@vuduo4k:~# openssl s_client -showcerts -connect demo2.nextcloud.com:443 </dev/null 2>/dev/null | openssl x509 -outform PEM > /etc/davfs2/nextcloud.pem
root@vuduo4k:~# mkdir /media/nextcloud
manuell mounten geht so:
root@vuduo4k:~# mount -t davfs https://demo2.nextcloud.com/remote.php/dav/files/7ZKg9xxxxWmJpb/ /media/nextcloud
zum automatischen mounten mit jedem Systemstart per fstab sollte das so funktionieren (ungetestet):
root@vuduo4k:~# echo "https://demo2.nextcloud.com/remote.php/dav/files/7ZKg9xxxxWmJpb/ /media/nextcloud fuse 0 0" >> /etc/fstab
root@vuduo4k:~# reboot
oder ein Script erstellen, welches beim Booten automatisch den Mount Befehl ausführt.
Den Demo Account konnte ich einhängen
Log:
root@vuduo4k:# useradd davfs2
root@vuduo4k:# echo PASSWORD > pw
root@vuduo4k:# echo y >> pw
root@vuduo4k:# mount -t davfs https://demo2.nextcloud.com/remote.php/dav/files/NKdrxxxxxxx9QcN/ -o username=<username> /xxx < pw
Password: mount.davfs: the server certificate is not trusted
issuer: Let's Encrypt, US
subject: demo2.nextcloud.com
identity: demo2.nextcloud.com
fingerprint: 3e:a3:b3:9e:db:e7:a6:9c:a3:f2:7e:4f:f7:1a:7d:e4:bb:b9:93:2d
You only should accept this certificate, if you can
verify the fingerprint! The server might be faked
or there might be a man-in-the-middle-attack.
Accept certificate for this session? [y,N] mount.davfs: warning: the server does not support locks
root@vuduo4k:# ls /xxx
Documents Nextcloud Manual.pdf Nextcloud intro.mp4 Nextcloud.png Photos lost+found
root@vuduo4k:/# mount
/dev/root on / type ext4 (rw,relatime,nodelalloc,data=journal)
devtmpfs on /dev type devtmpfs (rw,relatime,size=275436k,nr_inodes=27128,mode=755)
...
https://demo2.nextcloud.com/remote.php/dav/files/NKdrxxxxxx9QcN/']NKdrxxxxxx9QcN on /xxx type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,max_read=16384)
root@vuduo4k:/#
EDIT:
automatisiert funktioniert das dann so:
root@vuduo4k:~# echo "use_locks 0" >> /etc/davfs2/davfs2.conf
root@vuduo4k:~# echo "trust_server_cert /etc/davfs2/nextcloud.pem" >> /etc/davfs2/davfs2.conf
root@vuduo4k:~# echo "https://demo2.nextcloud.com/remote.php/dav/files/7ZKg9xxxxxxWmJpb/ 7ZKg9xxxxxWmJpb PASSWORD" >> /etc/davfs2/secrets
root@vuduo4k:~# openssl s_client -showcerts -connect demo2.nextcloud.com:443 </dev/null 2>/dev/null | openssl x509 -outform PEM > /etc/davfs2/nextcloud.pem
root@vuduo4k:~# mkdir /media/nextcloud
manuell mounten geht so:
root@vuduo4k:~# mount -t davfs https://demo2.nextcloud.com/remote.php/dav/files/7ZKg9xxxxWmJpb/ /media/nextcloud
zum automatischen mounten mit jedem Systemstart per fstab sollte das so funktionieren (ungetestet):
root@vuduo4k:~# echo "https://demo2.nextcloud.com/remote.php/dav/files/7ZKg9xxxxWmJpb/ /media/nextcloud fuse 0 0" >> /etc/fstab
root@vuduo4k:~# reboot
oder ein Script erstellen, welches beim Booten automatisch den Mount Befehl ausführt.
Rechtschreibfehler sind beabsichtigt, sie fördern ein genaueres Lesen
Debug Log aktivieren Putty Telnet Screenshots erstellen
Debug Log aktivieren Putty Telnet Screenshots erstellen