To stay up to date, remember to subscribe to our YouTube channel!
SUBSCRIBE ON YOUTUBE
In a world where support and access to the cloud is mentioned more and more every day, it is essential that as users we are aware of the new options we have for everything related to the cloud, but we are not just talking about applications like Google Drive or OneDrive, but much more robust, secure utilities with much superior features, one of these is OwnCloud..
OwnCloud has been developed as an open source platform in which we find file storage and synchronization services in the cloud. Its advantage is that it offers us the option of installing and managing it from our own server or on a compatible infrastructure.
It will be possible to install it completely free in Linux environments and the client software can be installed on Windows, macOS or Linux systems and also has mobile applications for Android and iOS..
Within the features of OwnCloud we find:
- Cloud storage that allows you to host files, photos and more data on a server and access them from anywhere in the world using a web interface or the available desktop and mobile applications.
- OwnCloud is responsible for preserving a history of file versions, this allows us to revert to previous versions if we need it.
- It offers the possibility of sharing files and folders with other users.
- OwnCloud automatically synchronizes files between devices connected to our account to always be updated with them.
- OwnCloud can be integrated with other services and tools to increase its capabilities.
- Improved security and data control.
TechnoWikis will explain how to install OwnCloud on Windows taking into account the following, starting with version 8 of OwnCloud no more support was offered for Windows, that is, it is not possible to install it, but to be able to enjoy OwnCloud we will use WSL.
WSL (Windows Subsystem Linux - Windows Subsystem), is a feature integrated into Windows 10/11 with which it is possible to run a GNU/Linux environment with a high percentage of its known functions, this includes the command line, utilities and applications but without modifying internal system components or using the well-known virtual machines..
With WSL we find functions and features such as:
- We can install the distributions directly from the Windows Store.
- We can invoke GNU/Linux applications on Windows.
- It will be possible to use services such as SSHD, MySQL, Apache, MongoDB, PostgreSQL and many more.
Now, for this example, we will be using WSL2, with this version, it is now possible for WSL to be able to run Linux ELF64 binaries on our Windows system. Without further ado, let's see how to install OwnCloud on Windows.
How to install OwnCloud on Windows
To start, let's open PowerShell as administrators:
In the terminal, we are going to enable the WSL feature, to do this, we execute the following:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
We hope that this process reaches its end:
After this, we are going to enable the platform for the virtual machine, we execute the following command:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all
We hope this process ends:
In this case, we enter the letter Y so that the system is restarted. When we log in, we again access as administrators in PowerShell:
Now, let's enable the virtualization platform:
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
We hope it is installed. After this, we set WSL2 as the version to use:
wsl --set-default-version 2
Next, let's download the kernel update with the following command:
$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi -OutFile .\wsl_update_x64.msi
Let's reset the preferences:
$ProgressPreference = 'Continue'
Finally, we install this update:
We will see that the installer opens:
We click on “Next” and this update will be installed:
After this, we open the Windows Store, search for Ubuntu:
We click on Ubuntu 22.04 to access this distribution:
We click on “Install” and wait for the download and installation process to start:
At the end we will see the following:
We click on Open and the distribution window will be launched:
If this is the first time using WSL, we must assign a username and password:
By accessing the Ubuntu machine, we are going to update the system:
sudo apt update
Then, we apply these updates with the following command:
sudo apt upgrade
We enter the letter “y” to confirm:
We install the package manager:
sudo apt install wget
Then, we install Apache, HTTPS and MySQL with the command:
sudo apt install apache2 mariadb-server mariadb-client
We accept this process by entering the letter “y”:
We hope it ends:
Now, it is time to install PHP, for OwnCloud to work on Windows, we must use version 7.4, with this command we install PHP and all its dependencies:
sudo apt install php7.4 libapache2-mod-php7.4 php7.4-mysql php-common php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-readline php7.4- intl php7.4-json php7.4-gd php7.4-mbstring php7.4-mysql php7.4-xml php7.4-zip php7.4-curl
We enter the letter “y” to proceed with the installation:
Next, we will start the MariaDB service:
sudo service mariadb start
After this we are going to protect the MySQL installation, we execute the following:
There we must answer the questions posed according to the needs of our team:
Once we do this, we access MySQL by executing:
mysql -u root -p
We enter our password to access:
There, we are going to create the database, the username and password and the changes will be applied, we execute the following to create the database:
CREATE DATABASE ownclouddb;
Then, we grant permissions to the user and set a password:
GRANT ALL ON ownclouddb.* to 'user'@'localhost' IDENTIFIED BY 'password';
We apply the privileges:
We exit MySQL:
Now, we download the most recent version of OwnCloud:
sudo wget -O /tmp/owncloud.tar.bz2 https://download.owncloud.com/server/stable/owncloud-latest.tar.bz2
We extract this file:
sudo tar -xf /tmp/owncloud.tar.bz2 --directory /var/www
We establish the permissions:
sudo chown -R www-data:www-data /var/www/owncloud
Next, let's create a new configuration file:
sudo nano /etc/apache2/sites-available/owncloud.conf
In this file we enter the following:
Alias /owncloud "/var/www/owncloud/" <Directory /var/www/owncloud/> Options +FollowSymlinks AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/owncloud SetEnv HTTP_HOME / var/www/owncloud </Directory>
We save the changes using the following key combination:
Ctrl + O
We exit the editor using:
Ctrl + X
Next, we enable the OwnCloud settings:
sudo a2ensite owncloud
We enable the Apache modules with the command:
sudo a2enmod rewrite headers env mime unique_id dav
We restart the Apache service:
sudo service apache2 restart
Once this is done, we open a browser from the Linux console, in this example we execute “google-chrome” to open Chrome:
There we enter the following syntax:
At the top, we create the administrator user:
At the bottom, we complete the data with the values created in the MySQL database:
We click on “Finish Setup” and wait for this process to complete:
Then, we log in with the created user:
We click on “Login” to log in and have access to OwnCloud:
There we can browse the various options:
We access the OwnCloud settings to see its options. In “General” we can change the profile photo, change the password, add name and username and more.
In “Storage” it will be possible to add external storage:
In “Sharing” it is possible to adjust some sharing variables:
In “Security” we can configure all OwnCloud security and privacy settings:
In “Apps” we can activate or not activate applications compatible with the utility:
Finally, as an extra point, it is possible to use the desktop application directly in Windows, to do this download it at the following link:
There we download the Windows version and carry out the installation process:
Then we must enter the IP address of the Linux console:
We await validation:
Once confirmed, we enter the user:
We log in:
From here it will be possible to perform the necessary tasks and make the required adjustments:
Thanks to OwnCloud it will be possible to manage a wide group of options focused on the cloud.