linux:sharepoint
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:sharepoint [2021/11/24 14:55] – [Use in fstab] Wulf Rajek | linux:sharepoint [2023/05/29 11:55] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 132: | Line 132: | ||
</ | </ | ||
+ | ====== systemd service ====== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | Fuse config required for user systemd service: | ||
+ | <code - / | ||
+ | # Allow non-root users to specify the allow_other or allow_root mount options. | ||
+ | user_allow_other | ||
+ | </ | ||
+ | |||
+ | <code - rclone@.service> | ||
+ | # User service for Rclone mounting | ||
+ | # | ||
+ | # Place in ~/ | ||
+ | # File must include the ' | ||
+ | # As your normal user, run | ||
+ | # | ||
+ | # You can now start/ | ||
+ | # | ||
+ | # | ||
+ | |||
+ | [Unit] | ||
+ | Description=rclone: | ||
+ | Documentation=man: | ||
+ | After=network-online.target | ||
+ | Wants=network-online.target | ||
+ | AssertPathIsDirectory=%h/ | ||
+ | |||
+ | [Service] | ||
+ | Type=notify | ||
+ | ExecStart= \ | ||
+ | / | ||
+ | --config=%h/ | ||
+ | --fast-list \ | ||
+ | --vfs-cache-mode writes \ | ||
+ | --vfs-cache-max-size 100M \ | ||
+ | --log-level INFO \ | ||
+ | --log-file / | ||
+ | --umask 022 \ | ||
+ | --allow-other \ | ||
+ | %i: %h/mnt/%i | ||
+ | ExecStop=/ | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=default.target | ||
+ | </ | ||
+ | |||
+ | To hide Sharepoint' | ||
+ | < | ||
+ | --exclude "/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== WebDAV2 process ====== | ||
+ | |||
+ | # | ||
+ | |||
+ | < | ||
+ | sudo apt-get install -y davfs2 | ||
+ | # | ||
+ | sudo chmod 777 / | ||
+ | echo " | ||
+ | |||
+ | wget https:// | ||
+ | |||
+ | python get-sharepoint-auth-cookie.py https:// | ||
+ | |||
+ | sed -i "s/ //g" cookie.txt | ||
+ | COOKIE=$(cat cookie.txt) | ||
+ | sudo chmod 777 / | ||
+ | for MPATH in {Funds/ | ||
+ | do | ||
+ | echo " | ||
+ | echo " | ||
+ | echo "" | ||
+ | done | ||
+ | |||
+ | for MPATH in {Funds/ | ||
+ | do | ||
+ | echo " | ||
+ | done | ||
+ | |||
+ | sudo chmod 755 / | ||
+ | |||
+ | sudo usermod -a -G davfs2 $USER | ||
+ | |||
+ | #apply the new group in the shell | ||
+ | su - $USER | ||
+ | |||
+ | for PATH in {funds, | ||
+ | do | ||
+ | mkdir -p ~/ | ||
+ | mount ~/ | ||
+ | done; | ||
+ | </ | ||
+ | |||
+ | The cookie will become invalid after about 3 weeks of inactivity. | ||
+ | |||
+ | fstab entry example | ||
+ | < | ||
+ | https:// | ||
+ | </ | ||
+ | |||
+ | https:// |
linux/sharepoint.1637765749.txt.gz · Last modified: (external edit)