IRC log of #novawebdev for Friday, 2023-08-11

*** fkoikoi has quit (Ping timeout: 480 seconds)00:14
*** shmohamud has quit (Remote host closed the connection)00:56
*** shmohamud has quit (Remote host closed the connection)01:14
*** fkoikoi__ has quit (None)01:17
*** fkoikoi_ has quit (Ping timeout: 480 seconds)01:20
*** shmohamud has quit (Ping timeout: 480 seconds)01:24
*** shmohamud has quit (Remote host closed the connection)02:10
*** shmohamud has quit (Ping timeout: 480 seconds)02:30
*** fkoikoi has quit (Quit: Leaving)04:26
*** shmohamud has quit (Ping timeout: 480 seconds)07:54
*** shmohamud has quit (Ping timeout: 480 seconds)09:55
jelknerGood morning scooper and tboimah10:47
tboimahHow are you doing Jeff10:47
tboimahscooper when out for something10:47
jelknerwho else is there?10:47
tboimahonly me and scooper is here10:47
tboimahfor now10:48
jelknergot you10:48
jelkneri'm on vacation for a few days10:48
jelkneri'll be at the meeting tomorrow10:48
tboimahOkay10:48
jelknerbut then i'm going to a family gathering for 4 days10:48
jelknerdo you know when scooper will be back?10:49
tboimahHe will soon be back10:50
jelknerok, i'll wait10:50
jelkneri just want to check to see if he needs anything this morning10:50
tboimahJeff can you help me set my novaweb email i having some problem with my password10:50
jelkneri did that for daniel yesterday10:51
jelkneri can reset it, but i want to request that you think about a good system10:51
jelknerfor guarding your passwords10:52
jelkneryou will have *lots* of passwords in the 21st century!10:52
tboimahokay10:52
jelkneri use a program called keepassxc10:52
jelknerthen i only have 1 password i need to remember - the password to keepass10:53
jelknerif i forget that, i'm in trouble!10:53
jelknerbut all the others (and i have hundreds)10:53
jelknerare kept in there10:53
jelknerin a database10:53
tboimahthat sound Great!10:53
scooperGood morning Jeff10:55
jelknerGood morning scooper 10:55
jelknerDo you need anything from me this morning?10:56
jelknerscooper, is fkoikoi coming in?10:56
jelknerShe tried to call me on Signal yesterday10:56
scooperJeff after my final exam I will start to engage you again with python question10:56
jelkner+110:56
jelknerwhen is your final exam?10:57
scooperit start yesterday and will end on sunday10:57
scooperbut I intent of doing my test Saturday evening10:57
scooperSo I m reviewing for it these few days10:58
jelkneryou should be studying then!10:58
jelkneri'll see you at the meeting 9 am tomorrow10:58
jelknerbut Freena can chair, yes?10:58
scooper!agenda10:58
LittleWebsterThis is the agenda for the next meeting:10:58
LittleWebsterUpdates from each group on what they have been doing for the past weeks(5minutes each) (added by fkoikoi)10:58
LittleWebsterFinancial Report(done by scooper) (added by fkoikoi)10:58
LittleWebsterUpdates on the task the was given by Jeff before the break (done by Freena Koikoi) (added by fkoikoi)10:58
scooperJeff10:58
jelknerlooks good10:58
scoopernow is Shnund10:58
scooperhow is Shnud10:59
jelknerhe is very busy with his new job10:59
scooperShmund, he told me about before10:59
scooperbut promise to stick around with us...11:00
jelkneri only saw him once, when he came for dinner11:00
jelkneryeah, let's see about that11:00
scooperI mail him but no respond yet11:00
jelknerhe may be too busy11:00
scooperI will email him again today11:00
jelknerok, but if he doesn't respond, just leave it and move on11:00
scooper+111:01
jelknervolunteers volunteer when they can11:01
jelknerthey will come, and they will go11:01
jelknerand sometimes they will come back11:01
scooperGot you....11:01
jelknerit's great when they are here11:01
jelknerbut we need plans that do not depend on them11:01
scooperHave you heard from Jallah since than???11:01
jelknertboimah, i forget if we had a conversation about that11:02
jelknerscooper, no, i haven't11:02
jelknerheard from jallah i mean11:03
jelknertboimah, we have too many nova web admins already11:03
jelknerantonio and toby (tmickelson) will be taking care of that11:03
jelknerso if you need an email password changed, we can ask tmickelson11:04
jelknerbut hopefully that will not happen too often!11:04
tboimahokay11:04
jelknertboimah, can you get into your email now?11:04
jelknerdid you write down the new password i sent?11:05
jelknermy apologies for the confusion11:05
jelknertboimah, please confirm you can access your email11:06
jelknerand then i need to go11:06
tboimah+1 I can11:06
jelknerthanks!11:06
jelkneri will see you tomorrow at 1 pm your time11:06
tboimahBut Jeff can I ask You a question11:06
jelknersure11:07
jelknerplease ask, tboimah 11:07
tboimahIf an intern in Liberia here have a problem with there email will they wait untill you contact toby or antonio11:08
jelkner+111:08
tboimahokay11:08
jelkneronce we get MCSS email moved to an MCSS server11:09
jelknerand we have an admin there who can manage it for awhile11:09
jelknersince it requires a bit of postgres database knowledge to do that11:09
tboimahokay will understood11:10
jelknerwe should discuss at that point setting up email for Jetro Web Development11:10
jelknerwhich of course would be administered by you11:11
jelknerfor now, tboimah, we need you to keep improving your skills11:11
jelkneralso, keep practicing your keyboarding11:11
jelknerso you can type faster11:11
tboimahokay11:11
jelknerwe are making good progress11:11
jelknerbut we have a lot to do!11:12
tboimahsure11:12
jelknerok, see you at our meeting tomorrow11:12
tboimahokay have a nice day11:12
jelkneryou too, tboimah 11:12
jelknerfkoikoi, good morning11:13
fkoikoigood morning Jeff11:13
jelkneri saw you tried to call on Signal11:13
jelkneri heard you for a brief second11:13
fkoikoiyes11:13
jelknerbut then the connect cut off11:13
jelknerVOIP (voice over IP)11:13
fkoikoimy network was bad11:13
jelkneruses a lot more bandwidth then text11:13
jelknermuch, much, *much* more!11:13
jelknerthat's why i have encouraged us to rely on irc11:14
fkoikoisure11:14
jelknerit uses so little bandwidth, we can depend on it11:14
jelknersome future day we will have a better connection11:15
jelknerand voice (and even video) will become possible11:15
jelknerbut it is good for now to have reliability like we have with this11:15
jelknergood work with the agenda, fkoikoi. thanks11:16
jelknersee you tomorrow11:16
fkoikoi!add plans for the up coming school year (by Jeff)11:16
LittleWebsterSuccess: "plans for the up coming school year (by Jeff)" has been added to the agenda.11:16
fkoikoiokay Jeff11:16
fkoikoi!agenda11:16
LittleWebsterThis is the agenda for the next meeting:11:16
LittleWebsterUpdates from each group on what they have been doing for the past weeks(5minutes each) (added by fkoikoi)11:16
LittleWebsterFinancial Report(done by scooper) (added by fkoikoi)11:16
LittleWebsterUpdates on the task the was given by Jeff before the break (done by Freena Koikoi) (added by fkoikoi)11:16
LittleWebsterplans for the up coming school year (by Jeff) (added by fkoikoi)11:16
jelknernice!11:17
jelknerfkoikoi, you will be chairing, yes?11:17
fkoikoiYes11:17
jelknerplease help move the agenda along11:17
jelkneri have only 30 minutes11:18
jelknermy brother and his wife are visiting me from Puerto Rico11:18
fkoikoiI did a research on the International Cooperative11:18
jelknerand my youngest son and his partner are visiting from California11:18
jelknergreat!11:19
jelknerwe need to talk about that11:19
jelknerwhat did you find out?11:19
fkoikoiI will give you an update through your email11:19
jelknergreat idea!11:19
jelknerlet's use email for that11:19
fkoikoialright11:19
jelknerit is going to be a process11:19
jelknerbut once we figure out how to start a business in Liberia11:20
jelknerwe want to ask the ICA how it can join11:20
fkoikoiokay11:20
jelknerfkoikoi, do you have a final exam this weekend too?11:20
fkoikoiJeff, you were talking about the last item on the agenda right?11:20
jelknerscooper does11:20
fkoikoiYes11:21
jelknerthen go study my friend!11:21
jelknerand do well11:21
fkoikoialright11:21
jelknersee you tomorrow at 9 am my time (1 pm your time)11:21
fkoikoiJeff, you were talking about the last item on the agenda right?11:21
jelkner+111:21
fkoikoialright11:21
jelkneri only need 5 minutes11:22
fkoikoi!help11:22
LittleWebsterAvailable commands: !add, !agenda, !help, !remove11:22
jelknerACTION signs off until the meeting tomorrow11:22
fkoikoi! remove plans for the up coming school year (by Jeff)11:22
jelknergood11:22
jelknerwe already talked about that11:23
fkoikoi!agenda11:23
LittleWebsterThis is the agenda for the next meeting:11:23
LittleWebsterUpdates from each group on what they have been doing for the past weeks(5minutes each) (added by fkoikoi)11:23
LittleWebsterFinancial Report(done by scooper) (added by fkoikoi)11:23
LittleWebsterUpdates on the task the was given by Jeff before the break (done by Freena Koikoi) (added by fkoikoi)11:23
LittleWebsterplans for the up coming school year (by Jeff) (added by fkoikoi)11:23
jelknernow we just need to do it11:23
*** scooper has quit (Ping timeout: 480 seconds)11:23
fkoikoi!remove plans for the up coming school year (by Jeff)11:23
LittleWebsterSuccess: "plans for the up coming school year (by Jeff)" has been removed from the agenda.11:23
fkoikoi!agenda11:23
LittleWebsterThis is the agenda for the next meeting:11:23
LittleWebsterUpdates from each group on what they have been doing for the past weeks(5minutes each) (added by fkoikoi)11:23
LittleWebsterFinancial Report(done by scooper) (added by fkoikoi)11:23
LittleWebsterUpdates on the task the was given by Jeff before the break (done by Freena Koikoi) (added by fkoikoi)11:23
jelkneryou got it ;-)11:23
jelknerokie dokie, i'm off until tomorrow...11:24
fkoikoialright11:24
jelknerACTION really signs off this time...11:24
fkoikoihave a nice day Jeff11:24
*** jelkner has quit (Quit: Leaving)11:24
*** fkoikoi has quit (Quit: Leaving)11:24
*** sysadmin_ has quit (Ping timeout: 480 seconds)11:33
*** tboimah has quit (Ping timeout: 480 seconds)11:33
*** tboimah_ has quit (Quit: Leaving)11:40
mulbahGood morning12:00
*** tboimah has quit (Ping timeout: 480 seconds)12:17
mulbahGood morning Mr. Cole13:01
mulbahHow are you doing13:01
tboimahGood morning Mr. cole13:01
ubuntouristHey! Good morning!13:02
ubuntouristI'm cheery! (I got to perform in front of 60 people on Tuesday, and I'm still "high" on that experience. I'm quite nervous about performing. So, it's good to finally be breaking through that struggle.)13:03
ubuntouristAnything new and exciting in your lives?13:03
tboimahperform what?13:05
ubuntouristI was playing flute, mostly Irish melodies, together with a woman who plays an instrument called a hammered dulcimer.13:06
tboimahAhhh okay13:06
ubuntouristhttps://en.wikipedia.org/wiki/Hammered_dulcimer13:07
ubuntouristA very brief performance. We were one of several, and only played for a total of 11 minutes. Still, it was worth it.13:08
*** mulbah has quit (Ping timeout: 480 seconds)13:09
ubuntouristSo, How are you both doing? And do you have questions or work you would like to show off before we get started?13:10
tboimahI am fine but mulbah father is not fine so he will not be with us today.13:10
ubuntouristSad to hear that. I hope his father's situation improves. He can catch up from you and the logs.13:11
tboimahokay13:12
ubuntouristFirst, going back to "script" and "scriptreplay" for just a moment:13:12
ubuntouristWhen you use them, they both have a default: Both programs assume that the text data will be written to and read from13:13
ubuntourista file named "typescript".13:13
ubuntouristLast time, we made TWO recordings and had to rename the text file and the timing file so that "script" would not13:14
ubuntouristoverwrite the old file with the new data.13:14
ubuntouristBut, you can tell both programs that you want to explicitly choose a different name for the text file.13:15
ubuntouristSo, for the future, I recommend something like:13:15
ubuntouristscript -T timecode-2023-08-11-13-16 typescript-2023-08-11-13-1613:16
ubuntouristand13:16
ubuntouristscriptreplay -t timecode-2023-08-11-13-16 tyoescript-2023-08-11-13-1613:17
ubuntouristIn the above, I added the date and time to the file names. If you remember to do that every time you need to make13:18
ubuntourista recording, you can have multiple pairs of typescript* and timecode* files that won't get overwritten,13:19
ubuntouristand you will be able to look at the file names and say "Oh, yeah. That's the recording from Thursday at 1:16 in the afternoon."13:20
ubuntouristYou won't need to remember to use "mv" to change the filenames.13:20
tboimahwow13:21
tboimahokay13:21
ubuntourist(You don't need to name the files the way that I did. Maybe you'll be preparing a special example for someone.13:21
ubuntouristYou could name the two files mulbah-timecode and mulbah-typescript or dpkg-example-timecode and dpkg-example-typescript.13:23
ubuntouristAnything you want, just remember to try to name the typescript file and the timecode file in a way that both are related to 13:24
ubuntouristeach other. so that it will be obvious that they are a pair of files that need to be used together..13:24
ubuntouristPersonally, I like using time and date in file names, and then, after starting script, add a comment on the command line13:25
ubuntouristusing "# " to tell me what the typescript file is intended for.13:26
ubuntouristBut you can develop your own style. You might prefer to do the opposite: create file names that describe the file, and then put a comment 13:27
ubuntouristat the start with the date and time in the comment instead of the file name.13:27
ubuntourist(I like my way better because dates and times can be standardized so that they are all in an identical format.13:28
ubuntouristComments are highly variable. Sometimes a brief comment will be enough. Sometimes you will want a13:28
ubuntouristcomment that extends over several lines.)13:28
ubuntourist.... Okay... enough about script and scriptreplay.13:29
ubuntouristDo you have any questions from last week or things that you've been exploring?13:29
tboimahI really want to understand chmond command13:30
tboimahi mean chmod13:30
ubuntouristGreat. Let's explore that a bit.13:30
ubuntouristCrank up a tmate session and invite me.13:31
*** sysadmin__ has quit (Remote host closed the connection)13:31
ubuntouristACTION needs a quick break. Will be back in a few seconds.13:32
ubuntouristACTION is back13:34
tboimahACTION you will need to give me few minute i just run a new OS on my machine i will need to install tmate please13:34
ubuntouristAh. Okay. 13:35
ubuntouristIf you are doing that a lot, you should learn to back up your personal files like your ~/.ssh/ directory with all of your keys.13:36
*** tboimah has quit (Quit: Leaving)13:37
tboimah_ssh JRrEMcG97GjNBCn4ATzfQ8UNd@lon1.tmate.io13:37
tboimah_ACTION done 13:37
tboimah_Are you still there13:38
ubuntouristIt is a pain in the ass to recreate your keys, your ~/ssh/config file, modifications to .bashrc, .profile, .bash_aliases and all your saved tiypescript files.13:38
ubuntouristI am still here.13:38
ubuntouristJoining now...13:38
tboimah_done13:40
ubuntouristCareful here. You've created a timecode file with the date, but the typescript file is just "typescript".13:40
ubuntouristLook back at the example above. To override the typescript filename you have to add it to the  script command.13:42
ubuntouristBut EXIT first!13:42
ubuntouristGood. You should not use "script" while you're already running "script". When you're running "script" exit will stop it. (When you are NOT13:43
ubuntouristrunning script, "exit" will close the terminal window. So be carefull about that.)13:43
tboimah_done13:44
ubuntouristThe new files won't show up until you exit. And there's a small typo in the typescript file name but don't worry about that now.13:45
ubuntouristLet's continue:13:45
ubuntouristls - l13:46
ubuntouristOops. "ls -l" no space 13:46
ubuntouristGood.13:46
ubuntouristSo we've talked about the first part of the line before:13:46
ubuntourist-rw-r--r-- 1 sysadmin sysadmin13:47
ubuntouristFor now, we won't talk about the number 1 in the line. It's not important until much, much later and it's a complicated topic.13:47
tboimah_yeah when it start with "-" is a regular file and d is a directory 13:48
tboimah_and l for symbolic link13:48
ubuntouristWe're interested in "-rw-r--r--" and "sysadmin sysadmin". Those are what "chmod" relates to.13:48
tboimah_Ahhh okay13:48
ubuntouristExcellent.13:48
ubuntouristNow lets do:13:49
ubuntouristmost /etc/passwd13:49
ubuntourist(you might need to install most)13:49
ubuntourist"B" to go to the "bottom"13:49
ubuntouristSo. See the line that starts "sysadmin"?13:50
tboimah_i am seeing it13:50
ubuntouristThat tells me that there is a user named "sysadmin" and that user has a User ID (UID) of 1000 and a Group ID (GID) of 1000.13:51
ubuntouristEvery user had a numeric user ID and group ID. 13:51
tboimah_okay13:51
ubuntouristIDs that are less than 1000 are "special" and reserved for  applications that need to behave like a "ghost" user sometimes.13:52
ubuntouristThe ":x:" is where an encripted password used to be kept. However, this was a security problem. So, passwords were13:53
ubuntouristmoved out of that file -- confusing, because the file name is "passwd" which makes you think "oh, this is where passwords are".13:54
ubuntouristBut now they are in a file named "shadow". We'll look at that later, but it's not important now.13:54
ubuntouristJust know that the ":x:" is there for historicall reasons and other programs are looking for the user ID to appear after the second13:55
ubuntouristcolon ":". So, when the passwords were moved, there was still a need to put something in the second "field" of the record. And "x" was chosen.13:56
ubuntouristThe next part of the line is the "full name". On the last line, we can see that the user "tboimah" has a full name of "Thomas Boimah".13:57
ubuntouristThe next part is the home directory: When the user longs in, they will be creating and viewing files that are in their home directory.13:58
ubuntouristThey cannot create files in other directrories. For example, tboimah cannot create files in /home/sysadmin, and sysadmin13:59
ubuntouristcannot create files in /home/tboimah.14:00
ubuntouristsysadmin is the "owner" of /home/sysadmin and all the files and subdirectories within /home/sysadmin.14:00
ubuntouristOkay so far?14:00
tboimah_okay14:02
ubuntourist(Oh, it's a minor thing, but the ",,,,"  are fields that can be used for additional information about a user -- like a room number, phone number, etc.14:02
ubuntouristWe usually leave those empty.14:03
ubuntouristAnd finally, the last part of the line. This is the program that should be started immediatly after logging in.14:03
ubuntouristFor all "normal users" this will usually be the Bash shell (/bin/bash).14:04
ubuntouristFor users that aren't real but are programs, the startup program is "/bin/false" or "/bin/nologin"  usually.14:05
ubuntouristSo, even if you had a password for the "ghost" user named "geoclue", when you try to login, it will start a program called "nologin"14:06
ubuntouristwhich will log you out again.14:06
ubuntouristfor chmod, the important parts of these lines are the username at the start, the UID and GID, and the home directory.14:07
ubuntouristSo, sysadmin, 1000, 1000 and /home/sysadmin14:07
ubuntourist"q" to quit.14:08
ubuntouristmost /etc/group14:08
tboimah_dome14:09
tboimah_done14:09
ubuntouristThis lists the group names, group ID (GID) and the members of a group.14:09
ubuntouristSee the group "scanner"?14:10
tboimah_i am seeing it14:10
ubuntouristscanner is a group with two members: saned (which is one of those pseudo- ghost users. Not really a user, but an application program.14:11
ubuntouristThe other member of the group is a real user: sysadmin.14:11
ubuntouristIf there is no user listed at the end of the line -- for example the "sysadmin" group line, the only member of the group is14:12
ubuntouristthe user in the /etc/passwd file that has the same GID. Remember in /etc/passwd.14:13
ubuntouristthe gid for "sysadmin" is 1000, and here we see that the group named "sysadmin" has a gid of 1000.14:13
ubuntouristSo, the user "sysadmin" is in the groups "sysadmin" and "scanner" (and "bluetooth", and "lpadmin")14:14
ubuntouristA user can belong to multiple groups, and groups can have more than one user.14:15
ubuntouristStill okay?14:15
tboimah_hmm okay14:15
ubuntouristBack to the "ls -l" for a quick minute:14:16
tboimah_done14:17
ubuntourist-rw-r--r-- should be separated in your mind as "-". "rw-", "r--", "r--"14:17
tboimah_okay14:17
ubuntouristWe already know what the first character "-" (or "d", or "l" or a few you haven't seeen yet) is for.14:18
ubuntouristThe next three letters describe what an OWNER can do with the file. (Directories and symbolic links are a little different.14:19
ubuntouristfor now, let's just worry about the file named "typescirpt-2023-08-07-13-00"  -- a regular file, not a link or a directory.14:20
ubuntouristThe OWNER has permission to read ("r") and write ("w") the file, but cannot "execute" ("x") the file.14:21
ubuntouristls -l /iusr/bin | most14:21
tboimah_done14:21
ubuntouristOops. My  typo. "q" to quit and 14:22
ubuntouristls -l /usr/bin | most14:22
ubuntourist(no "i")14:22
tboimah_done14:22
ubuntouristSee how almost all of these files have "x"? "rwx" or "r-x"?14:22
ubuntouristThat means these are "executable". When you type the filename at the command prompt, Bash will attempt to14:23
ubuntouristuse the file as a program. Type 14:23
ubuntourist"/most" (without quotes)14:24
ubuntouristYou just searched the output for a filenamed "most". It is the top line showing on the screen.14:25
ubuntouristWhen you installed the package "most" the apt program put the program named "most" into /usr/bin, and set the14:25
ubuntouristpermission with chmod so that the owner ("root") can read the file, write to the file -- which includes removing the file, or renaming the file, as well as overwriting or adding to the file,14:27
ubuntouristand can execute the file as a command program at the command line.14:27
ubuntouristMembers of the group "root" who are NOT owners, can only read the file and execute the file.14:27
ubuntouristUsers who are NOT the owner and NOT in the group -- everyone else, including "sysadmin" and "tboimah" have the14:28
ubuntouristsame permissions: They can read the file and they can execute it, but they are not allowd to change it, rename it, delete it, etc.14:29
ubuntourist(And they do not have permission to use "chmod" to change the permissions.)14:29
ubuntouristOne more "ls" and we'll do finally start playing wiith chmod.14:30
ubuntouristls -l ~/.ssh/14:30
ubuntouristThe "authoriszed_keys" file is VERY secure: The owner can read and write it, but no one else can see it, touch it, change it, or anything else.14:31
ubuntourist"---" means NO permissions.14:32
ubuntouristOkay, now ssh to mcss. I want to be on a computer that has several normal users...14:32
ubuntourist(And if you have the space on your screen, please make the terminal window wider again.)14:33
ubuntouristls /home14:34
ubuntouristYou can see there are several users: Me (kjcole), Jeff (jelkner), Mulbah who somehow ended up with two accounts (mulbah and mkolleh)14:35
ubuntouristand others.14:35
ubuntouristls -l14:36
ubuntouristOK. So, we have these two files that everyone can read. Let's change that with chmod.14:36
tboimah_chmod to what?14:38
ubuntouristActually, let's not screw with those files. Use "nano" or "vim" to make a new file. Give it whatever name you want and put some text in it.14:38
ubuntouristWe'll use "chmod" on the file you create, instead of the files that are already there.14:38
ubuntouristGreat.  And save it with Ctrl-X when you're ready.14:39
ubuntourist"Y"14:39
ubuntouristand then give it a filename.14:39
ubuntouristmake it chmod.txt14:40
ubuntouristSo, the permissions say that anyone can read it.14:40
ubuntouristBut only you can write to it.14:41
ubuntouristLet's start by making it more open so that everyone can write to it:14:41
tboimah_okay14:41
ubuntouristchmod go+w chmod.txt14:42
ubuntouristthe "G" and "O" mean "Group" and "Others"14:43
ubuntouristthe "+" says we are adding a permission14:43
ubuntouristthe "W" says "the permission to be added is the write permission"14:43
ubuntouristHold for a second while I do something...14:44
ubuntouristNow,14:45
ubuntouristmost chmod.txt14:45
tboimah_wow!14:46
ubuntouristI cannot change 'typescript" or "timecodes" in your directory. I do not have permission.14:46
ubuntourist(DON'T give me permission. Those are built by script. and you don't want people to mess them up by editing them.)14:47
ubuntourist"q" to quit.14:47
ubuntouristNow, lets take permission AWAY from most people14:47
ubuntouristchmod go-rwx chmod.txt14:48
ubuntouristNow I cannot even see that the file exists when I am logged in on my account.14:49
ubuntouristyou have removed read, write and execute for all members of the group tboimah and all other users.14:49
ubuntouristThe only person who has permission to mess with the file is the owner "tboimah".14:50
ubuntouristMaybe you want to protect the file from yourself so that you cannot accidentally change itt.14:50
ubuntouristYou are "u"  😏14:51
ubuntouristchmod u-w chmod.txt14:51
ubuntouristNow, try to edit the file.14:52
tboimah_it is on writable14:53
ubuntouristYup. You've prevented yourself from changiing it. 14:53
ubuntouristSee if you can fix that on your own, using what we've learned so far.14:53
tboimah_done14:54
ubuntourist(You can add a note to the file saying what you've just accoomplished, or whatever.. And then save and exit the file again.14:55
ubuntouristchmod means "change permission modes"14:57
tboimah_done14:57
ubuntouristSometimes people will say "chmod tie file" but sometome people will say  "change the file mode". everyone14:58
ubuntouristunderstands that "change the file mode" means "change the file permission mode".14:58
tboimah_+114:59
ubuntouristOK, one more quick example. I'm going to "drive" for a minute. So just watch.14:59
ubuntouristOK, I've  created a tiny Bash script that is supposed to change to a different directory. list the files and examine one of them.15:01
ubuntouristType:15:02
ubuntourist./do_something.sh15:02
ubuntourist(Don't forget the period at the start.)15:02
ubuntouristNot "ls ." just "."15:02
ubuntouristNo15:03
ubuntouristno15:03
ubuntouristJust "."15:03
ubuntourist./do_something.sh  -- no most, no nano, no nothing. Just "./do_something.sh"15:04
ubuntouristYes.15:04
tboimah_permission denial15:05
tboimah_denied15:05
ubuntouristOK. It's telling you that it cannot execute the file. It cannot use it as a command. See if you  can fix that with chmod. Only the user "tboimah" should get permission to execute. Not group or others.15:06
ubuntouristyes so far.15:07
ubuntouristgood15:07
ubuntouristIt changed color!  (you want "ls -l" not "ls .l")15:08
ubuntouristNo need to CD15:08
ubuntouristSee the change in permission and the color change?15:09
*** mulbah has quit (Ping timeout: 480 seconds)15:09
tboimah_i can now execute the file15:09
ubuntouristThis means the operating system now recognizes that you think this is a program that can be executed.15:09
ubuntouristType "history"15:10
ubuntouristand look near the bottom to se what the command you typed to execute was.15:10
ubuntouristand do that.15:11
ubuntourist("q" to quit when you're ready, because we are running the output through most)15:12
tboimah_done15:12
ubuntouristRun it again (up-arrow) but only type one "q" wait and then type a second "q"15:12
ubuntouristOK "q" again.15:13
ubuntouristmost do_something.sh15:13
tboimah_done15:14
ubuntouristSo. the first line is a special line that says "interpret everything below as something that the Bash shell (/bin/bash) wiill understand.15:14
ubuntouristPeople call lines that start with #!" a special kind of comment called a "shabang" ("sh" for "shell" and somethimes, 15:15
*** sysadmin__ has quit (Ping timeout: 480 seconds)15:16
ubuntouristthe exclamation point  is called "bang" because on old television comedies a fake gun would pop out a flag that said "BANG!"15:17
ubuntouristso "sha-bang"15:17
ubuntouristThe next two lines are just normal comments and are ignored.15:17
ubuntouristThe next three lines are just commands that you could type by yourself.15:18
ubuntouristBecause of the shabang at the top and the setting of the "x" permission, Bash now knows this is an executable program.15:19
tboimah_Ahhh okay15:19
ubuntouristThese types of programs are usually called "shell scripts".15:19
ubuntouristI think that's a lot for today. So, q, then exit to quit ssh and get back to your computer, and then exit again to close the typescript and timecode files.15:21
tboimah_done15:21
ubuntouristI think there was a small error in your typesciipt file name for today...15:22
ubuntouristYou may want to use "mv" to fix that.15:22
ubuntouristUse the tab to save time typing15:23
ubuntouristThis is why tab is useful.15:25
ubuntouristTry again with tab helping you out.15:26
ubuntouristTAB15:27
tboimah_done15:28
ubuntouristAnd later, if you want to show mulbah or someone else you can play back with15:28
tboimah_okay thanks for today15:29
ubuntouristscriptreplay -t timecode-2023.08.10 typescript-2023.08.1015:29
tboimah_okay15:29
ubuntouristJust remember -- playback will be s-l-o-o-o-w because there are lots of times when we were talking or you were thinking about15:30
tboimah_ACTION to the bathroom15:30
ubuntouristwhat to type. So, the script will pause during those times that we were talking or you were thinking.15:31
tboimah_ACTION back15:33
ubuntouristLots to learn and digest and remember today. Good job. (I reccommend keeping a file with notes in your own words15:34
ubuntouristabout what you've learned. It is good to eplain things to yourself and others. It becomes good practice15:35
tboimah_okay15:35
ubuntouristfor remembering to ALWAYS document your work. And you will develop your own style of writing.15:35
ubuntouristWhen I read instructions that are written by other people, I sometimes find it hard to remember or understand.15:36
ubuntouristBy rewriting it for myself, it clarifies my thinking and just by typing it in, it reinforces and solidifies the concepts in my head.15:37
ubuntouristAnyway, that's it for today. Great job, and make sure to explain to Mulbah in case he has trouble following this.15:37
tboimah_okay15:38
ubuntourist(Remember, he didn't see most of what you typed.  But you can send him the typescript and timecode files or play them for him.)15:38
ubuntouristBye foir today!15:38
tboimah_okay I will do that thanks15:38
*** ubuntourist has quit (Quit: Leaving)15:39
*** tboimah_ has quit (Quit: Leaving)15:39
*** sysadmin_ has quit (Ping timeout: 480 seconds)15:41
*** shmohamud has quit (Remote host closed the connection)18:33
*** shmohamud has quit (Ping timeout: 480 seconds)20:42

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!