[steven@rh9 drbl-desktop-20031127]$ ./drblsrv_desktop.sh -i
**********************************************************
We are now ready to install and upgrade the files for DRBL server!
Do you want to continue ? Say "yes" or "y" to continue, or any other letter to quit!
[Y/n] y
**********************************************************
Ok! Let's do it!
You are not root,
please enter root's password to deploy them...
Password:

***************************************************************
**********************************************************
The version number for your Redhat: 9

**********************************************************
Do you want to set the proxy server ?
[y/N] n

**********************************************************
Which "apt" repository do you want to use ? [0/1/2/3/4/5]
"0" for opensource.nchc.org.tw. (default)
"1" for drbl.sourceforge.net (Only DRBL packages mirror from opensource.nchc.org.tw) and ayo.freshrpms.net,
"2" for both ayo.freshrpms.net and opensource.nchc.org.tw.
"3" for directory in local HD ,cdrom or NFS directory. (You have to make sure you already got those files in local directory!)
"4" for local apt repository (Apache server and apt-enabled rpm packages are required).
"5" to enter apt repository by yourself.
[0] 3

Please enter the path of your local apt repository where directory RPMS.os, RPMS.drbl... exist. [/opt/apt/RedHat/apt] /mnt/cdrom/RedHat/apt
Do you want to use the DRBL testing packages which is more powerful, buy maybe buggy (If you are brave enough) ?
[y/N] n
Do you want to use Asian CJK (Chinese, Japanese, Korean) patched packages in graphical mode (X-window) (If you are brave enough) ?
[y/N] n
Do you want to use the serial console output for clients ?
If you do NOT know anything about this, say "N" here, otherwise clients might show NOTHING on the screen !
[y/N] n
Do you want to use SMP kernel for clients, i.e. your client have two or more CPUs ? Note!!! By chooing SMP kernel, you must use optimized kernel!
[y/N] n

Installing APT(Advanced Package Tool) ...
warning: /mnt/cdrom/RedHat/apt/RPMS.drbl/apt-0.5.5cnc6-fr1.i386.rpm: V3 DSA signature: NOKEY, key ID e42d547b
Preparing...                ########################################### [100%]
1:apt                    ########################################### [100%]

************************!@!@#$%^&*&(***************************
Do you want to let "apt" use "Optimization for CPU" ? [0/1/2]
0 for "No Optimization" (i386 will be used), 1 for "i586", 2 to use the optimization level of server.
Note! Note Note!  Note!  Note!  Note!  Note!
Note!!! If your client machine(s) is not the same level with server, please answer "0", otherwise your client machine(s) will NOT be able to boot.
The major difference is if you turn on "Optimization for CPU", the glibc and openssl package will use in one of i686 and i386, the kernel will be use in one of i686, i586 and i386, which might be not suitable to all your machines.
If you are not sure, better to answer "0"
[0] 0
**********************************************************

No optimization for your system, we will use the "i386" package.
**********************************************************
Setup apt sources.list...
Get:1 copy: . release [1125B]
Fetched 1125B in 0s (22.1kB/s)
Get:1 copy: ./os pkglist [1357kB]
Get:2 copy: ./os release [121B]
Get:3 copy: ./updates pkglist [340kB]
Get:4 copy: ./updates release [126B]
Get:5 copy: ./drbl pkglist [106kB]
Get:6 copy: ./drbl release [123B]
Fetched 1803kB in 4s (411kB/s)
Reading Package Lists... Done
Building Dependency Tree... Done

**********************************************************
First, we upgrade the whole system...
**********************************************************


