Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to connect webdav use nautilus
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
wenzi
n00b
n00b


Joined: 18 Jan 2019
Posts: 49

PostPosted: Fri Jul 03, 2020 9:58 am    Post subject: How to connect webdav use nautilus Reply with quote

I use the nautilus connect the webdav server ,I can see the files and movies ,but I cannot play the movies ,I think maybe the webdav server do not mount as local disk . so what can I do just by using nautilus, because I used davfs2 command, when I play the movies , it will download the whole file in my localdisk. I have install gfvs fuse. anyone help me ? thanks!
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1860
Location: United Kingdom

PostPosted: Fri Jul 03, 2020 6:07 pm    Post subject: Reply with quote

Try the following:

1. Install davfs2

2. Create mountpoint in home directory:

Code:
$ mkdir ~/webdav


3. Allow non-root users to mount WedDAV resources:

Code:
$ sudo chmod 4711 /usr/sbin/mount.davfs


4. Add a line to /etc/fstab (adjust URL, username and group as required):

Code:
https://www.wenzi.com/nextcloud/remote.php/webdav/ /home/wenzi/webdav/ davfs _netdev,noauto,user,uid=wenzi,gid=wenzi 0 0


5. Configure ~/.davf2s/secrets

Code:
$ grep -v "^#\|^$" ~/.davfs2/secrets
/home/wenzi/webdav      username


where 'username' is the username on the server.

Code:
$ chmod 600 ~/.davfs2/secrets


Add a bookmark in the file manager:

davs://192.168.1.165/nextcloud/remote.php/webdav

(or whatever the IP address of the server is)
_________________
Clevo W230SS: amd64 nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC eudev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
wenzi
n00b
n00b


Joined: 18 Jan 2019
Posts: 49

PostPosted: Sat Jul 04, 2020 3:22 am    Post subject: Reply with quote

Fitzcarraldo wrote:
Try the following:

1. Install davfs2

2. Create mountpoint in home directory:

Code:
$ mkdir ~/webdav


3. Allow non-root users to mount WedDAV resources:

Code:
$ sudo chmod 4711 /usr/sbin/mount.davfs


4. Add a line to /etc/fstab (adjust URL, username and group as required):

Code:
https://www.wenzi.com/nextcloud/remote.php/webdav/ /home/wenzi/webdav/ davfs _netdev,noauto,user,uid=wenzi,gid=wenzi 0 0


5. Configure ~/.davf2s/secrets

Code:
$ grep -v "^#\|^$" ~/.davfs2/secrets
/home/wenzi/webdav      username


where 'username' is the username on the server.

Code:
$ chmod 600 ~/.davfs2/secrets


Add a bookmark in the file manager:

davs://192.168.1.165/nextcloud/remote.php/webdav

(or whatever the IP address of the server is)

it works ,but have a problem ,when I open the ~/webdav ,it very slow ,I think it may download the whole file in the network.
under the ubuntu I just use nautilus connect the webdav without davfs2 ,input the username and password ,it can be use as localdisk. what the defference between them?
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1860
Location: United Kingdom

PostPosted: Mon Jul 06, 2020 12:06 am    Post subject: Reply with quote

I don't have GNOME installed in Gentoo, but I have KDE installed in Gentoo. Without davfs2, the Dolphin file manager does the same as you say Nautilus does in GNOME, i.e. it copies the complete video to the local machine before playing it. I don't know if the behaviour can be changed. I also tried the PCManFM file manager in Lubuntu 18.04 (LXDE) with and without davfs2, and the behaviour of PCManFM without davfs2 looks to be the same as you observe with Nautilus in GNOME, i.e. it downloads the complete video first.

When I use davfs2 in Lubuntu 18.04, though, it does cache the video. I can see it is doing that because the video stops and starts as it plays. But it is still very slow, with too many interruptions. The cache size and other parameters in davfs2 can be adjusted in the file ~/.davfs2/davfs2.conf or /etc/davfs2/davfs2.conf (see man davfs2.conf for details). It doesn't look easy to configure, though. In my case davfs2 performs much better in Lubuntu 18.04 than it does in Gentoo KDE Plasma 5. I still find it too slow to use in Lubuntu 18.04, but I find davfs2 completely unusable in Gentoo KDE. The KDE Plasma Network Monitor widget indicates a very high download rate all the time, even when all I am trying to do is open a shared folder via WebDAV, which takes minutes to open. So I don't think I can be of more help. Actually, if someone knows how to make WebDAV browsing faster, I would also be interested. WebDAV works a lot faster on my phone running Android 9 than in either Gentoo or Lubuntu.

P.S. I also tried with Ubuntu 20.04 in a VM, and performance is also poor in that.
_________________
Clevo W230SS: amd64 nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC eudev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
wenzi
n00b
n00b


Joined: 18 Jan 2019
Posts: 49

PostPosted: Tue Jul 07, 2020 9:06 am    Post subject: Reply with quote

Fitzcarraldo wrote:
I don't have GNOME installed in Gentoo, but I have KDE installed in Gentoo. Without davfs2, the Dolphin file manager does the same as you say Nautilus does in GNOME, i.e. it copies the complete video to the local machine before playing it. I don't know if the behaviour can be changed. I also tried the PCManFM file manager in Lubuntu 18.04 (LXDE) with and without davfs2, and the behaviour of PCManFM without davfs2 looks to be the same as you observe with Nautilus in GNOME, i.e. it downloads the complete video first.

When I use davfs2 in Lubuntu 18.04, though, it does cache the video. I can see it is doing that because the video stops and starts as it plays. But it is still very slow, with too many interruptions. The cache size and other parameters in davfs2 can be adjusted in the file ~/.davfs2/davfs2.conf or /etc/davfs2/davfs2.conf (see man davfs2.conf for details). It doesn't look easy to configure, though. In my case davfs2 performs much better in Lubuntu 18.04 than it does in Gentoo KDE Plasma 5. I still find it too slow to use in Lubuntu 18.04, but I find davfs2 completely unusable in Gentoo KDE. The KDE Plasma Network Monitor widget indicates a very high download rate all the time, even when all I am trying to do is open a shared folder via WebDAV, which takes minutes to open. So I don't think I can be of more help. Actually, if someone knows how to make WebDAV browsing faster, I would also be interested. WebDAV works a lot faster on my phone running Android 9 than in either Gentoo or Lubuntu.

P.S. I also tried with Ubuntu 20.04 in a VM, and performance is also poor in that.

I install gentoo in the vbox ,use xfce4 ,it works ,but I don't know why my system can not work ,finally I reinstall the system ,and everyting get work. BUT ,there is a funny things if I use gdm or sddm ,nautilus or thunar connect the webdav the connectting is very slow ,maybe 1 min ,get me the dialoge ,and I input the username and password ,will wait 1 min .but if I use lightdm , immediately!! I don't know why
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum