Owncloud

From ICO wiki
Jump to navigationJump to search

OwnCloud Serveri installeerimine

Sissejuhatus

OwnCloud on avatud lähetekoodiga vaba tarkvara, millega saab luua endale oma privaatpilve failide vahteamsieks. On oma põhimõttelt väga Dropboxi sarnane.

Koduleht: Http://owncloud.org

Instaleerimine Ubuntu LTS 12.04 serverile

Installeerime Owncloud serveri Koolis antud ubuntu serveri peale


Server RAM 512MB HDD dynamicly allocated 8GB 2 Võrgukaarti NIC1 - NAT (eth0 - Ubuntus) ja NIC2 - HostOnly (eth1 - Ubuntus) Logige serverisse sisse ja seadistage võrk failis /etc/network/interfaces (liidese eth1 ip aadress 192.168.56.200).


Installi info ja failid on saadaval: http://owncloud.org/install/

https://www.digitalocean.com/community/articles/how-to-install-owncloud-and-configure-owncloud-apps-on-an-ubuntu-12-04-vps


Kui Linuxi server töötab, saab asume OwnCloud-i installima: Selleks on Linuxi distrotes erinevad käsud, siinkohal toome ära Ubuntu versioonide käsud:


Add repository and install manually


For xUbuntu 13.04 run the following as root:

echo 'deb http://download.opensuse.org/repositories/isv:ownCloud:community:nightly/xUbuntu_13.04/ /' >>

/etc/apt/sources.list.d/owncloud.list 
apt-get update
apt-get install owncloud

You can add the repository key to apt like this:

wget http://download.opensuse.org/repositories/isv:ownCloud:community:nightly/xUbuntu_13.04/Release.key
apt-key add - < Release.key  

For xUbuntu 12.10 run the following as root:

echo 'deb http://download.opensuse.org/repositories/isv:ownCloud:community:nightly/xUbuntu_12.10/ /' >> 

/etc/apt/sources.list.d/owncloud.list 
apt-get update
apt-get install owncloud

You can add the repository key to apt like this:

wget http://download.opensuse.org/repositories/isv:ownCloud:community:nightly/xUbuntu_12.10/Release.key
apt-key add - < Release.key  

For xUbuntu 12.04 run the following as root:

echo 'deb http://download.opensuse.org/repositories/isv:ownCloud:community:nightly/xUbuntu_12.04/ /' >> 

/etc/apt/sources.list.d/owncloud.list 
apt-get update
apt-get install owncloud

You can add the repository key to apt like this:

wget http://download.opensuse.org/repositories/isv:ownCloud:community:nightly/xUbuntu_12.04/Release.key
apt-key add - < Release.key  


Me siinkohal kasutame Ubuntu 12.04 näidet:

Lisame repositooriumi owncloudi:

echo 'deb http://download.opensuse.org/repositories/isv:ownCloud:community:nightly/xUbuntu_12.04/ /' >>

/etc/apt/sources.list.d/owncloud.list

Lisame Reopositooriumi key:

wget http://download.opensuse.org/repositories/isv:ownCloud:community:nightly/xUbuntu_12.04/Release.key apt-key add - < Release.key

apt-get update apt-get install owncloud


Installi käigus tuleb konfigureerida ka mysql:

[pilt]

sql parooliks panime root

---installitud :)

vaatme mis pakkidest owncloud sõltub:

root@ubuntu:~# apt-cache depends owncloud owncloud

|Depends: apache2
   apache2-mpm-itk
   apache2-mpm-event
   apache2-mpm-prefork
   apache2-mpm-worker
 Depends: <httpd>
   apache2-mpm-itk
   bozohttpd
   monkey
   nginx-naxsi
   tntnet
   aolserver4-core
   aolserver4-daemon
   apache2-mpm-event
   apache2-mpm-prefork
   apache2-mpm-worker
   boa
   cherokee
   ebhttpd
   lighttpd
   mathopd
   micro-httpd
   mini-httpd
   nginx-extras
   nginx-full
   nginx-light
   ocsigen
   webfs
   yaws
 Depends: php5
 Depends: php5-mysql
 Depends: php5-sqlite
 Depends: php5-common
 Depends: php5-gd
 Depends: php-xml-parser
|Depends: ntp
 Depends: <time-daemon>
   chrony
   openntpd
|Recommends: clamav
 Recommends: clamav-daemon
 Recommends: curl
|Recommends: exim4
 Recommends: <mail-transport-agent>
   citadel-mta
   courier-mta
   esmtp-run
   exim4-daemon-light
   lsb-invalid-mta
   masqmail
   msmtp-mta
   nullmailer
   qmail-run
   sendmail-bin
   ssmtp
   xmail
   dma:i386
   dma
   exim4-daemon-heavy
   postfix

Setting Up a MySQL Database We're almost done, there's only one thing left to do before we begin installation - setting up a proper MySQL database.

First, log in to MySQL with the following command:

mysql -u root -p


It will prompt you for root password, enter the one you entered upon installing LAMP stack.

Next, create a new database with the following command:

CREATE DATABASE owncloud;


Then assign a new user with proper privileges to the new database:

GRANT ALL ON owncloud.* TO 'owncloud'@'localhost' IDENTIFIED BY 'some_password';


Be sure to replace "some_password" with the actual password you desire for your MySQL database.


kuna veebiliides ei tulnud miskipärast ülesse tegin käsitsi servicele restadi service apache2 restart

nüüd avaneb aadressilt:[serveri IP]/owncloud meil selleks http://192.168.56.200/owncloud/ Selline leht:

[pilt]

Loome admin kasutaja: admin admin

Loome test kasutaja user user


turvalise üheduse huvides määrame serveri kasutama SSL protokolli ehk Https-i

http://ubuntuserverguide.com/2013/04/how-to-setup-owncloud-server-5-with-ssl-connection.html http://sharadchhetri.com/2013/05/24/how-to-configure-self-signed-ssl-certificate-in-owncloud-ubuntu/


nano /etc/apache2/conf.d/owncloud.conf Lisame sinna sisu:

<VirtualHost 192.168.56.200:80> RewriteEngine on ReWriteCond %{SERVER_PORT} !^443$ RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L] </VirtualHost> <VirtualHost 192.168.56.200:443> SSLEngine on SSLCertificateFile /etc/apache2/ssl/owncloud.pem SSLCertificateKeyFile /etc/apache2/ssl/owncloud.key DocumentRoot /var/www/owncloud/ <Directory /var/www/owncloud/> AllowOverride All order allow,deny Allow from all </Directory> </VirtualHost>


service apache2 restart





Https nüüd töötab


Lubame suurte failide synkimise php.ini-s

http://doc.owncloud.org/server/5.0/admin_manual/configuration/configuring_big_file_upload.html



installime linuksile kliendi

http://owncloud.org/sync-clients/



For xUbuntu 12.04 run the following as root:

echo 'deb http://download.opensuse.org/repositories/isv:ownCloud:devel/xUbuntu_12.04/ /' >>

/etc/apt/sources.list.d/owncloud-client.list apt-get update apt-get install owncloud-client

You can add the repository key to apt like this:

wget http://download.opensuse.org/repositories/isv:ownCloud:devel/xUbuntu_12.04/Release.key apt-key add - < Release.key



Klient installitud ubuntu kliendile:

pilt

Proovitud iso faili synkis ilusti ära 750MB



http://fabianpeter.de/cloud/owncloud-migrating-from-sqlite-to-mysql/ https://wiki.itcollege.ee/index.php/Veebiserveri_labor_v.2#Sertifikaadi_genereerimine