1
00:00:01,470 --> 00:00:07,770
All right, this should be the last lecture or this section, unless I add more lectures in the future

2
00:00:07,770 --> 00:00:09,230
upon student request.

3
00:00:10,560 --> 00:00:15,060
So I'm on a Gouta computer here, I'm not on a witness.

4
00:00:15,600 --> 00:00:20,670
And so for readers, users, you can skip this lecture if you want.

5
00:00:20,670 --> 00:00:27,330
If you like, you can you can follow this if you're curious on how a Unix based computer looks like

6
00:00:27,870 --> 00:00:28,790
such as Oakland.

7
00:00:31,490 --> 00:00:38,450
So this lecture is for those who have Linux or a Mac computer, because in this lecture I'll show you

8
00:00:38,450 --> 00:00:41,000
how to make our program around.

9
00:00:41,000 --> 00:00:46,360
One computer source for that will be using the Chrome service.

10
00:00:48,170 --> 00:00:54,590
Now, Crohn is available both on Linux and Mac, so you don't have to install anything.

11
00:00:55,400 --> 00:00:58,160
Probably you know how to use Chrome already.

12
00:00:58,430 --> 00:01:03,460
But if you don't, there are just a few instructions that to make it work.

13
00:01:04,310 --> 00:01:10,990
And I'm going to go ahead and open the website blog Lotfy Open Terminal with Right click and then add

14
00:01:11,000 --> 00:01:11,350
some.

15
00:01:11,360 --> 00:01:16,090
So I'll be using Atem which I have already installed earlier.

16
00:01:23,850 --> 00:01:28,300
And all we have to change from the script is a horse path.

17
00:01:29,100 --> 00:01:37,800
So this was a Windows bath and on Mac and Linux, that would be a bad one.

18
00:01:38,730 --> 00:01:48,470
And I'm going to save the script here, go to the terminal and I want to quickly check my file.

19
00:01:49,140 --> 00:01:52,320
So I'm opening it with, uh, naanu.

20
00:01:53,830 --> 00:01:55,030
I know this looks good.

21
00:01:55,050 --> 00:02:00,750
I have no websites there that I want to blog control likes to exit.

22
00:02:01,300 --> 00:02:07,560
I know what I'll do now is before I try and add my Python script to be executed by Chrome, I'll go

23
00:02:07,560 --> 00:02:12,630
ahead and just quickly try the script with Python directly.

24
00:02:13,650 --> 00:02:17,370
Just a small change in here and now it's half past four.

25
00:02:17,370 --> 00:02:25,320
So let me change this to 17 so that we fall within the working hours and I'll go ahead and pseudo python

26
00:02:25,320 --> 00:02:25,920
three.

27
00:02:27,780 --> 00:02:35,040
Website blogger Ralphy Execute, and it seems to be working, it prints all the working hours, you

28
00:02:35,850 --> 00:02:41,490
interrupt that and go and check the Horsfall and the lines are there.

29
00:02:42,660 --> 00:02:43,040
Great.

30
00:02:43,050 --> 00:02:44,250
This seems to be working.

31
00:02:45,390 --> 00:02:46,740
Control looks to exits.

32
00:02:47,740 --> 00:02:54,580
So I hope things are going well on your Mac or Linux as well, what's left to do now is to add this

33
00:02:55,120 --> 00:02:57,400
in the crown table to do that.

34
00:02:57,410 --> 00:03:03,350
So you need to open the crown table file with Chrome tab with the EU flag.

35
00:03:03,970 --> 00:03:06,340
Yeah, and that opens the current up file.

36
00:03:08,330 --> 00:03:15,830
However, before you have any line here, no, that's the way we open crosstab, it opens of the fall

37
00:03:15,830 --> 00:03:18,580
that is accessible by the normal user.

38
00:03:19,190 --> 00:03:27,750
So, uh, you may want to exit that and open a contact with pseudo instead.

39
00:03:28,340 --> 00:03:34,470
The reason you want to do that is because, you know, we want we have to execute this website block

40
00:03:34,790 --> 00:03:37,240
by script as an administrator.

41
00:03:37,260 --> 00:03:41,930
So with high privileges because the host father is protected by Linux.

42
00:03:42,560 --> 00:03:45,260
So execute that and go to the end.

43
00:03:46,880 --> 00:03:54,200
And say, um, you shouldn't have this last line and I have this from another script, so ignored that

44
00:03:54,560 --> 00:03:59,320
and I will add another line here, reboot platform three.

45
00:03:59,510 --> 00:04:06,390
So you need to write reboot there, which tells it one to two wrong to execute these commands.

46
00:04:06,800 --> 00:04:11,420
One of the computer stores so that be home.

47
00:04:12,470 --> 00:04:13,310
My short name.

48
00:04:16,240 --> 00:04:21,030
Applications and websites or adult support.

49
00:04:23,130 --> 00:04:24,430
Yeah, that should do it.

50
00:04:25,020 --> 00:04:34,220
So that's the path to my profile and control X and Y and enter and that should be saved.

51
00:04:34,680 --> 00:04:41,210
So if you open current up, uh, with Elizardo, you'll see a different fall.

52
00:04:41,850 --> 00:04:47,280
But if you open current up with Sudo, you'll see the lines that we have just added.

53
00:04:49,350 --> 00:04:53,130
Now, before I close this lecture, just a quick QuickTrip.

54
00:04:53,640 --> 00:05:00,840
If you're trying, for instance, to point to your local Horsfall, which you're passing as a relative

55
00:05:01,560 --> 00:05:02,290
path here.

56
00:05:02,640 --> 00:05:07,920
So, for instance, I'm not passing this as an absolute path like I'm doing with this with this one

57
00:05:07,920 --> 00:05:08,140
here.

58
00:05:08,490 --> 00:05:17,700
So if you're using Python to modify a file with a relative path and you pass that command in Crohn tab,

59
00:05:18,060 --> 00:05:25,590
as I did here, Python will not be able to access that relative path because crosstab will execute Python

60
00:05:25,590 --> 00:05:33,180
from another directory, which is different from where the website Blocher Delta Pi is located.

61
00:05:33,960 --> 00:05:36,210
So it's good to work with absolute files.

62
00:05:36,780 --> 00:05:43,740
And yeah, now this should be working well and if I start my computer now, the video will be stopped.

63
00:05:44,010 --> 00:05:46,980
So I can't really recall the rebooting process.

64
00:05:47,760 --> 00:05:53,550
But if you have some problems, just drop me a message or post a question of the discussion and you'll

65
00:05:53,550 --> 00:05:55,500
be happy to help you as always.

66
00:05:56,660 --> 00:06:05,000
And if I browse Facebook, yeah, I'll not be able to connect, even though my Internet connection is

67
00:06:05,000 --> 00:06:13,910
fine, so I hope that was helpful and I hope you make use of this program and I'll see you in the next

68
00:06:13,910 --> 00:06:14,390
election.