If there is new glibc and openssl in updates, do you want to upgrade ? [0/1/2/3]
"0" to keep the old but working glibc and openssl (default).
"1" to keep the old but working glibc, while upgrade openssl,
"2" to keep the old but working openssl, while upgrade glibc,
"3" to upgrade glibc and openssl,
Warning!!!!! glibc is very important, you have to make sure the new glibc will work with this WORKING system.
Sometimes the new glibc will make you cry... If you are not sure, beter to keep the old but working one, i.e. answer "0".
[0] 3
Reading Package Lists... Done
Building Dependency Tree... Done
Calculating Upgrade... Done
The following packages will be upgraded
XFree86 XFree86-100dpi-fonts XFree86-75dpi-fonts XFree86-Mesa-libGL
XFree86-Mesa-libGLU XFree86-base-fonts XFree86-font-utils XFree86-libs
XFree86-libs-data XFree86-tools XFree86-truetype-fonts XFree86-twm
XFree86-xauth XFree86-xdm XFree86-xfs bash cdda2wav cdrecord coreutils cups
cups-libs eog ethereal evolution foomatic gdm ghostscript glibc glibc-common
glibc-devel gnupg gtkhtml hpijs httpd iproute kdebase kdegraphics kdelibs
krb5-devel krb5-libs mkisofs mutt nfs-utils nscd openssh openssh-askpass
openssh-askpass-gnome openssh-clients openssh-server openssl openssl-devel
pam_smb pan perl perl-CPAN popt printman redhat-config-date
redhat-config-network redhat-config-network-tui redhat-config-printer
redhat-config-printer-gui rhpl rpm rpm-build rpm-devel rpm-python samba
samba-client samba-common sane-backends sendmail syslinux tcpdump unzip
up2date up2date-gnome xinetd xpdf ypserv
80 packages upgraded, 0 newly installed, 0 removed and 0 not upgraded.
Need to get 168MB of archives.
After unpacking 4309kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 copy: ./updates glibc-common 2.3.2-27.9.7 [12.7MB]
Get:2 copy: ./updates glibc 2.3.2-27.9.7 [3308kB]
Get:3 copy: ./updates bash 2.05b-20.1 [755kB]
Get:4 copy: ./drbl popt 1.8-1 [66.1kB]
Get:5 copy: ./drbl rpm 4.2-1 [2106kB]
Get:6 copy: ./updates XFree86 4.3.0-2.90.43 [13.2MB]
Get:7 copy: ./updates XFree86-xfs 4.3.0-2.90.43 [263kB]
Get:8 copy: ./updates XFree86-twm 4.3.0-2.90.43 [263kB]
Get:9 copy: ./updates XFree86-libs 4.3.0-2.90.43 [2432kB]
Get:10 copy: ./updates XFree86-libs-data 4.3.0-2.90.43 [319kB]
Get:11 copy: ./updates XFree86-Mesa-libGL 4.3.0-2.90.43 [263kB]
Get:12 copy: ./updates XFree86-xauth 4.3.0-2.90.43 [201kB]
Get:13 copy: ./updates perl 2:5.8.0-88.3 [14.5MB]
Get:14 copy: ./updates XFree86-base-fonts 4.3.0-2.90.43 [7958kB]
Get:15 copy: ./updates XFree86-100dpi-fonts 4.3.0-2.90.43 [4405kB]
Get:16 copy: ./updates XFree86-75dpi-fonts 4.3.0-2.90.43 [3882kB]
Get:17 copy: ./updates XFree86-Mesa-libGLU 4.3.0-2.90.43 [374kB]
Get:18 copy: ./updates XFree86-truetype-fonts 4.3.0-2.90.43 [601kB]
Get:19 copy: ./updates XFree86-xdm 4.3.0-2.90.43 [271kB]
Get:20 copy: ./updates coreutils 4.5.3-19.0.2 [2414kB]
Get:21 copy: ./updates krb5-devel 1.2.7-14 [731kB]
Get:22 copy: ./updates krb5-libs 1.2.7-14 [421kB]
Get:23 copy: ./updates openssl-devel 0.9.7a-20 [1650kB]
Get:24 copy: ./updates openssl 0.9.7a-20 [1130kB]
Get:25 copy: ./updates cups-libs 1:1.1.17-13.3.0.3 [91.5kB]
Get:26 copy: ./updates xinetd 2:2.3.11-1.9.0 [125kB]
Get:27 copy: ./updates cups 1:1.1.17-13.3.0.3 [2465kB]
Get:28 copy: ./updates eog 2.2.0-2 [307kB]
Get:29 copy: ./updates gtkhtml 1.1.9-0.9.1 [639kB]
Get:30 copy: ./updates evolution 1.2.2-5 [9536kB]
Get:31 copy: ./updates foomatic 2.0.2-15.1 [1412kB]
Get:32 copy: ./updates gdm 1:2.4.1.3-5.1 [1502kB]
Get:33 copy: ./updates glibc-devel 2.3.2-27.9.7 [2346kB]
Get:34 copy: ./updates gnupg 1.2.1-4 [1239kB]
Get:35 copy: ./updates httpd 2.0.40-21.5 [1059kB]
Get:36 copy: ./updates kdelibs 6:3.1-12 [12.0MB]
Get:37 copy: ./updates openssh-clients 3.5p1-11 [307kB]
Get:38 copy: ./updates openssh-askpass-gnome 3.5p1-11 [25.1kB]
Get:39 copy: ./updates openssh-askpass 3.5p1-11 [43.4kB]
Get:40 copy: ./updates openssh 3.5p1-11 [182kB]
Get:41 copy: ./updates openssh-server 3.5p1-11 [181kB]
Get:42 copy: ./updates kdebase 6:3.1-15 [18.6MB]
Get:43 copy: ./updates sane-backends 1.0.9-5.1 [1967kB]
Get:44 copy: ./updates kdegraphics 7:3.1-5 [5302kB]
Get:45 copy: ./updates nfs-utils 1.0.1-3.9 [195kB]
Get:46 copy: ./updates nscd 2.3.2-27.9.7 [56.1kB]
Get:47 copy: ./updates printman 0.0.1-0.20021202.12.1 [197kB]
Get:48 copy: ./updates rhpl 0.93.4-1 [242kB]
Get:49 copy: ./updates redhat-config-date 1.5.15-1 [365kB]
Get:50 copy: ./updates redhat-config-printer-gui 0.6.47.11-1 [89.4kB]
Get:51 copy: ./updates ghostscript 7.05-32.1 [7873kB]
Get:52 copy: ./updates redhat-config-printer 0.6.47.11-1 [802kB]
Get:53 copy: ./drbl rpm-devel 4.2-1 [1070kB]
Get:54 copy: ./drbl rpm-python 4.2-1 [88.6kB]
Get:55 copy: ./updates samba-common 2.2.7a-8.9.0 [2232kB]
Get:56 copy: ./updates samba 2.2.7a-8.9.0 [3148kB]
Get:57 copy: ./updates sendmail 8.12.8-9.90 [536kB]
Get:58 copy: ./updates tcpdump 14:3.7.2-1.9.1 [307kB]
Get:59 copy: ./updates up2date-gnome 3.1.23.2-1 [128kB]
Get:60 copy: ./updates up2date 3.1.23.2-1 [806kB]
Get:61 copy: ./updates ypserv 2.8-0.9E [121kB]
Get:62 copy: ./updates XFree86-font-utils 4.3.0-2.90.43 [199kB]
Get:63 copy: ./updates XFree86-tools 4.3.0-2.90.43 [496kB]
Get:64 copy: ./updates cdda2wav 8:2.0-11.9.1 [162kB]
Get:65 copy: ./updates cdrecord 8:2.0-11.9.1 [395kB]
Get:66 copy: ./updates ethereal 0.9.16-0.90.1 [3270kB]
Get:67 copy: ./updates hpijs 1.3-32.1 [143kB]
Get:68 copy: ./updates iproute 2.4.7-7.90.1 [340kB]
Get:69 copy: ./updates mkisofs 8:2.0-11.9.1 [294kB]
Get:70 copy: ./updates mutt 5:1.4.1-1 [1170kB]
Get:71 copy: ./updates pam_smb 1.1.6-9.9 [32.9kB]
Get:72 copy: ./updates pan 1:0.14.2-1.9 [1084kB]
Get:73 copy: ./updates perl-CPAN 2:1.61-88.3 [106kB]
Get:74 copy: ./updates redhat-config-network 1.2.15-1 [409kB]
Get:75 copy: ./updates redhat-config-network-tui 1.2.15-1 [1041kB]
Get:76 copy: ./drbl rpm-build 4.2-1 [441kB]
Get:77 copy: ./updates samba-client 2.2.7a-8.9.0 [2172kB]
Get:78 copy: ./drbl syslinux 2.00-5drbl [75.2kB]
Get:79 copy: ./updates unzip 5.50-33 [140kB]
Get:80 copy: ./updates xpdf 1:2.01-11 [4161kB]
Fetched 168MB in 22s (7616kB/s)
Executing RPM (-Uvh)...
warning: /var/cache/apt/archives/glibc-common_2.3.2-27.9.7_i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                ########################################### [100%]
1:glibc-common           ########################################### [  1%]
2:glibc                  ########################################### [  3%]
Stopping sshd:[  OK  ]
Starting sshd:[  OK  ]
3:bash                   ########################################### [  4%]
4:popt                   ########################################### [  5%]
5:rpm                    ########################################### [  6%]
6:XFree86                ########################################### [  8%]
7:XFree86-xfs            ########################################### [  9%]
8:XFree86-twm            ########################################### [ 10%]
9:XFree86-libs           ########################################### [ 11%]
10:XFree86-libs-data      ########################################### [ 13%]
11:XFree86-Mesa-libGL     ########################################### [ 14%]
12:XFree86-xauth          ########################################### [ 15%]
13:perl                   ########################################### [ 16%]
14:XFree86-base-fonts     ########################################### [ 18%]
15:XFree86-100dpi-fonts   ########################################### [ 19%]
16:XFree86-75dpi-fonts    ########################################### [ 20%]
17:XFree86-Mesa-libGLU    ########################################### [ 21%]
18:XFree86-truetype-fonts ########################################### [ 23%]
19:XFree86-xdm            ########################################### [ 24%]
20:coreutils              ########################################### [ 25%]
21:krb5-devel             ########################################### [ 26%]
22:krb5-libs              ########################################### [ 28%]
23:openssl-devel          ########################################### [ 29%]
24:openssl                ########################################### [ 30%]
25:cups-libs              ########################################### [ 31%]
26:xinetd                 ########################################### [ 33%]
27:cups                   ########################################### [ 34%]
28:eog                    ########################################### [ 35%]
29:gtkhtml                ########################################### [ 36%]
30:evolution              ########################################### [ 38%]
31:foomatic               ########################################### [ 39%]
32:gdm                    ########################################### [ 40%]
33:glibc-devel            ########################################### [ 41%]
34:gnupg                  ########################################### [ 43%]
35:httpd                  ########################################### [ 44%]
36:kdelibs                ########################################### [ 45%]
37:openssh-clients        ########################################### [ 46%]
38:openssh-askpass-gnome  ########################################### [ 48%]
39:openssh-askpass        ########################################### [ 49%]
40:openssh                ########################################### [ 50%]
41:openssh-server         ########################################### [ 51%]
42:kdebase                ########################################### [ 52%]
43:sane-backends          ########################################### [ 54%]
44:kdegraphics            ########################################### [ 55%]
45:nfs-utils              ########################################### [ 56%]
46:nscd                   ########################################### [ 58%]
47:printman               ########################################### [ 59%]
48:rhpl                   ########################################### [ 60%]
49:redhat-config-date     ########################################### [ 61%]
50:redhat-config-printer-g########################################### [ 63%]
51:ghostscript            ########################################### [ 64%]
52:redhat-config-printer  ########################################### [ 65%]
53:rpm-devel              ########################################### [ 66%]
54:rpm-python             ########################################### [ 68%]
55:samba-common           ########################################### [ 69%]
56:samba                  ########################################### [ 70%]
57:sendmail               ########################################### [ 71%]
58:tcpdump                ########################################### [ 73%]
59:up2date-gnome          ########################################### [ 74%]
60:up2date                ########################################### [ 75%]
61:ypserv                 ########################################### [ 76%]
62:XFree86-font-utils     ########################################### [ 78%]
63:XFree86-tools          ########################################### [ 79%]
64:cdda2wav               ########################################### [ 80%]
65:cdrecord               ########################################### [ 81%]
66:ethereal               ########################################### [ 83%]
67:hpijs                  ########################################### [ 84%]
68:iproute                ########################################### [ 85%]
69:mkisofs                ########################################### [ 86%]
70:mutt                   ########################################### [ 88%]
71:pam_smb                ########################################### [ 89%]
72:pan                    ########################################### [ 90%]
73:perl-CPAN              ########################################### [ 91%]
74:redhat-config-network  ########################################### [ 93%]
75:redhat-config-network-t########################################### [ 94%]
76:rpm-build              ########################################### [ 95%]
77:samba-client           ########################################### [ 96%]
78:syslinux               ########################################### [ 98%]
79:unzip                  ########################################### [ 99%]
80:xpdf                   ########################################### [100%]

