Tie63d8 and Tie64f1 Linux Basics - Agenda 2005 spring

Latest version of this document is http://www.iki.fi/karvinen/linux-basics.

Beginning of spring 2005 weeks 3-11, except week 8 winter holiday. 8 classes four hours each and a lot of private studying.

In Finnish tie64d8 Tuesdays 8-13 room H3008 (and computer lab 5007). In English tie64f1 Fridays 12-16 room H3005 (and computer lab 5005).

Material: 1) Classes 2) Homework notes 3) Links in this document (I will add more links until week 10)

Timetable with Week Numbers

3. Installing Linux, Distributions, Licenses
4. Linux as a Workstation, Graphical User Interface
5. Command Line, Installing Programs
6. Apache Web Server
7. Remote Control with OpenSSH Server and Client
(8. Winter Holiday)
9. Programming
10. Revision & Learning More Linux
11. Exam 2005-03-18

Homework

After every class, you get some homework to do in a computer lab without supervision. All homework is done using Linux. Some of them are easy, but some of them are demanding and take time to complete. Homework must be returned one day before the next class (by Sunday for tie64d8 and by Wednesday for tie64f1).

If you want your work to be actually useful, use a free license by adding this text to your work: “Copyright (c) 2005 YOUR NAME. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. “ As you are the copyright owner of your own reports, you can license it any way you wish and using a free license is not obligatory.

Homework is return by publishing a report on your own web page in HTML format, so that they are reachable at http://myy.helia.fi/~a12345/linux/ , where a12345 is your student number.

Only report what you really did and what happened. Make it clear what happened, and did the task succeed or not.

Give credit where credit is due. In addition to mentioning my classes (“Based on Linux Basics course by Tero Karvinen www.iki.fi/karvinen”) also give credit to other sources of information you used, such as web pages and advice from fellow students. If you get stuck, you can also check if someone else has published a report on the homework you are doing.

Writing reports of things you have not done is considered cheating. Hard disks will be randomly checked to see that reported work is really done.

Publish your report (not necessarily the created files) on http://myy.helia.fi/~a12345/linux/.

3. Installing Linux, Distributions, Licenses

Installing Fedora Core.

What's a distribution? Most important Distributions: Debian, Fedora / Red Hat, Knoppix, SuSe, Mandrake...

What is open source? OSI and GNU definitions. Four freedoms. Most important open source licenses. GPL, FDL, BSD, LGPL, Creative Commons.

Install Linux so that you get a graphical desktop and can browse the Internet.

FSF: The Free Software Definition http://www.gnu.org/philosophy/free-sw.html

http://distrowatch.com/ (just quickly browse this large site a bit)

Installing Fedora Core 3 in Helia Labs with Network Install http://myy.helia.fi/~karte/kurssit/tie63d/ratkaisuja/install-fedora-3-in-helia-labs.txt

4. Linux as a Workstation, Graphical User Interface

Using most common software. OpenOffice.org, Gimp, Nautilus / Konqueror, Firefox, gftp.

Creating and publishing a web page.

Getting help. Man, distribution documentation, /usr/share/doc, info. Google, gmane and google groups for specific error messages.

If we have time left, we can take peek at command line.

Write a document with a word processor. Include an image you have modified with an image manipulation program. Save it using that word processors native format, as an HTML, as a pdf and as a Microsoft Word doc.

5. Command Line, Installing Programs

Benefits of command line: speed, simplicity, low need of resources, same commands work on many systems...

Moving around. File manipulation. Editing documents with nano or pico. Quiting programs with ctrl-c or q.

Root.

What is a package manager? Installing programs with yum.

Write examples of ls, pwd, cd, more, pico (or nano), cp -r, mv, rm -r. Try a new command line program.

Install something (for example lynx, gkrellm) with yum.

Yum keys (NOKEY error) are installed with: rpm –import /usr/share/doc/fedora-release*/RPM-GPG-KEY*

6. Apache Web Server

