Hello and Welcome my name is Doug Hubbell and to Astrophotography tutorials.
Today is part 2 of do it yourself raspberry pi digital picture frame.
Today we are going through the configuration steps on how to setup your own digital picture
frame.
Everything you need to configure the raspberry pi is done LX terminal it's located underneath
the wifi config icon.
Just go ahead and double click that will get you into the console for all your configuration
needs.
Open up the LX terminal the first thing you're going to do is going to want to do some updates.
The update you'll need to do first is sudo apt --get update do this first and it will
update the operating system.
Next install the slide show software we do this from the LX terminal again type in sudo
apt --get install feh press enter.
The next piece of software we are going to get is call samba.
Samba allows us to share the files so we can actually access the picture frame from our
own network.
So again we start with sudo apt --get install samba and press enter.
Another software we will need to install is the samba common library.
So to do that you sudo apt --get install samba-common-bin and then press enter.
To a US keyboard layout do this, type in, sudo leafpad /etc/default/keyboard and press
enter.
What that will do is it will bring up this leafpad editor.
What you can do is right there under GB is you need to change that to US and file save
and then you can close that out.
And then you'll have to reboot the raspberry pi in order for this to take effect.
You can do sudo reboot and press enter.
What we are going to do now is we are going to make our directories so we can put in our
photo frame.
We will do sudo mkdir --p /home/pi/frame/photos and press enter.
Now we need to create the script that's going to run the slideshow we need to do we can
change to the directory typing cd /frame press enter.
Now we can type in sudo leafpad start_frame.sh press enter.
This will do for you is bring up this editor called leafpad.
If you're more comfortable in using vi you can use that, but, we want to use leafpad
it's a pretty easy program to use most people are familiar with this editor.
We will do #!/bin/sh and we will put in $DELAY=5 this will be so we can make the delay anything
you want in the script and we'll put in /usr/bin/feh --quiet
--recursive -- randomize --fullscreen --zoom max --hide pointer --slideshow --delay $DELAY
/home/pi/frame/photos ok so that will start and run our slideshow.
Save it, hit save, now that we created the script we have to make it executable and the
way we do that, again we start with super user do sudo chmod +x start_frame.sh then
press enter.
If you've done this correctly and you've created an executable it will look different when
you do an ls to show the directory contents ls now we see start_frame.sh it's green now
and therefore we can execute that program.
The script we just created to start the slideshow we want to autostart.
So what we have to do is we have to add this to the autostart feature.
Sudo leadpad /etc/xdg/lxsessioni/LXDE/autostart once we are here we'll add the script to the
autostart file. /home/pi/frame/start_frame.sh we
will save this.
And now it will autostart with the slideshow.
The next thing we to do is we need to configure the samba settings.
What samba does is allow us to share files or write files directly to the raspberry pi.
Sudo leafpad /etc/samba/smb.conf and press enter.
It going to bring up the configuration file for samba and the first thing we have to do
in here is have to change the workgroup so it can actually be seen on your windows network.
By default it comes in as workgroup I'll show you how to check for your workgroup name in
case you don't know it.
My particular one is called mshome is my workgroup name.
Then what you need to do is you need to go all the way down to bottom of the file here.
To find your workgroup setting open your control panel click on system and on your system you'll
see your workgroup.
A link or a paste in here so you can you can just copy and paste into your settings here.
I'm going to hit control V and paste it.
Basically what I did put in this bottom code right here which says Photos that's the name
that's going to be shared as photos and the path is the path to where the photos are and
then we are going to allow to be able to write to this particular folder.
So after we are done with that will just hit save.
Restart samba type in sudo service samba restart and press enter.
Now we have to give write permissions to the samba share so we can actually write files
to the folder and the way you do that is type in sudo chmod 0777 /home/pi/frame/photos press
enter.
So we need to add a user so we can this user to access the files on the raspberry pi through
samba so we are going to type in sudo useradd --s /bin/true Administrator and we press enter.
Next we are going to set the password for Administrator so we are going to do sudo smbpasswd
--a Administrator put in
raspberry there we go now we should be able to access
the raspberry pi.
What we have to do now is we have to tell the screensaver to not go blank so there is
a software we install.
So we have to do sudo --apt --get install xscreensaver and press enter.
The start button down there at the bottom go to preferences and then go to the screensaver.
The screensaver you pull it up you want to change some the settings so it never turns
off.
The mode by default comes in as a random screensaver, but, what you need to do is change that and
you need to make it disable screensaver.
If you disable the screensaver then your slideshow will never stop it will continue to run.
After you've allowed your raspberry to share files with samba you should be able to find
it on your network drive by typing in \\raspberrypi and pressing enter and then you'll see the
shares we made.
This photo share is what we recently made so go ahead and click that and open that up.
What you can do if you'd like you can actually map this network drive you can go ahead right
click on it and say map network drive.
When it pops up the network drive settings you can just put it anything you'd like, I'll
put it to P and say finish.
Now it will be mapped on my computer as P, so if I ever want to transfer any files to
this directly I'll just pull it up my computer as P.
Now what I want to do is I want to select some files to copy over to the raspberry pi
so it will start showing a picture.
What I'll do is I'll control A select all of these photos and right click copy or control
c.
Then I'll paste that into the raspberry pi.
Here's the raspberry pi right here and I'll right click and paste that into it.
Now this is going to take a little while I put quite a few on there but as soon as these
get loaded to the raspberry pi then we should be able to just restart the raspberry pi and
then it should automatically start playing these photos over there.
So after you restart your raspberry pi you start getting a picture slideshow like you
see here.
The raspberry pi is a very compact little computer and what I'll do next in part 3 is
I'll take this raspberry pi and I'll attach it to the monitor and I'll make it so I can
hang it on the wall so stick around for that.
If this is your first time watching I'd like you to subscribe.
I publish two astrophotography videos on the 1st and 15th of every month.
Thanks for watching and I hope to see you soon.