1
00:00:05,190 --> 00:00:10,800
Welcome everyone in this lecture, we're going to set up our lino to actually host and serve our jingle

2
00:00:10,800 --> 00:00:13,320
website again as a quick note.

3
00:00:13,500 --> 00:00:18,360
If you want $100 in line of credit in order to do everything we show here for free, at least for a

4
00:00:18,360 --> 00:00:21,430
few months, you can actually check this out on this link.

5
00:00:21,450 --> 00:00:23,460
It should give you $100 in line of credit.

6
00:00:24,000 --> 00:00:26,370
OK, let's go ahead and log in to Leonard.

7
00:00:26,550 --> 00:00:31,220
All right, so upon logging into Lennart, you should be at cloud that little dot com by default.

8
00:00:31,230 --> 00:00:36,090
It takes you to the low notes page where you can actually set up your own lino, which is essentially

9
00:00:36,090 --> 00:00:36,960
a little server.

10
00:00:36,970 --> 00:00:39,420
But what we want to do is check out the marketplace.

11
00:00:40,020 --> 00:00:45,160
So click on the marketplace, and then it's going to give you a list of quote unquote applications.

12
00:00:45,510 --> 00:00:47,520
So you can see here there are a ton of them.

13
00:00:47,520 --> 00:00:50,910
There's things like setting up a video game server like a Cisco server.

14
00:00:50,940 --> 00:00:56,850
There's things like setting up a discourse server, and what we want is the Django option.

15
00:00:57,210 --> 00:00:58,320
So click on Django.

16
00:00:58,350 --> 00:01:03,660
Essentially, what this does is it takes care of a lot of the heavy lifting of making sure your Django

17
00:01:03,660 --> 00:01:07,140
website that is the project is actually started automatically for you.

18
00:01:07,440 --> 00:01:11,490
And then it also makes sure that your settings are configured in a way that is going to point to the

19
00:01:11,490 --> 00:01:13,410
eventual IP address that we're going to create.

20
00:01:13,870 --> 00:01:16,590
So select Django and then continue to scroll down here.

21
00:01:17,480 --> 00:01:21,890
And then you need the jingo options, you can think of this as the superuser options.

22
00:01:22,160 --> 00:01:28,010
So we need to create a Django user Django password for that user and then a user email in case we need

23
00:01:28,010 --> 00:01:29,420
to reset that password.

24
00:01:29,810 --> 00:01:34,910
And you should really either know these usernames or passwords well or just write them down somewhere.

25
00:01:35,000 --> 00:01:38,420
These are kind of really hard to reset if you mess any of these up.

26
00:01:38,420 --> 00:01:40,820
So I'm going to create a Django user.

27
00:01:40,820 --> 00:01:42,440
We'll call it my Django user.

28
00:01:43,130 --> 00:01:44,240
I'll set up a password.

29
00:01:47,110 --> 00:01:48,340
And then I'll pass in an email.

30
00:01:49,210 --> 00:01:54,130
Then once you've done that, you can select an image, this is essentially the operating system that's

31
00:01:54,130 --> 00:01:56,770
going to be connected to the actual server.

32
00:01:57,040 --> 00:02:00,840
The default Debian 10 is actually the only option, I believe, at this point in time.

33
00:02:00,850 --> 00:02:02,610
So yeah, so we'll just leave that as a default.

34
00:02:02,620 --> 00:02:04,450
That's pretty much exactly what we want anyways.

35
00:02:04,840 --> 00:02:07,330
And then it's up to you to select a region.

36
00:02:07,630 --> 00:02:13,120
You can use the speed test page to figure out the closest region to you and which ones the fastest to

37
00:02:13,120 --> 00:02:13,510
connect.

38
00:02:13,810 --> 00:02:16,690
But sometimes you want to keep in mind of who your target audience is.

39
00:02:16,990 --> 00:02:20,830
For example, I can select regions that are actually in Europe or Asia Pacific.

