1
00:00:00,330 --> 00:00:01,260
Today, I'm going to walk you through

2
00:00:01,260 --> 00:00:04,650
how to install Linux in a virtualized environment.

3
00:00:04,650 --> 00:00:06,540
Now, the particular virtual machine

4
00:00:06,540 --> 00:00:09,450
that we're going to use is created by Oracle

5
00:00:09,450 --> 00:00:11,460
called VirtualBox.

6
00:00:11,460 --> 00:00:14,130
Now, simply go to VirtualBox.org

7
00:00:14,130 --> 00:00:16,020
and click the big blue Download button

8
00:00:16,020 --> 00:00:17,310
so we can get started.

9
00:00:17,310 --> 00:00:20,340
So here, we're going to focus on the platform packages section.

10
00:00:20,340 --> 00:00:21,870
This screen correlates with the operating system

11
00:00:21,870 --> 00:00:23,790
that you're currently running on your machine.

12
00:00:23,790 --> 00:00:25,590
Not the target operating system that you would like to use

13
00:00:25,590 --> 00:00:27,000
for the virtual machine.

14
00:00:27,000 --> 00:00:29,610
So we're going to click Windows hosts for me.

15
00:00:29,610 --> 00:00:30,870
Now, of course, you're using a macOS,

16
00:00:30,870 --> 00:00:32,940
you're going to click OS X hosts.

17
00:00:32,940 --> 00:00:34,470
And if you using Linux distribution,

18
00:00:34,470 --> 00:00:35,700
you're going to use that.

19
00:00:35,700 --> 00:00:37,620
All right, so now that this finished downloading,

20
00:00:37,620 --> 00:00:39,520
we're going to go ahead and install this.

21
00:00:41,800 --> 00:00:43,380
We're going to click Yes here.

22
00:00:43,380 --> 00:00:44,850
For this example of VirtualBox,

23
00:00:44,850 --> 00:00:45,683
we're going to go ahead

24
00:00:45,683 --> 00:00:47,880
and just go through the default settings

25
00:00:47,880 --> 00:00:49,170
and keep them as is

26
00:00:49,170 --> 00:00:51,660
so we can go ahead and speed up this process.

27
00:00:51,660 --> 00:00:52,860
Shouldn't take too long.

28
00:00:54,630 --> 00:00:56,673
All right, good to go there.

29
00:00:58,170 --> 00:01:02,220
All right, now, for this version of Linux,

30
00:01:02,220 --> 00:01:05,010
we're going to use CentOS 7.

31
00:01:05,010 --> 00:01:08,700
So we're going to go to centos.org/download.

32
00:01:08,700 --> 00:01:10,350
And for this particular architecture,

33
00:01:10,350 --> 00:01:14,190
most people are going to use the x86_64.

34
00:01:14,190 --> 00:01:17,190
That's for the standard 64-bit computer,

35
00:01:17,190 --> 00:01:18,840
which most of our processor even.

36
00:01:20,040 --> 00:01:22,710
We're just going to click the first mirror that we see here.

37
00:01:22,710 --> 00:01:24,000
So on this directory,

38
00:01:24,000 --> 00:01:28,350
it's going to show us different types of ISO images.

39
00:01:28,350 --> 00:01:32,430
So these images are going to contain multiple features.

40
00:01:32,430 --> 00:01:35,790
But for this example, we're only going to need the DVD version,

41
00:01:35,790 --> 00:01:37,830
and we don't need the one with Everything,

42
00:01:37,830 --> 00:01:39,163
Minimal, or the NetInstall.

43
00:01:39,163 --> 00:01:40,230
We're just going to do the DVD version.

44
00:01:40,230 --> 00:01:41,310
Try to save a little space

45
00:01:41,310 --> 00:01:43,020
'cause this one's only 4.4 gigs

46
00:01:43,020 --> 00:01:45,210
versus the size of the other ones.

47
00:01:45,210 --> 00:01:46,170
And we're going to download.

48
00:01:46,170 --> 00:01:47,280
It might take a little minute,

49
00:01:47,280 --> 00:01:48,510
so I'll get right back to you

50
00:01:48,510 --> 00:01:50,160
once I finish downloading.

51
00:01:50,160 --> 00:01:52,500
All right, my ISO image is finish downloading.

52
00:01:52,500 --> 00:01:54,030
Now, what we're going to do next

53
00:01:54,030 --> 00:01:55,950
is just create a new virtual machine.

