Cómo crear un servidor en la nube con Owncloud para almacenar nuestros archivos. |ESP-ENG|

in blurtech •  2 months ago 

295.-Owncloud.png

Owncloudes un software open source bajo licencia AGPL que permite crear un servidor en la nube. la mayoría de nosotros utilizamos los servicios de alguno de ellos como : Dropbox, Google Drive, Mega, etc.

Basta con crear una cuenta en uno de estos servicios y ya disponemos de un espacio en el que almacenar nuestros archivos; En cualquier momento podemos acceder a ellos desde un ordenador que disponga de conexión a internet.

No obstante, el espacio disponible aunque gratuito es muy limitado y si lo usamos en serio nos resulta insuficiente. Cierto es que podemos contratar espacio adicional, pero esto ya nos supone un coste económico. Además, la confidencialidad de nuestros datos y de nuestros archivos está supeditada a la “honestidad” de las empresas que ofrecen este tipo de servicios.

Owncloud nos permite crear un servidor y conectarlo a internet, de una manera sencilla. Además, seremos nosotros quienes lo administraremos controlando el acceso a la información almacenada.

Podemos contratar un hosting e instalar owncloud, pero también podemos instalarlo en un ordenador propio. De esta forma eliminamos las limitaciones en cuanto a capacidad, ya que dispondremos de todo el espacio libre que tengamos en el disco duro.

image.png

Características.

Algunas de sus principales características son:

Sencilla interfaz web
Acceso a tus archivos mediante WebDAV
Compartir archivos a usuarios y no usuarios de OwnCloud
Visor de archivos PDF
Calendario/Agenda
Gestión de contactos
Reproductor de música integrado
Una galería donde podrás visualizar tus imágenes
Un sencillo editor de textos

Instalación del servidor en Ubuntu 12.04.2 LTS

  1. Añadir la clave del repositorio a APT:
    Linux Terminal:~$
    wget http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_12.04/Release.key
    sudo apt-key add - < Release.key
  2. Añadir repositorio e instalar de forma manual como root:
    Linux Terminal:~#
    echo 'deb http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_12.04/ /' >>
    /etc/apt/sources.list.d/owncloud.list
    apt-get update
    apt-get install owncloud
  3. Configurando los permisos:
    Linux Terminal:~$
    sudo chown -R www-data:www-data /var/www/owncloud
  4. Reiniciando Apache:
    Linux Terminal:~$
    sudo /etc/init.d/apache2 restart
    Si por algún motivo obtienemos esta salida:
    Linux Terminal:~$
    apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
    ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
    [ OK ]
    Debemos modificar el archivo de configuración de Apache httpd.conf y agregar el nombre del servidor como localhost:
    Linux Terminal:~$
    sudo nano /etc/apache2/httpd.conf
    ServerName localhost
    Guardamos y Salimos
    Ctrl+o para Guardar
    Ctrl+x para Salir del editor
    Reiniciamos Apache y la salida debería ser esta:
    Linux Terminal:~$
    Restarting web server apache2
    ... waiting
    [ OK ]
    En este Enlace podrás encontrar las instrucciones para instalar el servidor en la distro que usas o Descargas el Tarball y lo intalas manualmente siguiendo las instrucciones de la wiki de owncloud.

Ya hemos terminado con la instalación. Ahora abrimos nuestro navegador web preferido y escribimos:
http://localhost/owncloud

Ahora crearemos la cuenta de Administrador escoges tu Nombre de usuario y contraseña no toques nada en avanzado y finalmente pulsamos el botón “Completar la instalación“.

A continuación de aparecerá una ventana así que indicara que todo salio bien:

Ademas disponemos de un cliente de sincronización para los diferentes sistemas operativos

Como obtener acceso a nuestro servidor desde internet
Primero que todo debemos redirigir el puerto de entrada a nuestra IP local en mi caso la IP local es la 192.168.1.1

Entramos a la configuración de nuestro router, nos desplazamos al apartado de configuración NAT y agregamos una nueva regla en donde redireccionamos el puerto 80 a nuestra IP local 192.168.1.1

Un agradecimiento especial para @alband el me asesoro con la configuración en el router.

Si disponemos de una IP pública fija ya podemos acceder al servidor desde un equipo remoto a través de internet. Abrimos nuestro navegador web y tecleamos:

http://tu_ip_publica/owncloud

El problema suele producirse si no disponemos de una IP fija, Lo normal es que nuestra IP sea dinámica, es decir, cambia cada vez que el router se reinicia o se conecta a internet. Esto es un inconveniente ya que necesitamos poder localizar la IP de nuestro servidor. Para asegurar esto podemos utilizar un servicio de DNS dinámico como el que proporciona de manera gratuita No-IP.

En el caso de No-IP nos Registramos escogiendo el nombre de nuestro host.
Después de acceder a nuestra cuenta en Manage Hosts podemos ver nuestros hosts.

