=== mrobbert [n=mrobbert@vpn245.Mines.EDU] has left #ubuntu-classroom ["Konversation] === theCore [n=alex@ubuntu/member/theCore] has joined #ubuntu-classroom === nothlit_ [n=nothlit@pcd340130.netvigator.com] has joined #ubuntu-classroom === toby [n=toby@c-24-118-154-166.hsd1.mn.comcast.net] has joined #ubuntu-classroom === rrittenhouse [n=tad@cpe-76-188-35-66.neo.res.rr.com] has joined #ubuntu-classroom === fernando [n=fernando@unaffiliated/musb] has joined #ubuntu-classroom === gnomefreak [n=gnomefre@ubuntu/member/gnomefreak] has joined #ubuntu-classroom === zylche [n=wheee@82-41-83-91.cable.ubr01.dund.blueyonder.co.uk] has joined #ubuntu-classroom === kuto [n=kilopopo@ppp-71-136-44-137.dsl.sndg02.pacbell.net] has joined #ubuntu-classroom [01:56] hi what is inputrc === h0ndaracer2 [n=h0ndarac@74-129-215-137.dhcp.insightbb.com] has joined #ubuntu-classroom [01:57] hi h0ndaracer2 [01:57] hello [01:57] can u hold one sec [01:57] ok, refresh my mind, you want to delete something on your desktop taht you don't have permission to? === sonicGB [n=geoffb@ppp244-69.static.internode.on.net] has left #ubuntu-classroom [] [01:58] yes [01:58] ok open up a terminal [01:58] !terminal [01:58] The linux terminal or command-line interface is very powerful. Open a terminal via Applications -> Accessories -> Terminal (Gnome) or K-menu -> System -> Konsole (KDE). Manuals: https://help.ubuntu.com/community/BasicCommands [01:59] ok [01:59] got it [01:59] anything I type between '' is a command for you to enter in the terminal. For example: [01:59] 'cd ~/Desktop' [01:59] ok [01:59] take care to type it exactly like that with a capital 'D' [02:00] linux is case-sensitive [02:00] ok now type 'ls' [02:00] ok hit enter [02:01] ? [02:01] yes [02:01] did it list the files you have on your Desktop? [02:01] yes correct [02:01] what is the name of the file you are deleting? [02:02] 80211g [02:02] ok, so [02:03] now be very sure you want to delete this, there is no undo or trash, it disappears forever [02:03] im shure i dont need it [02:03] 'sudo rm -rf 80211g' [02:03] how do i clear my terminal so it clears everything... so that my terminal looks like a new terminal without any previous inputs? [02:04] ok thanks jrib [02:04] np, I'll have the bot send you some info on the cli [02:04] !cli | h0ndaracer2 [02:04] h0ndaracer2: The linux terminal or command-line interface is very powerful. Open a terminal via Applications -> Accessories -> Terminal (Gnome) or K-menu -> System -> Konsole (KDE). Manuals: https://help.ubuntu.com/community/BasicCommands [02:05] maybe if you want to u can help me with sometin else === STiKi- [i=stiki@narkotyk.net] has joined #ubuntu-classroom [02:10] h0ndaracer2: just ask in #ubuntu, that way more people can help you [02:10] ok [02:15] h0ndaracer2: [02:16] h0ndaracer2: what are you trying to do? [02:16] how come /etc/profile in ubuntu is so small [02:17] im wanting to navigate to the home folder then the examples folder so i can delete ht [02:17] kuto: you'd have to ask the package maintainer, but #ubuntu is a better place to ask questions [02:17] those files in example that ubuntu came with [02:18] h0ndaracer2: that just a symbolic link I believe === ash211__ [n=andrew@user-1121f2u.dsl.mindspring.com] has joined #ubuntu-classroom [02:18] well how do i get to those files then [02:19] do you understand what a symbolic link is? [02:19] not really i told you i dont know much about linux im sorry [02:20] that's ok, I just wanted to make sure you understood. Don't hesitate to ask if i say something you don't understand [02:20] a symbolic link is like a shortcut in windows [02:20] (but better) [02:20] ok [02:20] this linux is stessing me out try to learn all this stuff [02:20] so do you just want to remove the link so it doesn't show up in your HOME? [02:20] no im wanting to go into their and remove a folder [02:21] like my examples folder [02:21] so you don't want the Example stuff on your computer at all? [02:21] it's actually in /usr/share/example-content [02:21] yes [02:21] and the package that installs that content is example-content === toby [n=toby@c-24-118-154-166.hsd1.mn.comcast.net] has left #ubuntu-classroom ["Ex-Chat"] [02:21] so you should be able to just remove that package using synaptic [02:21] it came with the little video about ubunut and some other files [02:23] ok thanks i got to go for now i might be on in a hour or two maybe ill talk to you then thanks for all your help i appreciate it some people on here are a$$es [02:23] but thank you again [02:23] np === tonyyarusso [n=anthony@ubuntu/member/tonyyarusso] has joined #ubuntu-classroom === pradeep [n=pradeep@59.92.46.238] has joined #ubuntu-classroom === tonyyarusso [n=anthony@ubuntu/member/tonyyarusso] has joined #ubuntu-classroom === ash211 [n=andrew@user-1121f2u.dsl.mindspring.com] has joined #ubuntu-classroom === hybrid [n=x@easyubuntu/supporter/hybrid] has joined #ubuntu-classroom === Turgon [n=Limulf@unaffiliated/turgon] has joined #ubuntu-classroom === theCore [n=alex@ubuntu/member/theCore] has joined #ubuntu-classroom === ash211_ [n=andrew@user-1121jee.dsl.mindspring.com] has joined #ubuntu-classroom === andrewPCT is now known as andrew === hybrid [n=x@easyubuntu/supporter/hybrid] has joined #ubuntu-classroom === nothlit [n=nothlit@pcd555041.netvigator.com] has joined #ubuntu-classroom === unix_infidel [n=blue@unaffiliated/unixinfidel/x-8383745] has joined #ubuntu-classroom === Crusher [n=You@124-254-96-180-dsl.ispone.net.au] has joined #ubuntu-classroom === unix_infidel [n=blue@unaffiliated/unixinfidel/x-8383745] has left #ubuntu-classroom ["Leaving"] === stuart_ [i=user249@135.27.233.220.exetel.com.au] has joined #ubuntu-classroom === hybrid [n=x@72.169.30.254] has joined #ubuntu-classroom === macconline [n=macconli@190.37.46.177] has joined #ubuntu-classroom === N7C [n=slack@81.18.53.177] has joined #ubuntu-classroom === N7C [n=slack@81.18.53.177] has left #ubuntu-classroom ["..::] === schiele [n=robert@p54ABDC29.dip.t-dialin.net] has joined #ubuntu-classroom === hybrid [n=x@72.169.30.254] has joined #ubuntu-classroom === Crusher [n=You@124-254-101-201-dsl.ispone.net.au] has joined #ubuntu-classroom === nothlit_ [n=nothlit@pcd249075.netvigator.com] has joined #ubuntu-classroom === BuFF [n=bill@88.119.7.242] has joined #ubuntu-classroom === STiKi- [i=stiki@narkotyk.net] has left #ubuntu-classroom [] === PWill [n=paul@cpe-24-208-190-43.columbus.res.rr.com] has joined #ubuntu-classroom === seb35690 [n=seb35690@212.234.175.46] has joined #ubuntu-classroom === DerXero [n=patrick@dslb-082-083-148-159.pools.arcor-ip.net] has joined #ubuntu-classroom === tonyy [n=anthony@ubuntu/member/tonyyarusso] has joined #ubuntu-classroom === nothlit__ [n=nothlit@pcd341231.netvigator.com] has joined #ubuntu-classroom === Blue-Omega [n=Blue@about/cooking/nakedchef/omelette/Blue-Omega] has joined #ubuntu-classroom === elkbuntu [n=melissa@ubuntu/member/elkbuntu] has joined #ubuntu-classroom === jrib [n=jasonr@upstream/dev/jrib] has joined #ubuntu-classroom === Turgon [n=Limulf@unaffiliated/turgon] has joined #ubuntu-classroom === Maikel [i=ma1kel@cp305656-b.tilbu1.nb.home.nl] has joined #ubuntu-classroom === fernando__ [n=fernando@189.0.128.198] has joined #ubuntu-classroom === Turgon [n=Limulf@unaffiliated/turgon] has joined #ubuntu-classroom === javaJake [n=fun2prog@pool-72-70-10-151.bstnma.east.verizon.net] has joined #ubuntu-classroom === javaJake [n=fun2prog@pool-72-70-10-151.bstnma.east.verizon.net] has left #ubuntu-classroom [] === poningru [n=poningru@pool-72-64-211-211.tampfl.fios.verizon.net] has joined #ubuntu-classroom === pradeep [n=pradeep@59.92.65.8] has joined #ubuntu-classroom [03:11] Will the session on Kernel happen today? [03:14] pradeep: I'm not sure, you'll have to find DBO [03:14] tonyyarusso, what's DBO? [03:14] pradeep: The person I think was going to give it [03:15] oh ok [03:15] I see him in here -- > :D === hybrid [n=x@72.169.30.254] has joined #ubuntu-classroom === BuffaloSoldier [n=integral@unaffiliated/buffalosoldier] has joined #ubuntu-classroom === hybrid [n=x@72.169.30.254] has joined #ubuntu-classroom [04:10] where is the person ? We want him ! :) [04:19] Hi DBO === pipedream [n=pipedrea@ssh.aims.ac.za] has joined #ubuntu-classroom === leandro [n=leandro@adsl-ull-26-176.41-151.net24.it] has joined #ubuntu-classroom [04:41] DBO : what about the Kernel session ? === ash211 [n=andrew@user-1121b01.dsl.mindspring.com] has joined #ubuntu-classroom === krystyna [n=krystyna@82.139.11.4] has joined #ubuntu-classroom === _DvP_ [n=David@2.39.100-84.rev.gaoland.net] has joined #ubuntu-classroom [04:56] ooop [04:56] dinger went off for THIS room =P [04:57] im used to be contacted in #ubuntu-nun about this [04:57] Good point [04:57] ah someones still alive [04:58] nobody signed on for sys admin 101 or advanced sys admin either? [04:58] hmmmm a shame === gabone [n=gabone@84.232.197.188] has joined #ubuntu-classroom [05:07] date for next classroom is set at 20:00UTC [05:11] DBO: Not yet anyway :( === theCore [n=alex@ubuntu/member/theCore] has joined #ubuntu-classroom [05:15] tonyyarusso, wanna change it on the wiki for me? === DBO dealing with makefile mania [05:16] DBO: To 20:00? sure. So that's in...4 hours? [05:16] 5 === tonyyarusso checks clock [05:16] um... [05:16] oh nevermind [05:17] I think I'm rgiht [05:17] windows... [05:17] oh, 'k [05:17] hehe [05:17] dual booting [05:17] 4 hours [05:19] DBO: Are you doing both days? [05:20] yeah [05:20] guess so [05:20] nobody else seems to wanna =P [05:29] < >> [05:30] when i want install java something like that is on screen === Turgon [n=Limulf@unaffiliated/turgon] has joined #ubuntu-classroom [05:48] krystyna, do you have synaptic open? [05:48] or apt-get running elsewhere? [05:49] now yes but when i tried install java i hadn't run else.. === _DvP_ [n=David@2.39.100-84.rev.gaoland.net] has left #ubuntu-classroom ["Quitte"] [05:53] krystyna, if you are sure you have no other process running with apt [05:53] you can manually remove the lockfile in /var/lib/dpkg [05:54] how manually remove>? [05:55] im in directory /var/lib/dpkg [05:56] and what i have to do... [05:59] delete the file named lock [06:05] :/ [06:05] access denied === roico [n=roico@bzq-88-152-173-99.red.bezeqint.net] has joined #ubuntu-classroom === roico [n=roico@bzq-88-152-173-99.red.bezeqint.net] has left #ubuntu-classroom ["Leaving"] === nothlit [n=nothlit@pcd341231.netvigator.com] has joined #ubuntu-classroom === BuffaloSoldier [n=integral@unaffiliated/buffalosoldier] has joined #ubuntu-classroom === thebigearl [n=koptein@dslc-082-082-088-175.pools.arcor-ip.net] has joined #ubuntu-classroom === tonyyarusso [n=anthony@ubuntu/member/tonyyarusso] has joined #ubuntu-classroom === LjL [n=ljl@81-208-36-87.ip.fastwebnet.it] has joined #ubuntu-classroom === hybrid [n=x@easyubuntu/supporter/hybrid] has joined #ubuntu-classroom === ash211_ [n=andrew@user-11210k1.dsl.mindspring.com] has joined #ubuntu-classroom === ash211__ [n=andrew@user-1121cfb.dsl.mindspring.com] has joined #ubuntu-classroom === BuffaloSoldier [n=integral@unaffiliated/buffalosoldier] has joined #ubuntu-classroom === selinuxium [n=selinium@80-193-7-210.cable.ubr02.sout.blueyonder.co.uk] has joined #ubuntu-classroom === ash211___ [n=andrew@user-11fatn4.dsl.mindspring.com] has joined #ubuntu-classroom === hybrid [n=x@easyubuntu/supporter/hybrid] has joined #ubuntu-classroom === apokryphos [n=francis@87-194-86-227.bethere.co.uk] has joined #ubuntu-classroom === Patskumaster [n=juho@bb-89-166-15-225.dsl.phnet.fi] has joined #ubuntu-classroom === brainsik [n=brainsik@adsl-75-36-212-190.dsl.pltn13.sbcglobal.net] has joined #ubuntu-classroom === tsmithe [n=bip@unaffiliated/tsmithe] has joined #ubuntu-classroom === tsmithe [n=bip@unaffiliated/tsmithe] has left #ubuntu-classroom ["Help] === seb35690 [n=seb35690@lns-bzn-22-82-249-97-112.adsl.proxad.net] has joined #ubuntu-classroom === ranf [n=ralfm@dslb-084-058-133-224.pools.arcor-ip.net] has joined #ubuntu-classroom === nevron [n=nevron@88.229.244.110] has joined #ubuntu-classroom === nevron [n=nevron@88.229.244.110] has left #ubuntu-classroom [] === ph8 [i=henri@rigel.orion-hosting.co.uk] has joined #ubuntu-classroom === Wooksta [n=Wooksta@82-41-99-118.cable.ubr03.dund.blueyonder.co.uk] has joined #ubuntu-classroom === mnoir [n=bos@nwlnnhbas01-pool4-a153.nwlnnh.tds.net] has joined #ubuntu-classroom === ShakaGoldSaint [n=eleazar@190.37.13.36] has joined #ubuntu-classroom === Eclypse [i=Patrick@66.53.203.156] has joined #ubuntu-classroom === dougsko [n=doug@c-24-131-69-39.hsd1.pa.comcast.net] has joined #ubuntu-classroom === reverseblade [n=reverseb@85.105.19.139] has joined #ubuntu-classroom [08:56] wow === narvik86 [n=narvik86@aaxk115.neoplus.adsl.tpnet.pl] has joined #ubuntu-classroom === yipe [n=yipe@12-218-163-227.client.mchsi.com] has joined #ubuntu-classroom [08:56] , === theCore [n=alex@ubuntu/member/theCore] has joined #ubuntu-classroom [08:56] is it okay for us to talk? [08:56] no [08:56] yipe talked! ban him! [08:56] now you've talked [08:56] ban them all! [08:56] of course it's ok, it hasn't started yet :) [08:56] okay [08:57] what sort of level of detail we going into here? :) [08:57] hey guys [08:57] mmmm a crowd =) [08:57] lol [08:57] were gonna lynch DBO [08:58] yay I love mobs! [08:58] starting in 2 minutes (theoretically) [08:58] i didnt know this channel was here [08:58] DBO you're a boss remember ! ;) [08:58] this is a cool idea [09:00] DBO, are you an ubuntu dev ? [09:00] reverseblade, no, I am only relatively loosely affiliated with Ubuntu [09:00] what other kind of "classes" are there in here? === rrittenhouse [n=tad@cpe-76-188-35-66.neo.res.rr.com] has joined #ubuntu-classroom [09:01] dougsko: https://wiki.ubuntu.com/Classroom has a list of all the classes we've hosted :) [09:01] ok ladies and gentlemen, we are going to get going [09:01] ryanakca: cool thanks [09:02] let's go ! === Wooksta gets pen & paper our [09:02] let me first lay out the ground rules [09:02] there are two breaks for questions, one in the middle [09:02] and one half way through [09:02] feel free to /msg me questions at any time though and I will get to them during the question sessions [09:03] this topic is intended for new users mostly === Maikel is now known as Ma1kel [09:03] and for users who hear the word kernel and think popcorn =) === s1gma [n=s1gma@82-45-226-239.cable.ubr03.enfi.blueyonder.co.uk] has joined #ubuntu-classroom === Curs0r [n=cursor@ip68-228-44-151.tc.ph.cox.net] has joined #ubuntu-classroom [09:03] so lets begin [09:03] Before we begin we need to get a bit of background history both on what an OS is and where Linux comes from. [09:04] We will start with the beginnings of Linux. Keep in mind that this session is intended for the new user with little or no technical experience, and will not get hung up on terminology. [09:04] We will be spending a lot of time dealing with modules, I thought long and hard about whether or not this was important and decided that if there was one thing users should learn, its how to deal with modules. === s1gma [n=s1gma@82-45-226-239.cable.ubr03.enfi.blueyonder.co.uk] has left #ubuntu-classroom ["Konversation] [09:04] Most users wont compile there own kernel, but many with have their own set of modules to deal with. So that will be a large focus. === macconline [n=macconli@190.37.41.32] has joined #ubuntu-classroom [09:04] However before we can really dive into all of that [09:05] we need to get a general idea of what Linux actually is [09:05] many of you may know already that linux is a unix like operating system, and from the users point of view it is perfectly ok (ideology aside) to think of Linux as a type of Unix [09:05] However there are a couple key differences [09:06] namely, Unix is closed source (excluding the BSD's) where as Linux is open source, and equally as important, Linux is free to the user. [09:06] Linux started as a small Hobbyist OS, written by Linus Torvalds, and moved on from there. [09:07] As it grew in complexity, so did the OS that ran on top of it, which too began to be called Linux (or GNU/Linux) [09:07] This has become a small point of confusion however [09:07] Linux is the name of the kernel, and it is also the name of the OS which incorporates the kernel [09:08] To contrast this, OS X (apples OS) has a kernel named XNU, and Windows up to Vista, had a kernel named NT [09:08] AS you may guess, this has lead to a lot of confusion about what Linux actually is [09:08] So for the sake of this class, let use be very very clear, Linux is the kernel on which GNU/Linux, the operating system, runs on top of. [09:09] Confusing? Probably, so we need to also briefly cover what an Operating System is [09:09] Operating Systems are the most basic set of programs on your computer that make the work you do possible, this DOES include the kernel. === cpk1 [n=cpk1@sjs-130-65-211-110.sjsu.edu] has joined #ubuntu-classroom [09:09] Make note, an Operating System has a Kernel, but a Kernel is not an Operating System. [09:10] Sometimes you interact with the OS directly, sometimes through the applications you use. [09:10] So let's lay out the hierarchy right now, we have to do it eventually and it always seems too early. [09:10] There are layers to a computer operating system, four of them in Unix to be precise. [09:10] Layer one, the very top layer, we will call Users. Layer two we will call Shells, layer three will be Linux (the Kernel), and layer four will be the hardware itself. [09:10] so it looks like: [09:10] Users [09:10] Shells [09:11] Kernel [09:11] Hardware === mode/#ubuntu-classroom [+o DBO] by ChanServ [09:11] simple enough? [09:11] oh thank you =) === mode/#ubuntu-classroom [+m] by DBO [09:11] its hard to get good help =P [09:11] anyhow [09:11] These layers interact only with the layer above or below them with a couple exceptions we wont be covering [09:12] So as a user to get something done, you interact with shells, shells interact with the kernel, the kernel interacts with the hardware, gets the result, and passes the info back up the chain of command [09:12] From this rather simplistic view it is easy to guess where the rest of the "OS" is if its not the kernel, and clearly its not the user, it must be the "shells". [09:12] And thats pretty much right, before we had a GUI (graphical user interface) your OS was the shell and all the basic commands you could run from it. [09:13] Even today for the most part GUI applications are not really part of the OS but things that run on top of it (excluding the case of Windows). [09:13] Do however keep in mind that what is and is not part of your OS is often a fuzzy line [09:13] This is the basic set of knowledge we need to continue on with our kernel [09:14] at this time we are going to take a short 5 minute break for questions [09:14] I want to make sure everyone is fairly clear on what is going on ehre === mode/#ubuntu-classroom [-m] by DBO [09:14] you may ask questions directly in the room =) [09:14] Are you single?? [09:14] no [09:15] whats the expected duration of this class (approx)? [09:15] I can adjust for your preference =) [09:15] :)) [09:15] well i aint got much to do for the rest of the night so go as low as u want :P [09:15] everyone is clear on these basic concepts then? [09:16] DBO: is my thinking correct that even the concept of a "kernel" can really only apply when you're talking about an OS that runs with 1) virtualized memory and 2) kernel protection (i.e. applications can't go into kernel mode)? [09:16] at least, the possibility of clearly separating "kernel" and "the rest" without putting another fuzzy line on there [09:16] LjL, in the sense we will be discussing it yes [09:17] LjL, it gets fuzzy when you talk about multi-tasking operating systems that dont offer virtualized memory and kernel protection in any sense [09:17] but those are no longer around so we wont worry about them [09:17] DBO: yes, that was the kind of thing i had in mind, and yes, i realize it hardly applies to today's systems anymore [09:17] its a very good point though [09:18] as computers grow in complexity [09:18] it becomes harder and harder to figure out what classification any one piece of code belongs to [09:18] any other questions? =) [09:19] ok let's move on === mode/#ubuntu-classroom [+m] by DBO === mode/#ubuntu-classroom [-m] by DBO [09:19] Im going to leave that off [09:19] just ask question whenever since there is not many people here =) [09:19] We can move on to discussing a couple features that make the Linux kernel special === mode/#ubuntu-classroom [+o LjL] by ChanServ === ..[topic/#ubuntu-classroom:LjL] : Ubuntu Open Week has now finished - thanks , everyone! | The classroom schedule is located at: https://wiki.ubuntu.com/Classroom | Transcripts and logs are at: https://wiki.ubuntu.com/ClassroomTranscripts and http://www.tonyyarusso.is-a-geek.com/irclogs/openweek/ | Current session: The Linux Kernel === mode/#ubuntu-classroom [-o LjL] by LjL [09:20] these features are present in other kernels of course, but they are some of the most basic features of the Linux kernel that make everything you see and do on Linux possible [09:20] Linux is a multitasking operating system, which also means its kernel has to handle multitasking, after all, it is part of the operating system. [09:21] What does this mean? Well it means that the kernel is taking care of "interrupting" applications so that another one can work. [09:21] Keep in mind that your computer can only really do one things at once, so when it works on one thing it puts other things on hold [09:21] It is the kernel that decides which thing needs to work and when, and it is very smart about it [09:21] Your kernel will take note when one application is waiting on data, for example if your music player is waiting on that mp3 file from your hard drive, it can't start to decode it until the file gets there. [09:21] So the kernel will put that process on hold until the data gets there, giving other processes a chance to use the hardware. [09:22] This takes place very very very fast however, in the short time we have been discussing this your kernel has switched between different tasks thousands of times, making sure they all have the processing time from the hardware that they need. [09:22] In fact, this is where the concept of processor time comes from, the more a process has to access the hardware, the more processor time it uses. [09:22] This very basic functionality was one of the most important features in early kernels/operating systems and today remains one of the core technologies of computers. === wastrel [n=wastrel@nylug/member/wastrel] has joined #ubuntu-classroom [09:23] Without this ability running more than one application at a time would become impossible [09:23] The kernel like we mentioned, deals with all hardware interaction, so when you save a file, your application makes a request that gets passed along to the kernel. [09:23] The kernel will make the decision on whether or not to let you, and even when to write it out. [09:24] In general Linux will delay actually writing the data to the hard drive as long as reasonably possible so that if the data is called up again, as is quite often the case, it already has it loaded in memory (note that one of the slowest devices in your system is the hard drive). [09:24] However this is not without its own problems [09:24] Having so many programs running at once can cause its own issues for the computer. [09:24] Each program will need its own set of memory from the system. [09:24] So it calls out to the kernel says "hey, I need 10MB of memory" and the kernel says back "ok, here you go, your memory is at address 400-2000". [09:25] This is what we call virtualized memory (and no, your kernel does not speak english =P) [09:25] DBO: about the hard drive... when a given task is using too much CPU for my likings, i know i can "renice" it, i.e. change the scheduling priority. is there anything like that for I/O activity in Linux? === tahitibob [n=david@guy78-4-82-243-43-241.fbx.proxad.net] has joined #ubuntu-classroom [09:26] for the most part no, I/O will be load balanced fairly equally [09:26] but there is no quick method Im aware of [09:26] So our application has requested from the kernel a chunk of memory, and the kernel has provided it [09:27] normally our application would use this memory and all is well [09:27] However often times poorly writing applications might try to write to memory they are not assigned, and if they were allowed to this could result in a whole range of badness all the way up to a full fledged system crash. [09:27] The operating system will prevent this of course, this is called Memory Protection. [09:27] Older systems this was not the case [09:27] memory protection is one of the biggest improvements in computer stability ever [09:27] One of the most fun bits of Linux is just how portable it is. Everyone jokes that they have Linux running on their wristwatch and so on, but in the end it really can be run on just about anything. [09:28] It runs on PDA's, Routers, Macs, PC's, Sun systems, I'm sure it would run on R2D2 if we could get him to stop saving the Universe for a minute. [09:28] ... that provides memory protection hardware ;) [09:28] ah yes [09:28] In fact Linux runs on 20+ different processor architectures, it will even run on your iPod. [09:28] However this was not always so, and Linux has had to go through a lot of work and different versions to get there. We are currently in version 2.6.17 in Edgy Eft. [09:29] These numbers are not just random, so lets look at them for a bit. The first number defines the kernel version, and is changed only when VERY major changes in the kernel occur. [09:29] In fact this has only changed twice, one from 0 to 1, and again for 1 to 2. [09:29] The second number designates then major revision of the kernel version, and the third number is minor revisions (driver changes and so on) [09:29] You will sometimes see a forth number tacked on, these designate a bugfix or security release that does not quite justify a new minor revision. [09:29] There is a bit of confusion going around right now about even and odd numbers. Even numbers are often said to be stable releases, odd numbers unstable releases when talking about the second number. [09:30] So 2.6 is said stable and 2.7 unstable. This actually used to be the case, which is where the confusion comes from. [09:30] Prior to the 2.6 release, even numbers did mean stable and odd meant development. [09:30] So 2.4 was a stable release but 2.3 was a developer release. Please note that this is no longer the case, odd and even have no more significance. [09:30] In fact, all of this mumbo jumbo about what your kernel is doing is not so far out of your grasp, we can actually look and see what our kernel has been up to. [09:31] so the first and most basic command we introduce new users to is the "dmesg" command. === ShakaGoldSaint is now known as ShakaNoobSaint [09:31] It is perfectly safe to run this command for yourself, feel free to try it on your own PC. [09:31] dmesg will show you what errors and informational message your kernel has for you =) [09:32] A lot of times you will see info about hardware drivers being loaded, network interface errors, hits on firewall rules sometimes pop up in there. [09:32] This is the most basic way to interact with your kernel, by looking at what it has to say. [09:32] This has a lot of usage and some of you may have even been asked to use this when troubleshooting problems in #ubuntu. [09:32] Of course simply watching is no fun [09:33] So we need to learn to interact with our Linux kernel, and to do that, we need to understand that our Kernel is Voltron [09:33] Some of this may be confusing at first, but we will be doing a hands on excersize shortly. === croppa [n=stuart@135.27.233.220.exetel.com.au] has joined #ubuntu-classroom [09:33] There is one other key feature to talk about however, that being kernel modules. Kernel modules are, unsurprisingly, modular additions to the kernel to add functionality. [09:33] The most common kind of kernel module you will deal with is a device driver. [09:33] If you are running a nvidia video card and you wish to have OpenGL working, you need to load the nvidia kernel module. [09:34] Even things like file system support have been put into kernel modules today, there are tons of them [09:34] To see every kernel module you have loaded right now, simply enter "lsmod" into a terminal. === tahitbob [n=david@guy78-4-82-243-43-241.fbx.proxad.net] has joined #ubuntu-classroom [09:34] To see how many of them are loaded, you can pipe that to wc -l via "lsmod | wc -l" [09:34] Most of you will see things like "soundcore" which is the core of sound production, or "floppy" which provideds floppy disk support. [09:35] pretty obvious what those do [09:35] However some of them like.... say agpgart are not so obvious. [09:35] However if you look to the right a bit you can see two sets of numbers, those give the size of the module and how many times they are in usage (you can use a module multiple times). [09:35] To the right of that it lists even more modules, you can think of these modules as depending on the module you are looking at, because more or less they do. [09:35] So it becomes pretty clear now, agpgart is loaded because your video card needs it (for the AGP bus). [09:36] Even still some modules don't have anything listed as things that depend on them, but we can still get more info. Running the command "modinfo font" gives us information about the module named "font". [09:36] This will give us information about the license, author, and a basic description of the module. In this case James Simmons is the author, he licensed it GPL, and the module provides us with Console Fonts [09:36] To simply get the description of the module, you can do "modinfo -d font", however if the module has no discription (as is often true or closed source modules), this will return nothing. [09:36] One thing to note about modules is that they do not HAVE to be modules. When you compile your kernel (which we will not be covering), or it was compiled for you, modules can be compiled into the kernel directly so they cannot be removed. [09:37] This makes the kernel custom to the machine you are on, but makes it essentially useless for things like Ubuntu where we have a large number of people using the same kernel. [09:37] Any questions so far? =) [09:37] is there any advantage to compiling modules into the kernel? [09:37] like performance ? [09:37] yes [09:38] performance will be slightly better [09:38] why exactly? [09:38] when you abstract things out to modules and such there is a slight overhead [09:38] when you compile is one hunk of code it is more streamlined [09:38] thats why distros like gentoo compile all the modules you need for your hardware right into the kernel [09:39] of course this comes at the high price of actually having to compile your own kernel [09:39] how about ubuntu ? [09:39] which in that sense, Linux is fairly unique as the only OS available to users where this is readily available to you as an option [09:39] Ubuntu does not have you recompile the kernel on your own [09:40] so almost all drivers (excluding some very core ones) are loaded in as modules [09:40] how about smp and apic are these modules too ? [09:40] APIC is, smp is part of the kernel [09:42] why did we stop ? [09:42] ok we are going to move on [09:42] (was waiting to see if there are more questions) [09:42] Loading/Stopping Modules at Boot: [09:42] wait [09:42] wrong header =P [09:42] I jumped ahead [09:42] Inserting and Removing your own modules: [09:42] There is more to do with kernel modules however, you can insert your own kernel module with "sudo modprobe [kernel module] " and the module will be inserted until it is either removed or the machine is rebooted. [09:43] You can remove them with "sudo modprobe -r [kernel module] " [09:43] So let's try it out, I encourage everyone to give this a run [09:43] We are going to load in a dummy module, confirm that it loaded, then unload it. [09:43] what do you mean with own modules ? [09:43] well [09:43] not every module gets loaded at boot [09:43] So we don't have to compile Kernel with Ubuntu for better performances ? [09:44] I'm a newbie:) [09:44] seb35690, you could get a small performance boost that way yes [09:44] but its not worth it [09:44] the performance increase would be very very tiny [09:44] and hard to measure [09:44] you don't mean custom modules but , unloaded modules by "own modules" [09:44] yes [09:44] sorry [09:44] seb35690: might be a good learning exercise if you are curious but don't do it if you are trying to make your computer go faster [09:45] you can insert and remove modules that are not otherwise loaded in your kernel [09:45] ok jrib I understand [09:45] First we load the module with "sudo modprobe dummy" [09:45] that command will load in the module named "dummy" [09:45] it doesnt do anything, but its there for fun things like this [09:45] Generally when we enter this command nothing will happen, just a new line and no output, that means no errors as far as finding the module. [09:46] Now if this were a real module we could run the command "dmesg" which we talked about earlier to see info about what the module has done thus far. [09:46] This is extremely useful in the case where you module is loading but it does not seem to be working properly. [09:46] Let's confirm that the module has indeed loaded using the "lsmod" command. Run "lsmod | grep ^dummy", we are piping it to grep to do a search, and searching for a line that starts with (carrot means start with) dummy. [09:47] You should see output containing the word "Dummy" [09:47] this means that your dummy module loaded fine =) [09:47] Now run the command "sudo modprobe -r dummy" and then search for dummy in lsmod again. It is no longer there. [09:48] rmmod is for the same? [09:48] That is it, that is all there is to loading and unloading modules. However this is only temporary, as soon as you remove them or reboot the machine they will no longer load until requested by you again [09:48] narvik86, yep [09:48] I tend to use sudo modprobe -r as its seems more consistent if you are going to use modprobe to the put the module in, why not use it to remove it too? [09:49] ok [09:49] Often users will find they have to load modules to make certain parts of their hardware work. [09:50] For example a lot of TV Tuner card users must load the ivtv module when they boot. [09:50] description for for rmmod says most users will want to use modprobe [09:50] yep =) [09:50] same for insmod [09:50] IVTV, by the way, does not come with Ubuntu so they also have to compile it but thats a whole other class. [09:50] To load a module on boot you simply add the name of the module to the end of /etc/modules. [09:50] So ivtv users would add ivtv on a new line to the end of that file. [09:51] If you wished to prevent a module from loading which is not uncommon for ndiswrapper users, you would add a line that looked like "blacklist [module] " to /etc/modprobe.d/blacklist [09:51] This would prevent the file from being loaded at boot and allow you to add ndiswrapper to /etc/modules safely. [09:51] These files all both owned by root [09:51] and you will need root access to modify them [09:51] however I encourage you to look at your modules and blacklist files and see whats in them [09:52] DBO, what is the correlation between modules or drivers ,or are there any ? [09:52] there is a large corelation [09:52] correlation even [09:52] in linux, for the most part, drivers ARE modules [09:52] most every single driver on your system is loaded into your kernel as a module [09:53] your kernel can then use that module (driver) to talk to the hardware [09:53] can you only modprobe stuff in /etc/modules then? [09:53] nope [09:53] you can modprobe in anything that you have a module file fore [09:53] stuff in /etc/modules will be loaded in at boot however [09:53] so you generally wont need to modprobe it in yourself =) [09:54] what's the reason for a blacklist instead of just removing it from /etc/modules? [09:54] (note modprobe is not really a verb, but what do I care?) [09:54] do u need to specify the full path to a module you build or do you put it in a special directory? [09:54] jrib, your kernel on boot will try to load modules for hardware it detects [09:54] DBO: ah [09:54] Wooksta, when you make install the modules it will put it in the special directory for modules [09:55] ok thanks, whats that dir location btw? :> [09:55] /lib/modules/KERNELVERSION === omong_kosong [n=omong_ko@pD955CB97.dip.t-dialin.net] has joined #ubuntu-classroom [09:55] ok thanks :) [09:56] modules are specific to the kernel they were compiled on [09:56] any other questions? =) === omong_kosong [n=omong_ko@pD955CB97.dip.t-dialin.net] has left #ubuntu-classroom [] [09:56] im pretty well wrapped up [09:56] an example with an Nvidia graphic card ? [09:57] an example for what? [09:57] im actaully having trouble getting my nvidia card to work but i was gonna ask about that at the end :P [09:57] "modules are specific to the kernel they were compiled on" [09:57] if you want you can see your nvidia kernel module by doing "lsmod | grep nvidia" [09:57] seb35690, ah yes, perfect example [09:57] Wooksta, well perhaps its a good learning experience [09:57] what trouble are you having? [09:58] well i installed nvidia-glx and when i do "sudo nvidia-glx-config enable" i get the following error: "Error: unable to load nvidia kernel driver! Be sure to have installed the nvidia driver for your running kern" [09:58] Wooksta, ok run this command [09:58] modinfo nvidia [09:59] does it say it cant find the file? [09:59] got a whole load of stuff back u want me to look for something specific? [09:59] filename: /lib/modules/2.6.17-10-generic/volatile/nvidia.ko <-- seems to be able to find the file [10:00] and it seems you are running the ubuntu version to boot [10:00] run this command "sudo nvidia-xconfig" [10:00] new xorg.conf written [10:00] now restart X and you should be good ot go [10:01] ok whats the best way to restart x? [10:01] CTRL+ALT+F1 [10:01] log out of GNOME/KDE [10:01] then ctrl + alt + backspace [10:01] ok brb, thanks :) === nevron [n=nevron@88.229.244.110] has joined #ubuntu-classroom [10:01] yes excuse me [10:02] :( === RadiantFire [n=ryan@upstream/dev/RadiantFire] has joined #ubuntu-classroom [10:02] seb35690, perfectly ok =) [10:02] ctrl alt F1 switches to a console [10:02] but doesnt shut down X === nico_ [n=nico@201.20.225.242.user.ajato.com.br] has joined #ubuntu-classroom [10:02] yes i know it [10:03] that pretty well wraps up todays session [10:04] transcripts will be made available [10:04] and I will post the whole speech I wrote and worked from in paragraph form as well === Wooksta [n=Wooksta@82-41-99-118.cable.ubr03.dund.blueyonder.co.uk] has joined #ubuntu-classroom [10:04] well im now on a nice 640x480 so something happened :P [10:04] awseome, thanks for the "class" DBO [10:05] Wooksta, we'll have to move this to #ubuntu-xgl [10:05] ShakaNoobSaint, =) [10:05] no problem, thanks for the class, hope theres another few soon :) === nevron [n=nevron@88.229.244.110] has left #ubuntu-classroom [] [10:06] Thnaks DBO, it's perfectly clear ! === Ma1kel [i=ma1kel@cp305656-b.tilbu1.nb.home.nl] has left #ubuntu-classroom [] === ShakaNoobSaint is now known as ShakaGoldSaint [10:07] *Thanks === Turgon [n=Limulf@unaffiliated/turgon] has joined #ubuntu-classroom === mode/#ubuntu-classroom [+o LjL] by ChanServ === ..[topic/#ubuntu-classroom:LjL] : Ubuntu Open Week has now finished - thanks , everyone! | The classroom schedule is located at: https://wiki.ubuntu.com/Classroom | Transcripts and logs are at: https://wiki.ubuntu.com/ClassroomTranscripts and http://www.tonyyarusso.is-a-geek.com/irclogs/openweek/ === mode/#ubuntu-classroom [-o LjL] by LjL === RadiantFire [n=ryan@upstream/dev/RadiantFire] has left #ubuntu-classroom ["Konversation] === seb35690 [n=seb35690@lns-bzn-22-82-249-97-112.adsl.proxad.net] has left #ubuntu-classroom [] === h0ndaracer2 [n=h0ndarac@74-129-215-137.dhcp.insightbb.com] has joined #ubuntu-classroom [10:49] can someone help me wit something in an installion real quick === mode/#ubuntu-classroom [-o DBO] by ChanServ [10:53] ? === sonicGB [n=geoffb@ppp244-69.static.internode.on.net] has joined #ubuntu-classroom === nevron [n=nevron@88.229.244.110] has joined #ubuntu-classroom === croppa [n=stuart@135.27.233.220.exetel.com.au] has joined #ubuntu-classroom === wastrel [n=wastrel@nylug/member/wastrel] has left #ubuntu-classroom ["l8r"] === cyphase [n=cyphase@c-67-180-20-241.hsd1.ca.comcast.net] has joined #ubuntu-classroom === Seveas [n=seveas@ubuntu/member/seveas] has joined #ubuntu-classroom === nevron [n=nevron@88.229.244.110] has joined #ubuntu-classroom === seb35690 [n=seb35690@lns-bzn-22-82-249-97-112.adsl.proxad.net] has joined #ubuntu-classroom === nevron [n=nevron@88.229.244.110] has left #ubuntu-classroom [] [11:52] is there a sesson tomorrow ? [11:53] *session [11:53] Schedule is here: https://wiki.ubuntu.com/Classroom#head-3ed0e83bca0918de43c895c4bb96d9bb50d446a9 [11:54] I mean, will it be the same content ? [11:56] the same content that today ? === poningru [n=poningru@pool-72-64-211-211.tampfl.fios.verizon.net] has joined #ubuntu-classroom === seb35690 [n=seb35690@lns-bzn-22-82-249-97-112.adsl.proxad.net] has left #ubuntu-classroom []