Documente Academic
Documente Profesional
Documente Cultură
HOME WINDOWS MAC OS X LINUX WINDOWS SERVER VIRTUALIZATION RASPBERRY PI WORDPRESS TECH TIPS
Stretch Installed
Our goal is to install ownCloud 10 Newsletter
CrossWorks for on the Raspberry pi with Raspbian Get weekly Video Tutorials tips and trends via
email!
Stretch installed. We are not just
ARM installing ownCloud but also Email
mounting an external drive for lager
ARM IDE for OSX, Linux & capacity of data storage and to be Join Now
Windows able to access it from anywhere in
the world with internet access. 100% Privacy. We don't spam.
There are many ways to install ownCloud onto a Raspberry Pi. This particular tutorial
I’ll be downloading and installing the following software / packages we will be using to
setup ownCloud 10:
Steps to install ownCloud 10 on the Raspberry pi with Raspbian Stretch:
AvoidErrors
7,211 likes
Update Raspberry pi System
Install LAMP Server
Install ownCloud dependencies Like Page Share
Install Owncloud 10
Mount an External Hard drive for larger storage capacity Be the first of your friends to like this
Enable SSL for secure access
Owncloud configuration via web browser
If you don’t have a Raspberry PI I would personally recommend buying the Raspberry
pi-3 kit with a 32 GB Micro SD card so that you don’t have to mount an external drive. Popular Recent Comments
unless you want to store more than 32GB of data.
How to Restore Windows Photo
Viewer Windows 10
Video Tutorial:
a. Expand the root filesystem to have enough space for the cloud
Select “Advanced Options” –> “Expand Filesystem” (if available)
Then Finish, and auto reboot. Upon re-boot you would need to update the RPI and its
packages.
sudo su
Install Owncloud:
Download Owncloud 10 package:
cd /tmp
wget https://download.owncloud.org/community/owncloud-10.0.3.tar.bz2
It will produce a new directory called owncloud. We need to move this directory to
/var/www/html/ directory
mv owncloud /var/www/html/
nano /etc/apache2/sites-available/owncloud.conf
<Directory /var/www/html/owncloud/>
Options +FollowSymlinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
</Directory>
ln -s /etc/apache2/sites-available/owncloud.conf /etc/apache2/sites-
Additional apache configuration
Execute these commands to enable some modules
a2enmod headers
systemctl restart apache2
a2enmod env
a2enmod dir
a2enmod mime
mysql -u root -p
You’ll be prompted to enter the Pi User password. Then execute the underneath
commands in blue:
If you are NOT mounting and external hard drive proceed to open the web browser
and type the following address:
http://192.168.1.140/owncloud
Change the IP address in blue to your Raspberry pi IP address. You will see the
following Owncloud configuration window:
Here enter a username and password to create an admin account then immediately
underneath enter your MySQL details as follow:
Username: owncloud
Password: 12345
Database: owncloud
Server: localhost
Click on ‘Finish Setup’ button. That’s it. We’re good to go. Owncloud 10 installed on
Raspbian Stretch is now ready for use.
1. Having an NTFS drive we will need to install a NFTS package by entering the
following:
4. Make the user www-data owner of the mounted drive and make its permissions
read, write and execute:
id -g www-data
id -u www-data
7. Also we meed to get the UUID of the attached external hard drive so the Pi can
remember this drive even if you plug it into a different USB port.
ls -l /dev/disk/by-uuid
8. Then copy the light blue letters and numbers of the sda1 entry usually located on
the bottom. Should look something like (numbers&letters -> ../../sda1). See picture
below:
9. Now add your drive into the fstab file so it’ll boot with the proper permissions.
10. Add the following line to the bottom of the file, updating uid, guid and the UUID
with the values we got above. (It should all be a single line). Dont forget to replace the
UUID number to yours in stead of the one you copied from here.
UUID=F6941E59941E1D25 /media/ownclouddrive auto nofail,uid=33,gid=33
11. Reboot the Raspberry Pi:
sudo reboot
12. Now the drives should automatically be mounted. If mounted we’re all good to go.
To check it enter:
sudo ls /media/ownclouddrive
If there are files inside the drive you should be able to see them here. If it’s an empty
drive you might not see anything so don’t be surprise if nothing shows up.
If you want to be absolutely positive that the drive is properly mounted, unplug the
drive from the RPI plug it onto a PC since the drive is formatted “NTFS” it should be
easily detected by the PC, open it, create an txt file name it test, then eject it and plug
it back to the RPI and run the following command:
sudo ls /media/ownclouddrive
2. You should be presented with a simple setup screen, Here enter a username and
password to create an admin account.
3. Click on Storage & database dropdown and enter your external hard drive
directory: /media/ownclouddrive (Skip this if you didn’t setup an external drive).
Username: owncloud
Password: 12345
Database: owncloud
Server: localhost
5. Click on ‘Finish Setup’ button. That’s it. We’re good to go. Owncloud 10 installed
on Raspbian Stretch is now ready for use.
Done! !! all is left is to configure your devices to access your ownCloud storage.
External Access
To allow ouw devices like your phone or tablet to access your cloud from anywhere in
the world with internet access you must enable SSL then enable port forward:
Port Forward
Log into your router and get the WAN IP address:
Or Google what is my IP address?
Now we need to add the WAN IP to your trusted IP list and not to be overwritten by
ownCloud. To do this open the Owncloud config file, enter:
1 => 'xxx.xxx.xxx.xxx',
X are just placeholders. Replace the X’s with the WAN IP Address.
Now update the URL of the overwrite.cli.url line with your WAN IP Address. It should
look something like this:
Port forward SSL port 443 to the Raspberry pi internal IP (LAN IP) address and save
settings.
Now your RPI ownCloud is ready to be accessed externally (WAN) and from your
devices just download the ownCloud App and enter: “https:// WAN IP Address” on the
address bar or devices. below is an example:
Related Posts
How to Setup a Raspberry How to Setup FTP Server Putty Network Error:
Pi Caddy Web Server on Raspberry Pi Connection Refused –
Raspberry pi
Latest Comments
Tim
Miguel
Miguel
Sadekur Rahman
Chip
Miguel, Thank you for the easy setup. I do have one question. Can you
add external storage after install.
Reply
Miguel
yes
Reply
Chip R
Hello Miguel,
Thnaks you for the very easy setup video. I do have one question. Can
you configure /add an external drive if you have setup to use internal
storage?
Thanks!
Chip
Reply
Miguel
yes. when you decide to use an external Drive, you would need
to go through the mounting a directory process and change the
path. run this command in the terminal:
sudo nano /var/www/html/owncloud/config/config.php
or
sudo nano /var/www/owncloud/config/config.php
and change the datadirectory to /media/owncloud
then move your owncloud data:
sudo mv /var/www/html/owncloud/data /media/owncloud
or
sudo mv /var/www/owncloud/data /media/owncloud
then restart
sudo service apache2 restart
or
sudo apache2 restart
Reply
Sadekur Rahman
Kieran
Hello Miguel,
Thank you very much for a wonderful tutorial, and accompanying video
(with a very calm and level delivery!)
I am totally indebted to you for the fact that, with your help, I have
owncloud running beautifully on my Raspberry Pi 3, but I have one last
question.
I set everything up with a small USB stick, that I had laying around, and
all is good, I want to purchase a powered external hard-drive but
wanted to know if is possible to keep the USB stick and add the (yet to
be bought) HDD as well?
would I need to run the whole mounting a directory process then add
the UUID number to fstab? or will this be problematic… and would it be
best to simply remove the USB stick and start again with the (new)
HHD?
Many thanks mate, you’re the best.
Reply
Miguel
Hi Kieran, yes, is possible to keep the USB stick and add the
(yet to be bought) HDD as well.
yes, you would need to run the whole mounting a directory
process then add the NEW UUID number to fstab. just add the
same line immediately underneath with the new one.
if you are planning on using the new HDD for owncloud data
then you would need to move the owncloud files to the new
directory once mounted.
sudo nano /var/www/html/owncloud/config/config.php
or
sudo nano /var/www/owncloud/config/config.php
and change the datadirectory to /new/directory
then move your owncloud data:
sudo mv /var/www/html/owncloud/data /new/directory
or
sudo mv /var/www/owncloud/data /new/directory
/new/directory being the HDD directory you mounted
then restart
sudo service apache2 restart
or
sudo apache2 restart
Reply
Sadekur Rahman
David
I followed all the steps, put an pendrive for more storage and I recive
this when i try to create de admin acount
Error while trying to create admin user:
Failed to connect to the database: An exception ocurred in driver:
SQLSTATE[HYT000][1045]Acces denied for user
‘owncloud’@’localhost’ (using password:YES)
Reply
Miguel
David
David
David
You would need to tell the router to reserve an IP for the RPI.
“DHCP reservation”
example: https://www.youtube.com/watch?v=2pS0Pz0EcLA
Reply
Leave a Reply
Comment
Comment Text*
Name*
Email*
Website
Post Comment