Tig koj Raspberry Pi mus rau hauv tus kheej huab nrog ownCloud

ownCloud yog ib daim ntawv thov ntawm pub dawb software ntawm hom kev pabcuam file hosting, uas tso cai rau hauv online cia thiab kev thov online (huab xam). Nws muaj tus web-based zoo siv interface thiab muaj apps rau Linux, Windows, macOS, Android, thiab iPhone.

Vim yog qhov xwm ntawm ownCloud, eDaim ntawv thov no zoo meej rau peb Raspberry Pi thiab qhov ntawd tuaj yeem pab peb muab rau koj ua haujlwm ntawm hosting peb cov ntaub ntawv.

Txhim kho ownCloud ntawm peb Raspberry Pi yog qhov yooj yim heev. Hauv zaj lus qhia no peb yuav coj los ua lub hauv paus kev cai ntawm peb Raspberry uas yog Raspbian.

Yog tias koj tseem tsis tau muab cov kab ke no nruab rau ntawm koj Raspberry, koj tuaj yeem sab laj kab lus nram qab no uas peb piav qhia yuav ua li cas thiaj ncaj ncees. Qhov link yog qhov no.

Twb tau nrog Raspbian ntsia ntawm peb Raspberry pi, peb yuav hloov kho cov pob khoom thiab Raspbian APT pob rov qab lub chaw khaws khoom nrog rau cov nram qab no:

sudo apt update

Tam sim no, koj yuav tsum hloov kho txhua pob software tshiab uas tau kuaj pom los ntawm Raspbian. Rau qhov no peb tsuas yog yuav tsum ua raws li cov lus txib hauv qab no:

sudo apt upgrade

Ntxiv OwnCloud pob lub chaw cia khoom

OwnCloud tsis muaj nyob hauv Raspbian qhov chaw cia khoom. Rau qhov uas peb yuav ntxiv nws rau peb cov kab ke hauv txoj kev hauv qab no.

thawj, cia peb rub tawm tus yuam sij GPG los ntawm OwnCloud pob cia:

wget -nv https://download.owncloud.org/download/repositories/production/

Debian_9.0 / Release.key -O Release.key

Tam sim no, peb ntxiv tus yuam sij download rau lub system nrog:

sudo apt-key add - < Release.key

Tam sim no nrog tus yuam sij ntxiv rau hauv lub system, peb tuaj yeem ntxiv tus ownCloud repository rau peb qhov systemCov. Peb mus ntxiv qhov no los ntawm kev ua cov kab ke hauv qab no:

echo 'deb http://download.owncloud.org/download/repositories/production/Debian_9.0/ /'| sudo tee /etc/apt/sources.list.d/owncloud.list

Twb tau ntxiv cov chaw cia khoom, tam sim no peb tab tom yuav rau txim rau cov lus txib hloov tshiab ntawm cov pob khoom thiab peb cov npe ntawm cov chaw xa khoom nrog:

sudo apt update

sudo apt upgrade

Nyob rau hauv rooj plaub peb pom ib cov lus muaj feem xyuam nrog wpasupplicant, peb tsuas yog ntaus ntawv q. Thiab txij ntawm no mus lub installation yuav tsum txuas ntxiv.

Nrog txhua yam hloov kho tshiab thiab cov ntawv thov raug ntsia, Peb tsuas yog yuav tsum rov pib dua peb Raspberry Pi nrog cov lus txib hauv qab no:

sudo reboot

Kev teeb tsa thiab kev teeb tsa ntawm Apache thiab MySQL rau OwnCloud

OwnCloud yog lub web application uas khiav ntawm LAMP pawg thiab koj xav tau lub teeb ua haujlwm ua haujlwm LAMP server teeb ua ntej koj tuaj yeem nruab OwnCloud. Kuv yuav qhia koj yuav ua li cas thiaj ua tau hauv ntu no.

Tau nruab Apache, PHP, MariaDB thiab qee cov PHP txuas ntxiv rau hauv RAspbian:

sudo apt install apache2 libapache2-mod-php mariadb-server mariadb-client php-bz2 php-mysql php-curl php-gd php-imagick php-intl php-mbstring php-xml php-zip

Tam sim no, Peb tab tom yuav ua rau cov lus txib hauv qab no los pab kom Apache qhov mod_rewrite module:

sudo a2enmod rewrite

Ua li no cia nkag mus rau hauv MariaDB console raws li cov neeg siv hauv paus nrog cov lus txib nram qab no:

sudo mysql -u root -p

Los ntawm lub neej ntawd, tsis muaj MariaDB lo lus zais tau teeb tsa. Twb tau nyob sab hauv, peb pib los tsim cov ntaub ntawv nrog:

MariaDB [(none)]> create database owncloud;

Peb tsim ib tus neeg siv khoom ntiag tug MariaDB tus kheej ntiag tug thiab peb tseem yuav muab tus lej zais rau nws rau tus neeg siv nrog cov lus nug nram qab no:

MariaDB [(none)]> create user 'owncloud'@'localhost' identified by 'tu-password'