Y saber cual es el nombre que escogimos cuando nos registramos, también podemos modificarlo o agregar un nuevo host:

Ahora ya podemos acceder a nuestro servidor owncloud desde un navegador web con una URL del tipo siguiente:

http://nombre_del_host/owncloud

Este tutorial ha sido aplicado a una version de Ubuntu ya superada como lo es la Ubuntu 12.04.2 LTS pero puede ser igualmente aplicado a cualquier otra version y/o distribucion cambiando solo los parametros de la relativa version en su repositorio.

separador-tux-tux.png

Owncloud is an open source software under AGPL license that allows you to create a server in the cloud. Most of us use the services of some of them as Dropbox, Google Drive, Mega, etc..

It is enough to create an account in one of these services and we already have a space in which to store our files; At any time we can access them from a computer with an internet connection.

However, the available space, although free, is very limited and if we use it seriously, it is not enough. It is true that we can contract additional space, but this already supposes an economic cost to us. In addition, the confidentiality of our data and files is subject to the "honesty" of the companies offering this type of service.

Owncloud allows us to create a server and connect it to the Internet, in a simple way. In addition, we will be the ones who will manage it, controlling the access to the stored information.

We can hire a hosting and install owncloud, but we can also install it on our own computer. In this way we eliminate the limitations in terms of capacity, since we will have all the free space we have on the hard disk.

image.png

Features.

Some of its main features are:

Simple web interface
Access to your files via WebDAV
Sharing files to OwnCloud users and non-ownCloud users
PDF file viewer
Calendar/Agenda
Contact management
Integrated music player
A gallery where you can view your images
A simple text editor

Server installation on Ubuntu 12.04.2 LTS

  1. Add the repository key to APT:
    Linux Terminal:~$
    wget http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_12.04/Release.key
    sudo apt-key add - < Release.key
  2. Add repository and install manually as root:
    Linux Terminal:~#
    echo 'deb http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_12.04/ /' >>
    /etc/apt/sources.list.d/owncloud.list
    apt-get update
    apt-get install owncloud
  3. Configuring permissions:
    Linux Terminal:~$
    sudo chown -R www-data:www-data /var/www/owncloud
  4. Restarting Apache:
    Linux Terminal:~$
    sudo /etc/init.d/apache2 restart
    If for some reason we get this output:
    Linux Terminal:~$
    apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
    ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
    [OK ]
    We must modify the Apache configuration file httpd.conf and add the server name as localhost:
    Linux Terminal:~$
    sudo nano /etc/apache2/httpd.conf
    ServerName localhost
    Save and Exit
    Ctrl+o to Save
    Ctrl+x to Exit the editor
    Restart Apache and the output should look like this:
    Linux Terminal:~$
    Restarting web server apache2
    ... waiting
    [ OK ]
    In this Link you can find the instructions to install the server in the distro you use or Download the Tarball and install it manually following the instructions in the owncloud wiki.

We are done with the installation. Now we open our preferred web browser and type:
http://localhost/owncloud

Now we will create the Administrator account, choose your username and password, don't touch anything in advanced and finally click on the "Complete installation" button.
Then a window will appear indicating that everything went well:

We also have a synchronization client for the different operating systems.

How to access our server from the Internet
First of all we must redirect the incoming port to our local IP in my case the local IP is 192.168.1.1.

We enter the configuration of our router, we move to the NAT configuration section and add a new rule where we redirect the port 80 to our local IP 192.168.1.1

A special thanks to @alband who helped me with the router configuration.

If we have a fixed public IP we can now access the server from a remote computer through the internet. We open our web browser and type:

http://tu_ip_publica/owncloud

The problem usually occurs if we do not have a fixed IP. Normally our IP is dynamic, i.e. it changes every time the router is rebooted or connected to the Internet. This is inconvenient because we need to be able to locate the IP of our server. To ensure this we can use a dynamic DNS service such as the one provided for free by No-IP.

In the case of No-IP we register by choosing the name of our host.
After accessing our account in Manage Hosts we can see our hosts.

And know which is the name we chose when we registered, we can also modify it or add a new host:

Now we can access our owncloud server from a web browser with a URL of the following type:

http://nombre_del_host/owncloud

This tutorial has been applied to a version of Ubuntu already outdated as Ubuntu 12.04.2 LTS but it can be equally applied to any other version and/or distribution changing only the parameters of the relative version in its repository.

image.png

Translated with www.DeepL.com/Translator (free version)

banner-propiedad-imagenes.png

Fuente imágenes post /Source post images.FLISol.

Blogs, Sitios Web y Redes Sociales / Blogs, Webs & Social NetworksPlataformas de Contenidos/ Contents Platforms
Mi Blog / My BlogLos Apuntes de Tux
Red Social Twitter / Twitter Social Network@hugorep

Posted from https://blurtlatam.intinte.org
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE BLURT!