1 00:00:00,300 --> 00:00:00,990 Hello, everyone. 2 00:00:01,800 --> 00:00:07,830 In this demo, I'll show you how to configure entropy on Red had eight systems, so NTPC stands for 3 00:00:07,830 --> 00:00:14,100 network time protocol and you can use ATP to synchronize system time across different machines. 4 00:00:14,730 --> 00:00:16,560 Here I am using two mikes. 5 00:00:16,830 --> 00:00:24,240 Which is the terminal multiple exer that allows me to connect to different hosts on the same terminal. 6 00:00:24,510 --> 00:00:30,900 So the left side here, I'm connected to the server machine and on the right side I'm connected to the 7 00:00:30,990 --> 00:00:32,040 client machine. 8 00:00:32,409 --> 00:00:37,620 For the first step we need to do to configure entropy is install the cronie package. 9 00:00:42,030 --> 00:00:44,220 And I'll do the same thing on the client machine. 10 00:00:49,910 --> 00:00:57,500 So the crony package will allow us to configure A.P. on both the server side and the client side. 11 00:00:58,550 --> 00:01:01,300 I'm going to wait here until the cronie package is done installing. 12 00:01:02,270 --> 00:01:02,750 All right. 13 00:01:02,810 --> 00:01:03,890 Let me clear the screen. 14 00:01:05,840 --> 00:01:13,470 So the second step is actually there's a file cronie not conf on the server side here. 15 00:01:14,100 --> 00:01:17,780 As you can see, the first line, I'm connected to the pool. 16 00:01:18,260 --> 00:01:21,020 So the pool is basically a collection of servers. 17 00:01:21,360 --> 00:01:22,490 Where are your server? 18 00:01:22,850 --> 00:01:26,660 A.P. machine will get the system time from, OK. 19 00:01:26,960 --> 00:01:32,210 And this, of course, varies across different cities and locations and countries. 20 00:01:32,300 --> 00:01:32,630 OK. 21 00:01:32,990 --> 00:01:40,420 Now I want to allow my client machine to get that into the system. 22 00:01:40,490 --> 00:01:41,690 Time from the server. 23 00:01:41,960 --> 00:01:51,050 So what I need to do is allow my client machine here so it allow and then I have to figure out what 24 00:01:51,050 --> 00:01:54,110 is my client machine IP address. 25 00:01:54,140 --> 00:01:57,000 So it's one nine two, the one six eight to 13 to twenty. 26 00:01:58,060 --> 00:02:05,240 I'll go back and then I will actually include the whole address space, the whole subnet of my client 27 00:02:05,270 --> 00:02:05,750 machine. 28 00:02:05,780 --> 00:02:07,230 So does the euro. 29 00:02:07,340 --> 00:02:08,780 The euro's last 16. 30 00:02:09,410 --> 00:02:12,950 After I'm done here, I'm gonna save an exit. 31 00:02:16,870 --> 00:02:23,140 And then I will edit the same exact file on the client side. 32 00:02:25,640 --> 00:02:34,030 So here, our comment out the pool line, because we only need we need decline's machine to get the 33 00:02:34,090 --> 00:02:36,130 system time from the server machine. 34 00:02:36,370 --> 00:02:41,140 So there is no need for the client machine to access the A.P. pool. 35 00:02:41,440 --> 00:02:44,780 So I comment out the first line that you can see and hear here. 36 00:02:44,800 --> 00:02:52,930 I have to include the line server, followed by the IP address of my server. 37 00:02:53,200 --> 00:02:58,750 So I'll go back to my several machine to figure out what is the IP address of it. 38 00:02:59,200 --> 00:02:59,830 Go back here. 39 00:02:59,830 --> 00:03:04,890 And then one nine two one six eight dot 12 dot twenty six. 40 00:03:06,040 --> 00:03:09,970 After I'm done, I'm gonna save an exit the file. 41 00:03:11,500 --> 00:03:12,070 All right. 42 00:03:13,920 --> 00:03:15,520 Little screen on both sides. 43 00:03:16,330 --> 00:03:19,140 Okay, so step number two is done now. 44 00:03:19,450 --> 00:03:21,430 Now we move on to step number three. 45 00:03:22,060 --> 00:03:29,770 We have to allow ATP to go through the firewall on the server machine and the client machine. 46 00:03:29,950 --> 00:03:30,970 So how do we do that? 47 00:03:31,240 --> 00:03:33,620 We use the firewall does TMD command. 48 00:03:33,910 --> 00:03:41,800 So here, if I run the command firewall there, simply that does list the services. 49 00:03:43,600 --> 00:03:45,030 I don't see A.B included. 50 00:03:45,090 --> 00:03:53,740 So what I would need to do is added add service equal entropy test as permanent. 51 00:03:57,950 --> 00:04:01,460 And then I have to reload the firewall configuration. 52 00:04:02,990 --> 00:04:09,890 Now, if I list the services, I can see that A.P. is now added so it can go through the firewall of 53 00:04:09,890 --> 00:04:10,760 the server machine. 54 00:04:11,150 --> 00:04:15,260 Now, we have to do the same exact thing on the Clyde machine as well. 55 00:04:15,560 --> 00:04:18,839 So I'll go to the Cloud Machine Firewall ACMD. 56 00:04:19,130 --> 00:04:21,290 Does that add service equal? 57 00:04:22,790 --> 00:04:25,790 A.P. does does permanent. 58 00:04:28,340 --> 00:04:30,230 Reload the firewall configuration. 59 00:04:33,000 --> 00:04:34,490 That's to verify. 60 00:04:35,180 --> 00:04:43,820 I will list the services and I see my sweet Interpeace service added to the firewall on my client machine 61 00:04:43,820 --> 00:04:44,220 as well. 62 00:04:44,520 --> 00:04:46,640 So we are now done with step number three. 63 00:04:47,150 --> 00:04:48,310 What is step number four? 64 00:04:48,770 --> 00:04:49,790 It is very simple. 65 00:04:50,150 --> 00:04:55,100 We just need to start the cronie the service or the demon. 66 00:04:55,700 --> 00:05:04,930 So little screen systems, CDL start cronie d dot service. 67 00:05:06,380 --> 00:05:10,490 And here as well on the client side system tdl start chronically. 68 00:05:12,870 --> 00:05:23,500 The service that's just check that it started so status cronie did a service active and running. 69 00:05:23,530 --> 00:05:24,070 Awesome. 70 00:05:24,590 --> 00:05:27,430 Let's also check that on the server side of things. 71 00:05:29,050 --> 00:05:32,350 Cronie did or service. 72 00:05:34,190 --> 00:05:34,660 Status. 73 00:05:34,810 --> 00:05:38,050 I mean, all right. 74 00:05:38,080 --> 00:05:39,090 So it's active. 75 00:05:39,160 --> 00:05:43,630 Up and running on both the server side and the client side. 76 00:05:44,290 --> 00:05:44,770 All right. 77 00:05:44,980 --> 00:05:45,730 So now. 78 00:05:49,140 --> 00:05:56,910 On the server side, we can run the command cronie see tracking, which will display the system time 79 00:05:56,910 --> 00:05:57,690 information. 80 00:05:59,430 --> 00:06:00,000 All right. 81 00:06:01,440 --> 00:06:06,720 Let me clear the screens on both side now. 82 00:06:09,090 --> 00:06:09,540 All right. 83 00:06:09,570 --> 00:06:17,430 So now let's run the cronie see tracking command to display the system time information. 84 00:06:17,460 --> 00:06:26,760 As you can see, this threat and value of three indicates that the server is three hops away from the 85 00:06:26,760 --> 00:06:27,780 A.P. pool. 86 00:06:28,080 --> 00:06:28,500 All right. 87 00:06:28,680 --> 00:06:33,630 Now we can run the same command on the client cronie see tracking. 88 00:06:41,020 --> 00:06:49,210 As you can see here, it's for the Straten values for this is it because the client is one hop away 89 00:06:49,210 --> 00:06:55,390 from the server, which in turn is three hops away from the A.P. pool. 90 00:06:55,570 --> 00:07:00,100 So you add one plus three is equal to four, which completely makes sense here. 91 00:07:00,400 --> 00:07:05,950 That's why you see the Straten value on the client is always going to be bigger than the straight home 92 00:07:05,950 --> 00:07:08,230 value of the server. 93 00:07:08,680 --> 00:07:09,160 All right. 94 00:07:09,460 --> 00:07:17,140 And also on the client side, you can run the command cronie sources, chronicity sources. 95 00:07:18,880 --> 00:07:25,180 It will display the value of it will display the IP address of the A.P. server. 96 00:07:25,630 --> 00:07:26,080 All right. 97 00:07:26,590 --> 00:07:31,120 And if you go to the server side of things and run the command cronie see. 98 00:07:33,570 --> 00:07:34,400 Clients. 99 00:07:35,430 --> 00:07:43,380 It will show you the IP address of the A.P., A.P. clients that are getting the system time from the 100 00:07:43,680 --> 00:07:44,760 A.P. server. 101 00:07:45,420 --> 00:07:45,910 All right. 102 00:07:46,170 --> 00:07:47,730 So that's it. 103 00:07:47,850 --> 00:07:50,010 You need to remember the four steps. 104 00:07:50,250 --> 00:07:52,620 Number one, install the Krone package. 105 00:07:52,980 --> 00:07:59,550 Number two, edit the Etsy cronie that confined on both the server side and the client side. 106 00:07:59,790 --> 00:08:06,690 Number three, enable A.P. to go through your firewall on the client machine and the server machine. 107 00:08:06,930 --> 00:08:12,330 Number four, start the cronie service and you'll be good to go. 108 00:08:12,900 --> 00:08:13,200 All right. 109 00:08:13,230 --> 00:08:15,180 So this brings us to the end of this video. 110 00:08:15,210 --> 00:08:16,650 I hope you guys enjoyed it. 111 00:08:16,950 --> 00:08:17,490 So.