Welcome everyone in this lecture, we're going to set up our lino to actually host and serve our jingle
website again as a quick note.
If you want $100 in line of credit in order to do everything we show here for free, at least for a
few months, you can actually check this out on this link.
It should give you $100 in line of credit.
OK, let's go ahead and log in to Leonard.
All right, so upon logging into Lennart, you should be at cloud that little dot com by default.
It takes you to the low notes page where you can actually set up your own lino, which is essentially
a little server.
But what we want to do is check out the marketplace.
So click on the marketplace, and then it's going to give you a list of quote unquote applications.
So you can see here there are a ton of them.
There's things like setting up a video game server like a Cisco server.
There's things like setting up a discourse server, and what we want is the Django option.
So click on Django.
Essentially, what this does is it takes care of a lot of the heavy lifting of making sure your Django
website that is the project is actually started automatically for you.
And then it also makes sure that your settings are configured in a way that is going to point to the
eventual IP address that we're going to create.
So select Django and then continue to scroll down here.
And then you need the jingo options, you can think of this as the superuser options.
So we need to create a Django user Django password for that user and then a user email in case we need
to reset that password.
And you should really either know these usernames or passwords well or just write them down somewhere.
These are kind of really hard to reset if you mess any of these up.
So I'm going to create a Django user.
We'll call it my Django user.
I'll set up a password.
And then I'll pass in an email.
Then once you've done that, you can select an image, this is essentially the operating system that's
going to be connected to the actual server.
The default Debian 10 is actually the only option, I believe, at this point in time.
So yeah, so we'll just leave that as a default.
That's pretty much exactly what we want anyways.
And then it's up to you to select a region.
You can use the speed test page to figure out the closest region to you and which ones the fastest to
connect.
But sometimes you want to keep in mind of who your target audience is.
For example, I can select regions that are actually in Europe or Asia Pacific.
If for some reason maybe you're located in London, but you expect everybody using your site to be in
Japan.
It would probably make sense to set up this little instance in Tokyo instead of London.
So honestly, there should pretty much be all okay, and I would just recommend if you're stuck here,
just choose the one that's closest to you.
So I believe for me, it's probably Dallas, Texas, that's close to me.
And then we're going to do here is choose a node plan.
There's many different types of Leno's plans.
There's a dedicated CPU, which is good for picking up a full duty workload where really consistent
performance is important to you, and you expect a lot of people to be visiting your site and giving
it a heavier load.
You can also use shared CPU.
This is going to be cheaper.
And honestly, if you're just starting out and your website is kind of just your own little portfolio
site, this should be totally OK.
If you're doing things like a lot of analysis, maybe some sort of CPU intensive and ram intensive jobs,
you could go with a high memory instance that has a lot more ram.
Again, this really depends on what you're doing.
Obviously, the more compute power, the more it's going to cost.
So I to go shared CPU and let's just choose a little two gigabyte instance.
We're going to do anything too crazy here.
You'll notice it gives you two gigabytes of RAM, so not a whole lot, but enough to just lots of very
basic website and then storage.
It gives you 50 gigabytes of storage, which should be enough for just the very basic website, depending
on how big your database is.
And remember that database?
The way we're setting it up here is going to live within these 50 gigabytes, so just keep that in mind.
OK.
So this costs us $10 a month, which means our $100 credit would last us 10 months.
Not too bad, almost a year.
And you can just leave the default label if you want.
You can add a tag that's totally OK.
And then we're also going to want to make sure we have a root password.
So let's pass in a password.
And for right now, everything else is optional, we'll talk about how to SSA into the actual instance
later on.
So once that's set up, you can go ahead and double check everything.
But you see here the summary I'm setting up in Dallas, Texas, a little DB 10 instance, a little computer,
two gigabytes of RAM, 50 gigabytes of storage and one CPU for $10 a month.
Then I create Lenovo.
And then upon hitting that, it should eventually refresh and take you to another screen here.
OK.
So it will take a couple of minutes to provision this, but something to keep in mind here is there
is an IP address.
So what I'm going to do is essentially fast forward in time until this is done provisioning our instance
for us.
So maybe right now, if you're doing this along with me, go get a cup of coffee or get some water,
or just take a little break and come back to this in a few minutes.
OK, we're going to fast forward in time now.
All right, so I fast forward in time to just a couple of minutes for me to get this one up and running.
And what we can do is we can see the full summary and we'll talk about how to securely access using
associates in just a second.
But what I want to point out to you is the fact that this is running at this IP address.
So we already know that this Linux is essentially a computer somewhere in Dallas, Texas, at this IP
address in the same way that your computer was running a Django application locally at one two seven
zero zero one port eight thousand.
This is not running a Django website for us at this IP address, and we already know the default port
is going to be port eight thousand.
So go ahead and copy this IP address and then paste it into your browser as so and then say Colon Port
8000, just like you would do when you were running this locally.
Except now it's at this specific IP address.
Keep in mind, your IP address is going to be different than mine, obviously.
So enter.
And if everything worked, you should see this little jingo application running.
So note here this install works successfully.
Congratulations.
And right now, by default, we have debug equal to true, which we can then later on go into our settings
that py file and change.
OK, so we haven't configured any URLs.
Everything's default, but we now have a computer in Dallas, Texas, running this little micro website
for us, which is running eight Django website.
Now the question is what happens when I actually want to actually begin editing these files and playing
around and messing around with my website?
Well, this is where we have to understand how to securely access our actual instance.
So what I'm going to do in the next lecture is talk about in a little more detail the SS H access to
the actual Lennart server.
OK, I'll see you there.