This quick start guide helps you to install, perform configuration and user management tasks for ownCloud server. This includes configuring ownCloud components, creating user accounts and enabling users to connect to ownCloud server.
ownCloud is a one stop solution for all your content collaboration needs. It greatly helps you to share and synchronize data and work on it whenever and wherever required irrespective of your device and its operating system. It is more flexible and secure making it more reliable and safe.
- Open source file synchronization and sharing
- Easily configurable and manageable
- Supports clients with wide range of operating systems
- Highly scalable
- Available in different Editions serving different purposes
Name of the Edition | Type | Support Options | Purpose |
---|---|---|---|
Free Community Edition | Free | community support | Core Server for all editions |
Standard Subscription | Paid | Support for core server | Provides support for the core Server |
Enterprise Subscription | Paid | Support for Enterprise Edition | Provides support for the core Server and enterprise applications |
Docker is an application that simplifies the process of managing application processes in containers. Containers let you run your applications in resource-isolated processes. They’re similar to virtual machines, but containers are more portable, more resource-friendly, and more dependent on the host operating system.
Before installing Docker Engine on a host machine, set up the Docker prerequisite packages which let apt use packages over HTTPS using the following commands:
user@systems $ sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
-
Adding official Docker GPG trust key
-
Apt-get package management uses public-key cryptography to authenticate and download packages. Public key cryptography is based on pairs of keys- a public key can be shared whereas a private key is kept a secret.
apt-key
is a program that is used to manage a keyring of gpg key for secure apt.Add trusted key by running the following shell commands to trust the repository
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
-
To validate the key available at
/etc/apt/trusted.gpg.d/
run the below command to check whether the Docker Key id is displayed.sudo apt-get list
-
-
Add Repository URL to source respository list by the following command:
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
-
By running the command
sudo apt-get update
you can confirm that the your list of packages from all repositories and PPA's are up to date. If you don't run this command, you may be getting older versions of packages. -
Install the latest version of Docker community edition along with its dependencies.
sudo apt-get install docker-ce
On successful execution, 5:20.10.5
3-0ubuntu-focal package will be installed on your system. -
Use the following command to verify whether the Docker is installed, the daemon has started, and the process is enabled to start on boot.
sudo systemctl status docker
The output should be similar to the following, showing that the service is active and running:
● docker.service - Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/docker.service.d └─options.conf Active: active (running) since Sat 2021-03-20 14:06:27 IST; 2h 21min ago TriggeredBy: ● docker.socket Docs: https://docs.docker.com Main PID: 13272 (dockerd) Tasks: 28 Memory: 2.0G CGroup: /system.slice/docker.service ├─13272 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
-
Docker commands can also be executed without prefixing sudo or being within the docker group by adding current user into docker group.
sudo usermod -aG ${USER} docker
Reactivate the profile either by substituting user with
su - ${USER}
or re-initate the profile by logging into the system.
Docker Compose is yet another useful Docker tool. It allows you to launch, execute, communicate, and close containers in a single coordinated command. Docker Compose is used for defining and running multi-container Docker applications.
- Use curl to download the docker-compose file into the /usr/local/bin directory
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- Once the download is complete, apply executable permissions to the file
sudo chmod +x /usr/local/bin/docker-compose
- To verify whether the installation is successful, run the following command to print the compose version
docker-compose --version
In this section, we’ll use Docker Compose to build a multi-container Own-cloud application stack.
-
The first step is to create a project directory under the user's home directory. User's home directory can be identified by bash environment variable. You can change the base directory to any path as required. Ensure you have read, write and access permissions to the directory.
mkdir -p $HOME/own-cloud-server
-
Navigate to the above created directory and download the docker-compose file from owncloud-docker repositories using the following command.
cd $HOME/own-cloud-server wget -q https://raw.githubusercontent.com/owncloud/docs/master/modules/admin_manual/examples/installation/docker/docker-compose.yml
-
Create Environment configuration file to pass variables to docker-compose file downloaded in the above step. Ensure you have provided appropriate file permissions for the file created below. This file will store administrative login credentials for the Owncloud server.
cat << EOF > .env OWNCLOUD_VERSION=10.6 OWNCLOUD_DOMAIN=localhost ADMIN_USERNAME=admin ADMIN_PASSWORD=admin HTTP_PORT=8080 EOF
Ensure you are pointing to current OWNCLOUD_VERSION before updating the configuration file by referring to Owncloud Docker Hub Repository.
- Assuming 8080 port is allowed in the given network range and also at the host operating system's firewall, verify the created environment file and validate whether
HTTP_PORT
is configured to 8080. - If you wish to change it to any other port, update accordingly in the environment file and re-provision the application.
- To check whether the port is exposed when the application is running, navigate to the location where the docker-compose file is downloaded, for example -
$HOME/owncloud-server
and execute the commanddocker-compose ps
from the directory.
- Assuming 8080 port is allowed in the given network range and also at the host operating system's firewall, verify the created environment file and validate whether
-
From the project directory, start the Owncloud application by running the following command:
docker-compose up -d
Compose will pull the images and start the containers. You can also start the docker compose in a detached mode by passing the -d option
- To Stop containers if not detached from the console click
Ctrl+C
. - If containers are running in detached mode, go to the directory where your compose file is present and execute the command
docker-compose stop
- To Stop containers if not detached from the console click
-
In a web browser type-in the url
http://localhost:8080/
and click Enter. The OwnCloud server login screen appears.
- In a web browser that has network access to the ownCloud Server, type in
<ip address of the ownCloud Server>:8080
in the toolbar and click Enter. You are navigated to the **ownCloud ** application login page. - In the Username or email and Password fields, provide the user login credentials and click Enter.
You’re now successfully logged in to the ownCloud server’s web UI and can perform the required operations.
In the ownCloud server UI,
-
Navigate to the Personal settings menu on the top right corner of the screen beside to the Search field and click on the admin user drop-down menu. The menu displays the following settings:
- Settings
- Users
- Logout
-
Click Users
The Users screen appears allowing you to create new user accounts and groups. The Admin user is the default user of the ownCloud server and you can see the following details already configured for the admin user
- Username
- Full Name
- Password
- Groups – admin group
- Group Admin for – Name of the group created by admin
- Quota – Default
-
To Create a new user account,
- In the Username and E-Mail fields enter the respective details.
- Click the admin drop-down menu to select the required group for the newly created user.
- Click Create.
The new user account is created and the details of the newly created user gets added to the Users table.
-
Click the Password field to edit the password of the newly created user. Note – You cannot edit the Username.
To connect to the ownCloud Server using a desktop client, you have to first download and install the ownCloud Desktop client packages.
To download and install the ownCloud Desktop client packages,
- From the Download Desktop App page, select your operating system and click Download. Based on your operating system, you are prompted to save the respective installer file to your system.
- Click Save.
The Desktop Application files are downloaded to your system. For Example, if you have selected Windows as your operating system, - Double-click the ownCloud-<latest_version>.x64.msi file to run the installer.
The Welcome screen of the ownCloud Setup Wizard appears: - Click Next
- In the Custom Setup screen, the default features and the location where the setup files are placed are displayed. Click Browse, to change the default location.
- Click Next
- In the Ready to install ownCloud screen, click Install The setup wizard installs the ownCloud Desktop client packages.
- Once the setup is done, click Finish
The ownCloud Desktop client is successfully installed in your system. Restart your system for the changes to take effect.
-
From the Start -> Applications menu –> select ownCloud
The ownCloud Connection Wizard appears allowing you to configure the necessary connection details:
-
In the Server Address text box, provide the ip address of the ownCloud server.
-
Click Next.
-
Enter the login credentials of the ownCloud user in the Username and Password fields.
-
Click Next.
-
Select the necessary Server options. Use virtual files instead of downloading content immediately option is selected by default.
-
To change the location of the default folder, click the displayed folder location.
-
Click Connect
All the virtual files are successfully synchronized and a confirmation message is displayed.
You have successfully configured the desktop client for the Owncloud Server and connected to it to proceed with your further file sharing or synchronization operations.