Linux(Debian GNU/Linux) http://www.st-h.metro.tokyo.jp/ http://noshiro.shigeo.jp/ Debian GNU/Linux3 Sarge http://kmuto.jp/debian/debian_sarge/ : 3 (2005/8/4) ASIN: 4798102865 noshiro@st-h.ed.jp, noshiro@shigeo.jp noshiro@debian.org, noshiro@debian.or.jp What is Debian? Debian? OS Debian Free Software Guidelines(DFSG) http://www.debian.org/social_contract Debian Linux 1993.8 1996.6 Debian GNU/Linux 1.1 Debian Debian Ian MurdockDebra Debian Project 1000 http://www.debian.org/devel/join/newmaint Debian sarge Universal Operating System( Debain Roadmap 1996.6 Debian 1.1 buzz 1996.12 Debian 1.2 rex 1997.7 Debian 1.3 bo 1998.7 Debian 2.0 hamm 1999.3 Debian 2.1 slink 2000.8 Debian 2.2 potato 2002.7 Debian 3.0 woody 2005.6 Debian 3.1 sarge xxxx.x unstable sid 1
Upcoming Release of Debian GNU/Linux 4.0 Debian 2006 2.6.17 GCC 4.1 X.org Secure APT stable : > sarge testing : > etch unstable : Debian > sid DVD-ROM/CD-ROM/CD-ROM FD/TFTP/USB CD image Official: http://www.debian.org/cd/http-ftp/ ftp://ftp.jp.debian.org/debian-cd/current/i386/iso-cd http://hanzubon.jp/debian-cd/current/i386/iso-cd/ Unofficial ( http://kmuto.jp/debian/d-i/ P.56 GRUBMBR P.59 GMT root P.60 rootitxx XXPC P.61 P.29 2.3 CD-ROM P.37 titxx (XXPC) host.st-h.local P.38 APT P.63 CDDVD P.64 P.65 eximpostfix 2
root modprobe q vesafb modprobe q fbcon jfbterm q c other,euc-jp,iconv,utf-8 jconsolewrapper jc dpkg C (C) apt-setup http apt-get install vim vi P.393) P.68 /etc/apt/sources.list deb http://ftp.jp.debian.org/debian/ stable main contrib non-free deb http://security.debian.org/ stable/updates main contrib non-free deb http://kmuto.jp/debian/tettei sarge main contrib non-free apt-get update apt-get install jconsolewrapper debconf dpkg-reconfigure p low debconf (dialog) -> priority low apt-get update ; apt-get upgrade s apt-get upgrade apt-get install lv postfix sudo lv pager (more) postfix (Mail Transfer agent) sudo (execute a command as another user APT P.85 Advanced Package Tool APT dpkg dpkgapt /etc/apt/sources.list apt-setup apt-line (virus http://debian.fam.cx/ P.94 apt-get (APT package handling utility) apt-get update apt-cache apt-cache pkgnames [] $ apt-cache pkgnames w3m w3m P.100 apt-cache [--full] search [] $ apt-cache search w3m --fullshow apt-cache show (description) $ apt-cache show w3m 3
() P.96 Package Priority Section Installed-Size Maintainer Architecture Version Replaces Provides Depends Recommends Suggests Conflicts Pre-Depends Filename Size MD5sum Description Task Enhances Essential apt-get install (Depends) Suggests -f -d /var/cache/apt/archives/ -s --reinstall aptitude high-level interface to the package manager Debian Debian ASIN 477412768 remove() purge() apt-get [-s] [--purge] remove # apt-get remove libgc1 apt-get [-s] [-d] upgrade apt-get [-s] [-d] dist-upgrade upgrade dist-upgrade apt-get clean /var/cache/apt/archives/ apt-get autoclean 4
P.123 Debain update-alternatives update-alternatives --display update-alternatives --config alternatives) /etc/alternatives/ editor,pager,vi,emacs,ftp, x-window-manager,x-www-browser APT P.130 auto-apt # apt-get install auto-apt # auto-apt update $ auto-apt search or # auto-apt y run auto-apt auto-apt exit P.136 dpkg l [] dpkg L dpkg c Debian(.deb) dpkg a medium-level package manager dpkg i APT dpkg r dpkg S # dpkg --configure # dpkg --configure -a dpkg-reconfigure P.142 dpkg --get-selections > dpkg set-selections < set apt-get dselect-upgrade 5
CAFÉ BREAK (P.147 UNIX bash,zsh,,,screnn X X /etc/network/interfaces dhcp auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.11.XX netmask 255.255.255.0 network 192.168.11.0 broadcast 192.168.11.255 gateway 192.168.11.1 XXPC /etc/resolv.conf DHCP IP search st-h.local nameserver 192.168.11.1 /etc/hostname Debian Debian FHS(Filesystem Hierarchy Standard) P.39 vi root P.396 root > su substitute user sudo sudoroot root /etc/sudoers visudo P.444 /var/log apache2/var/log/apache2/ /var/log/syslog grep syslogd /etc/syslog.conf 6
proc Linux /proc/cpuinfo CPU /proc/version /proc/filesystems Web uptimelspci Apache P.546 DebianWeb Apache HTTP 1.3 2 apache2-mpm-perchild apache2-mpm-prefork apache2-mpm-worker apt-get install apache2-mpm-prefork apt-get install mozilla-firefox-locale-ja Apache2 Web http://localhost/ /var/www/apache2-default/index.html homepublic_html index.html http://localhost/~/ Apache P.556 cp /etc/apache2/sites-enabled/000- default /etc/apache2/conf.d/local 000-default RedirecMatch ^/$ /apache2-default/ ) /etc/init.d/apache2 restart Options -Indexes Apache P.557 htpasswd2 [-c] /etc/apache2/ /var/www/secret <Directory /var/www/secret> AuthType Basic AuthName Secret page entrance AuthUserFile /etc/apache2/ Require user </Directory> 7
Xoops apt-get install libapache2-mod-php4 php4-cli MySQL apt-get install mysql-server PHPMySQL apt-get install php4-mysql mysqlroot mysqladmin u root password /etc/php4/cli/php.iniapache2 mbstring.internal_encoding = EUC-JP Xoops http://jp.xoops.org/ tar xvzf xoops-2.0.x.tar.gz docs,extras,htmlhtml /var/www/) cp a html/* /var/www/ http://192.168.11.xx/ /var/www/install ftp apt-get install proftpd inetd apt-get install postfix PostfixMTA X P.199 # apt-get install read-edid mdetect # apt-get install x-window-system-core mlterm twm startx rootx /var/log/xfree86.0.log gnome apt-get install gnome ttf-kochi-mincho ttf-kochi-gothic ttf-ryobi Web Debian GNU/Linux OFF # /sbin/shutdown h now jconsolewrapperx jcx 8