54
00:01:55,950 --> 00:01:59,160
We're going to simply click this blue New button here,

55
00:01:59,160 --> 00:02:02,883
and we're going to name it CentOS7.

56
00:02:04,950 --> 00:02:06,930
Now, as you can see, VirtualBox is smart enough

57
00:02:06,930 --> 00:02:08,850
to recognize what I'm typing,

58
00:02:08,850 --> 00:02:11,850
and it automatically selects the type of operating system

59
00:02:11,850 --> 00:02:14,070
as well as the distribution.

60
00:02:14,070 --> 00:02:16,410
Now, we're going to keep this machine folder

61
00:02:16,410 --> 00:02:19,380
selected as default, and click Next.

62
00:02:19,380 --> 00:02:22,620
And again, as before, we're going to keep everything

63
00:02:22,620 --> 00:02:25,803
very simple and keep the default settings for this example.

64
00:02:27,090 --> 00:02:29,440
Going to click Create a new virtual hard disk now.

65
00:02:31,770 --> 00:02:34,773
Next, keep that selected.

66
00:02:36,240 --> 00:02:37,540
Eight gigs is good enough.

67
00:02:40,530 --> 00:02:42,570
And alright, we have it created.

68
00:02:42,570 --> 00:02:45,210
First thing we want to do is go to Settings.

69
00:02:45,210 --> 00:02:47,210
And go to Storage here.

70
00:02:47,210 --> 00:02:49,830
I'm going to click this optical blue disk.

71
00:02:49,830 --> 00:02:54,120
What we're going to do now is we're going to select image again,

72
00:02:54,120 --> 00:02:57,270
and we're going to click Choose a disk file.

73
00:02:57,270 --> 00:02:59,280
Now, we're going to select the download

74
00:02:59,280 --> 00:03:01,560
of the CentOS 7 that we did earlier,

75
00:03:01,560 --> 00:03:04,080
and that's going to be our ISO image.

76
00:03:04,080 --> 00:03:04,913
Click Open.

77
00:03:05,970 --> 00:03:09,120
All right, see it highlighted there?

78
00:03:09,120 --> 00:03:11,973
Click Okay, and Start.

79
00:03:15,093 --> 00:03:17,490
Going to let it do its thing for a little bit.

80
00:03:17,490 --> 00:03:19,503
We're just going to select Enter,

81
00:03:21,270 --> 00:03:23,913
and let the installation process begin.

82
00:03:34,020 --> 00:03:36,587
All right, so now we're on the main screen.

83
00:03:36,587 --> 00:03:37,420
What we're going to do here,

84
00:03:37,420 --> 00:03:40,140
we're going to start by configuring the localization settings.

85
00:03:40,140 --> 00:03:40,973
We're just go ahead.

86
00:03:40,973 --> 00:03:42,840
Select the standard keyboard, English.

87
00:03:42,840 --> 00:03:43,673
It's going to be for me,

88
00:03:43,673 --> 00:03:45,770
whatever language you are, you select that.

89
00:03:47,730 --> 00:03:48,573
Okay, Continue.

90
00:03:52,230 --> 00:03:53,400
First thing we're going to do

91
00:03:53,400 --> 00:03:55,950
is select the date and time.

92
00:03:55,950 --> 00:03:57,960
Now I'm in Sacramento, California

93
00:03:57,960 --> 00:04:00,720
so I'm going to select the West Coast.

94
00:04:00,720 --> 00:04:03,483
You select whatever region that you will like.

95
00:04:05,400 --> 00:04:06,420
The next thing we're going to do

96
00:04:06,420 --> 00:04:08,160
is select the software components

97
00:04:08,160 --> 00:04:09,513
in the base environment.

98
00:04:11,610 --> 00:04:14,100
So as far as software selection goes,

99
00:04:14,100 --> 00:04:14,933
first thing we're going to select

100
00:04:14,933 --> 00:04:16,053
is the server with GUI.

101
00:04:16,980 --> 00:04:18,990
Now, by default, the server with GUI selection

102
00:04:18,990 --> 00:04:20,670
will install most tools necessary

103
00:04:20,670 --> 00:04:22,470
for the configuration and maintenance

104
00:04:22,470 --> 00:04:24,330
of general server infrastructure,

105
00:04:24,330 --> 00:04:27,300
Along with the GNOME as the default GUI.

