How To Install ownCloud 7 on CentOS 6.5 - Page 2
4 Mounting the ownCloud 7 share with Ubuntu 14.04 Desktop
We can mount the shared point with the other machines, here I will show you the way to process to moint it through WebDAV tools in another Ubuntu Desktop machine. There are two methods to use ownCloud 7 as a client in Ubuntu Desktop.
- Manual mount by giving entries installing davfs2
- By installing ownCloud 7 client
I will explain both of them, you can use any of them to mount.
4.1 Manual mount through davfs2
I am running the command on my second machine server2.example.com:
sudo apt-get update
sudo apt-get install davfs2
We will allow non-root users to mount and unmount the WebDAV shares by typing:
sudo dpkg-reconfigure davfs2Should unprivileged users be allowed to mount WebDAV resources? <--Yes
Moving ahead I will be adding my username=srijan to WebDAV group:
sudo usermod -aG davfs2 srijan
We want to make the permanent mount point in server2.example.com, so I will give the following entries in the /etc/fstab:
sudo vi /etc/fstab
[...] 192.168.0.100/owncloud/remote.php/webdav /home/srijan/owncloud davfs user,rw,noauto 0 0 |
Now in user=srijan's home drive I will create directories, one to mount the share point and another to hold the configurations details:
mkdir ~/owncloud
mkdir ~/.davfs2
Further create a file as:
vi ~/.davfs2/secrets
192.168.0.100/owncloud/remote.php/webdav owncloud database_password |
Ensure that the file is writable by only you by using the file manager or by issuing the following command:
chmod 600 ~/.davfs2/secrets
Now we will mount it as follows:
mount owncloud/srijan@server2:~$ sudo mount owncloud/
Please enter the username to authenticate with server
192.168.0.100/owncloud/remote.php/webdav/ or hit enter for none.
Username: owncloud
Please enter the password to authenticate user owncloud with server
192.168.0.100/owncloud/remote.php/webdav/ or hit enter for none.
Password: database_password
srijan@server2:~$
Note: The given credentials will be used further, so please take a note of it:
Username: owncloud
Password: database_password
Further if you find any permissions error in the folder then change the folder permission as owner of the user:
chown -R srijan:srijan owncloud/
To automatically mount the folder on login at server2.example.com, add the mount ~/owncloud command to the ~/.bashrc file.
vi ~/.bashrc
[...] |
After mounting successfully you can get some error Resource temporarily unavailable and Certificate warnings then it can be removed as follows:
- For Resource temporarily unavailable:
vi /etc/davfs2/davfs2.conf
[...] |
- For 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
4.2 ownCloud 7 client installation by ownCloud
Open link and select the distribution Ubuntu 14.04, further in your Ubuntu Desktop put the commands:
cd /tmp
wgethttp://download.opensuse.org/repositories/isv:ownCloud:desktop/xUbuntu_14.04/Release.key
sudo apt-key add - < Release.key
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/xUbuntu_14.04/ /' >> /etc/apt/sources.list.d/owncloud-client.list"
sudo apt-get update
sudo apt-get install owncloud-client
It will install ownCloud-client in the Ubuntu 14.04 Desktop. Thats it open ownCloud-client
Put the server path as 192.168.0.100/owncloud and then put your credentials of username=owncloud and password=database_password
Further if you are using it without https theen you can ignore the error and move ahead:
Again:
Then it will map the ownCloud with your dekstop:
And then finally all data will get synced:
5 Mounting the ownCloud 7 share with Windows 7
We can access the data from ownCloud 7 server on a window machine also. There are many methods to this, you can check this link for them. I will explain two of them.
Simply install the client and it will work for you.
Enter the details http://192.168.0.100/owncloud:
Again give your credentials( user=owncloud and password=database_password) which we have settup while installing the ownCloud 7 and the window will appear:
You can open the local folder to access the files locally.
- Cyberduck ver 4.5.
There is another method to access the ownCloud 7 server. I will be using Cyberduck for that. For this you need to install it from this URL.
Download the installer and install it simply by doing next --next.
Cyberduck has a very nice user interface.
Enter the credentials & connect 192.168.0.100/owncloud/remote.php/webdav with user=owncloud and password=database_password:
Give the credentials and it will connect.
6 Links
- ownCloud 7 : https://owncloud.com/
- Cyberduck : http://cyberduck.io/?l=en
- CentOS : http://www.centos.org/