welcome to PcMac in today's video I'm
going to show you how you can install
next cloud Pi with the help of Tocker on
Raspberry Pi in this video I'm going to
cover all the topics about next cloud Pi
so it might be a big video so please be
with me I'll show you how you can
install next cloud and then how you can
use duck TNS to access your next cloud
from outside your network and then we
will use let's encrypt to download the
certificates and make sure that our next
cloud PI server is secure then after
that I'll show you how you can add an
external hard drive to your next cloud
pi before starting this video I would
like you to please go ahead and
subscribe to my channel and if you like
my work please hit the like button so
let's do it
first of all let's check the IP address
of our as many PI by using the wireless
network watcher so I'm opening it and
it's right here and here is the IP
address 192.168.1.1 installed and
talking on my Raspberry Pi if you don't
know how to do that I'll leave a link on
the top right corner you will see it
right now you can click on that link and
install docker on your ass penny PI and
then come back to this video so let's
just go ahead and open our booty and
type the IP address here that is 73 and
open now let's log in with the PI user
and the password which I have created so
we are logged in now as you can see we
are on the PI prompt so first of all
let's login to the super user so the
command is sudo su so we don't need to
type sudo every time and as you can see
we
right here in route let's go back by
typing CD and we are in the route prompt
now now let me take you to the website
for next cloud pie let's open my Google
Chrome and type the next cloud pie next
cloud pie dot com it will take you to
own your bets com next cloud pie let's
just move down to the docker image and
here two images first is the x86 version
and then the second one is the ARM
version because raspberry pi is using an
ARM processor so we need to go with this
image soccer AR m let's click on more
instructions and it will take us to this
page let's go down and as you can see
this image is from June 8 2017 so you
can see that note some of the
information is outdated check a newer
release here so we need to click here
and it will take us to the direct page
for next cloud Piatt docker we need to
move down I have already installed
docker so let's just move down as you
can see it give us the information if
you want to install it we can use this
command but just go down and this is the
command that you need to use so let's go
and copy it once it's copy let's go back
here and then paste it here and it will
start downloading the image as you can
see unable to find the image unable to
find image on your bets next cloud pi
locally so it's downloading it from the
internet it might take some time the
size of the image is around 400 to 500
MB so I'll be back
now the next cloud pie image is
successfully downloaded from the website
now what will it go we could check
Tocker PS - eh
to check the status of our image and as
you can see own bits next cloud pie AR
MH f it's running right here so what we
need to do is we need to use the second
command that is from here
and let's copy it and as you can see the
first time it will take some seconds to
do the initial configuration wait until
you see I an IT done
so let me just type the command here and
hit enter
to run the command so this all will go
ahead and configure the system the next
cloud PI system it will configure the
database and the trusted domains and
everything will be configured here now
as we can see it's right here I and I T
done now it's good that we can go ahead
and access our next cloud page so let's
open the Google Chrome and type the IP
address 192.168.1.1 dit will directly
take us to this page right now as you
can see HTTPS is cut out and what we
need to do we need to copy these all
things so let's just open notepad and
the username let's just type your
username will be and CP that is next
cloud pi now here is the first password
let's just paste it here and this is for
this URL let's copy the URL as well now
as you can see this password can be
changed using NC password so we will do
it later on let's copy this one as well
and paste it here and copy its URL as
well so we are just finished copying all
the important things from the next cloud
pi now we need to activate our next
cloud pilots just first of all save this
information for future as well
next cloud pi and save it let's just
minimize now and click on activate to
activate the next cloud pi once i click
on activate it will take us to the
configuration page for next cloud pi so
it's configure now let's just type NCP
as a username and we will take the
password for the 4 4 4 3
and it's right here let's just copy it
and paste it here and we are right here
so if you want to just go through the
configuration visit you can click on or
run so let's just show you click on run
and then it's welcoming us and we need
to go onto the external axis do you want
to access next cloud from outside your
house if you want to click on yes click
on yes if you want to click on no then
click on node so let's just click on yes
to show you the information now it says
port forwarding if you don't know how to
do it you can click here try to do it
for me and if you want to do it manually
you can do it from here let's just click
on here try to do it for me and check so
it's give us an information and see
forward ports so either we can use NC
forward ports or we can just go and
manually do the configuration so as you
can see no I GPU P device found so we
need to do it manually let's click on I
will do it manually and then click on
continue and then if you have a free DNS
account or no IP account you can use
these two things but for this tutorial
I'm going to use the duck DNS so let's
go and click on skip and let's go ahead
and go to the next cloud let's
right-click and open in new tab and from
the web panel let's click on it and we
are on the web panel this is the web
panel from here we can do all the
configuration for our next cloud by you
don't need to do it manually anything
from the command line everything is
right here you can select these options
and configure your next cloud pack so
let's just log in first of all as you
can see access through untrusted domain
so it's not able to access through the
ID that is 192.168.1.3 that is the IP
address so right now this is not working
what we need to do is go back here
and we need to just move down a little
bit and look for NC trusted domains
let's go and click on it and as you can
see it has only 192.168.1.1 five but as
our raspberry pi is on 73 so let's just
type 73 here and apply and it will
configure everything it's applied now
let's just check it again with 73 and it
will pointing us to the Raspberry Pi
board and it gave us the login page now
then as you can see we are able to put
the username and the password here so
the username is NCP and the password is
what we copied already now we are not
able to like remember this long password
so we will go ahead and change the
password first of all to change the
password of next cloud console
configuration console what we need to do
is we need to go here on the NC password
option and from here we can change the
password as you can see this is the big
password here let's just change it to
our password so as you can see password
updated successfully this is the way you
can change the next cloud parallel
password so the password reset is done
and then we'll go here and we are
created with this page start using next
cloud and we will change the password
here as well we are going to go into
user and then let's put the new password
let's put the same password here and the
password is changed now let's just log
out and check whether we are able to log
in with the new password or not so I am
able to log in with the new password the
password is changed on both the
interfaces like
the configuration page and for the next
cloud as well now everything is done
regarding the next cloud installation
what we need to do now first of all we
are going to configure our next cloud to
access from outside the network as I put
it in the picture as well first of all
we are going to use the duct TNS to
create a URL that can be accessed from
outside our network so let's just go
ahead and open the duct pianist website
so I'm right here on the Doug DNS
website let me just go ahead and log in
with my email address so I am logged in
now let me just go and delete my other
URLs and create a new one let's type PC
Mac PI domain and it's available now
let's just try to put it here on the top
so it's rejected the request because we
are on the same network let's just copy
it here and paste it on a notepad so we
are with our duck TNS URL now what we
need to do we need to forward the ports
so I'm going to open my router and login
now from here let me just go into the
port forward from services it might be
different for you I'm using a simple
router so I already forwarded my port 80
and port 443 to my URL that is
192.168.1.0 30 that that is the IP
address of my Raspberry Pi not the URL
sorry for that so I already forward the
ports here let's just delete the other
ports
so you need to follow the same step
let's just apply now it's done from here
what we need to do is we need to add
this URL to our trusted websites so
click on copy and go back to the
configuration again and then NC trusted
domains had put it on the top so I can
access it from outside the network it's
done now what we need to do is we need
to go down and from the networking tab
we need to go into the duct TNS and we
need to activate once we click on active
we need to put the domain name here and
this is the domain now we need to have
the token from here so the token is
right here let me just copy it and paste
it here in my configuration once it's
done then we need to click on apply so
as you can see duct TNS is enabled you
just need to type your domain name
without any forward slashes or HTTP so
it's enabled now and we already add it
to our trusted domains let's just remove
these things from here as well so it can
be easily identified by the network so
it's done now we can easily access our
next clout from outside our network so
I'm using my phone and then I'll check
whether I'm able to access it or not I'm
using a 4G network let's just check so
the recorder is on on my phone let's
just go ahead and open the Google Chrome
and then check whether we are able to
access our next cloud from outside the
network or not so I'm on the 4G network
as you can see on the top right corner
let's just type the URL not
PC Mac PI hat duck tienes dot sorry it's
PC Mac PI dot duck DNS dot o-r-g so as
you can see we are able to access the
page
proceed to PC Mac PI right now it's
unsafe and as you can see I can put my
username in the password let's just try
to access it so I'm able to logged in
but due to some reason my Chrome is not
able to open the page to resolve this
problem what I need to do is I'm just
going to download the app it might take
just a moment so the app is successfully
downloaded let's just click on login
first of all I need to enable my data
let's click on login and type the
address here HTTP colon forward slash
forward slash PC Mac PI dot in tuk DNS
dot o-r-g it's good let's click Next
do you want to trust this certificate CS
so we can easily access our network now
but the thing is we are really not
secure because we don't have the
certificate so what we are going to do
now we are going to set up the let's
encrypt on our next cloud pi to make the
network secure and our next cloud also
secure so I'm just going to turn off my
phone and begin installing the let's
encrypt now we need to navigate to let's
encrypt from here and it will ask for
our domain name let's type the domain
name again the domain name is PC Mac PI
on duck dynasty og and then I lightly
typed my support email address support
at PC Mag dot this the notification user
the notify user is NCP let's one click
on apply and check whether it's able to
configure the let's encrypt or not
it says waiting for verification if the
information is correct it will be done
and let's check
and as you can see the green signal is
on and everything is good to go the
let's encrypt it's installed
successfully and it's working internet
access is required now whenever you try
to access your next cloud pi from
outside your network let's encrypt will
assign SSL Certificates and make sure
that you are accessing next cloud
securely over the Internet
now I will take you to my phone again
and show you whether the let's encrypt
is working or not so I'm opening my
recorder one more time the recorder is
up and I'm going to open my Google
Chrome and open the next cloud again
that is PC marked by dot tucked in is
taut Oh Archie and as you can see the
HTTP and we are getting the valid
certificates with no error messages at
all as you can see connection is secure
your information for example password
and our credit card numbers is private
when it's sent to the site so that means
the let's encrypt is also successfully
configured on our next cloud and it's
working absolutely fine so your d-day is
safe and secure and you are able to use
it anywhere over the world and access
your data from your next cloud that is
installed in your house so this is also
done now what I'm going to show you I'm
going to show you how you can go ahead
and set up a hard disk inside your next
cloud now to add a external hard drive
to our next cloud what we need to do
first of all we need to enable the
support for external storage for the
hard we need to click on the user name
from the top right corner and then we
need to go into Apps once we go into
Apps then we need to navigate to the
bottom and you will find something which
says external storage support right now
it's enabled so you need to click on it
to enable it once it's enabled it will
say disabled now we will just move up
to see whether it's enable or not
so disabled stands for the options the
APIs enable now so what we need to do is
now we need to go into the name again
and then click on setting from here we
need to set up our external storage so I
have connected a flash drive to my
Raspberry Pi for that what we need to do
is first of all click on external
storage now once we click on external
storage let's just select the storage
type it's local so the folder name is
also local now you can change it to any
name that you want now for the location
part what we need to do is first of all
we need to check hard drive where it's
connected so for that let's open the SSH
and the command that we need to type is
BL kit once we do that you can see that
it's right here this one is our drive
Dave st one usually it's on this but you
can see that and the other ones are boot
and route FS are right here so we need
to mount this drive first of all to do
that what we need to type is we need to
type this location and we need to mount
it on M and T so for that let's type
mount
forward slash the path of the drive TeV
/st
a1 and then a space then /m and T so we
need to mount it on this try this folder
this directory MNT so let's click on
enter and I already mounted this so you
can see that after that we need to
provide its permission to read and write
access for that what we need to type is
chmod 775 and the drive on which we need
to provide permission is MNT then hit
enter if you are not in root user you
just need to put sudo in front of every
command now once it's done what we need
to do is go back and in the location bar
as you can see it's highlighted in red
so just we will type M empty as we
already connected the strive to m LT
mounted this drive now you can just
select the user whatever user you want
here so let's click on admin and then
NCP so both the users are connected
let's select PC Mac as well and click on
the write icon and it's connected now
the green sign is signifies that the
drive is connected after that let's go
back click on the next cloud pie icon on
the top left corner and you will see
external storage right here and the
folder is right here it's pending now so
it will be shown here right now no files
in here so it it's connected to the
system right now it's 0 Kb so it will be
done my drive is not formatted to ext4
that's the problem it says you don't
have permission to upload or create file
here so first of all format the drive
then connect to your next cloud and it
will be done correctly so it's almost
done everything is done if you have any
questions any problem you can write me
down in the comment section I'll try to
answer them and if you liked this video
please hit the like button and subscribe
to my channel I will be really thankful
to you all guys who is watching my stuff
and that's it from my end thank you for
watching bye bye take care have a nice
day