**********************************************************
Install dhcp, tftp, nfs, yp, mkinitrd ...
Reading Package Lists... Done
Building Dependency Tree... Done
nfs-utils is already the newest version.
ypserv is already the newest version.
ypbind is already the newest version.
yp-tools is already the newest version.
mkinitrd is already the newest version.
ntp is already the newest version.
firstboot is already the newest version.
The following NEW packages will be installed:
dhcp tftp-server
0 packages upgraded, 2 newly installed, 0 removed and 0 not upgraded.
Need to get 536kB of archives.
After unpacking 1105kB of additional disk space will be used.
Get:1 copy: ./os dhcp 1:3.0pl1-23 [511kB]
Get:2 copy: ./os tftp-server 0.32-4 [24.8kB]
Fetched 536kB in 0s (1665kB/s)
Executing RPM (-Uvh)...
warning: /var/cache/apt/archives/dhcp_1%3a3.0pl1-23_i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                ########################################### [100%]
1:dhcp                   ########################################### [ 50%]
2:tftp-server            ########################################### [100%]

**********************************************************
Install-Options ""; Architecture "i386";
No optimization for your system, we will use the "i386" glibc & openssl package.

**********************************************************
Reading Package Lists... Done
Building Dependency Tree... Done
Note, selecting kernel#2.4.20-20.9drbl for regex 'kernel#.*drbl'
The following extra packages will be installed:
kernel#2.4.20-20.9drbl
The following NEW packages will be installed:
kernel#2.4.20-20.9drbl
0 packages upgraded, 1 newly installed, 0 removed and 0 not upgraded.
Need to get 13.3MB of archives.
After unpacking 29.7MB of additional disk space will be used.
Get:1 copy: ./drbl kernel#2.4.20-20.9drbl 2.4.20-20.9drbl [13.3MB]
Fetched 13.3MB in 2s (4477kB/s)
Executing RPM (-ivh)...
Preparing...                ########################################### [100%]
1:kernel                 ########################################### [100%]
Reading Package Lists... Done
Building Dependency Tree... Done
Note, selecting drbl-driver-bcm4400 for regex 'drbl-driver-.*'
Note, selecting drbl-driver-bcm5700 for regex 'drbl-driver-.*'
The following extra packages will be installed:
drbl-driver-bcm4400 drbl-driver-bcm5700
The following NEW packages will be installed:
drbl-driver-bcm4400 drbl-driver-bcm5700
0 packages upgraded, 2 newly installed, 0 removed and 0 not upgraded.
Need to get 110kB of archives.
After unpacking 250kB of additional disk space will be used.
Get:1 copy: ./drbl drbl-driver-bcm4400 2.0.5-8 [33.0kB]
Get:2 copy: ./drbl drbl-driver-bcm5700 6.2.17-2 [77.3kB]
Fetched 110kB in 0s (1696kB/s)
Executing RPM (-Uvh)...
Preparing...                ########################################### [100%]
1:drbl-driver-bcm4400    ########################################### [ 50%]
2:drbl-driver-bcm5700    ########################################### [100%]

