Raspberry Pi Owncloud-dropbox clone
You can have free will and organize over your own data with own cloud, it will act as your personal cloud that will run on your personal server.
Raspberry Pi: What all you will need:
- A USB external drive or a USB external hard disk.
- A Raspberry Pi model.
- A network card, that is wireless.
- For Raspberry Pi and Hard disk, an enclosure.
Raspberry Pi: Download the software to setup the software:
We need to assign a fixed IP address to the Raspberry Pi by editing the interface file of the network.
$ sudo nano /etc/network/interfaces
On one occurrence open we necessitate to build the file appear like this, your IP address perhaps be diverse.
iface eth0 inet static
The file subsequently needs to be hoarded by pressing ctrl o and ctrl x to exit. Just the once egresses the networking entails to be restarted
$ sudo /etc/init.d/networking restart
We are obtainable to install Apache with SSL, PHP5, PHP APC which will stack pages sooner.
$ sudo apt-get install apache2 php5 php5-json php5-gd php5-sqlite curl libcurl3 libcurl4-openssl-dev php5-curl php5-gd php5-cgi php-pear php5-dev build-essential libpcre3-dev php5 libapache2-mod-php5 php-apc gparted.
Raspberry Pi- Configuring Apache and PHP
To download the software we necessitate configuring it.
Install PHP apc
$ sudo pecl install apc
After this we have to create the apc.ini
$ sudo nano /etc/php5/cgi/conf.d/apc.ini
In the file we have to affix the subsequent
After adding the file ahs to be saved
Now, change the PHP.ini to alter the max upload file so we can insert a bulky file and append the APC extension to PHP
$ sudo nano /etc/php5/apache2/php.ini
Now, we need to upload_max_filesize and then alter the significance to 1024M which will permit files of up to 1GB to be uploaded
Then we have to locate post_max_size and then alter the significance to 1200m which will permit files up to 1 GB to be uploaded.
We necessitate discovering the extension part and appending in the addition=apc.so
Save and exit after it is done.
next up we need to config apache and enable SSL
$ sudo nano /etc/apache2/sites-enabled/000-default
Within the file we require to modify and permit over ride to all from not a bit
Next up we require to setup SSL
$ sudo a2enmod rewrite
$ sudo a2enmod headers
After the following command you will be requested to offer in sequence
sudo openssl genrsa -des3 -out server.key 1024; sudo openssl rsa -in server.key -out server.key.insecure;sudo openssl req -new -key server.key -out server.csr;sudo openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt;sudo cp server.crt /etc/ssl/certs;sudo cp server.key /etc/ssl/private;sudo a2enmod ssl;sudo a2ensite default-ssl
On one occasion all that is completed the apache requires restarting:
$ sudo service apache2 restart
Raspberry Pi- Download and install your personal cloud
After getting Apache and PHP setup we necessitate to install our own cloud
$ wget http://mirrors.owncloud.org/releases/owncloud-4.5.1.tar.bz2
It requires unzipping once the download is accomplished.
$ sudo tar -xjf owncloud-4.5.1.tar.bz2
And then in the web root it should be copied.
$ sudo cp -r owncloud /var/www
Following it has been derivative we necessitate to give the web server permission to access the owncloud directory
$ sudo chown -R www-data:www-data /var/www/owncloud/
The htaccess file needs to be edited to alter the max upload file these values are required to be changed to the similar values as you set in you php.ini
$ sudo nano /var/www/owncloud/.htaccess
Raspberry Pi- Setup own cloud
The trouble-free way to setup the exterior drive is to use gprarted on the Raspberry Pi
and from within the GUI open a terminal and sort
$ sudo gprarted
Commencing here you can divide and format the drive.
After being done offer the web-server consent.
$ sudo chown -R www-data:www-data /media/owncloud
Setup your own cloud now in a web browser type: https://IPADDRESS/owncloud
In the user name and password box, type the user name and password.
Click superior and taint the data location of the position of your exterior drive in my case it’s /media/owncloud
Then click on finish and as now you are done.
You ought to upload the files. To play the video files you will necessitate enabling the video player app.
To setup exterior access to your device, we would propose you to use DyDns or Noip.
Place it in the enfold
After the software is setup you can place it into a box. Leave a hole to let air flow.