----BEGIN CLASS---- [13:45] #startclass [13:45] Roll Call [13:45] saurav [13:45] Bhavesh Gupta [13:45] ajinkya [13:45] Aniruddha Basak [13:45] Priyansh Dubey [13:45] bawdipooch [13:45] Ratan Kulshreshtha [13:45] Pavitra [13:45] ritwiz sinha [13:45] kumar prateek [13:45] swiftkiller [13:45] kanay bhandari [13:45] Kumar Vipin Yadav [13:45] <_poonam_> Poonam Chauhan [13:45] Mridul Goyal [13:45] Pramit Rana [13:45] Bhawna Aggarwal [13:45] Ritik Raushan [13:46] Aayush Gupta [13:46] Sourav Moitra [13:46] <_honey_> honey bhardwaj [13:46] Muhammad Zeeshan Qazi [13:46] Robin Schubert [13:46] Manu Shaurya [13:46] Abhay Kaushik [13:46] Ayush Karn [13:46] Ankur [13:46] Vishwash Bajpai [13:46] Nilesh Patra [13:46] Sayan Bhowmik [13:46] Aman Verma [13:46] orepoala [13:46] Siddhant N Trivedi [13:46] Jagannathan Tiruvallur Eachambadi [13:47] Priyanka Saggu [13:47] let's start in 3 minutes [13:48] ! [13:48] next [13:48] I want to know that there is an open source hackathon organized by Mozilla . I am currently a beginner and familiar with some programming languages. So should I attend the open source event or should I learn development first and then head over? [13:48] Roll Call: Rahul Jha [13:49] Roll call : Razy Kased; joined late [13:49] Pavitra: free to join, no comments here [13:50] you will always get experience. let's discuss this after class [13:50] Roll Call: Prashant Sharma [13:50] Piyush Aggarwal [13:51] Read this link and ask questions here: https://lym.readthedocs.io/en/latest/ [13:51] s/link/book/ [13:52] ! [13:56] next [13:57] I have trouble understanding Linux file system,Can i get a pointer to some explaination?? [13:57] katek: link from the book? [13:58] No either some explaination or some link where it is clearly stated [13:59] katek: i mean point me to which part this in the book and what did you not understand? [14:00] https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html here I am not getting what is the purpose of /bin and /sbin [14:02] and how is the home user different from root user?? [14:03] so, /bin is where the binaries are kept [14:03] and sbin are where the system binaries are kept [14:04] you can check ls /bin [14:04] and ls /sbin [14:05] there is nothing as home user [14:05] rather, I would term as there can be multiple users [14:05] ! [14:05] and each of the user have a home directory [14:06] root user is like the admin user [14:06] ! [14:06] and then there is the normal user, which you use to do day to day activities [14:06] next [14:06] "tree" command is not working, it says program is not installed [14:07] Do sudo apt install tree [14:07] tree is not installed, search how can you install tree for your linux version [14:07] Tell me if I am wrong [14:07] mdl2000: what if ravi_25 uses Fedora? [14:07] I am using ubuntu [14:07] s/linux version/linux flavor/ [14:07] This one is for ubuntu [14:08] ravi_25: then it will work [14:08] ok , i'll see [14:11] ! [14:11] ! [14:11] next [14:11] So if I install something as root then does that change apply to all users? When I delete other users do I have to be the root ? [14:12] ! [14:12] katek, the difference between /bin and /sbin is that /bin is used for binaries that are supposed to be used in init 4 and above, /sbin is meant for the binaries to be used in single user mode [14:13] not everyone follows that convention, some distros do, others moved away from it [14:13] user home directories are usually in /home/ but also not necessarily, that can be configured. The root user is a special kind of user and its home is /root/ [14:14] <_poonam_> ! [14:14] <_honey_> ! [14:15] next [14:15] ! [14:15] <_poonam_> In case of soft link when we do ls -l we get l at the start of permissions but not in case of hard links.Why so? How will we identify hard links? [14:16] should vim be preferred oer other text editors like nano, or even more customized like sublime or atom? If so, why? [14:16] _poonam_, please wait for your turn [14:16] gargantua_kerr[m: an editor is a choice, if it gets your job done then use it [14:16] ! [14:17] _poonam_, wait for your turn [14:17] Lot of people these days use editors like Code, Sublime, or Atom because the developer is compatible with it [14:17] I feel home when I use vim [14:18] But, you can use editors like vim in servers which does not have a display attached [14:18] next [14:18] sayan: I noted the OS name which you told me. But I have trouble finding that. Will you tell me once again which OS that uses tor completely in live mode. [14:19] sourabhdeshmukh: when? can you ask this after class? [14:19] next [14:19] How do I we keep in mind all these info , for example after reading something about linux filesystem, it isn't something I can practice to learn, moreover is it even necessary to remember all this information ? [14:19] sayan: Ok [14:20] blank00: read again :) [14:20] Is it necessary to remeber all this ? [14:20] Repeated use/reading of a thing moves the information to the permanent memory [14:20] blank00: yes! [14:20] next [14:21] <_poonam_> In case of soft link when we do ls -l we get l at the start of permissions but not in case of hard links.Why so? How will we identify hard links? [14:21] _poonam_: interesting question [14:21] so the first character gives your information about the type of the file [14:24] Okay, I could not find a link but let me tell here itself [14:25] if it's '-' then it is ordinary file, note hard links also show this [14:25] sayan, ls -i ? [14:25] if it's 'd' then it is a directory [14:25] How can we get the ip address of our server using terminal in Ubuntu 18.04? [14:25] if it's 'l' then it is a symbolic link [14:25] sorry [14:26] by mistake it was sent [14:27] Armageddon: Yeah [14:27] that could be a way [14:27] but for that they need to know about inode numbers [14:27] well a hard symlink is a pointer to an inode [14:28] _poonam_: what Armageddon would help in identify hard links, I can explain inode in depth maybe off class [14:28] next [14:28] <_honey_> If i am trying to enter into root directory using cd /root its showing permission denied why so?? and how can we enter there. [14:28] <_poonam_> okay [14:29] _honey_: you trying to invade the admin's block and it does have that strong security [14:29] ^^ that was a analogy [14:30] so you need to enter as root: type the command "su root" [14:30] and then the root password [14:31] REMEMBER THIS IS A DANGEROUS AREA! OPERATIONS BRING YOUR SYSTEMS CRASHING DOWN [14:31] next [14:31] command 'tree' not found, what does it mean and how can I install this package in wsl [14:31] <_honey_> thanks sayan :) [14:32] cryptimus: I'm not sure about how to do it in wsl [14:32] cryptimus, which Linux distro you are using in WSL? [14:32] next [14:32] ubuntu 18.04 [14:32] How can we get the ip address of our server using terminal in Ubuntu 18.04? [14:32] Do sudo apt install tree [14:32] cryptimus, ^ [14:32] Pavitra: where did you get that? [14:32] <_honey_> ! [14:33] During ssh connection request we have to specify rootname@root_ip address [14:33] cryptimus: search it then [14:33] so how to get that ip address? [14:33] cryptimus: how to install software in ubuntu [14:33] it says "Unable to locate package tree" [14:34] if you are just starting out, please stick to fedora in a virtual machine or dual boot so people here can help out directly [14:34] cryptimus: maybe ask after the session. I'm not an Ubuntu user [14:34] I don't know the commands to search [14:34] next [14:34] cryptimus: use sudo apt-get install tree [14:35] sayan, j605 : ok eom [14:35] cryptimus, `sudo apt-get install tree` [14:35] cryptimus, search how to install packages in Ubuntu you will get your answer there [14:35] aniruddhab: mdl2000 don't spoonfeed people. also I would suggest using apt instead [14:35] <_honey_> i tried su root but [14:36] ok, sure [14:36] j605, ok sorry [14:36] <_honey_> its saying authentication failure [14:36] 80 [14:36] sayan : You just skipped the question? [14:36] aniruddhab, cryptimus take this offline. [14:36] sorry it was a mistake [14:38] Pavitra: link to the page that has this statement? [14:39] next [14:39] _honey_: can you tell me what could be the issue here? [14:39] sayan : https://lym.readthedocs.io/en/latest/networking.html#ssh-key-generation [14:39] here [14:40] <_honey_> sayan: i dont know :( [14:40] Pavitra, have you searched same question on internet? [14:40] _honey_, Are you trying to login as root for the first time and are you new to Fedora ? [14:41] <_honey_> am not using fedora [14:41] <_honey_> ubuntu 16.04 [14:41] _honey_, then you can type 'sudo -i' to login as root. [14:42] <_honey_> okayy thanks kvy,sayan [14:42] Pavitra: I did not find the statement in there [14:42] bhavin192 : on internet it is mentioned to use the command : ip addr show [14:42] kvy, generally using sudo -i is better than other ways :) [14:42] but ssh root@localhost it should work if the ssh server is running [14:43] bhavin192: sudo -s? [14:43] _honey_, you might want to search why sudo su does not work [14:43] Anways let's not throw random commands at the new people [14:43] sayan : in ssh copy id ip addr is mentioned [14:44] Pavitra: Hmm, just use root@localhost [14:44] because you folks don't have a remote box [14:44] sayan, are -i and -s same? Need to check [14:44] ! [14:44] sayan, yep, we will discuss later :) [14:45] read and throw questions [14:45] I will be back from home [14:46] sayan: Thanks [14:46] <_honey_> bavin192 : already searched on internet:) [14:46] bhavin192: schubisu can you take the questions for sometime? [14:47] sayan: sure, but batul will not listen to me ;) [14:47] sayan: yes [14:48] _honey_: what was your finding? [14:49] add: schubisu [14:49] jasonbraganza: thanks ;) [14:49] next [14:49] how to come back from root user to simple user ? [14:49] kanay_: just type `exit` [14:50] <_honey_> bhavin192:https://askubuntu.com/questions/825862/why-doesnt-the-su-command-work-in-ubuntu-but-does-in-other-linux-distros [14:51] <_honey_> basically by default root has no password if i am correct , bhavin192 [14:52] _honey_: nice! It's same with Fedora in newer versions [14:52] ok schubisu :) [14:53] any other questions anyone? [14:55] _honey_, In Fedora your root password is same as login user and in Ubuntu you can access root just by typing `sudo -i`. [14:55] <_honey_> yeah i got that :) thanks kvy [14:55] or sudo su, or sudo bash [14:56] sorry if I'm not up to date now, did all of you read the chapter about shell commands in the lym book? please type 'yes' if you did [14:56] sudo [14:56] <_honey_> yes [14:56] yes [14:56] yes [14:56] <_poonam_> yes [14:56] yes [14:57] Yes [14:57] yes [14:57] yes [14:57] yes [14:57] yes [14:57] yes [14:57] yes [14:58] okay, next chapter in lym is about the File Hierarchy Standards, which is a crucial thing when you want to understand your *nix system. [14:58] yes [14:58] the chapter is basically referring here https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html [14:59] for next session, please go through this document to learn about the file structure you're working on. [14:59] yes [15:00] everyone should be able to explain what the 'root' directory is, where to look for mounted volumes or devices and what you would expect to find in '/etc/ [15:00] Ok [15:00] So class over?? [15:01] katek: yes [15:01] Roll Call [15:01] kumar Prateek [15:01] Robin Schubert [15:01] <_poonam_> Poonam Chauhan [15:01] Kumar Vipin Yadav [15:01] Mridul Goyal [15:01] Muhammad Zeeshan Qazi [15:01] Sourabh Deshmukh [15:01] Aniruddha Basak [15:01] Bhavin Gandhi [15:01] <_honey_> honey bhardwaj [15:02] kanay bhandari [15:02] saurav [15:02] Priyanka Saggu [15:02] Razy Kased [15:02] Kush bhandari [15:02] ANKUR [15:02] Nilesh Patra ----END CLASS----