**********************************************************
Install mkinitrd-net, etherboot, syslinux, partimage, DRBL GDM Greeter...
Reading Package Lists... Done
Building Dependency Tree... Done
syslinux is already the newest version.
The following NEW packages will be installed:
clonezilla drbl-gdm drbl-script etherboot freedos memtest86 mkinitrd-net
partimage rh-netinstall socket
0 packages upgraded, 10 newly installed, 0 removed and 0 not upgraded.
Need to get 18.5MB of archives.
After unpacking 54.4MB of additional disk space will be used.
Get:1 copy: ./drbl clonezilla 1.0-5drbl [13.9kB]
Get:2 copy: ./drbl drbl-gdm 1.1-1drbl [440kB]
Get:3 copy: ./drbl drbl-script 1.0-7drbl [18.4kB]
Get:4 copy: ./drbl freedos 1.0-2drbl [309kB]
Get:5 copy: ./drbl memtest86 3.0-3drbl [77.7kB]
Get:6 copy: ./drbl rh-netinstall 1.0-1drbl [7100kB]
Get:7 copy: ./drbl etherboot 5.0.11-5drbl [9391kB]
Get:8 copy: ./drbl mkinitrd-net 1.10-22drbl [975kB]
Get:9 copy: ./drbl partimage 0.6.2-1drbl [196kB]
Get:10 copy: ./drbl socket 1.3pre2-1 [15.9kB]
Fetched 18.5MB in 3s (5945kB/s)
Executing RPM (-Uvh)...
Preparing...                ########################################### [100%]
1:clonezilla             ########################################### [ 10%]
2:drbl-gdm               ########################################### [ 20%]
3:drbl-script            ########################################### [ 30%]
4:freedos                ########################################### [ 40%]
5:memtest86              ########################################### [ 50%]
6:rh-netinstall          ########################################### [ 60%]
7:etherboot              ########################################### [ 70%]
8:mkinitrd-net           ########################################### [ 80%]
9:partimage              ########################################### [ 90%]
10:socket                 ########################################### [100%]