106
00:04:27,300 --> 00:04:29,310
Now, just a little gee whiz kid,

107
00:04:29,310 --> 00:04:34,230
GNOME stands for GNU Network Object Model Environment.

108
00:04:34,230 --> 00:04:35,280
It's just always easier for me

109
00:04:35,280 --> 00:04:37,560
if I understand the acronym

110
00:04:37,560 --> 00:04:39,810
when it comes to understanding things a little better.

111
00:04:39,810 --> 00:04:40,643
It's nothing more there,

112
00:04:40,643 --> 00:04:43,050
one of the basic graphical user interfaces

113
00:04:43,050 --> 00:04:46,140
used by a lot of Linux distributions.

114
00:04:46,140 --> 00:04:48,023
So we're going to go ahead and select that.

115
00:04:49,890 --> 00:04:52,290
Now, as far as add-ons for the selected environment,

116
00:04:52,290 --> 00:04:54,180
we're going to scroll down here

117
00:04:54,180 --> 00:04:57,003
and we're going to select the KDE workspace.

118
00:04:57,990 --> 00:04:58,823
Click Done.

119
00:05:01,650 --> 00:05:04,350
We'll wait for it to finish checking its dependencies.

120
00:05:05,250 --> 00:05:07,890
All right, looks like we're good to go there.

121
00:05:07,890 --> 00:05:08,760
Next thing we're want to do

122
00:05:08,760 --> 00:05:11,670
is wipe this storage device to start fresh.

123
00:05:11,670 --> 00:05:13,440
So under the system section,

124
00:05:13,440 --> 00:05:16,053
we're going to select Installation Destination.

125
00:05:17,970 --> 00:05:19,230
Okay, here we see,

126
00:05:19,230 --> 00:05:21,810
this is the virtual disk that we created earlier

127
00:05:21,810 --> 00:05:23,340
when we was creating the machine.

128
00:05:23,340 --> 00:05:25,340
So we're going to make sure we select this,

129
00:05:26,340 --> 00:05:27,870
and we're going to ensure

130
00:05:27,870 --> 00:05:31,620
that the automatically configure in partition is selected.

131
00:05:31,620 --> 00:05:33,480
We're also going to make sure the check box

132
00:05:33,480 --> 00:05:34,650
for I would like to make

133
00:05:34,650 --> 00:05:37,443
additional space available is checked.

134
00:05:38,910 --> 00:05:40,610
And then, we're going to select Done.

135
00:05:42,480 --> 00:05:43,410
So on this screen,

136
00:05:43,410 --> 00:05:46,080
to make sure we reclaim the disk space,

137
00:05:46,080 --> 00:05:47,730
it's good for general practice.

138
00:05:47,730 --> 00:05:49,860
We're going to ensure that we have free space,

139
00:05:49,860 --> 00:05:53,280
which it should be the rough amount that we used earlier,

140
00:05:53,280 --> 00:05:55,350
because the disk is still empty.

141
00:05:55,350 --> 00:05:57,950
And we're just going to click Reclaim space right here.

142
00:05:59,580 --> 00:06:02,100
Again, that's just for general good practice

143
00:06:02,100 --> 00:06:05,013
to make sure that the disk that we're using is clear.

144
00:06:05,940 --> 00:06:07,140
So now, what we're going to do

145
00:06:07,140 --> 00:06:09,870
is configure the partition of scheme to use.

146
00:06:09,870 --> 00:06:12,533
We're going to click the Installation Destination button again.

147
00:06:14,580 --> 00:06:16,110
Now, this time, we're going to click

148
00:06:16,110 --> 00:06:17,823
I will configure partitioning.

149
00:06:19,500 --> 00:06:20,553
Click Done here.

150
00:06:22,650 --> 00:06:23,910
Now, the first thing we want to do

151
00:06:23,910 --> 00:06:25,560
is make sure that there's no other mount points

152
00:06:25,560 --> 00:06:26,460
that's been using,

153
00:06:26,460 --> 00:06:29,073
and we're going to use the default LVM selection.

154
00:06:30,780 --> 00:06:31,613
Next thing we want to do

155
00:06:31,613 --> 00:06:34,150
is to select Click here to create them automatically.

156
00:06:37,140 --> 00:06:39,090
All right, so the main three volumes

157
00:06:39,090 --> 00:06:40,980
that we want to make sure that were created

158
00:06:40,980 --> 00:06:44,310
is the forward slash, boot, forward slash,

