/srv/irclogs.ubuntu.com/2006/12/16/#ubuntu-classroom.txt

=== 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
kutohi what is inputrc01:56
=== h0ndaracer2 [n=h0ndarac@74-129-215-137.dhcp.insightbb.com] has joined #ubuntu-classroom
jribhi h0ndaracer201:57
h0ndaracer2hello01:57
h0ndaracer2can u hold one sec01:57
jribok, refresh my mind, you want to delete something on your desktop taht you don't have permission to?01:57
=== sonicGB [n=geoffb@ppp244-69.static.internode.on.net] has left #ubuntu-classroom []
h0ndaracer2yes01:58
jribok open up a terminal01:58
jrib!terminal01:58
ubotuThe 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/BasicCommands01:58
h0ndaracer2ok01:59
h0ndaracer2got it01:59
jribanything I type between '' is a command for you to enter in the terminal.  For example:01:59
jrib'cd ~/Desktop'01:59
h0ndaracer2ok01:59
jribtake care to type it exactly like that with a capital 'D'01:59
jriblinux is case-sensitive02:00
jribok now type 'ls'02:00
h0ndaracer2ok hit enter02:00
h0ndaracer2?02:01
jribyes02:01
jribdid it list the files you have on your Desktop?02:01
h0ndaracer2yes correct02:01
jribwhat is the name of the file you are deleting?02:01
h0ndaracer280211g02:02
jribok, so02:02
jribnow be very sure you want to delete this, there is no undo or trash, it disappears forever02:03
h0ndaracer2im shure i dont need it02:03
jrib'sudo rm -rf 80211g'02:03
kutohow do i clear my terminal so it clears everything... so that my terminal looks like a new terminal without any previous inputs?02:03
h0ndaracer2ok thanks jrib02:04
jribnp, I'll have the bot send you some info on the cli02:04
jrib!cli | h0ndaracer202:04
ubotuh0ndaracer2: 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/BasicCommands02:04
h0ndaracer2maybe if you want to u can help me with sometin else02:05
=== STiKi- [i=stiki@narkotyk.net] has joined #ubuntu-classroom
jribh0ndaracer2: just ask in #ubuntu, that way more people can help you02:10
h0ndaracer2ok02:10
jribh0ndaracer2:02:15
jribh0ndaracer2: what are you trying to do?02:16
kutohow come /etc/profile in ubuntu is so small02:16
h0ndaracer2im wanting to navigate to the home folder then the examples folder so i can delete ht02:17
jribkuto: you'd have to ask the package maintainer, but #ubuntu is a better place to ask questions02:17
h0ndaracer2those files in example that ubuntu came with02:17
jribh0ndaracer2: that just a symbolic link I believe02:18
=== ash211__ [n=andrew@user-1121f2u.dsl.mindspring.com] has joined #ubuntu-classroom
h0ndaracer2well how do i get to those files then02:18
jribdo you understand what a symbolic link is?02:19
h0ndaracer2not really i told you i dont know much about linux im sorry02:19
jribthat's ok, I just wanted to make sure you understood.  Don't hesitate to ask if i say something you don't understand02:20
jriba symbolic link is like a shortcut in windows02:20
jrib(but better)02:20
h0ndaracer2ok02:20
h0ndaracer2this linux is stessing me out try to learn all this stuff02:20
jribso do you just want to remove the link so it doesn't show up in your HOME?02:20
h0ndaracer2no im wanting to go into their and remove a folder02:20
h0ndaracer2like my examples folder02:21
jribso you don't want the Example stuff on your computer at all?02:21
jribit's actually in /usr/share/example-content02:21
h0ndaracer2yes02:21
jriband the package that installs that content is example-content02:21
=== toby [n=toby@c-24-118-154-166.hsd1.mn.comcast.net] has left #ubuntu-classroom ["Ex-Chat"]
jribso you should be able to just remove that package using synaptic02:21
h0ndaracer2it came with the little video about ubunut and some other files02:21
h0ndaracer2ok 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$$es02:23
h0ndaracer2but thank you again02:23
jribnp02:23
=== 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
pradeepWill the session on Kernel happen today?03:11
tonyyarussopradeep: I'm not sure, you'll have to find DBO03:14
pradeeptonyyarusso, what's DBO?03:14
tonyyarussopradeep: The person I think was going to give it03:14
pradeepoh ok03:15
pradeepI see him in here -- > :D03:15
=== 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
seb35690where is the person ? We want him ! :)04:10
seb35690Hi DBO04:19
=== 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
seb35690DBO : what about the Kernel session ?04:41
=== 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
DBOooop04:56
DBOdinger went off for THIS room =P04:56
DBOim used to be contacted in #ubuntu-nun about this04:57
tonyyarussoGood point04:57
DBOah someones still alive04:57
DBOnobody signed on for sys admin 101 or advanced sys admin either?04:58
DBOhmmmm a shame04:58
=== gabone [n=gabone@84.232.197.188] has joined #ubuntu-classroom
DBOdate for next classroom is set at 20:00UTC05:07
tonyyarussoDBO: Not yet anyway :(05:11
=== theCore [n=alex@ubuntu/member/theCore] has joined #ubuntu-classroom
DBOtonyyarusso, wanna change it on the wiki for me?05:15
=== DBO dealing with makefile mania
tonyyarussoDBO: To 20:00?  sure.  So that's in...4 hours?05:16
DBO505:16
=== tonyyarusso checks clock
tonyyarussoum...05:16
DBOoh nevermind05:16
tonyyarussoI think I'm rgiht05:17
DBOwindows...05:17
tonyyarussooh, 'k05:17
tonyyarussohehe05:17
DBOdual booting05:17
DBO4 hours05:17
tonyyarussoDBO: Are you doing both days?05:19
DBOyeah05:20
DBOguess so05:20
DBOnobody else seems to wanna =P05:20
krystyna<<Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?05:29
krystyna>>05:29
krystynawhen i want install java something like that is on screen05:30
=== Turgon [n=Limulf@unaffiliated/turgon] has joined #ubuntu-classroom
DBOkrystyna, do you have synaptic open?05:48
DBOor apt-get running elsewhere?05:48
krystynanow yes but when i tried install java i hadn't run else..05:49
=== _DvP_ [n=David@2.39.100-84.rev.gaoland.net] has left #ubuntu-classroom ["Quitte"]
DBOkrystyna, if you are sure you have no other process running with apt05:53
DBOyou can manually remove the lockfile in /var/lib/dpkg05:53
krystynahow manually remove>?05:54
krystynaim in directory /var/lib/dpkg05:55
krystynaand what i have to do...05:56
DBOdelete the file named lock05:59
krystyna:/06:05
krystynaaccess denied06:05
=== 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
reversebladewow08:56
=== 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
Maikel,08:56
=== theCore [n=alex@ubuntu/member/theCore] has joined #ubuntu-classroom
yipeis it okay for us to talk?08:56
Maikelno08:56
jribyipe talked! ban him!08:56
ph8now you've talked08:56
ph8ban them all!08:56
jribof course it's ok, it hasn't started yet :)08:56
yipeokay 08:56
Wookstawhat sort of level of detail we going into here? :)08:57
dougskohey guys08:57
DBOmmmm a crowd =)08:57
reversebladelol08:57
Maikelwere gonna lynch DBO08:57
DBOyay I love mobs!08:58
DBOstarting in 2 minutes (theoretically)08:58
dougskoi didnt know this channel was here08:58
seb35690DBO you're a boss remember ! ;)08:58
dougskothis is a cool idea08:58
reversebladeDBO, are you an ubuntu dev ?09:00
DBOreverseblade, no, I am only relatively loosely affiliated with Ubuntu09:00
dougskowhat other kind of "classes" are there in here?09:00
=== rrittenhouse [n=tad@cpe-76-188-35-66.neo.res.rr.com] has joined #ubuntu-classroom
ryanakcadougsko: https://wiki.ubuntu.com/Classroom  has a list of all the classes we've hosted :)09:01
DBOok ladies and gentlemen, we are going to get going09:01
dougskoryanakca: cool thanks09:01
seb35690let's go !09:02
=== Wooksta gets pen & paper our
DBOlet me first lay out the ground rules09:02
DBOthere are two breaks for questions, one in the middle09:02
DBOand one half way through09:02
DBOfeel free to /msg me questions at any time though and I will get to them during the question sessions09:02
DBOthis topic is intended for new users mostly09:03
=== Maikel is now known as Ma1kel
DBOand for users who hear the word kernel and think popcorn =)09:03
=== 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
DBOso lets begin09:03
DBOBefore we begin we need to get a bit of background history both on what an OS is and where Linux comes from.09:03
DBOWe 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
DBOWe 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.09:04
=== s1gma [n=s1gma@82-45-226-239.cable.ubr03.enfi.blueyonder.co.uk] has left #ubuntu-classroom ["Konversation]
DBOMost 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.09:04
=== macconline [n=macconli@190.37.41.32] has joined #ubuntu-classroom
DBOHowever before we can really dive into all of that09:04
DBOwe need to get a general idea of what Linux actually is09:05
DBOmany 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 Unix09:05
DBOHowever there are a couple key differences09:05
DBOnamely, 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
DBOLinux started as a small Hobbyist OS, written by Linus Torvalds, and moved on from there.09:06
DBOAs 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
DBOThis has become a small point of confusion however09:07
DBOLinux is the name of the kernel, and it is also the name of the OS which incorporates the kernel09:07
DBOTo contrast this, OS X (apples OS) has a kernel named XNU, and Windows up to Vista, had a kernel named NT09:08
DBOAS you may guess, this has lead to a lot of confusion about what Linux actually is09:08
DBOSo 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:08
DBOConfusing?  Probably, so we need to also briefly cover what an Operating System is09:09
DBOOperating Systems are the most basic set of programs on your computer that make the work you do possible, this DOES include the kernel.09:09
=== cpk1 [n=cpk1@sjs-130-65-211-110.sjsu.edu] has joined #ubuntu-classroom
DBOMake note, an Operating System has a Kernel, but a Kernel is not an Operating System.09:09
DBOSometimes you interact with the OS directly, sometimes through the applications you use.09:10
DBOSo let's lay out the hierarchy right now, we have to do it eventually and it always seems too early.09:10
DBOThere are layers to a computer operating system, four of them in Unix to be precise.09:10
DBOLayer 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
DBOso it looks like:09:10
DBOUsers09:10
DBOShells09:10
DBOKernel09:11
DBOHardware09:11
=== mode/#ubuntu-classroom [+o DBO] by ChanServ
DBOsimple enough?09:11
DBOoh thank you =)09:11
=== mode/#ubuntu-classroom [+m] by DBO
DBOits hard to get good help =P09:11
DBOanyhow09:11
DBOThese layers interact only with the layer above or below them with a couple exceptions we wont be covering09:11
DBOSo 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 command09:12
DBOFrom 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
DBOAnd 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:12
DBOEven 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
DBODo however keep in mind that what is and is not part of your OS is often a fuzzy line09:13
DBOThis is the basic set of knowledge we need to continue on with our kernel09:13
DBOat this time we are going to take a short 5 minute break for questions09:14
DBOI want to make sure everyone is fairly clear on what is going on ehre09:14
=== mode/#ubuntu-classroom [-m] by DBO
DBOyou may ask questions directly in the room =)09:14
Ma1kelAre you single??09:14
DBOno09:14
Wookstawhats the expected duration of this class (approx)?09:15
DBOI can adjust for your preference =)09:15
Ma1kel:))09:15
Wookstawell i aint got much to do for the rest of the night so go as low as u want :P09:15
DBOeveryone is clear on these basic concepts then?09:15
LjLDBO: 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
LjLat least, the possibility of clearly separating "kernel" and "the rest" without putting another fuzzy line on there09:16
DBOLjL, in the sense we will be discussing it yes09:16
DBOLjL, it gets fuzzy when you talk about multi-tasking operating systems that dont offer virtualized memory and kernel protection in any sense09:17
DBObut those are no longer around so we wont worry about them09:17
LjLDBO: yes, that was the kind of thing i had in mind, and yes, i realize it hardly applies to today's systems anymore09:17
DBOits a very good point though09:17
DBOas computers grow in complexity09:18
DBOit becomes harder and harder to figure out what classification any one piece of code belongs to09:18
DBOany other questions? =)09:18
DBOok let's move on09:19
=== mode/#ubuntu-classroom [+m] by DBO
=== mode/#ubuntu-classroom [-m] by DBO
DBOIm going to leave that off09:19
DBOjust ask question whenever since there is not many people here =)09:19
DBOWe can move on to discussing a couple features that make the Linux kernel special09:19
=== 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
DBOthese 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 possible09:20
DBO 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:20
DBOWhat does this mean?  Well it means that the kernel is taking care of "interrupting" applications so that another one can work.09:21
DBOKeep 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 hold09:21
DBOIt is the kernel that decides which thing needs to work and when, and it is very smart about it09:21
DBOYour 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
DBOSo the kernel will put that process on hold until the data gets there, giving other processes a chance to use the hardware.09:21
DBOThis 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
DBOIn 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
DBOThis 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.09:22
=== wastrel [n=wastrel@nylug/member/wastrel] has joined #ubuntu-classroom
DBOWithout this ability running more than one application at a time would become impossible09:23
DBOThe 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
DBOThe kernel will make the decision on whether or not to let you, and even when to write it out.09:23
DBOIn 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
DBOHowever this is not without its own problems09:24
DBOHaving so many programs running at once can cause its own issues for the computer.09:24
DBOEach program will need its own set of memory from the system.09:24
DBOSo 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:24
DBOThis is what we call virtualized memory (and no, your kernel does not speak english =P)09:25
LjLDBO: 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?09:25
=== tahitibob [n=david@guy78-4-82-243-43-241.fbx.proxad.net] has joined #ubuntu-classroom
DBOfor the most part no, I/O will be load balanced fairly equally09:26
DBObut there is no quick method Im aware of09:26
DBOSo our application has requested from the kernel a chunk of memory, and the kernel has provided it09:26
DBOnormally our application would use this memory and all is well09:27
DBOHowever 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
DBOThe operating system will prevent this of course, this is called Memory Protection.09:27
DBOOlder systems this was not the case09:27
DBOmemory protection is one of the biggest improvements in computer stability ever09:27
DBOOne 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:27
DBOIt 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
LjL... that provides memory protection hardware ;)09:28
DBOah yes09:28
DBOIn fact Linux runs on 20+ different processor architectures, it will even run on your iPod.09:28
DBO 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:28
DBOThese 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
DBO In fact this has only changed twice, one from 0 to 1, and again for 1 to 2.09:29
DBOThe second number designates then major revision of the kernel version, and the third number is minor revisions (driver changes and so on)09:29
DBOYou 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
DBOThere 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:29
DBOSo 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
DBOPrior to the 2.6 release, even numbers did mean stable and odd meant development.09:30
DBOSo 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
DBOIn 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:30
DBOso the first and most basic command we introduce new users to is the "dmesg" command.09:31
=== ShakaGoldSaint is now known as ShakaNoobSaint
DBOIt is perfectly safe to run this command for yourself, feel free to try it on your own PC.09:31
DBOdmesg will show you what errors and informational message your kernel has for you =)09:31
DBOA 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
DBO This is the most basic way to interact with your kernel, by looking at what it has to say.09:32
DBO 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
DBOOf course simply watching is no fun09:32
DBOSo we need to learn to interact with our Linux kernel, and to do that, we need to understand that our Kernel is Voltron09:33
DBOSome of this may be confusing at first, but we will be doing a hands on excersize shortly.09:33
=== croppa [n=stuart@135.27.233.220.exetel.com.au] has joined #ubuntu-classroom
DBOThere 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
DBOThe most common kind of kernel module you will deal with is a device driver.09:33
DBOIf you are running a nvidia video card and you wish to have OpenGL working, you need to load the nvidia kernel module.09:33
DBOEven things like file system support have been put into kernel modules today, there are tons of them09:34
DBOTo see every kernel module you have loaded right now, simply enter "lsmod" into a terminal.09:34
=== tahitbob [n=david@guy78-4-82-243-43-241.fbx.proxad.net] has joined #ubuntu-classroom
DBOTo see how many of them are loaded, you can pipe that to wc -l via "lsmod | wc -l"09:34
DBOMost of you will see things like "soundcore" which is the core of sound production, or "floppy" which provideds floppy disk support.09:34
DBOpretty obvious what those do09:35
DBOHowever some of them like.... say agpgart are not so obvious.09:35
DBOHowever 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
DBOTo 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
DBOSo it becomes pretty clear now, agpgart is loaded because your video card needs it (for the AGP bus).09:35
DBOEven 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
DBOThis 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 Fonts09:36
DBOTo 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
DBOOne 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:36
DBOThis 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
DBOAny questions so far? =)09:37
jribis there any advantage to compiling modules into the kernel?09:37
seb35690like performance ?09:37
DBOyes09:37
DBOperformance will be slightly better09:38
ShakaNoobSaintwhy exactly?09:38
DBOwhen you abstract things out to modules and such there is a slight overhead09:38
DBOwhen you compile is one hunk of code it is more streamlined09:38
DBOthats why distros like gentoo compile all the modules you need for your hardware right into the kernel09:38
DBOof course this comes at the high price of actually having to compile your own kernel09:39
seb35690how about ubuntu ?09:39
DBOwhich in that sense, Linux is fairly unique as the only OS available to users where this is readily available to you as an option09:39
DBOUbuntu does not have you recompile the kernel on your own09:39
DBOso almost all drivers (excluding some very core ones) are loaded in as modules09:40
reversebladehow about smp and apic are these modules too ?09:40
DBOAPIC is, smp is part of the kernel09:40
reversebladewhy did we stop ?09:42
DBOok we are going to move on09:42
DBO(was waiting to see if there are more questions)09:42
DBOLoading/Stopping Modules at Boot:09:42
DBOwait09:42
DBOwrong header =P09:42
DBOI jumped ahead09:42
DBOInserting and Removing your own modules:09:42
DBOThere 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:42
DBOYou can remove them with "sudo modprobe -r [kernel module] "09:43
DBOSo let's try it out, I encourage everyone to give this a run09:43
DBOWe are going to load in a dummy module, confirm that it loaded, then unload it.09:43
reversebladewhat do you mean with own modules ?09:43
DBOwell09:43
DBOnot every module gets loaded at boot09:43
seb35690So we don't have to compile Kernel with Ubuntu for better performances ?09:43
seb35690I'm a newbie:)09:44
DBOseb35690, you could get a small performance boost that way yes09:44
DBObut its not worth it09:44
DBOthe performance increase would be very very tiny09:44
DBOand hard to measure09:44
reversebladeyou don't mean custom modules but , unloaded modules by "own modules"09:44
DBOyes09:44
DBOsorry09:44
jribseb35690: might be a good learning exercise if you are curious but don't do it if you are trying to make your computer go faster09:44
DBOyou can insert and remove modules that are not otherwise loaded in your kernel09:45
seb35690ok jrib I understand09:45
DBOFirst we load the module with "sudo modprobe dummy"09:45
DBOthat command will load in the module named "dummy"09:45
DBOit doesnt do anything, but its there for fun things like this09:45
DBOGenerally 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:45
DBONow 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
DBOThis is extremely useful in the case where you module is loading but it does not seem to be working properly.09:46
DBOLet'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:46
DBOYou should see output containing the word "Dummy"09:47
DBOthis means that your dummy module loaded fine =)09:47
DBONow run the command "sudo modprobe -r dummy" and then search for dummy in lsmod again.  It is no longer there.09:47
narvik86rmmod is for the same?09:48
DBOThat 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 again09:48
DBOnarvik86, yep09:48
DBOI 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:48
DBOok09:49
DBOOften users will find they have to load modules to make certain parts of their hardware work.09:49
DBOFor example a lot of TV Tuner card users must load the ivtv module when they boot.09:50
jribdescription for for rmmod says most users will want to use modprobe09:50
DBOyep =)09:50
DBOsame for insmod09:50
DBOIVTV, by the way, does not come with Ubuntu so they also have to compile it but thats a whole other class.09:50
DBOTo load a module on boot you simply add the name of the module to the end of /etc/modules.09:50
DBOSo ivtv users would add ivtv on a new line to the end of that file.09:50
DBOIf 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/blacklist09:51
DBOThis would prevent the file from being loaded at boot and allow you to add ndiswrapper to /etc/modules safely.09:51
DBOThese files all both owned by root09:51
DBOand you will need root access to modify them09:51
DBOhowever I encourage you to look at your modules and blacklist files and see whats in them09:51
reversebladeDBO, what is the correlation between modules or drivers ,or are there any ?09:52
DBOthere is a large corelation09:52
DBOcorrelation even09:52
DBOin linux, for the most part, drivers ARE modules09:52
DBOmost every single driver on your system is loaded into your kernel as a module09:52
DBOyour kernel can then use that module (driver) to talk to the hardware09:53
jribcan you only modprobe stuff in /etc/modules then?09:53
DBOnope09:53
DBOyou can modprobe in anything that you have a module file fore09:53
DBOstuff in /etc/modules will be loaded in at boot however09:53
DBOso you generally wont need to modprobe it in yourself =)09:53
jribwhat's the reason for a blacklist instead of just removing it from /etc/modules?09:54
DBO(note modprobe is not really a verb, but what do I care?)09:54
Wookstado u need to specify the full path to a module you build or do you put it in a special directory?09:54
DBOjrib, your kernel on boot will try to load modules for hardware it detects09:54
jribDBO: ah09:54
DBOWooksta, when you make install the modules it will put it in the special directory for modules09:54
Wookstaok thanks, whats that dir location btw? :>09:55
DBO/lib/modules/KERNELVERSION09:55
=== omong_kosong [n=omong_ko@pD955CB97.dip.t-dialin.net] has joined #ubuntu-classroom
Wookstaok thanks :)09:55
DBOmodules are specific to the kernel they were compiled on09:56
DBOany other questions? =)09:56
=== omong_kosong [n=omong_ko@pD955CB97.dip.t-dialin.net] has left #ubuntu-classroom []
DBOim pretty well wrapped up09:56
seb35690an example with an Nvidia graphic card ?09:56
DBOan example for what?09:57
Wookstaim actaully having trouble getting my nvidia card to work but i was gonna ask about that at the end  :P09:57
seb35690"modules are specific to the kernel they were compiled on"09:57
DBOif you want you can see your nvidia kernel module by doing "lsmod | grep nvidia"09:57
DBOseb35690, ah yes, perfect example09:57
DBOWooksta, well perhaps its a good learning experience09:57
DBOwhat trouble are you having?09:57
Wookstawell 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
DBOWooksta, ok run this command09:58
DBOmodinfo nvidia09:58
DBOdoes it say it cant find the file?09:59
Wookstagot a whole load of stuff back u want me to look for something specific?09:59
Wookstafilename:       /lib/modules/2.6.17-10-generic/volatile/nvidia.ko  <-- seems to be able to find the file09:59
DBOand it seems you are running the ubuntu version to boot10:00
DBOrun this command "sudo nvidia-xconfig"10:00
Wookstanew xorg.conf written10:00
DBOnow restart X and you should be good ot go10:00
Wookstaok whats the best way to restart x?10:01
seb35690CTRL+ALT+F110:01
DBOlog out of GNOME/KDE10:01
DBOthen ctrl + alt + backspace10:01
Wookstaok brb, thanks :)10:01
=== nevron [n=nevron@88.229.244.110] has joined #ubuntu-classroom
seb35690yes excuse me10:01
seb35690:(10:02
=== RadiantFire [n=ryan@upstream/dev/RadiantFire] has joined #ubuntu-classroom
DBOseb35690, perfectly ok =)10:02
DBOctrl alt F1 switches to a console10:02
DBObut doesnt shut down X10:02
=== nico_ [n=nico@201.20.225.242.user.ajato.com.br] has joined #ubuntu-classroom
seb35690yes i know it10:02
DBOthat pretty well wraps up todays session10:03
DBOtranscripts will be made available10:04
DBOand I will post the whole speech I wrote and worked from in paragraph form as well10:04
=== Wooksta [n=Wooksta@82-41-99-118.cable.ubr03.dund.blueyonder.co.uk] has joined #ubuntu-classroom
Wookstawell im now on a nice 640x480 so something happened :P10:04
ShakaNoobSaintawseome, thanks for the "class" DBO10:04
DBOWooksta, we'll have to move this to #ubuntu-xgl10:05
DBOShakaNoobSaint, =)10:05
Wookstano problem, thanks for the class, hope theres another few soon :)10:05
=== nevron [n=nevron@88.229.244.110] has left #ubuntu-classroom []
seb35690Thnaks DBO, it's perfectly clear !10:06
=== Ma1kel [i=ma1kel@cp305656-b.tilbu1.nb.home.nl] has left #ubuntu-classroom []
=== ShakaNoobSaint is now known as ShakaGoldSaint
seb35690*Thanks10:07
=== 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
h0ndaracer2can someone help  me wit something in an installion real quick10:49
=== mode/#ubuntu-classroom [-o DBO] by ChanServ
ShakaGoldSaint?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 []
seb35690is there a sesson tomorrow ?11:52
seb35690*session11:53
sonicGBSchedule is here: https://wiki.ubuntu.com/Classroom#head-3ed0e83bca0918de43c895c4bb96d9bb50d446a911:53
seb35690I mean, will it be the same content ?11:54
seb35690the same content that today ?11:56
=== 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 []

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!