Skolelinux Developer Camp Carreau Wendel 8.-15.07.2006 Notes from testing the pre-pr00 release of Skolelinux Etch By: Dr. Uwe Doebereiner 2006-07-17 Testing of the currant etch CD-image of a debian-edu-i386-binary-1.raw http://ftp.skolelinux.no/cd-etch-test/debian-edu-i386-binary-1.raw wget -c -nd http://ftp.skolelinux.no/cd-etch-test/debian-edu-i386-binary-1.raw Updates can be done by: rsync ftp.skolelinux.no::skolelinux-etch-test/debian-edu-i386-binary-1.raw ./skolelinux-etch-test-i386.iso What we planed to do, and what we did -------------------------------------- Install a virtual Skolelinux Server and Workstation as a Client. Using qemu as a virtual machine for testing with a virtual network. Advice and programming: Fabian Franz, FabianFranz@GMX-de Handling test-PC and follow up the installation: Uwe Doebereiner,udoebus@kud.com The image that where in use: -rw-r--r-- 1 udoebus udoebus 651925504 2006-07-13 12:09 debian-edu-i386-binary-1.raw What was done: working with qemu needs switching between 3 screen layers: 1. X-Server with the mouse 2. in the qemu-command line: prepare switching back and forth with sendkey sendkey 3. virtual program screen leave it to the X-screen with leave it to the qemu-command-line with 2 back to it with 1 go into it with mouse We did the downloading to my Laptop ``doberan8'' and copied the files to ``doberan7''. Hardware used for testing with system name doberan7: AMD Winchester, Athlon(tm) 64 Processor 3000+, 1800 MHz board GIGABYTE K8Triton GA-K8NSC-393, memory 2 GByte (Corsair 4 modules à 512MB; VS1GBKIT400)) Graphics ATI PowerColor 9250; ethernet e100-IDE- card (the on-board ethernet Marvell-Chip not functioning (tried drivers sk98lin.ko and skge.ko) gpm-mouse had to be stopped to use the mouse within the X-screen properly. Kernel installed on my computer Linux version 2.6.6-1-k7 (herbert@gondolin) (gcc version 3.3.3 (Debian 20040401)) #1 Wed May 12 18:19:40 EST 2004 2 IDE-Harddisks à 160 GByte, configuered as 0.5-BIOS-RAID, yielding 160 GByte available Installed GNU-DEBIAN Sarge-3.1, just updated from ftp.de.debian.org Screencopies of the commands given: Make a loopdevice udoebus@doberan7:~$ dd if=/dev/zero of=festplatte.img bs=5G count=4 # (for SkoleLinux-Server) dd if=/dev/zero of=festplatte2.img bs=1G count=4 #(for SkoleLinux-Workstation-Client) Start of the installation as from a cdrom, calling the image as downloaded qemu -cdrom debian-edu-i386-binary-1.raw -hda festplatte.img -boot d (to restart quemu festplatte.img only, "-boot d" would start from -cdrom) Description of the installation run (observations, questions, answers) Warning: The current image used does not start with the default 2.6 Kernel, but with the 2.4 Kernel. Warning: the blue and red Skolelinux logo pops up Answer the prompt: install24 Debian-Installer Questions: Answer with installing Server and Client [*] Server ... [*] Workstation (nicht angewählte Alternativen waren Workstation und Standard). Question: erase entire disk; Answer: yes Hint: security updates are commented out in sources.list. Warning: users said, xserver-xorg does not start, has to be reinstalled afterwards Finish installation as usual. give root password. Later on, you will wish, you had added a first user. Reboot command, ending with error (the system is looping) Restart with: qemu -hda festplatte.img Start into login: prompt ~/ homeverzeichnis root leer. Graphisches Skolelinux-Login hier nicht verfügbar (war ja Fehlermeldung des hier verwendeten Abzugs.) qemu -hda festplatte.img Was macht jetzt der Unerfahrene (Tester/Lehrer). Empfehlenswert README.txt mit Anweisungen. Zumindest für mich und etch als Testing-Version? Bei Aufruf von dselect funktioniert nicht der / (slash), allerdings andere Buchstaben und die Pfeiltasten: Erklärung wäre gewesen, das keyboard-layout ist English / für den Aufruf der Suchfunktion steht nicht zur Verfügung. No German /, English keyboard is installed! Tastatureingabe < shift-q > erfolgreich. Deselect kann verlassen werden. Alle xserver-xorg Packages sind selected. Wie erfolgt die Neuinstalltion des X-servers? , restart the system halt funktioniert. Nach Schließen des qemu-Fensters wieder im X-Fenster, aus dem der Aufruf erfolgte. Nach Installation eines neuen Kernels im virtuellen PC durch Fabian wurde der X-server gestartet. Allerdings konnte da root nicht einloggen, mußte mit dem für das Umschalten angelegten <2> in das root ------------------------------------ Screenshot of the commands given: udoebus@doberan7:~$ qemu -cdrom de debian-edu-i386-binary-1.raw definitive_guide_to_plone.pdf udoebus@doberan7:~$ qemu -cdrom debian-edu-i386-binary-1.raw -hda festplatte.img -boot d udoebus@doberan7:~$ qemu -hda festplatte.img [1]+ Stopped qemu -hda festplatte.img udoebus@doberan7:~$ fg qemu -hda festplatte.img udoebus@doberan7:~$ qemu --help -------------------------------- How it worked and should work now #Downloak des raw images von ........ als debian-edu-i386-binary-1.raw Festplattenimage erstellen: dd if=/dev/zero of=festplatte.img bs=5G count=4 udoebus@doberan7:~$ qemu -cdrom debian-edu-i386-binary-1.raw -hda festplatte.img -boot d udoebus@doberan7:~$ qemu -hda festplatte.img Anlegen des 2. möglichen qemu für den SkoleLinux Client make a 2. virtual partition for the SkoleLinux-Client/-Workstation dd if=/dev/zero of=festplatte2.img bs=1G count=4 udoebus@doberan7:~$ qemu -cdrom debian-edu-i386-binary-1.raw -hda festplatte2.img -boot d Installation of the debian-edu-i386-binary-1.raw starts with an error-message, because it can't start with a 2.6 Kernel still answer the error prompt with install 24 The system used will not install the Xorg-server correctly after failure to reboot, you have to leave the install screen with ctrl-alt and close it with the mousepointer in the top-left X :-) restart with qemu -cdrom debian-edu-i386-binary-1.raw -hda festplatte2.img login as root with the password you set in the first install run now we want to install a new 2.6 kernel within the freshly installed SkoleLinux-System #: . /etc/bash_completion (we want to search for the new client on the cdrom-raw-file (to start completion with #: apt-get install kernel-image-2.6.... seach with s error: cdrom not found. You have to switch to the qemu command line to insert the "cdrom-image" into cdrom-Drive on the qemu-level so change to the qemu-screen one level out of the present screen level with Ctrl+Alt+2 change cdrom ../debian-edu-i386-binary-1.raw (tabbing) back to the installation-screen Ctrl+Alt+1 repeat #: one back in the history ( ^-Cursor) and the new 2.6-Kernel should install now the new kernel will install. now to ad a user, who is allowd to login into the KDE-login (root will not!) Reboot now goes into the qemu-screen, showing the grub boot-promt In our Example-Installtion we now got the X-Server SkoleLinux Input-Login-Screen you can't login as root so login into the Menu-Button, select Terminal login as root, then logout will deliver the KDE-Login again. After a halt, qemu was started again, to incorporate the acceleration with k-kernel-mode _and_ to have an additional network stop the emulation. start ist again with udoebus@doberan7:~/fabian$ qemu -kernel-kqemu -cdrom ../debian-edu-i386-binary-1.raw -hda festplatte2.img -net nic,macaddr=52:54:00:12:34:58 -net socket,connect=:1234 ..... udoebus@doberan7:~$ qemu -hda festplatte2.img udoebus@doberan7:~/fabian$ qemu -kernel-kqemu -cdrom ../debian-edu-i386-binary-1.raw -hda festplatte2.img qemu -h to get help udoebus@doberan7:~$ qemu -cdrom debian-edu-i386-binary-1.raw -hda festplatte.img -boot d udoebus@doberan7:~$ qemu -cdrom debian-edu-i386-binary-1.raw -hda festplatte.img -boot d Einrichtung Netzwerke im qemu Configure internal networking für den tjener.intern in einem X-Terminal for tjener.intern start in an X-terminal udoebus@doberan7:~$ qemu -kernel-kqemu -hda festplatte.img -net nic,macaddr=52:54:00:12:34:56 -net socket,listen=:1234 -net nic,macaddr=52:54:00:12:34:57 -net socket,listen=:1235 in einem anderen/neuen X- Terminal für den client1.intern: in another/new X-terminal for an client1.intern udoebus@doberan7:~/fabian$ qemu -kernel-kqemu -cdrom ../debian-edu-i386-binary-1.raw -hda festplatte2.img -net nic,macaddr=52:54:00:12:34:58 -net socket,connect=:1234 ------------------ Für server mit nur Internet: server with connection to the external Internet: udoebus@doberan7:~$ qemu -hda festplatte.img -net nic,macaddr=52:54:00:12:34:56 -net user -net nic,macaddr=52:54:00:12:34:57 dann dhclient eth0 und resolv.conf edititeren. --- remember to configure screen switching with in the qemu commandline # Verlassen der qemu-Shell zum übergeordenten X-server mit ctr-alt # Innerhalb des qemu Umschalten auf anderes Terminal mit sendkey sendkey umschalten ctrl+alt+1 virtueller server oder client umschalten ctrl+alt+2 qemu ebene -------------------------------------- >From Klaus Knopper We got a version of a current udoebus@doberan7:~/fabian$ dd if=/dev/cd ###Kopie Knoppix cd cdrom cdrom0 cdu535 udoebus@doberan7:~/fabian$ dd if=/dev/cdrom of=Knoppix_5.0.1-DVD.iso dd: öffne ,,/dev/cdrom": Keine Berechtigung udoebus@doberan7:~/fabian$ su -c "dd if=/dev/cdrom of=Knoppix_5.0.1-DVD.iso" Password: dd: öffne ,,/dev/cdrom": Kein Medium gefunden udoebus@doberan7:~/fabian$ su -c "dd if=/dev/dvd of=Knoppix_5.0.1-DVD.iso" Password: dd: öffne ,,/dev/dvd": Datei oder Verzeichnis nicht gefunden udoebus@doberan7:~/fabian$ su -c "dd if=/dev/cdrom0 of=Knoppix_5.0.1-DVD.iso" Password: dd: öffne ,,/dev/cdrom0": Kein Medium gefunden udoebus@doberan7:~/fabian$ mount /dev/hda1 on / type ext3 (rw,errors=remount-ro) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw) /dev/hda5 on /home type ext3 (rw) usbfs on /proc/bus/usb type usbfs (rw) udoebus@doberan7:~/fabian$ mount /cdrom (my configuration of doberan7 is waiting for a perfect Admin :-) ) ------------------------ Don't forget to install the acceleration -kernel-kqemu! Uwe, guided by Fabian