159
00:06:44,310 --> 00:06:47,313
which is also root, and the swap partition.

160
00:06:49,140 --> 00:06:50,940
All right, we see those three there.

161
00:06:53,040 --> 00:06:54,360
Now, just the point of note,

162
00:06:54,360 --> 00:06:56,400
sometimes if you have a hard disk

163
00:06:56,400 --> 00:06:58,440
that's larger than 50 gigabytes

164
00:06:58,440 --> 00:07:01,350
it will automatically create a forward slash, home for us,

165
00:07:01,350 --> 00:07:03,000
but since we have less than that,

166
00:07:03,000 --> 00:07:04,050
we're not going to create it,

167
00:07:04,050 --> 00:07:06,033
it's going to be part of the root system.

168
00:07:06,960 --> 00:07:09,120
We just want to take note of the space

169
00:07:09,120 --> 00:07:11,220
that each one of the systems are using

170
00:07:11,220 --> 00:07:13,500
as well as the available space.

171
00:07:13,500 --> 00:07:17,073
And then, we're just going to select Done right here.

172
00:07:19,710 --> 00:07:21,633
We're going to select Accept Changes,

173
00:07:24,060 --> 00:07:25,110
and we're good to go.

174
00:07:25,950 --> 00:07:27,390
Now, the next thing we want to do

175
00:07:27,390 --> 00:07:29,760
is move on to configuring the network.

176
00:07:29,760 --> 00:07:31,770
So on this installation summary page,

177
00:07:31,770 --> 00:07:34,860
we're going to go select network and host name.

178
00:07:34,860 --> 00:07:37,770
All right, now, on this screen,

179
00:07:37,770 --> 00:07:40,110
what we're going to do is ensure that the interface

180
00:07:40,110 --> 00:07:41,280
that we want to use,

181
00:07:41,280 --> 00:07:46,280
which is in my case, enpOS3 is selected.

182
00:07:46,290 --> 00:07:48,210
That's simply the virtual machine interface

183
00:07:48,210 --> 00:07:50,250
that we're going to use to connect to the internet

184
00:07:50,250 --> 00:07:51,360
that we selected earlier

185
00:07:51,360 --> 00:07:52,590
when we was creating the virtual machine

186
00:07:52,590 --> 00:07:54,543
when we first installed VirtualBox.

187
00:07:55,410 --> 00:07:57,810
All right, now here, we see the host name.

188
00:07:57,810 --> 00:08:00,180
We can leave it as a default right now

189
00:08:00,180 --> 00:08:01,780
as to our localhost.

190
00:08:01,780 --> 00:08:03,480
Here, we're going to go to Configure.

191
00:08:04,770 --> 00:08:05,670
The next thing we want to do

192
00:08:05,670 --> 00:08:08,850
is make sure we go to the IPv4 settings,

193
00:08:08,850 --> 00:08:11,160
and we're going to select Manual.

194
00:08:11,160 --> 00:08:12,630
So in this example, what we're going to do

195
00:08:12,630 --> 00:08:15,690
is add an IP address, a static IP address,

196
00:08:15,690 --> 00:08:18,030
that we're going to use to connect to the internet.

197
00:08:18,030 --> 00:08:22,747
So for this example, we're going to use 10.50.1.201.

198
00:08:26,250 --> 00:08:27,630
We're going to use that.

199
00:08:27,630 --> 00:08:32,453
And for the netmask, we're going to use 255.255.255.0.

200
00:08:35,130 --> 00:08:39,860
And the gateway is going to be 10.50.1.1.

201
00:08:41,909 --> 00:08:43,470
For the DNS servers,

202
00:08:43,470 --> 00:08:47,550
we're going to use the default 8.8.8.8.

203
00:08:47,550 --> 00:08:49,590
For those of who do not know this,

204
00:08:49,590 --> 00:08:51,573
google DNS server.

205
00:08:52,590 --> 00:08:54,813
And we're going to save.

206
00:08:56,430 --> 00:08:57,390
Now, last but not least,

207
00:08:57,390 --> 00:09:00,783
we want to make sure that we have this ethernet connection on.

208
00:09:01,620 --> 00:09:03,000
So it shows it's connected,

209
00:09:03,000 --> 00:09:04,500
and we're going to click done.

210
00:09:06,180 --> 00:09:07,080
All right, we're done with that.

