[rh9]~/drbl-desktop-20040112>./drblcli_desktop.pl -i
------------------------------------------------------
The interactive mode let you supply the information of your DRBL environment.
------------------------------------------------------
------------------------------------------------------
DOMAIN is unset, please enter DOMAIN now:
[drbl.sf.net]
Set DOMAIN as drbl.sf.net
------------------------------------------------------
Please enter the client hostname prefix:
[rh9]
Set the client hostname prefix as rh9
------------------------------------------------------
Found private IP "192.168.120.109" in eth0 on your system!
Found private IP "192.168.121.254" in eth1 on your system!
Found private IP "192.168.122.254" in eth2 on your system!
Configured ethernet card(s) found in your system: eth0 eth1 eth2
------------------------------------------------------
Only 1 IP address for eth0, we will not use eth0 for DRBL environment!
The ethernet port(s) for DRBL environment: eth1 eth2
******************************************************
******************************************************
Now we can collect the MAC address of clients!
If you want to fix the IP address of client, you shoud do it now!
The MAC address will be recorded turn by turn accroding to the boot of clients.
Please boot the clients by order, make sure them boot from etherboot or PXE!
Do you want to collect them ? Say "yes" or "y" to continue, or any other letter to quit!
[y/N]
******************************************************
Ok, let's continue...
******************************************************
Do you want to fix the IP address of client connected to eth1 by giving MAC address ?
[y/N]
******************************************************
Ok! Let's continue, we will set the IP address of clients by "first boot gets IP first"!
How many DRBL clients (PC for students) connected to eth1 ?
Please enter the number (Example: 12):5
******************************************************
The value you set is "5".
We will set the IP address for the clients connected to eth1 as: 192.168.121.1 - 192.168.121.5
Do you want to continue ? Say "n" or "N" to re-enter it, or any other letter to accept this value and go on!
[Y/n]
******************************************************
Ok! Let's continue!
Do you want to fix the IP address of client connected to eth2 by giving MAC address ?
[y/N]
******************************************************
Ok! Let's continue, we will set the IP address of clients by "first boot gets IP first"!
How many DRBL clients (PC for students) connected to eth2 ?
Please enter the number (Example: 12):5
******************************************************
The value you set is "5".
We will set the IP address for the clients connected to eth2 as: 192.168.122.1 - 192.168.122.5
Do you want to continue ? Say "n" or "N" to re-enter it, or any other letter to accept this value and go on!
[Y/n]
******************************************************
Ok! Let's continue!
******************************************************
The Layout for your DRBL environment:
******************************************************
          NIC    NIC IP                    Clients