**********************************************************
Creating device source for clients...
Get the devices file from RPM repository...
Reading Package Lists... Done
Building Dependency Tree... Done
0 packages upgraded, 0 newly installed, 2 reinstalled, 0 removed and 0 not upgraded.
Need to get 3160kB of archives.
After unpacking 0B of additional disk space will be used.
Get:1 copy: ./os dev 3.3.2-5 [3037kB]
Get:2 copy: ./os MAKEDEV 3.3.2-5 [123kB]
Fetched 3160kB in 0s (6720kB/s)
Download complete and in download only mode
4585 blocks
1246 blocks
Cleaning the tmp device directory...

**********************************************************

**********************************************************
Creating the nbi files for a lot of network cards, this will take a few minutes ...
The latest kernel for DRBL clients is 2.4.20-20.9drbl
Scanning through /etc/mknbi-set.conf for network modules...
Scanning through /lib/modules/2.4.20-20.9drbl/modules.pcimap for network modules...
Building NBIs for module set 3c59x
Building NBIs for module set 8139cp
Building NBIs for module set 8139too
Building NBIs for module set acenic
Building NBIs for module set airo
Building NBIs for module set aironet4500_card
Building NBIs for module set bcm4400
Building NBIs for module set bcm5700
Building NBIs for module set dgrs
Building NBIs for module set dl2k
Building NBIs for module set dmfe
Building NBIs for module set e100
Building NBIs for module set e1000
Building NBIs for module set eepro100
Building NBIs for module set epic100
Building NBIs for module set fealnx
Building NBIs for module set hamachi
Building NBIs for module set hp100
Building NBIs for module set hysdn
Building NBIs for module set natsemi
Building NBIs for module set ne2k-pci
Building NBIs for module set ns83820
Building NBIs for module set pcnet32
Building NBIs for module set prism2_pci
Building NBIs for module set prism2_plx
Building NBIs for module set r8169
Building NBIs for module set rcpci
Building NBIs for module set sis900
Building NBIs for module set starfire
Building NBIs for module set sundance
Building NBIs for module set sungem
Building NBIs for module set sunhme
Building NBIs for module set tc35815
Building NBIs for module set tg3
Building NBIs for module set tulip
Building NBIs for module set tulip_old
Building NBIs for module set via-rhine
Building NBIs for module set winbond-840
Building NBIs for module set xircom_cb
Building NBIs for module set xircom_tulip_cb
Building NBIs for module set yellowfin
Creating the kernel for PXE clients...done!

**********************************************************
Creating some files for PXE clients...done!

**********************************************************
Done!
**********************************************************
Now syncing - flush filesystem buffers...