211
00:09:07,080 --> 00:09:09,930
So next thing we're going to do is click Begin Installation.

212
00:09:12,660 --> 00:09:13,493
Now on this screen,

213
00:09:13,493 --> 00:09:14,490
we're going to start to configure

214
00:09:14,490 --> 00:09:17,460
the usernames and user accounts.

215
00:09:17,460 --> 00:09:18,600
So on our user settings,

216
00:09:18,600 --> 00:09:21,273
first thing we want to do is select the Root Password.

217
00:09:22,710 --> 00:09:24,900
Now, of course, we should always use

218
00:09:24,900 --> 00:09:28,740
the most complex and strong passwords possible,

219
00:09:28,740 --> 00:09:30,840
but for the sake of this example,

220
00:09:30,840 --> 00:09:32,820
we'll keep it very simple.

221
00:09:32,820 --> 00:09:34,370
We have the password set there.

222
00:09:36,930 --> 00:09:39,090
So the next thing we're going to do is create a user account.

223
00:09:39,090 --> 00:09:39,923
And we're going to do this

224
00:09:39,923 --> 00:09:41,823
by selecting the User Creation button.

225
00:09:44,070 --> 00:09:45,540
Now, for this example,

226
00:09:45,540 --> 00:09:49,260
I'm just going to use host1 as the username.

227
00:09:49,260 --> 00:09:52,770
And, of course, we want to make this administrator.

228
00:09:52,770 --> 00:09:56,370
And then as stated earlier,

229
00:09:56,370 --> 00:09:57,300
in a production environment,

230
00:09:57,300 --> 00:10:00,060
you want to make sure you're using a complex password

231
00:10:00,060 --> 00:10:01,860
because you don't want the system to be subject

232
00:10:01,860 --> 00:10:03,630
to any dictionary attacks,

233
00:10:03,630 --> 00:10:06,990
where a hacker essentially collects a whole bunch

234
00:10:06,990 --> 00:10:11,940
of commonly use passwords like password123,

235
00:10:11,940 --> 00:10:12,773
or anything like that,

236
00:10:12,773 --> 00:10:15,333
or, especially, avoid your name.

237
00:10:16,650 --> 00:10:18,900
All right, we're good to go there.

238
00:10:18,900 --> 00:10:20,950
And that's how you create a user account.

239
00:10:22,260 --> 00:10:24,630
Now, at this point, we're waiting for the system to install.

240
00:10:24,630 --> 00:10:26,160
Now, this can take up to 30 minutes,

241
00:10:26,160 --> 00:10:28,170
so I'll be back as soon as everything is installed

242
00:10:28,170 --> 00:10:29,340
for you, guys

243
00:10:29,340 --> 00:10:32,490
it looks like that we have completed the installation.

244
00:10:32,490 --> 00:10:33,840
Now, the next thing we want to click

245
00:10:33,840 --> 00:10:35,223
is the Reboot button here.

246
00:10:39,630 --> 00:10:43,263
Next thing we need to do is select and accept the license.

247
00:10:44,400 --> 00:10:46,623
We want to select it here, click Done.

248
00:10:47,880 --> 00:10:50,103
And click Finish Configuration.

249
00:10:56,010 --> 00:10:57,870
We're going to log in with the password

250
00:10:57,870 --> 00:11:00,370
that we used earlier for our user that we created,

251
00:11:01,710 --> 00:11:02,733
whatever that is.

252
00:11:04,470 --> 00:11:06,090
All right, we're in.

253
00:11:06,090 --> 00:11:08,403
Keep our settings the same with English.

254
00:11:09,450 --> 00:11:11,610
We have English here, keep that same.

255
00:11:11,610 --> 00:11:14,973
Next, keep the default settings.

256
00:11:17,670 --> 00:11:18,843
Skip this for now.

257
00:11:19,830 --> 00:11:23,040
And we're going to start using CentOS Linux.

258
00:11:23,040 --> 00:11:26,640
And now we're booted into our own CentOS Linux system.

259
00:11:26,640 --> 00:11:27,990
And we will return to the system

260
00:11:27,990 --> 00:11:30,450
as we do our hands-on demonstrations together.

261
00:11:30,450 --> 00:11:31,320
Thank you for sticking with me

262
00:11:31,320 --> 00:11:33,090
throughout the entire installation process,

263
00:11:33,090 --> 00:11:35,643
and I will see you in the next hands-on lesson.