Qhov twg koj tuaj yeem hloov chaw password (koj-password) thiab lub npe (owncloud) nrog ib qho uas koj xaiv. Thiab tom qab ntawd peb yuav muab kev tso cai rau tus tsim kev tsim tshiab nrog:

MariaDB [(none)]> grant all privileges on owncloud.* to 'owncloud'@'localhost';

Thiab peb tshuav MariaDB

MariaDB [(none)]> exit;

Apache kev teeb tsa

Tam sim no, peb yuav tsum hloov kho Apache lub chaw pib teeb tsa cov ntaub ntawv nrog:

sudo nano /etc/apache2/sites-enabled/000-default.conf

Thiab no peb tab tom yuav mus saib kab "DocumentRoot / var / www / html" thiab peb tab tom hloov rau

DocumentRoot / var / www / owncloud.

Peb khaws cov kev hloov pauv nrog Ctrl + O thiab kaw nrog Ctrl + X.

Tam sim no peb tab tom yuav rau txim rau cov nram qab no:

sudo apt install owncloud-files

Thiab peb tab tom yuav rov pib lub Apache 2 kev pabcuam nrog rau cov lus hais hauv qab no:

sudo systemctl restart apache2

Teeb tsa OwnCloud

Thawj yam peb yuav ua yog paub tias peb tus IP address yog dab tsi, peb tuaj yeem paub qhov no nrog:

ip rau | Piv txwv li "inet"

Peb tab tom yuav luam tus ip uas ua rau peb thiab hauv lub vev xaib peb muab tshuaj txhuam nws hauv qhov chaw nyob ntawm no thiab ntawm no peb yuav kho OwnCloud thawj zaug.

Qhov twg Nws yuav nug peb kom tsim peb lub npe rau cov thawj coj nrog rau tus lej zais.

Thiab peb kuj tuaj yeem hloov cov ntawv qhia kev ua haujlwm ntawm OwnCloud / var / www / owncloud / cov ntaub ntawv rau txhua yam uas peb xav tau lossis peb tuaj yeem tso nws li ntawd.

Tam sim no, peb tab tom yuav muab tso rau lub npe ntawm cov ntaub ntawv uas peb tsim dhau ob peb kauj ruam dhau los.

Tam sim no, koj tuaj yeem nkag mus nrog OwnCloud username thiab password uas koj tsuas tau sau tseg thiab koj tau ua tiav. Tam sim no lawv tuaj yeem pib siv OwnCloud rau lawv Raspberry Pi.


Cov ntsiab lus ntawm tsab xov xwm ua raws li peb cov ntsiab cai ntawm kev tswj hwm kev ncaj nceesCov. Tshaj tawm ib qho yuam kev nyem no.

3 lus, tawm koj li

Tso koj saib

Koj email chaw nyob yuav tsis tsum luam tawm.

*

*

  1. Lub luag haujlwm rau cov ntaub ntawv: Miguel Ángel Gatón
  2. Lub hom phiaj ntawm cov ntaub ntawv: Tswj SPAM, kev tswj xyuas tawm tswv yim.
  3. Sau raws cai: Koj kev tso cai
  4. Kev sib txuas lus ntawm cov ntaub ntawv: Cov ntaub ntawv yuav tsis raug xa mus rau lwm tus neeg thib peb tsuas yog los ntawm kev txiav txim siab raug cai.
  5. Cov ntaub ntawv khaws cia: Cov Ntaub Ntawv khaws tseg los ntawm Occentus Networks (EU)
  6. Txoj Cai: Txhua lub sijhawm koj tuaj yeem txwv, rov qab thiab tshem tawm koj cov ntaub ntawv.

  1.   Chiv said

    Hauv kuv txoj kev xav txo qis, Nextcloud kev tsim kho yog ntau yam, yog li kuv xav hais qhia txhim kho Nextcloud siv Owncloud ...

  2.   Dan pab said

    Nyob zoo.
    Ntawm qhov nyiaj pab txhua theem cai kuv tau mus nyam. Kuv tau hloov cov syntax Kuv tsis paub pes tsawg lub sijhawm thiab kuv tsis tau txais ib yam dab tsi.
    Lub localhost yuav tsum kuv hloov mus rau tus ip uas kuv lub txiv pos muaj lossis puas yog kuv cia li tawm hauv loclahost raws li sau?
    Kuv yog ib tus neeg tshiab nyob rau ntawm no, thiab kuv tab tom sim ua haujlwm los ntawm kev ua raws li theem koj piav ntawm no ...

    Tsaug ua ntej.

  3.   Sib 10 said

    Kuv tau nyob hauv
    ncha 'deb http://download.owncloud.org/download/repositories/production/Debian_9.0/ / '| sudo tee /etc/apt/sources.list.d/owncloud.list

    Kuv tau ua sudo hloov tshiab apt thiab kuv tau txais Malformed nkag 1 hauv daim ntawv teev /etc/apt/sources.list.d/owncloud.list (Suite)
    Daim ntawv ntawm cov peev txheej tsis tuaj yeem nyeem.

bool (muaj tseeb)