This process should be able to be applied to previous versions such as Ubuntu 24.04, 22.04 and 20.04.
This guide was adapted from the original post (https://ryanvanmassenhoven.com/posts/Nextcloud-agent-virtual-file/) but with Ubuntu/Snap/Flatpak examples.
Let’s get to it!
- Have the client installed, my recommendation is to use the Flatpak version to install Nextcloud as this means of distribution is generally more up-to-date than the apt repository version.
- Shutdown the Nextcloud Client
- Find the nextcloud.cfg
- Use vi or nano to add the following line under the
[General]
section of nextcloud.cfg:showExperimentalOptions=true
- Save nextcloud.cfg
- Find the qt5 directory by using
sudo find / -name qt5
- Find the nextcloudsync_vfs* files by using
sudo find / -name nextcloudsync_vfs*
- Copy the
nextcloudsync_vfs*
to yourqt5
directory.sudo cp
/var/lib/flatpak/app/com.nextcloud.desktopclient.nextcloud/x86_64/stable/2ca8436ed52fb12134028cc43abced17bf0d7a7d607a210c4536dab4c54a3624/files/lib/plugins/nextcloudsync_vfs* /usr/lib/x86_64-linux-gnu/qt5/plugins/ - Set the permissions
sudo chmod 644 /usr/lib/x86_64-linux-gnu/qt5/plugins/nextcloudsync_vfs_*
- Start the client and set the folder to
Enabled virtual file system
. Press the the three dots...
then clickEnabled virtual file system
- All done!