steven@opensuse101:~> sudo cp /opt/drbl/setup/yum-repos/drbl* /etc/yum.repos.d/
steven@opensuse101:~> sudo cp /opt/drbl/setup/yum-repos/*suse*10.1* /etc/yum.repos.d/
steven@opensuse101:~> uname -r
2.6.16.13-4-default
steven@opensuse101:~> sudo /opt/drbl/sbin/drblsrv-offline -s 2.6.16.13-4-defaultLanguage | �y��| �� ?.
[0]: English
[1]: Chinese Traditional (Big5) - Taiwan | ���� (�j���X) - �x�W.
[2]: Chinese Traditional (UTF-8, Unicode) - Taiwan | 中� (����碼) - ��
[0]
Using kernel from this server...
*****************************************************.
These packages from SuSE 10.1 are necessary (Check your distribution package repository for more details):
dhcp-server tftp nfs-utils ypserv ypbind yp-tools mkinitrd xntp iptables wget dialog rsync parted tcpdump reiserfs bc grub dos2unix ddrescue curl lftp openssh insserv coreutils gzip bzip2 netcat file ethtool netdiag udev
*****************************************************.
These packages from DRBL project are necessary [Check http://drbl.sf.net (English) or http://drbl.nchc.org.tw (Chinese) for more details]:
mkpxeinitrd-net etherboot partimage freedos clonezilla drbl-ntfsprogs drbl-chntpw lzop udpcast
*****************************************************.
These packages are recommended to install if they exist in the distribution repository:
lvm2
*****************************************************.
Please press Ctrl-C to stop the program! Or Press "Enter" to continue...
Check if they are installed...
Checking dhcp-server... NOT installed!
You have to install dhcp-server!
If your Internet access is ok, use /opt/drbl/sbin/drblsrv instead of this script! It will automatically download and install necessary packages for you!
Program terminated!
steven@opensuse101:~> sudo yum install dhcp-server tftp nfs-utils ypserv ypbind yp-tools mkinitrd xntp iptables wget dialog rsync parted tcpdump reiserfs bc grub dos2unix ddrescue curl lftp openssh insserv coreutils gzip bzip2 netcat file ethtool netdiag udev mkpxeinitrd-net etherboot partimage freedos clonezilla drbl-ntfsprogs drbl-chntpw lzop udpcast lvm2
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package tcpdump.i586 0:3.9.4-12 set to be updated
---> Package etherboot.i386 0:5.4.2-1drbl set to be updated
---> Package lftp.i586 0:3.4.0-22 set to be updated
---> Package udpcast.i386 0:20060525-1drbl set to be updated
---> Package nfs-utils.i586 0:1.0.7-36 set to be updated
---> Package lzop.i386 0:1.02-0.5drbl set to be updated
---> Package ypserv.i586 0:2.19-11 set to be updated
---> Package ethtool.i586 0:3-13 set to be updated
---> Package clonezilla.i386 0:1.4.1-18 set to be updated
---> Package yp-tools.i586 0:2.9-14 set to be updated
---> Package ddrescue.i586 0:1.11_0.0.6-14 set to be updated
---> Downloading header for mkpxeinitrd-net to pack into transaction set.
mkpxeinitrd-net-1.1-14.i3 100% |=========================|  10 kB    00:00
---> Package mkpxeinitrd-net.i386 0:1.1-14 set to be updated
---> Downloading header for drbl-chntpw to pack into transaction set.
drbl-chntpw-0.0.20040818- 100% |=========================| 3.7 kB    00:00
---> Package drbl-chntpw.i386 0:0.0.20040818-6 set to be updated
---> Package freedos.i386 0:1.0-8drbl set to be updated
---> Package ypbind.i586 0:1.19.1-12 set to be updated
---> Package drbl-ntfsprogs.i386 0:1.13.1-3 set to be updated
---> Package dhcp-server.i586 0:3.0.3-21 set to be updated
---> Package partimage.i386 0:0.6.5_beta3-3drbl set to be updated
---> Package tftp.i586 0:0.42-6 set to be updated
---> Package dos2unix.i586 0:3.1-315 set to be updated
---> Package xntp.i586 0:4.2.0a-70.4 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
clonezilla              i386       1.4.1-18         drbl              657 k
ddrescue                i586       1.11_0.0.6-14    base               31 k
dhcp-server             i586       3.0.3-21         base              631 k
dos2unix                i586       3.1-315          base               12 k
drbl-chntpw             i386       0.0.20040818-6   drbl               47 k
drbl-ntfsprogs          i386       1.13.1-3         drbl              3.4 M
etherboot               i386       5.4.2-1drbl      drbl              5.3 M
ethtool                 i586       3-13             base               53 k
freedos                 i386       1.0-8drbl        drbl              113 k
lftp                    i586       3.4.0-22         base              660 k
lzop                    i386       1.02-0.5drbl     drbl              258 k
mkpxeinitrd-net         i386       1.1-14           drbl              786 k
nfs-utils               i586       1.0.7-36         base              232 k
partimage               i386       0.6.5_beta3-3drbl  drbl              1.1 M
tcpdump                 i586       3.9.4-12         base              291 k
tftp                    i586       0.42-6           base               39 k
udpcast                 i386       20060525-1drbl   drbl              538 k
xntp                    i586       4.2.0a-70.4      updates           400 k
yp-tools                i586       2.9-14           base               61 k
ypbind                  i586       1.19.1-12        base               49 k
ypserv                  i586       2.19-11          base              128 k

Transaction Summary
=============================================================================
Install     21 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 15 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): mkpxeinitrd-net-1. 100% |=========================| 786 kB    00:00
(2/2): drbl-chntpw-0.0.20 100% |=========================|  47 kB    00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: partimage                    ####################### [ 1/21]
Installing: yp-tools                     ####################### [ 2/21]
Installing: udpcast                      ####################### [ 3/21]
Installing: tcpdump                      ####################### [ 4/21]
Installing: etherboot                    ####################### [ 5/21]
Installing: lftp                         ####################### [ 6/21]
Installing: nfs-utils                    ####################### [ 7/21]
Updating etc/sysconfig/nfs...
Installing: lzop                         ####################### [ 8/21]
Installing: ypserv                       ####################### [ 9/21]
Updating etc/sysconfig/ypserv...
Installing: ethtool                      ####################### [10/21]
Installing: clonezilla                   ####################### [11/21]
Installing: ddrescue                     ####################### [12/21]
Installing: mkpxeinitrd-net              ####################### [13/21]
Installing: drbl-chntpw                  ####################### [14/21]
Installing: freedos                      ####################### [15/21]
Installing: ypbind                       ####################### [16/21]
Updating etc/sysconfig/ypbind...
Installing: drbl-ntfsprogs               ####################### [17/21]
Installing: dhcp-server                  ####################### [18/21]
Updating etc/sysconfig/dhcpd...
Updating etc/sysconfig/syslog...
Installing: tftp                         ####################### [19/21]
Installing: dos2unix                     ####################### [20/21]
Installing: xntp                         ####################### [21/21]
Updating etc/sysconfig/ntp...
Updating etc/sysconfig/syslog...

Installed: clonezilla.i386 0:1.4.1-18 ddrescue.i586 0:1.11_0.0.6-14 dhcp-server.i586 0:3.0.3-21 dos2unix.i586 0:3.1-315 drbl-chntpw.i386 0:0.0.20040818-6 drbl-ntfsprogs.i386 0:1.13.1-3 etherboot.i386 0:5.4.2-1drbl ethtool.i586 0:3-13 freedos.i386 0:1.0-8drbl lftp.i586 0:3.4.0-22 lzop.i386 0:1.02-0.5drbl mkpxeinitrd-net.i386 0:1.1-14 nfs-utils.i586 0:1.0.7-36 partimage.i386 0:0.6.5_beta3-3drbl tcpdump.i586 0:3.9.4-12 tftp.i586 0:0.42-6 udpcast.i386 0:20060525-1drbl xntp.i586 0:4.2.0a-70.4 yp-tools.i586 0:2.9-14 ypbind.i586 0:1.19.1-12 ypserv.i586 0:2.19-11
Complete!
steven@opensuse101:~> sudo /opt/drbl/sbin/drblsrv-offline -s 2.6.16.13-4-default                                                                                Language | �y��| �� ?.                                                          [0]: English                                                                    [1]: Chinese Traditional (Big5) - Taiwan | ���� (�j���X) - �x�W.
[2]: Chinese Traditional (UTF-8, Unicode) - Taiwan | 中� (����碼) - ��
[0]
Using kernel from this server...
*****************************************************.
These packages from SuSE 10.1 are necessary (Check your distribution package repository for more details):
dhcp-server tftp nfs-utils ypserv ypbind yp-tools mkinitrd xntp iptables wget dialog rsync parted tcpdump reiserfs bc grub dos2unix ddrescue curl lftp openssh insserv coreutils gzip bzip2 netcat file ethtool netdiag udev
*****************************************************.
These packages from DRBL project are necessary [Check http://drbl.sf.net (English) or http://drbl.nchc.org.tw (Chinese) for more details]:
mkpxeinitrd-net etherboot partimage freedos clonezilla drbl-ntfsprogs drbl-chntpw lzop udpcast
*****************************************************.
These packages are recommended to install if they exist in the distribution repository:
lvm2
*****************************************************.
Please press Ctrl-C to stop the program! Or Press "Enter" to continue...
Check if they are installed...
Checking dhcp-server... installed.
Checking tftp... installed.
Checking nfs-utils... installed.
Checking ypserv... installed.
Checking ypbind... installed.
Checking yp-tools... installed.
Checking mkinitrd... installed.
Checking xntp... installed.
Checking iptables... installed.
Checking wget... installed.
Checking dialog... installed.
Checking rsync... installed.
Checking parted... installed.
Checking tcpdump... installed.
Checking reiserfs... installed.
Checking bc... installed.
Checking grub... installed.
Checking dos2unix... installed.
Checking ddrescue... installed.
Checking curl... installed.
Checking lftp... installed.
Checking openssh... installed.
Checking insserv... installed.
Checking coreutils... installed.
Checking gzip... installed.
Checking bzip2... installed.
Checking netcat... installed.
Checking file... installed.
Checking ethtool... installed.
Checking netdiag... installed.
Checking mkpxeinitrd-net... installed.
Checking etherboot... installed.
Checking partimage... installed.
Checking freedos... installed.
Checking clonezilla... installed.
Checking drbl-ntfsprogs... installed.
Checking drbl-chntpw... installed.
Checking lzop... installed.
Checking udpcast... installed.
Checking udev... installed.
*****************************************************.
If your client CPU arch (say AMD K7) is different from that in the server (say Intel P4), you have to install the i586 packages in this server...
For Fedora: glibc, openssl, openssl-perl (By rpm -Uvh --force *.rpm)
For SuSE: glibc glibc-devel db db-devel db41 db41-devel (By rpm -Uvh --force *.rpm)
For Debian and Mandriva: Not necessary, since only single arch package in this distribution.
Please press Ctrl-C to stop the program! Or Press "Enter" to continue...
*****************************************************.
Install kernel for clients... ...
It will take several minutes to install this kernel, please be patient......done!
Generating modules.dep and map files for clients... done!
*****************************************************.
*****************************************************.
Creating the image files for PXE and Etherboot client, this will take a few minutes ...
The latest kernel for DRBL clients is 2.6.16.13-4-default
Running /opt/drbl/sbin/mknic-nbi --kernel 2.6.16.13-4-default --all --no-modules
Will client check DHCP server name is "drbl" or not: yes
The maximum times to try to get IP address for a client: 3
The pause time after network card is up: 0
Using the kernel modules from /tftpboot/node_root//lib/modules...
The selected kernel for DRBL clients is: 2.6.16.13-4-default
Creating the network boot initrd for PXE clients...
Use kernel modules from /tftpboot/node_root//lib/modules/2.6.16.13-4-default.
Creating the EXT2 initrd...
Finished!
Done!
*****************************************************.
Creating config file for PXE clients...
Copying pxelinux.0, menu.c32, chain.c32 and memdisk to /tftpboot/nbi_img...
Copying memtest86+ to /tftpboot/nbi_img...
Copying FreeDOS files to /tftpboot/nbi_img/...
Generating default pxelinux config (/tftpboot/nbi_img/pxelinux.cfg/default)...
Adding menus for DRBL, local boot, memtest86+, FreeDOS...
done!
*****************************************************.
Done!
steven@opensuse101:~> sudo /opt/drbl/sbin/drblpush -i
Language | �y��| �� ?
[0]: English
[1]: Chinese Traditional (Big5) - Taiwan | ���� (�j���X) - �x�W
[2]: Chinese Traditional (UTF-8, Unicode) - Taiwan | 中� (����碼) - ��
[0]
******************************************************
Hint! When a yes/no option is available, the default value is uppercase, Ex. (y/N), the default is "N", when you press "Enter", it will use "N". If you are not sure which one to choose, you can just press "Enter" key.
******************************************************
Searching the installed packages for DRBL server...This might take several minutes...
Finished searching the installed packages for DRBL server.
******************************************************
------------------------------------------------------
The interactive mode let you supply the information of your DRBL environment.
------------------------------------------------------
------------------------------------------------------
Please enter the client hostname prefix:
[opensuse101]
Set the client hostname prefix as opensuse101
------------------------------------------------------
Found private IP "192.168.120.101" in eth0 on your system!
Found private IP "192.168.200.254" in eth1 on your system!
Found private IP "10.111.1.254" in eth2 on your system!
Configured ethernet card(s) found in your system: eth0 eth1 eth2
------------------------------------------------------
We are unable to find the public IP address of this server,
Which ethernet port in this server is for public Internet accsess, not for DRBL connection ?
Available ethernet ports in this server:
eth0 (192.168.120.101), eth1 (192.168.200.254), eth2 (10.111.1.254),
[eth0]
The ethernet port you choose for the WAN connection: eth0
The ethernet port(s) for DRBL environment:  eth1 eth2
******************************************************
Found class A or B private IP "10.111.1.254" in eth2 for your DRBL system! If you want to use multicast clonezilla, you have to use private class C (192.168.*.*)! Otherwise the performance of multicast clone will be terribly worse!
******************************************************
Press Enter to continue...
******************************************************
******************************************************
Now we can collect the MAC address of clients!
If you want to let the DHCP service in DRBL server offer same IP address to client every time when client boot, and you never did this procedure, you should do it now!
If you already have those MAC addresses of clients, you can put them into different group files (These files number is the same number of networks cards for DRBL service). In this case, you can skip this step.
This step helps you to record the MAC addresses of clients, then divide them into different groups. It will save your time and reduce the typos.
The MAC addresses will be recorded turn by turn accroding to the boot of clients,
and they will be put into different files according to the network card in server, file name will be like macadr-eth1.txt, macadr-eth2.txt... You can find them in directory /etc/drbl.
Please boot the clients by order, make sure they boot from etherboot or PXE!
Do you want to collect them ?
[y/N]
******************************************************
OK! Let's continue...
******************************************************
Do you want to let the DHCP service in DRBL server offer same IP address to the client every time when client boots (If you want this function, you have to collect the MAC addresses of clients, and save them in file(s) (as in the previous procedure)). This is for the clients connected to DRBL server's ethernet network interface eth1 ?
[y/N]
******************************************************
OK! Let's continue, we will set the IP address of clients by "first boot gets IP first" instead of fixed one!
******************************************************
What is the initial number do you want to use in the last set of digits in the IP (i.e. the initial value of d in the IP address a.b.c.d) for DRBL clients connected to this ethernet port eth1.
[1]
******************************************************
How many DRBL clients (PC for students) connected to DRBL server's ethernet network interface eth1 ?
Please enter the number:
[12] 2
******************************************************
The final number in the last set of digits in the clients' IP is "2".
We will set the IP address for the clients connected to DRBL server's ethernet network interface eth1 as: 192.168.200.1 - 192.168.200.2
Accept ? [Y/n]
******************************************************
OK! Let's continue...
Do you want to let the DHCP service in DRBL server offer same IP address to the client every time when client boots (If you want this function, you have to collect the MAC addresses of clients, and save them in file(s) (as in the previous procedure)). This is for the clients connected to DRBL server's ethernet network interface eth2 ?
[y/N]
******************************************************
OK! Let's continue, we will set the IP address of clients by "first boot gets IP first" instead of fixed one!
******************************************************
What is the initial number do you want to use in the last set of digits in the IP (i.e. the initial value of d in the IP address a.b.c.d) for DRBL clients connected to this ethernet port eth2.
[1]
******************************************************
How many DRBL clients (PC for students) connected to DRBL server's ethernet network interface eth2 ?
Please enter the number:
[12] 1
******************************************************
The final number in the last set of digits in the clients' IP is "1".
We will set the IP address for the clients connected to DRBL server's ethernet network interface eth2 as: 10.111.1.1 - 10.111.1.1
Accept ? [Y/n]
******************************************************
OK! Let's continue...
******************************************************
The Layout for your DRBL environment:
******************************************************
NIC    NIC IP                    Clients
+-----------------------------+
|         DRBL SERVER         |
|                             |
|    +-- [eth0] 192.168.120.101 +- to WAN
|                             |
|    +-- [eth1] 192.168.200.254 +- to clients group 1 [ 2 clients, their IP
|                             |            from 192.168.200.1 - 192.168.200.2]
|    +-- [eth2] 10.111.1.254 +- to clients group 2 [ 1 clients, their IP
|                             |            from 10.111.1.1 - 10.111.1.1]
+-----------------------------+
******************************************************
Total clients: 3
******************************************************
------------------------------------------------------
Do you want to use Clonezilla box mode only ? If so, some functions about DRBL will be suppressed, and you will have an elegant mode to do clonezilla. Note! In this mode, the setting and config files of client will not be saved to the DRBL server! They just use once and will vanish after the machine shutdowns!
[y/N]
Clonezilla box mode is NOT set, you will have the full functions of DRBL box!
******************************************************
******************************************************
------------------------------------------------------
Do you want to use DRBL SSI (Single system image) mode ? If yes, the loading and necessary disk space of server will be lighter. NOTE! In this mode, (1) The client machine memory at least 256 MB. (2) The setting and config files of client will not be saved to the DRBL server! They just use once and will vanish after the machine shutdowns! Besides, if you modify any file in the template client (located in /tftpboot/nodes/), you have to run /opt/drbl/sbin/gen_ssi_files to create the template tarball in /tftpboot/node_root/drbl_ssi/.
[y/N]
DRBL SSI mode is NOT set, you will have the full functions of DRBL box!
******************************************************
------------------------------------------------------
If there is a local harddrive in your client machine,
do you want to create swap file in it so that client has more memory to use ? (This step will NOT destroy any data in that harddisk!)
[Y/n]
******************************************************
OK! We will try to create a swap file for your client if it has local ard drive !
------------------------------------------------------
What's the maximun size (Megabytes) for the swap file ?
We will try to allocate the size for you, but it's not enough, 60% of the free space will be used.
[128]
maxswapsize=128
******************************************************
------------------------------------------------------
Which mode do you want the clients to use after they boot ?
"1": Graphic mode (X window system) (default),
"2": Text mode.
[1]
The clients will enter graphic mode after booting.
******************************************************
------------------------------------------------------
Which mode do you want when client boots in graphic mode ?
0: normal login, 1: auto login, 2: timed login
[0]
The clients will wait for user to login when they boot.
******************************************************
------------------------------------------------------
Do you want to set the root's password for clients instead of using same root's password copied from server ? (For better security)
[y/N]
OK! Let's continue...
------------------------------------------------------
Do you want to set the pxelinux password for clients so that when client boots, a password must be entered to startup (For better security)
[y/N]
OK! Let's continue...
------------------------------------------------------
Do you want to set the boot prompt for clients ?
[Y/n]
How many 1/10 sec is the boot prompt timeout for clients ?
[70]
OK! Let's continue...
------------------------------------------------------
------------------------------------------------------
By using alias interface, every client can have 2 IPs,
one of them is private IP for clients connected to DRBL server, and the other is public IP for clients directly connected to WAN from switch!
Do you want to setup public IP for clients ?
[y/N]
------------------------------------------------------
Do you want to let DRBL clients have an option to run terminal mode ? i.e. you want to let that client run remote display (which will mostly use resources of server), say "Y" here.
Note!
1. If your server is not powerful, say "no" here.
2. By saying "yes" here, we will turn on xdmcp,
It is never a safe thing to turn on that.  Setting up /etc/hosts.allow and /etc/hosts.deny to only allow local access is another alternative but not the safest.
Firewalling port 177 is the safest if you wish to have xdmcp on.
Read the manual for more notes on the security of XDMCP.
Please set it by yourself!
3. If you say "yes" here, you might have to restart your desktop environment manager (gdm/kdm) later, remember to save your data before you close applications!
Do you want to let client has an option torun terminal mode ?
[y/N]
OK! Let's continue...
------------------------------------------------------
******************************************************

Checking the kernel config "/boot/config-2.6.16.13-4-default..."
The running kernel in the server supports NFS over TCP!
Note! If you change the running kernel in the server, and not sure wheither the kernel supports NFS over udp or tcp, you'd better to re-run "drblpush -i" again to avoid the client boots in failure!
Press Enter to continue... ------------------------------------------------------

The calculated NETWORK for eth1 is 192.168.200.0.
The calculated NETWORK for eth2 is 10.111.1.0.
******************************************************
******************************************************
We are now ready to deploy the files to system!
Do you want to continue ?
Warning! If you go on, your firewall rules will be overwritten during the setup!
The original rules will be backuped as iptables.drblsave in system config directory (/etc/sysconfig or /etc/default).
[Y/n] ******************************************************
OK! Let's do it!
------------------------------------------------------
Checking the necessary disk space... done!
Copying the config file to /etc/drbl... done!
Backup the original /etc/hosts as /etc/hosts.drblsave... done!
Generate the /etc/hosts for clients connected to eth1... eth2... done!
Cleaning the stale files of the diskless nodes if they exist... done!
*****************************************************.
*****************************************************.
The version number for your Linux: SUSE10.1
Keeping the old common root files if they exist...
Keeping old nodes if they exist...
Creating common root files... This might take several minutes........... done!
Update the kernel for client if necessary...
The DRBL client uses i586 kernel with version 2.6.16.13-4-default...
Trying to update the /tftpboot/node_root/lib/modules/2.6.16.13-4-default from server's /lib/modules/... This might take several minutes...
Found kernel modules in /lib/modules/2.6.16.13-4-default and its arch "i586" matches client's "i586"...
Syncing /lib/modules/2.6.16.13-4-default to client's common root...
Syncing /boot/*-2.6.16.13-4-default* to client's common root...
Generating the /tftpboot/node_root/lib/modules/2.6.16.13-4-default/modules.dep
Copying the directory /etc/ to clients common root /tftpboot/node_root...
Cleaning the ssh key file ssh_host_dsa_key copied from server... done!
Cleaning the ssh key file ssh_host_dsa_key.pub copied from server... done!
Cleaning the ssh key file ssh_host_key copied from server... done!
Cleaning the ssh key file ssh_host_key.pub copied from server... done!
Cleaning the ssh key file ssh_host_rsa_key copied from server... done!
Cleaning the ssh key file ssh_host_rsa_key.pub copied from server... done!
Turn off runlevel scripts in parallel in clients... done!
insserv: script name halt.local is not valid, skipped!
insserv: script name powerfail is not valid, skipped!
insserv: script name skeleton is not valid, skipped!
The startup services for DRBL client are:
portmap sshd xfs ypbind haldaemon dbus kbd acpid powersavesteven@opensuse101:~> sudo cp /opt/drbl/setup/yum-repos/drbl* /etc/yum.repos.d/
steven@opensuse101:~> sudo cp /opt/drbl/setup/*suse*10.1* /etc/yum.repos.d/
cp: cannot stat `/opt/drbl/setup/*suse*10.1*': No such file or directory
steven@opensuse101:~> sudo cp /opt/drbl/setup/yum-repos/*suse*10.1* /etc/yum.repos.d/
steven@opensuse101:~> sudo /opt/drbl/sbin/drblsrv
steven@opensuse101:~> cd
steven@opensuse101:~> rpm -q drbl
drbl-1.7.2-13
steven@opensuse101:~> cd drbl/redhat/script/
steven@opensuse101:~/drbl/redhat/script> cvs update
Password:
cvs update: Updating .
cvs update: Updating bin
cvs update: Updating conf
cvs update: Updating dag
cvs update: Updating debian_deb
cvs update: Updating debian_deb/debian
cvs update: Updating debian_repo
cvs update: Updating debian_repo/indices
cvs update: Updating doc
cvs update: Updating doc/examples
cvs update: Updating files
cvs update: Updating files/CO4
cvs update: Updating files/CO4.1
cvs update: Updating files/CO4.2
cvs update: Updating files/CO4.3
cvs update: Updating files/DBN-TU
cvs update: Updating files/DBN3.0
cvs update: Updating files/DBN3.1
cvs update: Updating files/FC1
cvs update: Updating files/FC2
cvs update: Updating files/FC3
cvs update: Updating files/FC4
cvs update: Updating files/FC5
cvs update: Updating files/MDK10.0
cvs update: Updating files/MDK10.1
cvs update: Updating files/MDK10.2
cvs update: Updating files/MDK9.2
cvs update: Updating files/MDV2005
cvs update: Updating files/MDV2006
cvs update: Updating files/MDV2006.0
cvs update: Updating files/RH8.0
cvs update: Updating files/RH9
cvs update: Updating files/SUSE10.0
cvs update: Updating files/SUSE10.1
cvs update: Updating files/SUSE9.3
cvs update: Updating files/default
cvs update: Updating files/misc
cvs update: Updating lang
cvs update: Updating lang/bash
cvs update: Updating lang/perl
cvs update: Updating log
cvs update: Updating nfs4
cvs update: Updating nfs4/mkpxeinitrd-net
cvs update: Updating nfs4/mkpxeinitrd-net/etc
cvs update: Updating pkg
cvs update: Updating pkg/memtest86+
cvs update: Updating pkg/syslinux
cvs update: Updating pki
cvs update: Updating pki/rpm-gpg
cvs update: Updating sbin
cvs update: Updating suse
cvs update: Updating test
cvs update: Updating themes
cvs update: Updating themes/release
cvs update: Updating themes/workzone
cvs update: Updating themes/workzone/DRBL
cvs update: Updating themes/workzone/circles
cvs update: Updating themes/workzone/drbl-gdm
cvs update: Updating themes/workzone/drbl-gdm.old
cvs update: Updating themes/workzone/guiss-gdm
cvs update: Updating themes/workzone/happygnome
cvs update: Updating themes/workzone/nchc.org.tw
cvs update: Updating themes/workzone/nchc.org.tw/old
cvs update: Updating thinclient
cvs update: Updating yum-repos
steven@opensuse101:~/drbl/redhat/script> sudo ./update_local_drbl-setup.sh
steven@opensuse101:~/drbl/redhat/script> cd
(reverse-i-search)`sudo /': sudo /opt/drbl/sbin/drblsrv -u
steven@opensuse101:~> sudo /opt/drbl/sbin/drblsrv-offline
steven@opensuse101:~> uname -r
2.6.16.13-4-default
steven@opensuse101:~> sudo /opt/drbl/sbin/drblsrv-offline -s 2.6.16.13-4-defaultLanguage | �y��| �� ?.
[0]: English
[1]: Chinese Traditional (Big5) - Taiwan | ���� (�j���X) - �x�W.
[2]: Chinese Traditional (UTF-8, Unicode) - Taiwan | 中� (����碼) - ��
[0]
Using kernel from this server...
*****************************************************.
These packages from SuSE 10.1 are necessary (Check your distribution package repository for more details):
dhcp-server tftp nfs-utils ypserv ypbind yp-tools mkinitrd xntp iptables wget dialog rsync parted tcpdump reiserfs bc grub dos2unix ddrescue curl lftp openssh insserv coreutils gzip bzip2 netcat file ethtool netdiag udev
*****************************************************.
These packages from DRBL project are necessary [Check http://drbl.sf.net (English) or http://drbl.nchc.org.tw (Chinese) for more details]:
mkpxeinitrd-net etherboot partimage freedos clonezilla drbl-ntfsprogs drbl-chntpw lzop udpcast
*****************************************************.
These packages are recommended to install if they exist in the distribution repository:
lvm2
*****************************************************.
Please press Ctrl-C to stop the program! Or Press "Enter" to continue...
Check if they are installed...
Checking dhcp-server... NOT installed!
You have to install dhcp-server!
If your Internet access is ok, use /opt/drbl/sbin/drblsrv instead of this script! It will automatically download and install necessary packages for you!
Program terminated!
steven@opensuse101:~> sudo yum install dhcp-server tftp nfs-utils ypserv ypbind yp-tools mkinitrd xntp iptables wget dialog rsync parted tcpdump reiserfs bc grub dos2unix ddrescue curl lftp openssh insserv coreutils gzip bzip2 netcat file ethtool netdiag udev mkpxeinitrd-net etherboot partimage freedos clonezilla drbl-ntfsprogs drbl-chntpw lzop udpcast lvm2
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package tcpdump.i586 0:3.9.4-12 set to be updated
---> Package etherboot.i386 0:5.4.2-1drbl set to be updated
---> Package lftp.i586 0:3.4.0-22 set to be updated
---> Package udpcast.i386 0:20060525-1drbl set to be updated
---> Package nfs-utils.i586 0:1.0.7-36 set to be updated
---> Package lzop.i386 0:1.02-0.5drbl set to be updated
---> Package ypserv.i586 0:2.19-11 set to be updated
---> Package ethtool.i586 0:3-13 set to be updated
---> Package clonezilla.i386 0:1.4.1-18 set to be updated
---> Package yp-tools.i586 0:2.9-14 set to be updated
---> Package ddrescue.i586 0:1.11_0.0.6-14 set to be updated
---> Downloading header for mkpxeinitrd-net to pack into transaction set.
mkpxeinitrd-net-1.1-14.i3 100% |=========================|  10 kB    00:00
---> Package mkpxeinitrd-net.i386 0:1.1-14 set to be updated
---> Downloading header for drbl-chntpw to pack into transaction set.
drbl-chntpw-0.0.20040818- 100% |=========================| 3.7 kB    00:00
---> Package drbl-chntpw.i386 0:0.0.20040818-6 set to be updated
---> Package freedos.i386 0:1.0-8drbl set to be updated
---> Package ypbind.i586 0:1.19.1-12 set to be updated
---> Package drbl-ntfsprogs.i386 0:1.13.1-3 set to be updated
---> Package dhcp-server.i586 0:3.0.3-21 set to be updated
---> Package partimage.i386 0:0.6.5_beta3-3drbl set to be updated
---> Package tftp.i586 0:0.42-6 set to be updated
---> Package dos2unix.i586 0:3.1-315 set to be updated
---> Package xntp.i586 0:4.2.0a-70.4 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
clonezilla              i386       1.4.1-18         drbl              657 k
ddrescue                i586       1.11_0.0.6-14    base               31 k
dhcp-server             i586       3.0.3-21         base              631 k
dos2unix                i586       3.1-315          base               12 k
drbl-chntpw             i386       0.0.20040818-6   drbl               47 k
drbl-ntfsprogs          i386       1.13.1-3         drbl              3.4 M
etherboot               i386       5.4.2-1drbl      drbl              5.3 M
ethtool                 i586       3-13             base               53 k
freedos                 i386       1.0-8drbl        drbl              113 k
lftp                    i586       3.4.0-22         base              660 k
lzop                    i386       1.02-0.5drbl     drbl              258 k
mkpxeinitrd-net         i386       1.1-14           drbl              786 k
nfs-utils               i586       1.0.7-36         base              232 k
partimage               i386       0.6.5_beta3-3drbl  drbl              1.1 M
tcpdump                 i586       3.9.4-12         base              291 k
tftp                    i586       0.42-6           base               39 k
udpcast                 i386       20060525-1drbl   drbl              538 k
xntp                    i586       4.2.0a-70.4      updates           400 k
yp-tools                i586       2.9-14           base               61 k
ypbind                  i586       1.19.1-12        base               49 k
ypserv                  i586       2.19-11          base              128 k

Transaction Summary
=============================================================================
Install     21 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 15 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): mkpxeinitrd-net-1. 100% |=========================| 786 kB    00:00
(2/2): drbl-chntpw-0.0.20 100% |=========================|  47 kB    00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: partimage                    ####################### [ 1/21]
Installing: yp-tools                     ####################### [ 2/21]
Installing: udpcast                      ####################### [ 3/21]
Installing: tcpdump                      ####################### [ 4/21]
Installing: etherboot                    ####################### [ 5/21]
Installing: lftp                         ####################### [ 6/21]
Installing: nfs-utils                    ####################### [ 7/21]
Updating etc/sysconfig/nfs...
Installing: lzop                         ####################### [ 8/21]
Installing: ypserv                       ####################### [ 9/21]
Updating etc/sysconfig/ypserv...
Installing: ethtool                      ####################### [10/21]
Installing: clonezilla                   ####################### [11/21]
Installing: ddrescue                     ####################### [12/21]
Installing: mkpxeinitrd-net              ####################### [13/21]
Installing: drbl-chntpw                  ####################### [14/21]
Installing: freedos                      ####################### [15/21]
Installing: ypbind                       ####################### [16/21]
Updating etc/sysconfig/ypbind...
Installing: drbl-ntfsprogs               ####################### [17/21]
Installing: dhcp-server                  ####################### [18/21]
Updating etc/sysconfig/dhcpd...
Updating etc/sysconfig/syslog...
Installing: tftp                         ####################### [19/21]
Installing: dos2unix                     ####################### [20/21]
Installing: xntp                         ####################### [21/21]
Updating etc/sysconfig/ntp...
Updating etc/sysconfig/syslog...

Installed: clonezilla.i386 0:1.4.1-18 ddrescue.i586 0:1.11_0.0.6-14 dhcp-server.i586 0:3.0.3-21 dos2unix.i586 0:3.1-315 drbl-chntpw.i386 0:0.0.20040818-6 drbl-ntfsprogs.i386 0:1.13.1-3 etherboot.i386 0:5.4.2-1drbl ethtool.i586 0:3-13 freedos.i386 0:1.0-8drbl lftp.i586 0:3.4.0-22 lzop.i386 0:1.02-0.5drbl mkpxeinitrd-net.i386 0:1.1-14 nfs-utils.i586 0:1.0.7-36 partimage.i386 0:0.6.5_beta3-3drbl tcpdump.i586 0:3.9.4-12 tftp.i586 0:0.42-6 udpcast.i386 0:20060525-1drbl xntp.i586 0:4.2.0a-70.4 yp-tools.i586 0:2.9-14 ypbind.i586 0:1.19.1-12 ypserv.i586 0:2.19-11
Complete!
steven@opensuse101:~> sudo /opt/drbl/sbin/drblsrv-offline -s 2.6.16.13-4-default                                                                                Language | �y��| �� ?.                                                          [0]: English                                                                    [1]: Chinese Traditional (Big5) - Taiwan | ���� (�j���X) - �x�W.
[2]: Chinese Traditional (UTF-8, Unicode) - Taiwan | 中� (����碼) - ��
[0]
Using kernel from this server...
*****************************************************.
These packages from SuSE 10.1 are necessary (Check your distribution package repository for more details):
dhcp-server tftp nfs-utils ypserv ypbind yp-tools mkinitrd xntp iptables wget dialog rsync parted tcpdump reiserfs bc grub dos2unix ddrescue curl lftp openssh insserv coreutils gzip bzip2 netcat file ethtool netdiag udev
*****************************************************.
These packages from DRBL project are necessary [Check http://drbl.sf.net (English) or http://drbl.nchc.org.tw (Chinese) for more details]:
mkpxeinitrd-net etherboot partimage freedos clonezilla drbl-ntfsprogs drbl-chntpw lzop udpcast
*****************************************************.
These packages are recommended to install if they exist in the distribution repository:
lvm2
*****************************************************.
Please press Ctrl-C to stop the program! Or Press "Enter" to continue...
Check if they are installed...
Checking dhcp-server... installed.
Checking tftp... installed.
Checking nfs-utils... installed.
Checking ypserv... installed.
Checking ypbind... installed.
Checking yp-tools... installed.
Checking mkinitrd... installed.
Checking xntp... installed.
Checking iptables... installed.
Checking wget... installed.
Checking dialog... installed.
Checking rsync... installed.
Checking parted... installed.
Checking tcpdump... installed.
Checking reiserfs... installed.
Checking bc... installed.
Checking grub... installed.
Checking dos2unix... installed.
Checking ddrescue... installed.
Checking curl... installed.
Checking lftp... installed.
Checking openssh... installed.
Checking insserv... installed.
Checking coreutils... installed.
Checking gzip... installed.
Checking bzip2... installed.
Checking netcat... installed.
Checking file... installed.
Checking ethtool... installed.
Checking netdiag... installed.
Checking mkpxeinitrd-net... installed.
Checking etherboot... installed.
Checking partimage... installed.
Checking freedos... installed.
Checking clonezilla... installed.
Checking drbl-ntfsprogs... installed.
Checking drbl-chntpw... installed.
Checking lzop... installed.
Checking udpcast... installed.
Checking udev... installed.
*****************************************************.
If your client CPU arch (say AMD K7) is different from that in the server (say Intel P4), you have to install the i586 packages in this server...
For Fedora: glibc, openssl, openssl-perl (By rpm -Uvh --force *.rpm)
For SuSE: glibc glibc-devel db db-devel db41 db41-devel (By rpm -Uvh --force *.rpm)
For Debian and Mandriva: Not necessary, since only single arch package in this distribution.
Please press Ctrl-C to stop the program! Or Press "Enter" to continue...
*****************************************************.
Install kernel for clients... ...
It will take several minutes to install this kernel, please be patient......done!
Generating modules.dep and map files for clients... done!
*****************************************************.
*****************************************************.
Creating the image files for PXE and Etherboot client, this will take a few minutes ...
The latest kernel for DRBL clients is 2.6.16.13-4-default
Running /opt/drbl/sbin/mknic-nbi --kernel 2.6.16.13-4-default --all --no-modules
Will client check DHCP server name is "drbl" or not: yes
The maximum times to try to get IP address for a client: 3
The pause time after network card is up: 0
Using the kernel modules from /tftpboot/node_root//lib/modules...
The selected kernel for DRBL clients is: 2.6.16.13-4-default
Creating the network boot initrd for PXE clients...
Use kernel modules from /tftpboot/node_root//lib/modules/2.6.16.13-4-default.
Creating the EXT2 initrd...
Finished!
Done!
*****************************************************.
Creating config file for PXE clients...
Copying pxelinux.0, menu.c32, chain.c32 and memdisk to /tftpboot/nbi_img...
Copying memtest86+ to /tftpboot/nbi_img...
Copying FreeDOS files to /tftpboot/nbi_img/...
Generating default pxelinux config (/tftpboot/nbi_img/pxelinux.cfg/default)...
Adding menus for DRBL, local boot, memtest86+, FreeDOS...
done!
*****************************************************.
Done!
steven@opensuse101:~> sudo /opt/drbl/sbin/drblpush -i
Language | �y��| �� ?
[0]: English
[1]: Chinese Traditional (Big5) - Taiwan | ���� (�j���X) - �x�W
[2]: Chinese Traditional (UTF-8, Unicode) - Taiwan | 中� (����碼) - ��
[0]
******************************************************
Hint! When a yes/no option is available, the default value is uppercase, Ex. (y/N), the default is "N", when you press "Enter", it will use "N". If you are not sure which one to choose, you can just press "Enter" key.
******************************************************
Searching the installed packages for DRBL server...This might take several minutes...
Finished searching the installed packages for DRBL server.
******************************************************
------------------------------------------------------
The interactive mode let you supply the information of your DRBL environment.
------------------------------------------------------
------------------------------------------------------
Please enter the client hostname prefix:
[opensuse101]
Set the client hostname prefix as opensuse101
------------------------------------------------------
Found private IP "192.168.120.101" in eth0 on your system!
Found private IP "192.168.200.254" in eth1 on your system!
Found private IP "10.111.1.254" in eth2 on your system!
Configured ethernet card(s) found in your system: eth0 eth1 eth2
------------------------------------------------------
We are unable to find the public IP address of this server,
Which ethernet port in this server is for public Internet accsess, not for DRBL connection ?
Available ethernet ports in this server:
eth0 (192.168.120.101), eth1 (192.168.200.254), eth2 (10.111.1.254),
[eth0]
The ethernet port you choose for the WAN connection: eth0
The ethernet port(s) for DRBL environment:  eth1 eth2
******************************************************
Found class A or B private IP "10.111.1.254" in eth2 for your DRBL system! If you want to use multicast clonezilla, you have to use private class C (192.168.*.*)! Otherwise the performance of multicast clone will be terribly worse!
******************************************************
Press Enter to continue...
******************************************************
******************************************************
Now we can collect the MAC address of clients!
If you want to let the DHCP service in DRBL server offer same IP address to client every time when client boot, and you never did this procedure, you should do it now!
If you already have those MAC addresses of clients, you can put them into different group files (These files number is the same number of networks cards for DRBL service). In this case, you can skip this step.
This step helps you to record the MAC addresses of clients, then divide them into different groups. It will save your time and reduce the typos.
The MAC addresses will be recorded turn by turn accroding to the boot of clients,
and they will be put into different files according to the network card in server, file name will be like macadr-eth1.txt, macadr-eth2.txt... You can find them in directory /etc/drbl.
Please boot the clients by order, make sure they boot from etherboot or PXE!
Do you want to collect them ?
[y/N]
******************************************************
OK! Let's continue...
******************************************************
Do you want to let the DHCP service in DRBL server offer same IP address to the client every time when client boots (If you want this function, you have to collect the MAC addresses of clients, and save them in file(s) (as in the previous procedure)). This is for the clients connected to DRBL server's ethernet network interface eth1 ?
[y/N]
******************************************************
OK! Let's continue, we will set the IP address of clients by "first boot gets IP first" instead of fixed one!
******************************************************
What is the initial number do you want to use in the last set of digits in the IP (i.e. the initial value of d in the IP address a.b.c.d) for DRBL clients connected to this ethernet port eth1.
[1]
******************************************************
How many DRBL clients (PC for students) connected to DRBL server's ethernet network interface eth1 ?
Please enter the number:
[12] 2
******************************************************
The final number in the last set of digits in the clients' IP is "2".
We will set the IP address for the clients connected to DRBL server's ethernet network interface eth1 as: 192.168.200.1 - 192.168.200.2
Accept ? [Y/n]
******************************************************
OK! Let's continue...
Do you want to let the DHCP service in DRBL server offer same IP address to the client every time when client boots (If you want this function, you have to collect the MAC addresses of clients, and save them in file(s) (as in the previous procedure)). This is for the clients connected to DRBL server's ethernet network interface eth2 ?
[y/N]
******************************************************
OK! Let's continue, we will set the IP address of clients by "first boot gets IP first" instead of fixed one!
******************************************************
What is the initial number do you want to use in the last set of digits in the IP (i.e. the initial value of d in the IP address a.b.c.d) for DRBL clients connected to this ethernet port eth2.
[1]
******************************************************
How many DRBL clients (PC for students) connected to DRBL server's ethernet network interface eth2 ?
Please enter the number:
[12] 1
******************************************************
The final number in the last set of digits in the clients' IP is "1".
We will set the IP address for the clients connected to DRBL server's ethernet network interface eth2 as: 10.111.1.1 - 10.111.1.1
Accept ? [Y/n]
******************************************************
OK! Let's continue...
******************************************************
The Layout for your DRBL environment:
******************************************************
NIC    NIC IP                    Clients
+-----------------------------+
|         DRBL SERVER         |
|                             |
|    +-- [eth0] 192.168.120.101 +- to WAN
|                             |
|    +-- [eth1] 192.168.200.254 +- to clients group 1 [ 2 clients, their IP
|                             |            from 192.168.200.1 - 192.168.200.2]
|    +-- [eth2] 10.111.1.254 +- to clients group 2 [ 1 clients, their IP
|                             |            from 10.111.1.1 - 10.111.1.1]
+-----------------------------+
******************************************************
Total clients: 3
******************************************************
------------------------------------------------------
Do you want to use Clonezilla box mode only ? If so, some functions about DRBL will be suppressed, and you will have an elegant mode to do clonezilla. Note! In this mode, the setting and config files of client will not be saved to the DRBL server! They just use once and will vanish after the machine shutdowns!
[y/N]
Clonezilla box mode is NOT set, you will have the full functions of DRBL box!
******************************************************
******************************************************
------------------------------------------------------
Do you want to use DRBL SSI (Single system image) mode ? If yes, the loading and necessary disk space of server will be lighter. NOTE! In this mode, (1) The client machine memory at least 256 MB. (2) The setting and config files of client will not be saved to the DRBL server! They just use once and will vanish after the machine shutdowns! Besides, if you modify any file in the template client (located in /tftpboot/nodes/), you have to run /opt/drbl/sbin/gen_ssi_files to create the template tarball in /tftpboot/node_root/drbl_ssi/.
[y/N]
DRBL SSI mode is NOT set, you will have the full functions of DRBL box!
******************************************************
------------------------------------------------------
If there is a local harddrive in your client machine,
do you want to create swap file in it so that client has more memory to use ? (This step will NOT destroy any data in that harddisk!)
[Y/n]
******************************************************
OK! We will try to create a swap file for your client if it has local ard drive !
------------------------------------------------------
What's the maximun size (Megabytes) for the swap file ?
We will try to allocate the size for you, but it's not enough, 60% of the free space will be used.
[128]
maxswapsize=128
******************************************************
------------------------------------------------------
Which mode do you want the clients to use after they boot ?
"1": Graphic mode (X window system) (default),
"2": Text mode.
[1]
The clients will enter graphic mode after booting.
******************************************************
------------------------------------------------------
Which mode do you want when client boots in graphic mode ?
0: normal login, 1: auto login, 2: timed login
[0]
The clients will wait for user to login when they boot.
******************************************************
------------------------------------------------------
Do you want to set the root's password for clients instead of using same root's password copied from server ? (For better security)
[y/N]
OK! Let's continue...
------------------------------------------------------
Do you want to set the pxelinux password for clients so that when client boots, a password must be entered to startup (For better security)
[y/N]
OK! Let's continue...
------------------------------------------------------
Do you want to set the boot prompt for clients ?
[Y/n]
How many 1/10 sec is the boot prompt timeout for clients ?
[70]
OK! Let's continue...
------------------------------------------------------
------------------------------------------------------
By using alias interface, every client can have 2 IPs,
one of them is private IP for clients connected to DRBL server, and the other is public IP for clients directly connected to WAN from switch!
Do you want to setup public IP for clients ?
[y/N]
------------------------------------------------------
Do you want to let DRBL clients have an option to run terminal mode ? i.e. you want to let that client run remote display (which will mostly use resources of server), say "Y" here.
Note!
1. If your server is not powerful, say "no" here.
2. By saying "yes" here, we will turn on xdmcp,
It is never a safe thing to turn on that.  Setting up /etc/hosts.allow and /etc/hosts.deny to only allow local access is another alternative but not the safest.
Firewalling port 177 is the safest if you wish to have xdmcp on.
Read the manual for more notes on the security of XDMCP.
Please set it by yourself!
3. If you say "yes" here, you might have to restart your desktop environment manager (gdm/kdm) later, remember to save your data before you close applications!
Do you want to let client has an option torun terminal mode ?
[y/N]
OK! Let's continue...
------------------------------------------------------
******************************************************

Checking the kernel config "/boot/config-2.6.16.13-4-default..."
The running kernel in the server supports NFS over TCP!
Note! If you change the running kernel in the server, and not sure wheither the kernel supports NFS over udp or tcp, you'd better to re-run "drblpush -i" again to avoid the client boots in failure!
Press Enter to continue... ------------------------------------------------------

The calculated NETWORK for eth1 is 192.168.200.0.
The calculated NETWORK for eth2 is 10.111.1.0.
******************************************************
******************************************************
We are now ready to deploy the files to system!
Do you want to continue ?
Warning! If you go on, your firewall rules will be overwritten during the setup!
The original rules will be backuped as iptables.drblsave in system config directory (/etc/sysconfig or /etc/default).
[Y/n] ******************************************************
OK! Let's do it!
------------------------------------------------------
Checking the necessary disk space... done!
Copying the config file to /etc/drbl... done!
Backup the original /etc/hosts as /etc/hosts.drblsave... done!
Generate the /etc/hosts for clients connected to eth1... eth2... done!
Cleaning the stale files of the diskless nodes if they exist... done!
*****************************************************.
*****************************************************.
The version number for your Linux: SUSE10.1
Keeping the old common root files if they exist...
Keeping old nodes if they exist...
Creating common root files... This might take several minutes........... done!
Update the kernel for client if necessary...
The DRBL client uses i586 kernel with version 2.6.16.13-4-default...
Trying to update the /tftpboot/node_root/lib/modules/2.6.16.13-4-default from server's /lib/modules/... This might take several minutes...
Found kernel modules in /lib/modules/2.6.16.13-4-default and its arch "i586" matches client's "i586"...
Syncing /lib/modules/2.6.16.13-4-default to client's common root...
Syncing /boot/*-2.6.16.13-4-default* to client's common root...
Generating the /tftpboot/node_root/lib/modules/2.6.16.13-4-default/modules.dep
Copying the directory /etc/ to clients common root /tftpboot/node_root...
Cleaning the ssh key file ssh_host_dsa_key copied from server... done!
Cleaning the ssh key file ssh_host_dsa_key.pub copied from server... done!
Cleaning the ssh key file ssh_host_key copied from server... done!
Cleaning the ssh key file ssh_host_key.pub copied from server... done!
Cleaning the ssh key file ssh_host_rsa_key copied from server... done!
Cleaning the ssh key file ssh_host_rsa_key.pub copied from server... done!
Turn off runlevel scripts in parallel in clients... done!
insserv: script name halt.local is not valid, skipped!
insserv: script name powerfail is not valid, skipped!
insserv: script name skeleton is not valid, skipped!
The startup services for DRBL client are:
portmap sshd xfs ypbind haldaemon dbus kbd acpid powersaved resmgr drblthincli mkswapfile arm-wol nfs xdm boot.udev firstboot
Using udev for clients... Deleting the accounts (except root) in the clients common root template... done!
Enabling the NIS client in the common root template... done!
Creating some necessary files in the clients common root template....... done!
Creating DRBL client: opensuse101101 192.168.200.1... The display manager we selected for your DRBL client is "kdm"...
Setting node 192.168.200.1 as normal_login... done!
Creating DRBL client: opensuse101102 192.168.200.2... The display manager we selected for your DRBL client is "kdm"...
Setting node 192.168.200.2 as normal_login... done!
Creating DRBL client: opensuse101201 10.111.1.1... The display manager we selected for your DRBL client is "kdm"...
Setting node 10.111.1.1 as normal_login... done!
Template client for DRBL SSI is 192.168.200.1
Using template host /tftpboot/nodes/192.168.200.1
Resetting files of /tftpboot/node_root/drbl_ssi for DRBL SSI... done!
Generating SSH host keys for client 192.168.200.1...done!
Generating the files for DRBL single system image template... etc... var... opt/drbl... Root's openssh public key... done!
Now set the necessary services for DRBL server - dhcp, tftp, nfs, and nis to be on when the machine start up.
Generating the NFS exports for DRBL clients...
Backup the original /etc/exports as /etc/exports.drblsave
Exporting to clients by IP address line-by-line...
Full DRBL mode, exporting client's directories etc, var, root...
The /etc/exports setting is ok now!
Now start the NAT service...
ip_forward is already on.
Now set the YP securenets...
Backup the original /var/yp/securenets as /var/yp/securenets.drblsave
The /var/yp/securenets setting is done!
Force to turn on dhcpd in this SuSE DRBL server...
Force to turn on xinetd in this SuSE DRBL server...
Force to turn on portmap in this SuSE DRBL server...
Force to turn on ypserv in this SuSE DRBL server...
Force to turn on ypbind in this SuSE DRBL server...
Force to turn on yppasswdd in this SuSE DRBL server...
Force to turn on ypxfrd in this SuSE DRBL server...
Force to turn on nfs in this SuSE DRBL server...
Force to turn on nfsserver in this SuSE DRBL server...
Force to turn on SuSEfirewall2_init in this SuSE DRBL server...
Force to turn on SuSEfirewall2_setup in this SuSE DRBL server...
Update YP...
Turn off the DRBL SSI mode in pxelinux config...
Setting drbl_ssi_mode="no" in /etc/drbl/drbl_deploy.conf and /etc/drbl/drblpush.conf... done!
done!
Now start the service:  dhcpd xinetd portmap ypserv ypbind yppasswdd ypxfrd nfsserver SuSEfirewall2_init SuSEfirewall2_setup
Shutting down DHCP server                                            done
Starting DHCP server [chroot]                                        done
Shutting down xinetd:                                                done
Starting INET services. (xinetd)                                     done
Shutting down RPC portmap daemon                                     done
Starting RPC portmap daemon                                          done
Shutting down ypserv                                                 done
Starting ypserv                                                      done
Shutting down ypbind                                                 done
Starting ypbind                                                      done
Shutting down rpc.yppasswdd                                          done
Starting rpc.yppasswdd                                               done
Shutting down rpc.ypxfrd                                             done
Starting rpc.ypxfrd                                                  done
Shutting down kernel based NFS server                                done
Starting kernel based NFS server                                     done
Starting Firewall Initialization (phase 1 of 2) SuSEfirewall2: Warning: ip6tables does not support state matching. Extended IPv6 support disabled.
done
Starting Firewall Initialization (phase 2 of 2) SuSEfirewall2: Warning: ip6tables does not support state matching. Extended IPv6 support disabled.
done
ip_forward is already on.
The display manager in this DRBL server is "kdm"
The KDM remote access in the DRBL server is already off!
Disable the terminal mode for DRBL clients ...
Set system config DRBL_THIN_CLIENT=off for client 10.111.1.1
Set system config DRBL_THIN_CLIENT=off for client 192.168.200.1
Set system config DRBL_THIN_CLIENT=off for client 192.168.200.2
done !
Clean all the previous saved config file if they exist...done!
Turn on the boot prompt for PXE client...done!
Turn off the thin client option in PXE boot menu...done!
Warning! You already set the /etc/hosts.allow or /etc/hosts.deny!
You must MAKE SURE these clients:
10.111.1.1 192.168.200.1 192.168.200.2
can access this DRBL server!
Otherwise, your client will fail to boot, and error messages will like:
TFTP open timeout
TFTP.......
or
mount: RPC: Unable to receive; errno = Connection refused
*****************************************************.
Enjoy DRBL!!!
http://drbl.nchc.org.tw; http://drbl.sf.net
NCHC Free Software Labs, Taiwan. http://free.nchc.org.tw
*****************************************************.
If you like, you can reboot the DRBL server now to make sure everything is ready...(This is not necessary, just an option.).
*****************************************************.
DRBL server is ready! Now set the client machines to boot from PXE or Etherboot, then turn on them (Refer to http://drbl.sourceforge.net for more details).
Note! If you use Etherboot in your client machine, version 5.4.0 or newer is required!!!.