40
00:02:21,130 --> 00:02:26,320
If for some reason maybe you're located in London, but you expect everybody using your site to be in

41
00:02:26,320 --> 00:02:26,770
Japan.

42
00:02:26,980 --> 00:02:31,540
It would probably make sense to set up this little instance in Tokyo instead of London.

43
00:02:32,110 --> 00:02:36,790
So honestly, there should pretty much be all okay, and I would just recommend if you're stuck here,

44
00:02:36,790 --> 00:02:38,170
just choose the one that's closest to you.

45
00:02:38,620 --> 00:02:41,320
So I believe for me, it's probably Dallas, Texas, that's close to me.

46
00:02:41,890 --> 00:02:45,400
And then we're going to do here is choose a node plan.

47
00:02:45,850 --> 00:02:47,670
There's many different types of Leno's plans.

48
00:02:47,680 --> 00:02:53,470
There's a dedicated CPU, which is good for picking up a full duty workload where really consistent

49
00:02:53,470 --> 00:02:58,030
performance is important to you, and you expect a lot of people to be visiting your site and giving

50
00:02:58,030 --> 00:02:58,810
it a heavier load.

51
00:02:59,080 --> 00:03:00,820
You can also use shared CPU.

52
00:03:01,150 --> 00:03:02,350
This is going to be cheaper.

53
00:03:02,590 --> 00:03:07,360
And honestly, if you're just starting out and your website is kind of just your own little portfolio

54
00:03:07,360 --> 00:03:08,890
site, this should be totally OK.

55
00:03:09,280 --> 00:03:15,730
If you're doing things like a lot of analysis, maybe some sort of CPU intensive and ram intensive jobs,

56
00:03:15,970 --> 00:03:19,720
you could go with a high memory instance that has a lot more ram.

57
00:03:20,140 --> 00:03:22,130
Again, this really depends on what you're doing.

58
00:03:22,150 --> 00:03:24,800
Obviously, the more compute power, the more it's going to cost.

59
00:03:24,820 --> 00:03:29,950
So I to go shared CPU and let's just choose a little two gigabyte instance.

60
00:03:29,950 --> 00:03:31,330
We're going to do anything too crazy here.

61
00:03:31,630 --> 00:03:36,130
You'll notice it gives you two gigabytes of RAM, so not a whole lot, but enough to just lots of very

62
00:03:36,130 --> 00:03:37,890
basic website and then storage.

63
00:03:37,900 --> 00:03:42,250
It gives you 50 gigabytes of storage, which should be enough for just the very basic website, depending

64
00:03:42,250 --> 00:03:43,780
on how big your database is.

65
00:03:43,790 --> 00:03:45,150
And remember that database?

66
00:03:45,160 --> 00:03:48,970
The way we're setting it up here is going to live within these 50 gigabytes, so just keep that in mind.

67
00:03:49,270 --> 00:03:49,570
OK.

68
00:03:49,810 --> 00:03:54,580
So this costs us $10 a month, which means our $100 credit would last us 10 months.

69
00:03:54,580 --> 00:03:55,660
Not too bad, almost a year.

70
00:03:56,350 --> 00:03:59,220
And you can just leave the default label if you want.

71
00:03:59,230 --> 00:04:00,850
You can add a tag that's totally OK.

72
00:04:01,240 --> 00:04:04,030
And then we're also going to want to make sure we have a root password.

73
00:04:05,200 --> 00:04:07,600
So let's pass in a password.

74
00:04:11,690 --> 00:04:16,970
And for right now, everything else is optional, we'll talk about how to SSA into the actual instance

75
00:04:16,970 --> 00:04:17,570
later on.

76
00:04:17,870 --> 00:04:20,899
So once that's set up, you can go ahead and double check everything.

77
00:04:20,899 --> 00:04:26,290
But you see here the summary I'm setting up in Dallas, Texas, a little DB 10 instance, a little computer,

