From owner-freebsd-course@FreeBSD.ORG Thu Oct 3 13:20:55 2013 Return-Path: Delivered-To: freebsd-course@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E2B3E36B for ; Thu, 3 Oct 2013 13:20:55 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4D8DE2443 for ; Thu, 3 Oct 2013 13:20:51 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.7/8.14.7) with ESMTP id r93DKnpq094077 for ; Thu, 3 Oct 2013 17:20:49 +0400 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.7/8.14.7/Submit) id r93DKng7094076 for freebsd-course@FreeBSD.org; Thu, 3 Oct 2013 17:20:49 +0400 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Thu, 3 Oct 2013 17:20:49 +0400 From: Gleb Smirnoff To: freebsd-course@FreeBSD.org Subject: started to lecture in Moscow State University Message-ID: <20131003132049.GK89219@glebius.int.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Mailman-Approved-At: Thu, 03 Oct 2013 13:27:34 +0000 X-BeenThere: freebsd-course@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: educational course on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Oct 2013 13:20:55 -0000 Hi, there! The list have been silent for almost a year. Nevertheless, I started to lecture in MSU. Yesterday, just read an introduction lecture that explains: - where does FreeBSD originate - where it is used now - how is it being developed The goal of the lection was to advertise the upcoming course, and just get students interested and curious. I expected that above intro would consume 50-60 minutes, but accidentially ended in 30 minutes. Later on my way home I understood that I missed a lot I was initially planning to say. Tip for future: make notes or lecture plan on a sheet of paper. Anyway, I hate long introductions, so it might be everything went okay. I committed my lame intro slides to SVN: http://svnweb.freebsd.org/base/user/glebius/course/ After intro we spent another 30-45 minutes on introductory kernel hacking. Most of students brought their laptops, so I provided students with ssh access to a virtual machine, running under bhyve. - Reading module(9) we coded a module that just loads and unloads. - Then I suggested them to print something in kernel. We discussed: - Why adding printf() breaks compilation of module? - Why adding #include would be an incorrect fix? - Noticed the difference between printf(3) and printf(9). - Finally printed stuff and found it in dmesg. - Then I suggested them to do smth bad in kernel mode. And we observed panic of virtual machine. After that rest of the time was spent on answering questions. Why can't we use libc? Syscalls? No FILE *? etc. How do I see my future work. I plan to split every lecture into two parts. The first part will be learning some new topic on kernel, with slides and examples. And the second part would be coding some stuff together with students, overcoming obstacles and failures together, explaning why did this or that happened and how it works. What I am lacking right now: 1) Experience on lecturing. Alas, can't borrow that from anyone :) 2) A good facility to provide students with virtual boxes. Bhyve rocks, but for kernel hacking we've got a serious limitation. When VM crashes, the console is available only in the host box and it requires root access. And I don't wont to give students root access on my personal box. 3) Poor TeX skills. I spent too much time to prepare slides in TeX. I do my best to not flee away from TeX to a WYSIWYG presentation tool. :) -- Totus tuus, Glebius. From owner-freebsd-course@FreeBSD.ORG Fri Oct 4 15:29:50 2013 Return-Path: Delivered-To: freebsd-course@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CD06562C; Fri, 4 Oct 2013 15:29:50 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from vps.hungerhost.com (vps.hungerhost.com [216.38.53.176]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9EA702429; Fri, 4 Oct 2013 15:29:50 +0000 (UTC) Received: from [209.249.190.124] (port=52735 helo=gnnmac.hudson-trading.com) by vps.hungerhost.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.80.1) (envelope-from ) id 1VS7J7-0002VT-FG; Fri, 04 Oct 2013 11:28:45 -0400 Content-Type: multipart/signed; boundary="Apple-Mail=_CB21B934-6A14-4CDE-93A8-C10E26CE4140"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: started to lecture in Moscow State University From: George Neville-Neil In-Reply-To: <20131003132049.GK89219@glebius.int.ru> Date: Fri, 4 Oct 2013 11:28:46 -0400 Message-Id: <12DC5621-5BC8-4950-8569-528005A81C92@neville-neil.com> References: <20131003132049.GK89219@glebius.int.ru> To: Gleb Smirnoff X-Mailer: Apple Mail (2.1510) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vps.hungerhost.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - neville-neil.com X-Get-Message-Sender-Via: vps.hungerhost.com: authenticated_id: gnn@neville-neil.com X-Mailman-Approved-At: Fri, 04 Oct 2013 16:05:30 +0000 Cc: freebsd-course@FreeBSD.org X-BeenThere: freebsd-course@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: educational course on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Oct 2013 15:29:51 -0000 --Apple-Mail=_CB21B934-6A14-4CDE-93A8-C10E26CE4140 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On Oct 3, 2013, at 9:20 , Gleb Smirnoff wrote: > Hi, there! > > The list have been silent for almost a year. Nevertheless, I started > to lecture in MSU. Yesterday, just read an introduction lecture that > explains: > > - where does FreeBSD originate > - where it is used now > - how is it being developed > > The goal of the lection was to advertise the upcoming course, and > just get students interested and curious. > > I expected that above intro would consume 50-60 minutes, but > accidentially ended in 30 minutes. Later on my way home I understood > that I missed a lot I was initially planning to say. Tip for future: > make notes or lecture plan on a sheet of paper. Anyway, I hate long > introductions, so it might be everything went okay. > > I committed my lame intro slides to SVN: > > http://svnweb.freebsd.org/base/user/glebius/course/ > > After intro we spent another 30-45 minutes on introductory kernel > hacking. Most of students brought their laptops, so I provided > students with ssh access to a virtual machine, running under bhyve. > > - Reading module(9) we coded a module that just loads and unloads. > - Then I suggested them to print something in kernel. We discussed: > - Why adding printf() breaks compilation of module? > - Why adding #include would be an incorrect fix? > - Noticed the difference between printf(3) and printf(9). > - Finally printed stuff and found it in dmesg. > - Then I suggested them to do smth bad in kernel mode. And we observed > panic of virtual machine. > > After that rest of the time was spent on answering questions. Why can't > we use libc? Syscalls? No FILE *? etc. > > > How do I see my future work. I plan to split every lecture into two > parts. The first part will be learning some new topic on kernel, with > slides and examples. And the second part would be coding some stuff > together with students, overcoming obstacles and failures together, > explaning why did this or that happened and how it works. > > > What I am lacking right now: > > 1) Experience on lecturing. Alas, can't borrow that from anyone :) > 2) A good facility to provide students with virtual boxes. Bhyve rocks, > but for kernel hacking we've got a serious limitation. When VM > crashes, the console is available only in the host box and it > requires root access. And I don't wont to give students root access > on my personal box. Is there someone local who can give you a box full of VMs? What about the University itself? > 3) Poor TeX skills. I spent too much time to prepare slides in TeX. > I do my best to not flee away from TeX to a WYSIWYG presentation > tool. :) > I haven't checked the slides out, are you using Beamer? That's the right way to go for slides. It's great news that you're working on this and making your work shareable by the rest of us. Best, George --Apple-Mail=_CB21B934-6A14-4CDE-93A8-C10E26CE4140 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iEYEARECAAYFAlJO3q4ACgkQYdh2wUQKM9KPzwCeP7SgnEiWR1WF3zTETlyMzdtj PRwAoOEpCZn478C5NP6gaK1Mtagg5wlh =eNr9 -----END PGP SIGNATURE----- --Apple-Mail=_CB21B934-6A14-4CDE-93A8-C10E26CE4140-- From owner-freebsd-course@FreeBSD.ORG Sat Oct 5 09:17:12 2013 Return-Path: Delivered-To: freebsd-course@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 48CE0AB1 for ; Sat, 5 Oct 2013 09:17:12 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C2BBB25CA for ; Sat, 5 Oct 2013 09:17:10 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.7/8.14.7) with ESMTP id r959H2GD004394; Sat, 5 Oct 2013 13:17:02 +0400 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.7/8.14.7/Submit) id r959H2LI004393; Sat, 5 Oct 2013 13:17:02 +0400 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Sat, 5 Oct 2013 13:17:02 +0400 From: Gleb Smirnoff To: George Neville-Neil Subject: Re: started to lecture in Moscow State University Message-ID: <20131005091702.GB121@glebius.int.ru> References: <20131003132049.GK89219@glebius.int.ru> <12DC5621-5BC8-4950-8569-528005A81C92@neville-neil.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <12DC5621-5BC8-4950-8569-528005A81C92@neville-neil.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-course@FreeBSD.org X-BeenThere: freebsd-course@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: educational course on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Oct 2013 09:17:12 -0000 On Fri, Oct 04, 2013 at 11:28:46AM -0400, George Neville-Neil wrote: G> > 2) A good facility to provide students with virtual boxes. Bhyve rocks, G> > but for kernel hacking we've got a serious limitation. When VM G> > crashes, the console is available only in the host box and it G> > requires root access. And I don't wont to give students root access G> > on my personal box. G> G> Is there someone local who can give you a box full of VMs? What about G> the University itself? The problem is not with number of VMs, but that console of VM (where kdb enters to) is available only on the tty running bhyve(1), which is a root terminal. I'll email Peter and Neel asking on a solution for this? G> > 3) Poor TeX skills. I spent too much time to prepare slides in TeX. G> > I do my best to not flee away from TeX to a WYSIWYG presentation G> > tool. :) G> G> I haven't checked the slides out, are you using Beamer? That's G> the right way to go for slides. G> G> It's great news that you're working on this and making your work shareable G> by the rest of us. Yes, I am using beamer. But my tex-foo is extremely bad. I have nothing against if someone, who speaks tex fluently, walks through my slides and commits directly to svn anything that makes them better. Also, can anyone give me an advice on how can I make embedded notes for lecturer? What I'd like to achieve is that I keep the slides material and notes in one file, but after 'make' I got a pdf for presentation and a text file with notes for me. -- Totus tuus, Glebius. From owner-freebsd-course@FreeBSD.ORG Sat Oct 5 11:00:42 2013 Return-Path: Delivered-To: freebsd-course@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 41FCAF6C for ; Sat, 5 Oct 2013 11:00:42 +0000 (UTC) (envelope-from bcr@FreeBSD.org) Received: from mxout1.bln1.prohost.de (mxout1.bln1.prohost.de [91.233.87.26]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C32C229E6 for ; Sat, 5 Oct 2013 11:00:41 +0000 (UTC) Received: from Benedicts-Macbook-Pro.local (p4FC71BE2.dip0.t-ipconnect.de [79.199.27.226]) (authenticated bits=0) by mx1.bln1.prohost.de (8.14.4/8.14.4) with ESMTP id r95B0WC1025563 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 5 Oct 2013 13:00:32 +0200 Message-ID: <524FF150.6090003@FreeBSD.org> Date: Sat, 05 Oct 2013 13:00:32 +0200 From: Benedict Reuschling Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: freebsd-course@FreeBSD.org Subject: Re: started to lecture in Moscow State University References: <20131003132049.GK89219@glebius.int.ru> <12DC5621-5BC8-4950-8569-528005A81C92@neville-neil.com> <20131005091702.GB121@glebius.int.ru> In-Reply-To: <20131005091702.GB121@glebius.int.ru> X-Enigmail-Version: 1.5.2 OpenPGP: id=4A819348 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Null-Tag: 7691cee4c5c2bfc40b3cb9c13ce8ff76 X-BeenThere: freebsd-course@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: bcr@FreeBSD.org List-Id: educational course on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Oct 2013 11:00:42 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 05.10.13 11:17, schrieb Gleb Smirnoff: > On Fri, Oct 04, 2013 at 11:28:46AM -0400, George Neville-Neil > wrote: G> > 2) A good facility to provide students with virtual > boxes. Bhyve rocks, G> > but for kernel hacking we've got a > serious limitation. When VM G> > crashes, the console is > available only in the host box and it G> > requires root access. > And I don't wont to give students root access G> > on my > personal box. G> G> Is there someone local who can give you a box > full of VMs? What about G> the University itself? > > The problem is not with number of VMs, but that console of VM > (where kdb enters to) is available only on the tty running > bhyve(1), which is a root terminal. > > I'll email Peter and Neel asking on a solution for this? > > G> > 3) Poor TeX skills. I spent too much time to prepare slides > in TeX. G> > I do my best to not flee away from TeX to a WYSIWYG > presentation G> > tool. :) G> G> I haven't checked the slides > out, are you using Beamer? That's G> the right way to go for > slides. G> G> It's great news that you're working on this and > making your work shareable G> by the rest of us. > > Yes, I am using beamer. But my tex-foo is extremely bad. I have > nothing against if someone, who speaks tex fluently, walks through > my slides and commits directly to svn anything that makes them > better. > Beamer has a very detailed handbook called beameruserguide.pdf that comes with the package. It's well worth reading as it shows many cool things you can do with your slides. From changing the layout, colors, to making transitions, overlays and much more. Examples in each section can be copied directly into your presentation to see what it will look like. Your slides will become more fancy over time. When I started using beamer, I used the basic template and some itemize environments to get my point across. Once I got used to creating slides, you can start making more advanced slides with columns and such. When you're using slides that contain source code (I recommend the listings package), you need to make a slide like this: \begin{frame}[fragile]{Title of the slide} bla \end{frame} Without the [fragile], you get all kind of weird error messages when compiling the document. Plus, the slide must not be empty, so put at least the bla or any other text in there. > Also, can anyone give me an advice on how can I make embedded > notes for lecturer? What I'd like to achieve is that I keep the > slides material and notes in one file, but after 'make' I got a pdf > for presentation and a text file with notes for me. > There is a chapter on lecture notes in the beameruserguide called "Adding Notes for Yourself". In it, you will find what you are looking for using the \note command. For my own lecture called "Unix for developers" (in german, I plan to translate it) that I had to basically start from scratch, I used a basic style. Now that I've given the lecture once, I can sit down and work on creating new stuff for it based on feedback. My point here is: start with something, even if it looks ugly and then make it look more beautiful for the next lecture. Otherwise, you spend too much time tweaking the slides and won't have enough time to focus on the content. Looking forward to more slides from your lecture and topics you'll cover. Regards Benedict Reuschling FreeBSD Documentation Committer -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlJP8VAACgkQTSZQLkqBk0hAsQCfb2gqPYXjlGDgbhZEGGOES3de AjwAoNA3WqN2vd80+8o6FEyaWHoVvgFC =UEIw -----END PGP SIGNATURE----- From owner-freebsd-course@FreeBSD.ORG Sat Oct 5 11:13:23 2013 Return-Path: Delivered-To: freebsd-course@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1692A128; Sat, 5 Oct 2013 11:13:23 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 74DB82A7F; Sat, 5 Oct 2013 11:13:21 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.7/8.14.7) with ESMTP id r95BD5kl004794; Sat, 5 Oct 2013 15:13:05 +0400 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.7/8.14.7/Submit) id r95BD5KD004793; Sat, 5 Oct 2013 15:13:05 +0400 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Sat, 5 Oct 2013 15:13:05 +0400 From: Gleb Smirnoff To: Benedict Reuschling Subject: Re: started to lecture in Moscow State University Message-ID: <20131005111305.GE121@glebius.int.ru> References: <20131003132049.GK89219@glebius.int.ru> <12DC5621-5BC8-4950-8569-528005A81C92@neville-neil.com> <20131005091702.GB121@glebius.int.ru> <524FF150.6090003@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <524FF150.6090003@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-course@FreeBSD.org X-BeenThere: freebsd-course@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: educational course on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Oct 2013 11:13:23 -0000 On Sat, Oct 05, 2013 at 01:00:32PM +0200, Benedict Reuschling wrote: B> Beamer has a very detailed handbook called beameruserguide.pdf that B> comes with the package. It's well worth reading as it shows many cool B> things you can do with your slides. From changing the layout, colors, B> to making transitions, overlays and much more. Examples in each B> section can be copied directly into your presentation to see what it B> will look like. Thanks for hint. Right now I am buried more in tikz, rather in beamer. I need a lot of schemes and fancy drawings and very little text. Actually, I stick to a rule that says that one's presentation should not contain text that lecturer is about to tell verbally. People either read or listen, so the more text you put on the screen, the less focused they'll be on your talk. Yep, I've been already several days reading TikZ user guide. B> When you're using slides that contain source code (I recommend the B> listings package), you need to make a slide like this: B> B> \begin{frame}[fragile]{Title of the slide} B> bla B> \end{frame} Thanks for hint! Source code is about to be used soon. B> > Also, can anyone give me an advice on how can I make embedded B> > notes for lecturer? What I'd like to achieve is that I keep the B> > slides material and notes in one file, but after 'make' I got a pdf B> > for presentation and a text file with notes for me. B> B> There is a chapter on lecture notes in the beameruserguide called B> "Adding Notes for Yourself". In it, you will find what you are looking B> for using the \note command. Again, thanks for hint. B> Looking forward to more slides from your lecture and topics you'll cover. The plan for Wednesday is to talk about how kernel is entered and exited, on interrupts and traps, and syscall implementation. The practice part would be writing a syscall module. -- Totus tuus, Glebius.