5 Debian Debian 2005 6 11 public: Debian Project Official Developer 1
1 Introduction To Debian 2 1.1.............................................. 2 1.2............................................ 2 2 Debian Weekly News trivia quiz 7 2.1 2005 21............................................ 7 2.2 2005 22............................................ 8 2.3 2005 23............................................ 8 3 Debian 10 3.1 Debian 5............................... 10 4 alternatives - - 11 4.1 alternatives........................................ 11 4.2 update-alternatives................................... 11 4.3............................................. 12 4.4....................................... 13 4.5................................ 13 4.6....................................... 14 4.7........................................ 14 4.8..................................... 14 4.9 update-alternatives?............................ 15 4.10 update-alternatives................................... 16 4.11 dsys........................................... 17 5 Inside Debian-Installer 18 5.1 Debian-Installer....................................... 18 5.2.............................................. 18 5.3 d-i............................................. 19 5.4 d-i............................................. 21 6 23 7 Keysigning Party 24 8 25 1
Debian 2005 1 Introduction To Debian Debian Debian Debian Debian Linux Debian Linux Debian Debian Package Debian 1.1 kmuto debian-installer dsys Debian Developer canna pbuilder libpkg-guide Debian 1.2 debian-installer / debian-installer 200-800 1.2.1 2
jfbterm ja JP.eucJP 1.2.2 kaepapa debian potato woody sarge woody sarge cfdisk ( ) partitioner HDD RC3 partitioner ( ) (20050419) (VMWare ) aptitude 1.2.3 web :-) X RAID? Dell stable 1 iptables? WindowsXP SP2 tasksel d-i fest BTS :-) 3
1.2.4 Debian Debian Debian project N CD Debian 1.2.5 Debian-Installer woody Linux Debian TA Debian-Intaller DHCP static dhcp 1.2.6 Ryoichi Kato 5 Debian,, debian., CD image (sarge-i386-netinst.iso) VMWare. debian-installer, debian 2,3,., ( ),.,,., grub,. VMware 2G, base-config desktop environment disk full. ( 600MB + 1700MB,?), 4
# rm /var/cache/apt/archives/*.deb! apt-get, /var/cache/debconf/config.dat lock. base-config kill -STOP (respawn ) install,? 1.2.7 boot-floppies 1. 2. 3. ( ) debian-installer (d-i) 1. 2. 3. ( ) d-i (tasksel ) 10 Debian Debian Debian Debian d-i Debian d-i d-i Windows Mac GUI GUI CUI GUI GUI CUI GUI 5
1.2.8 Software-RAID LVM dm,md PC 1.2.9 debian-installer Debian CD 1. 2. 1. 2. XWindows 3. FB ( ) 1.2.10 debian-installer debian-installer boot-floppies boot-floppies CD debootstrap debian-installer etch ja_jp.utf-8 locale Linux utf-8 etch 6
Debian 2005 2 Debian Weekly News trivia quiz Debian Weekly News (DWN) Debian Debian Weekly News. DWN DWN 2.1 2005 21 1. 12W Debian Silas Benett A LAN B Mac Mini CDROM C Dual Xeon Xeon 2. Michael Banck Hurd A GNOME QT B C tuxracer 3. Orphan WNPP A debian-devel-announce debian-wnpp B orphan C orphan 4. Nico Goldeh unrar A unrar non-free free B unrar C unrar 5. Waste A B GPL revoke C 7
6. Debian woody A 3.0r6 B 3.0.6 C 3.0-RC6 2.2 2005 22 7. Andreas Barth BTS LDAP A Archived Archived B LDAP SQL C 8. Philipp Kern Debian Archive video video A B libs C graphics 9. debian-legal Frank Lichtenheld A B C 2.3 2005 23 10. Debian KDE A webcollage B KDE C KDE Debian 11. Debian GNU/Linux 3.1 A 2005 6 6 ( 6 7 ) B 2005 7 1 ( 7 2 C 2005 1 1 ( 1 2 ) 8
12. 3.1r0 CD A B sources.list security.debian.org C 13. Wesley Landaker GPG A GPG B C GPG 14. ABI A B C 9
Debian 2005 3 Debian 3.1 Debian 5 5 DWN DFSG dpkg-cross lintian, linda Debian CPU CPU task-ibookg4 10
Debian 2005 4 alternatives - - 4.1 alternatives alternatives OS API 3 symlink alternatives symlink 1. Debian Unix OS API awk 2. MUA IRC Web Browser 3. menu Debian menu alternatives 4.2 update-alternatives see man( ) alternatives /usr/sbin/update-alternatives 11
update-alternatives --install update-alternatives --remove update-alternatives --remove-all update-alternatives --all update-alternatives --auto update-alternatives --display update-alternatives --list update-alternatives --config update-alternatives --set [--slave ] 4.3 4.3.1 alternatives /usr/bin/awk, /usr/bin/editor, /usr/bin/pager, /usr/bin/x-www-browser awk, editor, pager, x-www-browser alternatives /usr/bin/awk: /usr/bin/nawk, /usr/bin/mawk, /usr/bin/gawk /usr/bin/editor : /bin/ed, /bin/nano, /usr/bin/vim /usr/bin/pager : /bin/more, /usr/bin/less, /usr/bin/w3m, /usr/bin/lv /usr/bin/x-www-browser : /usr/bin/mozilla, /usr/bin/kazehakase, /usr/bin/mozilla-firefox auto 4.3.2 alternatives man /usr/share/man/man1/awk.1.gz, /usr/share/man/man1/nawk.1.gz, /usr/share/man/man1/editor.1.gz, /usr/share/man/man1/pager.1.gz, /usr/share/man/man1/x-www-browser.1.gz awk.1.gz, editor.1.gz, pager.1.gz, x-www-browser.1.gz alternatives /usr/share/man/man1/awk.1.gz, /usr/share/man/man1/nawk.1.gz : /usr/share/man/man1/mawk.1.gz, /usr/share/man/man1/gawk.1.gz /usr/share/man/man1/editor.1.gz : /usr/share/man/man1/ed.1.gz, /usr/share/man/man1/nano.1.gz, /usr/share/man/man1/vim.1.gz /usr/share/man/man1/pager.1.gz : /usr/share/man/man1/more.1.gz, /usr/share/man/man1/less.1.gz, /usr/share/man/man1/w3m.1.gz, /usr/share/man/man1/lv.1.gz /usr/share/man/man1/x-www-browser.1.gz : /usr/share/man/man1/mozilla.1.gz, /usr/share/man/man1/kazehak /usr/share/man/man1/mozilla-firefox.1.gz 12
4.3.3 automatic manual alternatives automatic manual automatic config set all manual automatic auto 4.4 4.4.1 ( ) update-alternatives --display update-alternatives --list 4.4.2 (root ) update-alternatives --auto update-alternatives --config update-alternatives --set 4 4.4.3 # update-alternatives --display editor <-- editor alternatives editor - status is auto. <-- alternatives link currently points to /usr/bin/vim <-- /bin/ed - priority -100 <-- - (/bin/ed) slave editor.1.gz: /usr/share/man/man1/ed.1.gz <-- : (/bin/ed) /bin/nano - priority 40 <-- - (/bin/nano) slave editor.1.gz: /usr/share/man/man1/nano.1.gz <-- : (/bin/nano) /usr/bin/vim - priority 120 <-- - (/usr/bin/vim) slave editor.1.gz: /usr/share/man/man1/vim.1.gz <-- : (/usr/bin/vim) Current best version is /usr/bin/vim. <-- # update-alternatives --list editor <-- editor alternatives /bin/ed <-- /bin/nano <-- /usr/bin/vim <-- # update-alternatives --auto editor <-- editor alternatives # update-alternatives --config editor <-- editor alternatives There are 3 alternatives which provide editor. <-- editor 3 Selection Alternative ----------------------------------------------- 1 /bin/ed <-- alternatives 2 /bin/nano <-- alternatives *+ 3 /usr/bin/vim <-- alternatives Press enter to keep the default[*], or type selection number: <-- Using /usr/bin/vim to provide editor. <-- editor /usr/bin/vim # update-alternatives --set editor /usr/bin/vim <-- editor alternatives Using /usr/bin/vim to provide editor. <-- editor /usr/bin/vim 4.5 ( postinst) update-alternatives --install [--slave ] ( prerm) update-alternatives --remove 13
4.5.1 update-alternatives --install update-alternatives --install [--slave ] slave vim postinst postinst case "$1" in abort-upgrade) for i in vi view ex editor ; do update-alternatives \ --install /usr/bin/$i $i /usr/bin/vim 120 \ --slave /usr/share/man/man1/$i.1.gz $i.1.gz /usr/share/man/man1/vim.1.gz done ;; configure) for i in vi view ex editor ; do update-alternatives \ --install /usr/bin/$i $i /usr/bin/vim 120 \ --slave /usr/share/man/man1/$i.1.gz $i.1.gz /usr/share/man/man1/vim.1.gz done if [ -L /usr/doc/vim ] ; then rm /usr/doc/vim fi ;; esac vim prerm prerm case "$1" in remove) for i in vi view ex editor ; do update-alternatives --remove $i /usr/bin/vim done ;; esac 4.6 update-alternatives all config update-alternatives remove-all ) 4.7 --verbose --quiet --test ( ) --help 4.8 altdir /etc/alternatives/ admindir /var/lib/dpkg/alternatives/ 14
4.8.1 /usr/local/ alternatives alternatives : /home/foo/eclipse /home/foo/eclipse/eclipse alternatives $ mkdir /home/foo/altdir/ $ mkdir /home/foo/admindir/ $ mkdir /home/foo/bin/ $ /usr/sbin/update-alternatives --altdir /home/foo/altdir/ --admindir /home/foo/admindir/ \ --install /home/foo/bin/eclipse eclipse /home/foo/eclipse/eclipse 100.bashrc /home/foo/bin/ IM MUA 4.9 update-alternatives? 4.9.1 /usr/sbin/update-alternatives alternatives perl dpkg /var/lib/dpkg/alternatives alternatives $ cat /var/lib/dpkg/alternatives/editor alternatives /usr/bin/editor editor.1.gz /usr/share/man/man1/editor.1.gz <-- <-- <-- /bin/ed <-- (/bin/ed) -100 <-- (/bin/ed) /usr/share/man/man1/ed.1.gz <-- (/bin/ed) /bin/nano <-- (/bin/nano) 40 <-- (/bin/nano) /usr/share/man/man1/nano.1.gz <-- (/bin/nano) /usr/bin/vim <-- (/usr/bin/vim) 120 <-- (/usr/bin/vim) /usr/share/man/man1/vim.1.gz <-- (/usr/bin/vim) /etc/alternatives/ alternatives $ ls -l /etc/alternatives/editor lrwxrwxrwx 1 root root 12 2005-06-01 02:43 /etc/alternatives/editor -> /usr/bin/vi /usr/share/man/man8/update-alternatives.8.gz /usr/share/man/de/man8/update-alternatives.8.gz /usr/share/man/es/man8/update-alternatives.8.gz /usr/share/man/fr/man8/update-alternatives.8.gz /usr/share/man/ja/man8/update-alternatives.8.gz /usr/share/man/pt_br/man8/update-alternatives.8.gz alternatives 4.9.2 update-alternatives auto 1. 2. /var/lib/dpkg/alternatives/ manual auto 15
3. /etc/alternatives/ /var/lib/dpkg/alternatives/ update-alternatives config update-alternatives set 1. 2. /var/lib/dpkg/alternatives/ auto manual 3. /etc/alternatives/ update-alternatives install 1. /etc/alternatives/ 2. /var/lib/dpkg/alternatives/ 3. /etc/alternatives/ /var/lib/dpkg/alternatives/ update-alternatives remove 1. /var/lib/dpkg/alternatives/ 2. /var/lib/dpkg/alternatives/ alternatives /var/lib/dpkg/alternatives/ /etc/alternatives/ 3. /var/lib/dpkg/alternatives/ alternatives /etc/alternatives/ /var/lib/dpkg/alternatives/ 4.10 update-alternatives update-alternatives 1. alternatives alternatives alternatives 2. alternatives man slave 3. menu alternatives menu 16
4.11 dsys 4.11.1 dpkg /usr/bin/dpkg /usr/sbin/update-alternatives, /usr/sbin/dpkg-divert, /usr/sbin/dpkg-statoverride 3 GUI 4.11.2 update-alternatives ruby 1.6 ruby-gtk gtk2 ruby-gtk2 galternatives 4.11.3 /usr/sbin/update-alternatives /usr/sbin/dpkg-divert /usr/sbin/dpkg-statoverride 4.11.4 TODO man alternatives statoverride treeview 4.11.5 17
Debian 2005 5 Inside Debian-Installer 5.1 Debian-Installer Debian-Installer d-i Debian GNU/Linux 3.1 Sarge Woody Boot-Floppies 1.2MB 1.44MB 2000 Joey Hess 2000 2002 Woody Boot-Floppies Sarge d-i 2003 2004 d-i rc2 2005 d-i rc3 2005 Sarge 1 d-i 5.2 d-i Debian 153 Debian Developer 60 18
Alioth http://alioth.debian.org/projects/d-i/ debianboot@lists.debian.org installation-reports IRC #debian-boot Joey Hess Christian Perrier Dennis Stampfer Collin Watson Anton Zinobiev Joshua Kwan Petter Reinholdtsen Martin Michlmayr Steve Langaek Frans Pop 2 CVS Subversion http://svn.d-i.alioth.debian.org/svn/d-i/trunk unstable http://svn.d-i.alioth.debian.org/svn/d-i/branches/d-i/sarge Sarge d-i/ installer/build/ d-i (make... d-i ) installer/doc/ manual/ XML packages/ udeb scripts/ 1 d-i 5.3 d-i d-i Linux/Debian udeb deb cdebconf C debconf ( ) devfs (bogl-term jfbterm) discover hotplug 19
5.3.1 udeb udeb deb XB-Installer-Menu-Item Depends Provides debconf templates ( short description debconf templates ) postinst IDE CD IDE anna udpkg languagechooser countrychooser hw-detect ethdetect hw-detect-full preseed netcfg network-console cdrom-retriever floppy-retriever net-retriever partman base-installer os-prober prebaseconfig 3 APT dpkg SSH udeb debootsrap CPU OS CD udeb packages/ libc discover console-tools deb udeb d-i udeb udeb d-i make udeb CD USB 5.3.2 cdebconf cdebconf Perl debconf C 20
Perl debconf (orphan ) cdebconf d-i cdebconf debconf ( dialog) templates (critical high medium low) ( high) (preseed) 5.3.3 devfs Linux 2.4 devfs devfs obsolete udev 5.3.4 Linux x86 vesafb vga16fb d-i 2 bogl-bterm UTF-8 jfbterm CJK ( EUC-JP) bogl-bterm 5.3.5 discover hotplug discover hotplug discover PCI ID discover1- data hotplug 5.4 d-i Etch TODO discover2 discover (volatile ) 21
Woody rescue.udeb Gtk+ GUI udeb GUI GUI 2.4 ( 2.6 ) 22
Debian 2005 6 : Debian installer ( ) ( ) 23
Debian 2005 7 Keysigning Party fingerprint (gpg --fingerprint XXXX ) fingerprint *1 fingerprint fingerprint fingerprint fingerprint ( ) gpg (gpg --sign-key XXXXX, gpg --export --armor XXXX ) *1 24
Debian 2005 8 7 2 25