78
00:04:26,450 --> 00:04:31,360
two gigabytes of RAM, 50 gigabytes of storage and one CPU for $10 a month.

79
00:04:31,370 --> 00:04:32,630
Then I create Lenovo.

80
00:04:34,900 --> 00:04:40,510
And then upon hitting that, it should eventually refresh and take you to another screen here.

81
00:04:40,990 --> 00:04:41,290
OK.

82
00:04:41,320 --> 00:04:46,240
So it will take a couple of minutes to provision this, but something to keep in mind here is there

83
00:04:46,240 --> 00:04:48,130
is an IP address.

84
00:04:48,280 --> 00:04:53,110
So what I'm going to do is essentially fast forward in time until this is done provisioning our instance

85
00:04:53,110 --> 00:04:53,530
for us.

86
00:04:53,740 --> 00:04:57,910
So maybe right now, if you're doing this along with me, go get a cup of coffee or get some water,

87
00:04:58,210 --> 00:05:00,790
or just take a little break and come back to this in a few minutes.

88
00:05:01,060 --> 00:05:02,560
OK, we're going to fast forward in time now.

89
00:05:03,860 --> 00:05:08,960
All right, so I fast forward in time to just a couple of minutes for me to get this one up and running.

90
00:05:09,410 --> 00:05:14,970
And what we can do is we can see the full summary and we'll talk about how to securely access using

91
00:05:14,990 --> 00:05:16,400
associates in just a second.

92
00:05:16,730 --> 00:05:21,670
But what I want to point out to you is the fact that this is running at this IP address.

93
00:05:21,680 --> 00:05:27,710
So we already know that this Linux is essentially a computer somewhere in Dallas, Texas, at this IP

94
00:05:27,710 --> 00:05:34,490
address in the same way that your computer was running a Django application locally at one two seven

95
00:05:34,520 --> 00:05:36,410
zero zero one port eight thousand.

96
00:05:36,800 --> 00:05:42,680
This is not running a Django website for us at this IP address, and we already know the default port

97
00:05:42,740 --> 00:05:44,360
is going to be port eight thousand.

98
00:05:44,780 --> 00:05:53,300
So go ahead and copy this IP address and then paste it into your browser as so and then say Colon Port

99
00:05:53,330 --> 00:05:57,170
8000, just like you would do when you were running this locally.

100
00:05:57,170 --> 00:05:59,330
Except now it's at this specific IP address.

101
00:05:59,690 --> 00:06:02,450
Keep in mind, your IP address is going to be different than mine, obviously.

102
00:06:02,990 --> 00:06:03,800
So enter.

103
00:06:04,190 --> 00:06:08,480
And if everything worked, you should see this little jingo application running.

104
00:06:09,320 --> 00:06:11,810
So note here this install works successfully.

105
00:06:11,810 --> 00:06:12,760
Congratulations.

106
00:06:12,770 --> 00:06:18,440
And right now, by default, we have debug equal to true, which we can then later on go into our settings

107
00:06:18,440 --> 00:06:20,480
that py file and change.

108
00:06:20,960 --> 00:06:23,210
OK, so we haven't configured any URLs.

109
00:06:23,480 --> 00:06:29,750
Everything's default, but we now have a computer in Dallas, Texas, running this little micro website

110
00:06:29,750 --> 00:06:32,000
for us, which is running eight Django website.

111
00:06:32,390 --> 00:06:37,700
Now the question is what happens when I actually want to actually begin editing these files and playing

112
00:06:37,700 --> 00:06:39,200
around and messing around with my website?

113
00:06:39,620 --> 00:06:45,230
Well, this is where we have to understand how to securely access our actual instance.

114
00:06:45,320 --> 00:06:51,410
So what I'm going to do in the next lecture is talk about in a little more detail the SS H access to

115
00:06:51,410 --> 00:06:52,940
the actual Lennart server.

116
00:06:53,210 --> 00:06:54,260
OK, I'll see you there.