Why Apache? Comparison to competition. My experiences.

How database, scripting language, web server and web browser interact?

Install LAMP (Apache MySQL PHP is enough, as you probably have Linux already). Write a simple program that shows how LAMP works.

Karvinen: Build Web Interface to Database - LAMP Linux Apache MySQL PHP

7. Remote Control with OpenSSH Server and Client

SSH benefits and features.

Client – what we know already.

Server – quick installation.

Client – less known features.

Server – understanding settings.

Install ssh server. Copy part of your myy home directory to your own computer (recursing to subdirs). Give an example of graphical remote control using ssh.

(8. Winter Holiday)

But you can play with Linux at home if you want.

9. Programming

Comparison of languages.

Bash.

Perl and regular expressions. Grep.

./configure && make && ./foobar

Installing gcc and *-devel packages.

Installing Java software developers kit and plugin.

Write a shell script. Compile simple example program in Java. Compile a program using make. Write a perl one-liner. Give an example of grep.

10. Revision & Learning More Linux

Revision of the course.

Overview of the filesystem: what's /etc, /var, /home...

Learning more Linux after the course. Websites to follow. Administering of Linux networks tie64d. Participating the open source movement. Harvesting the freedom of software as company profit.

Write your own Linux cheat sheet. Don't bring it to my exam.

11. Exam 2005-03-15

Paper exam. Requirements for test are the ones shown “Material” in the beginning of this document. You should both remember the commands by heart and understand them well enough to solve problems with them.

See also:

http://fedora.redhat.com/

There are some old example solutions linked from http://myy.helia.fi/~karte/kurssit/tie63d/linux-perusteet-2004-syksy.html and http://myy.helia.fi/~karte/kurssit/tie63d/ratkaisuja/. They are mostly in Finnish.

The Unofficial Fedora FAQ

Example solutions by tie63f1 and tie63d8 students

Graded on scale 0,1,2.

0400578 Mikael - 0202550 Olli - 0400586 Mika - 0202470 Tommi - 0102232 Petri - 0202471 Esa - 0202528 Tomi - 0302012 Miska - 0202501 Niina - 0202537 Anne - 0301346 Merja - 0302022 Riina - 0102218 Markus - 0301983 Tony - 0202498 Tuomas - 0300418 Marianne - 0202555 Mikko

0301831 Ben Anis w3install: 2+ (Good comments and screenshots. ). w4gui: 0

0400032 Anu w3: 0, w4: 0. (404!)

0400026 Athanasios w3: 2 (Use past tense for things you did. Make it clear what happened. ). w4: 0. FDL.

0301824 Matthew w3: 2. w4: 2 (Report, not just files. ).

0300475 Oliver w3: 2. w4: 2. ( Pretty site.)

0403767 Garcia w3: 2. w4: 2 ( Funny characters in document. )

0400024 Yordan w3: 2. w4: 0. (How about a Free license and name on document?)

0301833 Jojo w3: 2. w4: 2 (Pretty site. )

0300496 Vladislav w3: 2. w4: 2 (Write report in past tense, make it clear what happened. Avoid popups.) FDL.

0301825 Khalil Handreen w3: 2. w4: 2.

0301839 Riku w3: 2. w4: 1. ( w4 broken image as forgot to upload jpg, no report. )

0300495 Patrice w3: 0. w4: 0. (Get started with homework!)

0300489 Ricardo w3: 2 (funny underline in html. How about mentioning my course?) w4: 1 (only pdf, no report)

0301808 Kimberly w3: 2+ (dual boot) w4: . FDL. w4: 0.

0300477 Arvind w3: 2. (abuse of HTML elements: don't use text box for page text. ) w4: 0.

0301807 Farid w3: 2. ( Text overlaps itself on page.) w4: 2.

0300479 Nan w3: 1 (Use HTML, not Microsoft doc ). w4: 0.

© Tero Karvinen http://www.iki.fi/karvinen. All Rights Reserved.