1 00:00:04,370 --> 00:00:07,440 Before we start installing our custom bulled of in genetics. 2 00:00:07,460 --> 00:00:13,220 Note that I've once again rebuilt my server with the latest version of a boon to seventeen point ten 3 00:00:13,710 --> 00:00:14,270 again. 4 00:00:14,300 --> 00:00:17,160 I'll show you the necessary changes for the installation. 5 00:00:17,210 --> 00:00:20,980 Should you want to use centos over to the terminal. 6 00:00:20,990 --> 00:00:25,090 I've already reset that host finger print so we can go ahead and connect. 7 00:00:25,310 --> 00:00:26,070 Yes. 8 00:00:26,800 --> 00:00:32,790 And in were 31 to welcome page confirming version seventeen point ten as before. 9 00:00:32,800 --> 00:00:39,100 I'll update AP t this time not in order to install engine X but rather to install a couple of dependencies 10 00:00:39,100 --> 00:00:41,240 will need to compile engine x. 11 00:00:41,380 --> 00:00:43,750 If you're on sentence you can do the same by running. 12 00:00:43,750 --> 00:00:44,370 Yum. 13 00:00:44,530 --> 00:00:46,030 Check update. 14 00:00:46,720 --> 00:00:49,030 With our app get packages updated. 15 00:00:49,060 --> 00:00:52,870 The next step is downloading the latest engineer sourcecode. 16 00:00:52,960 --> 00:00:59,100 Now before we start navigating the engine X websites know that we have both engine X dot org and engine 17 00:00:59,100 --> 00:01:05,620 X dot com engine X dot org is where we'll look for the majority of our documentation where s engine 18 00:01:05,620 --> 00:01:12,070 X dot com is the flashier product side of engine X although we'll also have to visit it for some resources 19 00:01:12,070 --> 00:01:13,110 later. 20 00:01:13,150 --> 00:01:18,730 Just important to be aware of these two and that engine X dot com also contains a lot of documentation 21 00:01:18,730 --> 00:01:25,000 on paid for products such as engine X plus which can be somewhat confusing at times and doesn't relate 22 00:01:25,000 --> 00:01:26,420 to this course. 23 00:01:26,470 --> 00:01:30,870 Again if you find any of the sites in the course look different than at the time of recording. 24 00:01:30,880 --> 00:01:34,090 Just check the list and resources for up to date links. 25 00:01:34,340 --> 00:01:36,120 Get over to engine X dot org. 26 00:01:37,700 --> 00:01:39,690 Navigate to this download link. 27 00:01:40,490 --> 00:01:46,700 And here we have sourcecode links to the main line version which is what we'll be using the stable version 28 00:01:46,730 --> 00:01:52,610 which is just a much more mature but slightly older version of engine x and some legacy versions. 29 00:01:52,700 --> 00:01:58,880 Each download version containing the change log for that version the sourcecode download itself and 30 00:01:58,880 --> 00:02:03,950 the windows binary for the version which we won't be covering in this course right. 31 00:02:03,950 --> 00:02:07,220 We'll be using this main line version so copy the link. 32 00:02:08,860 --> 00:02:12,470 Head back to the terminal and download the source code. 33 00:02:12,510 --> 00:02:16,140 You can do this using either curl or easier yet on a boon too. 34 00:02:16,140 --> 00:02:19,170 I'll say w get that link. 35 00:02:20,200 --> 00:02:21,290 All done. 36 00:02:21,370 --> 00:02:24,040 Check the contents of this directory. 37 00:02:24,040 --> 00:02:24,940 There we have it. 38 00:02:25,000 --> 00:02:29,520 Engine X one point thirteen point ten in tarball form at. 39 00:02:29,710 --> 00:02:33,950 So extract the tarball with tar zy X v. F.. 40 00:02:36,220 --> 00:02:37,220 Clear this. 41 00:02:38,380 --> 00:02:39,660 List again. 42 00:02:39,970 --> 00:02:46,600 We have then extracted directory so change into it and step 1 is configuring our source code for the 43 00:02:46,600 --> 00:02:51,280 bold to do this we run the configure script in the sourcecode directory. 44 00:02:51,460 --> 00:02:57,440 Current directory slash configure enter C compiler not found. 45 00:02:57,670 --> 00:03:03,040 So in order to compile our source code we're going to have to install a compiler or more specifically 46 00:03:03,040 --> 00:03:11,280 some development tools to do this on a boon to using apt get run up get install build essential. 47 00:03:13,030 --> 00:03:16,990 Or if you're using yum on Santos you can do the same by running. 48 00:03:16,990 --> 00:03:17,740 Yum. 49 00:03:17,750 --> 00:03:20,660 Group install development tools. 50 00:03:22,140 --> 00:03:25,190 Enter confirm. 51 00:03:25,190 --> 00:03:25,490 Asked. 52 00:03:25,490 --> 00:03:27,030 Forward through this. 53 00:03:27,120 --> 00:03:28,100 And all done. 54 00:03:28,260 --> 00:03:32,370 Meaning we now have all the necessary tools to compile in Genex. 55 00:03:32,370 --> 00:03:36,600 Test this by running that configure script again and this time it works. 56 00:03:36,750 --> 00:03:41,460 Although we still need some dependency packages as per this configuration error. 57 00:03:41,790 --> 00:03:46,570 Now at this point whilst I can give you a list of probable dependencies you need for engine x. 58 00:03:46,710 --> 00:03:51,890 Each individual board of engine X will be different but it's as easy as running configure. 59 00:03:51,960 --> 00:03:58,770 Checking what's missing a p CRT or regex library in this case and then installing it using the systems 60 00:03:58,770 --> 00:04:00,060 package manager. 61 00:04:00,060 --> 00:04:04,920 A quick search will usually tell you exactly what the missing package is called and how to install it 62 00:04:05,550 --> 00:04:06,540 or a boon to then. 63 00:04:06,570 --> 00:04:08,690 We need that PCR free library. 64 00:04:08,700 --> 00:04:15,730 So say upt get install Le bcr 3 3 and look PCR re 3 dev. 65 00:04:17,120 --> 00:04:20,820 We're also going to need ze Loeb for Jesus being so add. 66 00:04:20,870 --> 00:04:25,270 ZE lab one G and C lab one G dev. 67 00:04:26,100 --> 00:04:31,770 And lib SSL dev for S S L or H T T P S Support later on. 68 00:04:32,070 --> 00:04:38,640 At this point if you're on sentence you can install the same packages by running yum install B C R E 69 00:04:39,090 --> 00:04:46,580 B C R E E devil zela up zilah Devil open SSL and open SSL Novell. 70 00:04:48,230 --> 00:04:54,390 Enter Isle again fast forward through this answering yes to all the confirmations along the way. 71 00:04:54,740 --> 00:04:59,060 That's done clear this run configure again. 72 00:05:00,790 --> 00:05:03,030 And this time it works without any problems. 73 00:05:03,100 --> 00:05:09,010 Meaning we could now go ahead and compile the source code but we still haven't actually added any custom 74 00:05:09,010 --> 00:05:13,120 configuration flags to find all the available configuration options. 75 00:05:13,120 --> 00:05:15,760 We can run that same configure script passing. 76 00:05:15,840 --> 00:05:17,060 A help flag. 77 00:05:17,200 --> 00:05:18,210 And there we have it. 78 00:05:18,310 --> 00:05:23,710 Although this way we don't get to see any information on the flags So it's a bit difficult to know exactly 79 00:05:23,710 --> 00:05:25,030 what they'll do. 80 00:05:25,030 --> 00:05:30,330 We can however find more information on the engine X dot org site over to the browser. 81 00:05:30,430 --> 00:05:36,850 Navigate to documentation in the sidebar and the second section years what we are looking for. 82 00:05:36,970 --> 00:05:43,030 Building engine X from source where we get a detailed description of each of those configuration options 83 00:05:43,330 --> 00:05:45,430 along with thier default values. 84 00:05:45,700 --> 00:05:49,960 So let's reconfigure the source and sit a few common flags. 85 00:05:50,600 --> 00:05:51,590 Configure. 86 00:05:52,450 --> 00:05:56,360 Setting the espin path flag to user. 87 00:05:56,420 --> 00:05:58,280 Then engine x. 88 00:05:58,330 --> 00:06:04,240 This being the location of the engine is executable which will use to start and stop then jinich service 89 00:06:04,650 --> 00:06:12,520 user Ben being a common location for and to executables conf path being the path of the engineer's configuration 90 00:06:12,520 --> 00:06:13,690 files. 91 00:06:13,690 --> 00:06:17,970 Make that iti see engine X engine X dot conf. 92 00:06:18,250 --> 00:06:23,700 Again a common location and the same as the location used by the package manager in the previous lesson. 93 00:06:24,440 --> 00:06:25,800 A Prologue path. 94 00:06:25,950 --> 00:06:36,720 Make that var log engine x error dot log HTP log path being our access logs the same var log in generics 95 00:06:36,990 --> 00:06:45,930 but access dot log with PCR re telling engine X to use the system speci our library for regular expressions 96 00:06:46,590 --> 00:06:52,350 and the process idae path which will need to know when configuring an engine X system service later 97 00:06:52,350 --> 00:06:56,840 on var run engine X dot P I D E. 98 00:06:57,180 --> 00:07:00,190 That's all we'll do in terms of customizing this install. 99 00:07:00,240 --> 00:07:06,180 But of course the absolute main benefit of boulding engine X from source is the ability to add custom 100 00:07:06,180 --> 00:07:10,540 modules or essentially extend the standard engine X functionality. 101 00:07:10,770 --> 00:07:13,320 Something you cannot do using a package manager. 102 00:07:13,320 --> 00:07:21,450 Note however that engine X modules exist in two forms bundled modules and third party modules third 103 00:07:21,450 --> 00:07:26,670 body modules being modules that's developed and maintained by third party developers and need to be 104 00:07:26,670 --> 00:07:29,820 downloaded and compiled with engine X to use. 105 00:07:29,820 --> 00:07:35,400 We'll see examples of these modules later in the course bundled modules on the other hand being modules 106 00:07:35,460 --> 00:07:37,350 that come with the engineer source. 107 00:07:37,500 --> 00:07:45,990 Like for example the H T T P S S L module will be adding here the flag being worth htb underscore SSL 108 00:07:46,050 --> 00:07:51,780 underscore module telling engine X to include this module in the bold and thus enabling us to use H 109 00:07:51,780 --> 00:07:53,160 T T P S. 110 00:07:53,160 --> 00:07:59,850 Also note here that this module being the reason we installed the loop SSL package via apt get to see 111 00:07:59,850 --> 00:08:03,100 a comprehensive list of modules available with the engine source. 112 00:08:03,250 --> 00:08:06,000 Navigate back to the documentation page. 113 00:08:06,000 --> 00:08:07,670 Scroll all the way down. 114 00:08:07,800 --> 00:08:15,030 And here we have it modules which if I select one like this HTP to module for example we get a complete 115 00:08:15,030 --> 00:08:19,770 reference to use this module and the configuration flag needed to install it. 116 00:08:20,830 --> 00:08:26,700 Again for now I'll add the SSL module only so back to the terminal and add that flag. 117 00:08:27,850 --> 00:08:36,160 With HTP underscore SSL underscore module enter late that custom configuration complete. 118 00:08:36,520 --> 00:08:38,190 All done without any issues. 119 00:08:38,200 --> 00:08:44,290 So next we can compile this configuration source by running make this one taking quite a bit of time 120 00:08:44,290 --> 00:08:46,130 so I'll forward through it again. 121 00:08:46,240 --> 00:08:51,330 And once that's done install the compile source with make install. 122 00:08:52,960 --> 00:08:53,610 Done. 123 00:08:53,830 --> 00:09:01,060 Check the configuration files exist in that location we configured Alice list utc in Genex. 124 00:09:01,240 --> 00:09:07,150 They're all there so we should now have the ingenius executable available as well tested by getting 125 00:09:07,150 --> 00:09:09,400 the installed engine X version. 126 00:09:09,400 --> 00:09:11,240 Engineer X v.. 127 00:09:11,350 --> 00:09:17,590 Which tells us engine X one point thirteen point ten is installed with a breakdown of the configuration 128 00:09:17,590 --> 00:09:19,480 used to install it. 129 00:09:19,510 --> 00:09:27,250 We can start engine X by simply running engine x no errors check the processes running all good. 130 00:09:27,250 --> 00:09:30,550 Also check the browser navigate to that IP. 131 00:09:31,370 --> 00:09:37,090 And we get the holding page in the next lesson we'll create a system servers to manage our new engineers 132 00:09:37,190 --> 00:09:38,180 install.