+-----------------------------+
|         DRBL SERVER         |
|                             |
|    +-- [eth0] 192.168.120.109 +- to WAN
|                             |
|    +-- [eth1] 192.168.121.254 +- to clients group 1 [ 5 clients, their IP
|                             |            from 192.168.121.1 - 192.168.121.5]
|    +-- [eth2] 192.168.122.254 +- to clients group 2 [ 5 clients, their IP
|                             |            from 192.168.122.1 - 192.168.122.5]
+-----------------------------+
******************************************************
Total clients: 10
------------------------------------------------------------
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 ?
Say "yes" or "y" to set them, or any other letter to continue!
[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 (G/t) ?
"g" or "G" for Graphic mode (X window system), this is default,
"t" or "T" for Text mode.
[G/t]
The clients will use graphic mode when they boot.
******************************************************
------------------------------------------------------
Which mode do you want when client boots in graphic mode ?
login (0), auto login (1) or timed login (2)
[0]
The clients will wait for user to login gdm when they boot.
******************************************************
******************************************************
The RPCNFSDCOUNT in /etc/sysconfig/nfs is set as 15 (1.5*Total_Client_No).
------------------------------------------------------
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 connected to WAN!
Do you want to setup public IP for clients ? Say "yes" or "y" to set them, or any other letter to continue!
[y/N]
******************************************************
Searching the installed packages for DRBL server...This might take several minutes...
Finished searching the installed packages for DRBL server.
******************************************************
******************************************************
We are now ready to deploy the files to system!
Do you want to continue ? Say "yes" or "y" to continue, or any other letter to quit!
Warning! If you go on, your firewall rules will be overwritten during the setup!
The original rules will be backuped as /etc/sysconfig/iptables.drblsave.
[Y/n]
******************************************************
Ok! Let's do it!
You are not root,
please enter root's password to deploy them...
Password:

******************************************************
******************************************************
The version number for your Redhat Linux: 9
Cleaning old common root files if they exist...  done !
Creating common root files... This might take several minutes..............The GDM login option: login...Setting client as normal login...
It's VMWare as DRBL server ..., If you want to use X Window, make sure you already installed VMWare tools.
Deleting the accounts (except root) in the DRBL common root template...done!
Enabling the NIS client for this DRBL common root template...done!
Creating some necessary files in the DRBL common root template......done!
Creating DRBL client: rh9-1-001 192.168.121.1... done !!!
Creating DRBL client: rh9-1-002 192.168.121.2... done !!!
Creating DRBL client: rh9-1-003 192.168.121.3... done !!!
Creating DRBL client: rh9-1-004 192.168.121.4... done !!!
Creating DRBL client: rh9-1-005 192.168.121.5... done !!!
Creating DRBL client: rh9-2-001 192.168.122.1... done !!!
Creating DRBL client: rh9-2-002 192.168.122.2... done !!!
Creating DRBL client: rh9-2-003 192.168.122.3... done !!!
Creating DRBL client: rh9-2-004 192.168.122.4... done !!!
Creating DRBL client: rh9-2-005 192.168.122.5... done !!!
Now set the services dhcp, xinetd, portmap, nis, nfs, iptables to be on when the machine start up.
Warning! /etc/sysconfig/iptables is renamed as iptables.drblsave!
Your firewall rules is overwritten!!! We set the NAT for clients with IP address 192.168.x.x to access this DRBL server!
Flushing all chains:                                       [  OK  ]
Removing user defined chains:                              [  OK  ]
Resetting built-in chains to the default ACCEPT policy:    [  OK  ]
Saving current rules to /etc/sysconfig/iptables:           [  OK  ]
Update YP...
Now start the service dhcpd, xinetd, portmap, iptables, ypserv, ypbind, yppasswdd, ypxfrd, nfs, iptables!
Starting dhcpd:                                            [  OK  ]
Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]
Stopping portmapper:                                       [  OK  ]
Starting portmapper:                                       [  OK  ]
Flushing all current rules and user defined chains:        [  OK  ]
Clearing all current rules and user defined chains:        [  OK  ]
Applying iptables firewall rules:                          [  OK  ]
Starting YP server services:                               [  OK  ]
Binding to the NIS domain:                                 [  OK  ]
Listening for an NIS domain server.
Starting YP passwd service:                                [  OK  ]
Starting YP map server:                                    [  OK  ]
Shutting down NFS mountd:                                  [  OK  ]
Shutting down NFS daemon:                                  [  OK  ]
Shutting down NFS quotas:                                  [  OK  ]
Shutting down NFS services:                                [  OK  ]
Starting NFS services:                                     [  OK  ]
Starting NFS quotas:                                       [  OK  ]
Starting NFS daemon:                                       [  OK  ]
Starting NFS mountd:                                       [  OK  ]
Stopping NFS statd:                                        [  OK  ]
Starting NFS statd:                                        [  OK  ]
Turn on ip_forward now.
Calibrating time now...
Warning! You already set the /etc/hosts.allow or /etc/hosts.deny!
You must MAKE SURE the clients can access this DRBL server!
If not, your client will fail to boot, and error messages will like:
mount: RPC: Unable to receive; errno = Connection refused

--------------NCHC OPENSOURCE TASKFORCE---------------
http://opensource.nchc.org.tw
Thank you for choosing DRBL Solution.
If you have any question, please feel free to email to
ostf@opensource.nchc.org.tw, c00hkl00@nchc.org.tw
or steven@nchc.org.tw.
-------------------Thank You--------------------------

******************************************************
Now syncing - flush filesystem buffers...
******************************************************
If you like, you can reboot the DRBL server now to make sure everything is ready...(This is not necessary, just an option.)
