GNU/Linux operating systems
First, as an administrator
fallow the Links for the Installation, if you have questions drop me a line and I will do my best to Help you.
If you are an Advance user you shouldn't have any problems at all.
- Install the WebDAV support:
sudo apt-get install davfs2
- Reconfigure davfs2 to allow access to normal users:
sudo dpkg-reconfigure davfs2
(select Yes when prompted) - Add the users you want to be able to mount the share to the
davfs2
group: sudo usermod -aG davfs2 <user>
- Edit
/etc/fstab
, and add the following line for each user who wants to mount the folder (with your details where appropriate)- For version 1.x:
ADDRESS/webdav/owncloud.php /home/<username>/owncloud davfs user,rw,noauto 0 0
- For version 2.x:
ADDRESS/files/webdav.php /home/<username>/owncloud davfs user,rw,noauto 0 0
Then, as each user who wants to mount the folder
- Create the folders
owncloud
& .davfs2
in your home directory - Create the file
secrets
inside .davfs2
, fill it with the following (with your credentials where appropriate)- For version 1.x:
ADDRESS/webdav/owncloud.php <username> <password>
- For version 2.x:
ADDRESS/files/webdav.php <username> <password>
- Ensure the file is only writable by you either through the file manager, or via
chmod 600 ~/.davfs2/secrets
- Run the command:
mount ~/owncloud
- To automatically mount the folder on login, add the command you used in step 4 to
~/.bashrc
Known issues:
- Resource temporarily unavailable
- If you experience trouble when you create a file in the directory, edit
/etc/davfs2/davfs2.conf
and add use_locks 0
- Certificate warnings
- If you use a self-signed certificate, you will get a warning. If you are willing to take the risk of a man in the middle attack, run this command instead:
echo "y" | mount ~/owncloud > /dev/null 2>&1
Dolphin file manager (KDE, Kubuntu)
- Open Dolphin and click on where it says Network in the left hand Places column.
- Click on the icon labeled Add a Network Folder
- It should come up with WebDAV already selected. Make sure it is and then click Next
- Enter the following settings:
- Name: The name you’ll see in the Places bookmark, for example ownCloud
- User: Your ownCloud username you use to log in, for example admin
- Server: Your ownCloud domain name, for example myowncloud.com (without http:// before or directories afterwards)
- Folder: Enter
/files/webdav.php
- Create icon checkbox: Tick to get a bookmark in the Places column
- Port & Encrypted checkbox: Leave as it is unless you have special settings or an SSL certificate.
- Click Finish and enter your ownCloud password
You’re done! You can now save, load, sync files in your ownCloud through Dolphin and other KDE apps. Awesome!
Tidak ada komentar:
Posting Komentar