# http://www.phys.ethz.ch/~franklin/Projects/dphys2/setup-dphys2 # - configuration for Makefile, makeroot, makerescue and dbootstrap # some fields transfered by dbootstrap into lilo.conf and debconf-preload # copyright ETH Zuerich Physics Departement, # use under either BSD or GPL license # author Neil Franklin, last modification 2004.02.12 # *** WARNING *** # this file should be chmod 600 because it contains LILO and root password! # ------ structure of this file is: # first CONF_* various site or subnet dependant user config variables # then DEBUG_* various debugging settings # last SYS_* various system internal values # ------ CONF_* various site or subnet dependant user config variables # --- server to get our original Debian files from and later apt-get from # this results in http://${CONF_DEBSERVER}/${CONF_DEBDIR}/* being used #CONF_DEBSERVER=ftp.debian.org #CONF_DEBDIR=debian # we use our own local mirror here CONF_DEBSERVER=debian.ethz.ch CONF_DEBDIR=mirror/debian # --- which kernel images and modules drivers archive version to get # default standard 2.2 kernel, or select 2.4 kernel # if Debian kernel selects whwther to use standard 2.2.20 or bf24 2.4.18 # if using own kernel, this determines which Debian .config to use as base # so set this allways if using or making an 2.4 kernel instead of 2.2 #CONF_KERNEL_24=yes # rest in this section only if making own kernel stuff # or use this to select an own (2.2 or 2.4) kernel source to self compile #CONF_KERNEL_OWN=linux-2.2.25.tar.gz #CONF_KERNEL_OWN=linux-2.4.24.tar.bz2 # and take the kernel .config to use from here # if not set, use CONF_KERNEL_24 for which Debian .config File to extract #CONF_KERNEL_CONFIG=config # --- uploading and later fetching our own rescue image and drivers archive # place the compiled rescue floppy image and drivers archive here # upload via NFS to our server structure, base directory for dists/woody/... #CONF_UPLOAD_NFSBASE=/pub/debian-local # use this user to upload (needed if NFS with rootsquash) #CONF_UPLOAD_USER=franklin # where the machines being installed can fetch our rescue and drivers from #CONF_OWNSERVER_KERNEL=debian.ethz.ch #CONF_OWNDIR_KERNEL=pub/debian-local # --- "Configure the Keyboard" menu # what keyboard layout you use # filename is relative to /usr/share/keymaps/ and without the .kmap.gz ending #CONF_KEYBD=i386/qwerty/us CONF_KEYBD=i386/qwertz/sg-latin1 # --- "Partition a Hard Disk" menu # install floppy where we will copy our generated replacement root image to # this should be the drive on the install generating system, not on target(s) # most people can leave this as it is CONF_INST_FLOPPY=/dev/fd0 # where we want our final system on the target system to be installed to # if empty, try to auto-select, use /dev/hda if existant, else /dev/sda # most people can leave this as it is #CONF_DISK= # if above fails, set an specific disk by hand # you will need CONF_DISK=/dev/hd or sd, usually = a #CONF_DISK=/dev/hda #CONF_DISK=/dev/sda # use this to force DMA usage on some stupid hd disk drives #CONF_DISK_IDEDMA=1 # dpkg install the dphys2-swapfile package to manage an swapfile # automatically generates/activates/resizes an swapfile, default 2*RAM size # and also deactivates/deletes it at the approriate time # comment out if you do not want this (only for swap partition fanatics) # it is possible to use both partition and file CONF_SWAP_FILE=yes # amount of disk to use for the swap partition, if wanted, in MBytes # commented out or set to 0, will make no partition and disable its use # this defaults to off, because we use swap files around here # they are more flexible, resizable, and not relevantly slower #CONF_SWAP_SIZE=512 # ---"Configure Device Driver Modules" menu # what net drivers we want included in our install root floppy drivers archive # net is needed to install from, to fetch files # this is our site-specific list of card types, you will need to change this # what we need for Debian standard (2.2.20) kernel, our cards CONF_MODULESNET="3c59x.o eepro100.o rtl8139.o tulip.o" # what we need for Debien bf2.4 (2.4.18) kernel, RTL rename, tulip directory #CONF_MODULESNET="3c59x.o eepro100.o 8139too.o tulip" # what we need for own kernels (2.4.*), mii not compiled in kernel #CONF_MODULESNET="3c59x.o eepro100.o 8139too.o tulip mii.o" # --- "Configure the Network" menu # what network we are using, most people can leave this as it is CONF_IF=eth0 # use DHCP to get IP-addr/netmask/network/broadcast/gateway/nameservers # to use static IP config, comment this line out CONF_DHCP=yes # rest of this section, only if *no* DHCP is being used # site specific network stuff CONF_DOMAIN=ethz.ch # if you do not have 3 name servers just comment unused lines out CONF_NAMESERVER1=129.132.250.2 CONF_NAMESERVER2=129.132.98.12 CONF_NAMESERVER3=129.132.250.220 #CONF_NAMESERVER4= # subnet specific network stuff # for each subnet generate its own(!) replacement root floppy # you are advised to write on the floppy "replacement root /" # we are generating here "replacement root 129.132.189.0/25" CONF_NETMASK=255.255.255.0 CONF_NETWORK=129.132.189.0 CONF_GATEWAY=129.132.189.1 CONF_BROADCAST=129.132.189.255 # --- "Make System Bootable" menu # *** WARNING *** # this file should be chmod 600 because it contains LILO and root password! # ensure it stays that way when you edit it! # if you don't want an LILO password, comment out the next line # of course this is _not_ the password we actually use, not even similar :-) #CONF_PASSWORD_LILO= CONF_PASSWORD_LILO=secret # --- debconf preloading for 2nd boot stage # this replaces the various config menues after rebooting # the 2 digit numbers are from the scripts run by base-config # - 15tzconfig - timezone stuff # where we are CONF_TIMEZOME_AREA=Europe CONF_TIMEZOME_PLACE=Zurich # - 20passwd - password setup stuff # security as we like it CONF_PASSWORD_MD5=true CONF_PASSWORD_SHADOW=true # we assume that many will use twice the same password CONF_PASSWORD_ROOT=${CONF_PASSWORD_LILO} #CONF_PASSWORD_ROOT=secret # - 25pcmcia - PCMCIA remove stuff # remove PCMCIA support if not a notebook # change this to CONF_REMOVE_PCMCIA=false if you want to keep it CONF_PCMCIA_REMOVE=true # - 40apt-setup - apt config stuff # what additional package types we want to use, main is allways in # use packages that are not strictly by the GPL religion CONF_USE_CONTRIB=true CONF_USE_NON_FREE=true # use new packages being added to woody, for next dot release CONF_USE_PROPOSED=true # set non-US and security (if wanted) and local (if exising) package servers # add non-US if wanted #CONF_DEBSERVER_NON_US=non-us.debian.org #CONF_DEBDIR_NON_US=debian-non-US # we use our own local mirror here, the same server as for normal packages # works for exeryone, so save us time reconfiguring for tests CONF_DEBSERVER_NON_US=${CONF_DEBSERVER} CONF_DEBDIR_NON_US=mirror/debian-non-US # add security if wanted #CONF_DEBSERVER_SECURITY=security.debian.org #CONF_DEBDIR_SECURITY="" CONF_DEBSERVER_SECURITY=${CONF_DEBSERVER} CONF_DEBDIR_SECURITY=mirror/debian-security # if you have an local packages server, uncomment these 2 lines # does not work for exeryone, so set to safe value, disabled #CONF_DEBSERVER_LOCAL=${CONF_DEBSERVER} #CONF_DEBDIR_LOCAL=pub/debian-local # --- fix up debconf for no questions # this is not part of the normal Debian installation process # prevent questions while installing packages from woody-proposed-updates # this is also then active later when installing random stuff # install everything with maintainers defaults, then fix up with own scripts CONF_SILENCE_DEBCONF=yes # --- run a user script (or binary) at end of first install stage # this is not part of the normal Debian installation process # automatically run this script (or binary) #CONF_ENDFIRSTRUN_SCRIPT=endfirstrun # ------ DEBUG_*, various debugging settings # set this to sleep after displaying each steps header, number is in seconds #DEBUG_SLEEP=2 # set this to output debug state info and wait after each step #DEBUG_WAIT_STEP=yes # set this to have make leave unpacked root owned dirs in work directory #DEBUG_LEAVE_UNPACKED=yes # set this so that install will wait before deleting debconf-preload #DEBUG_WAIT_DEL_PRELOAD=yes # set this so that install will wait before deleting e f r user script #DEBUG_WAIT_DEL_EFR_SCRIPT=yes # set this so that install will wait before reboot at end of first stage #DEBUG_WAIT_ENDFIRST=yes # whether to leave our generated base-config scripts, or tidy them up #DEBUG_LEAVE_BC_SCRIPTS=yes # ------ SYS_*, various system internal values # so that things are easy to change later # *** you can ignore everything below here in normal operation *** # --- set where we will be working while creating root floppy # where we want to do all the kernel compile / rescue modify stuff # this must be a directory that root can access (not a root-squash NFS mount) # and there should be about 50MByte free space in its filesystem SYS_RESCWORK=./rescue # where we want to do all the root disk unpack/modify/pack stuff # this must be a directory that root can access (not a root-squash NFS mount) # and there should be about 50MByte free space in its filesystem SYS_ROOTWORK=./root # --- what files we will base our work on # note: this has only been designed for and tested with i386 # others at own risk, I expect them to fail badly SYS_ARCH=i386 # paths for files we fetch from server SYS_DEBDISKS=dists/woody/main/disks-${SYS_ARCH}/current # for standard 2.2(.20) kernel SYS_DEBRESCUE=${SYS_DEBDISKS}/images-1.44/rescue.bin SYS_DEBROOT=${SYS_DEBDISKS}/images-1.44/root.bin SYS_DEBDRIVERS=${SYS_DEBDISKS}/drivers.tgz # for bf2.4 (2.4.18) kernel SYS_DEBRESCUE_BF24=${SYS_DEBDISKS}/images-1.44/bf2.4/rescue.bin SYS_DEBROOT_BF24=${SYS_DEBDISKS}/images-1.44/bf2.4/root.bin SYS_DEBDRIVERS_BF24=${SYS_DEBDISKS}/bf2.4/drivers.tgz # --- where we will place our own generated rescue/drivers to work further with # paths for files we fetch from our server SYS_VERSION=custom SYS_OWNDISKS=dists/woody/local/main/disks-${SYS_ARCH}/${SYS_VERSION} # for our own kernel SYS_OWNRESCUE=${SYS_OWNDISKS}/images-1.44/rescue-dphys.bin SYS_OWNROOT=${SYS_OWNDISKS}/images-1.44/root-dphys.bin SYS_OWNDRIVERS=${SYS_OWNDISKS}/drivers-dphys.tgz # --- handling modules # standard misc drivers we need included in our install root drivers archive # these are only used for debians 2.2(.20) kernel, and lookalikes # no clue why debian modularised these anyway, as allways needed and loaded # not used on 2.4 based systems, as no misc modules dir SYS_MODULESMISC="unix.o af_packet.o" # --- putting together our root disk # - where we will place the drivers archive within root floppy SYS_DRIVERSTGZ_ON_FLOPPY=/drivers-dphys.tgz SYS_DRIVERSTGZ_ON_TARGET=/drivers.tgz # - where we will place our LILO template SYS_LILOCONF_ON_FLOPPY=/lilo.conf # --- modifying debconf for 2nd stage without dialogs # where we will place our modifier for debconf for 2nd stage without dialogs SYS_PRELOAD_ON_FLOPPY=/debconf-preload SYS_PRELOAD_ON_TARGET=/debconf-preload # where we shall modify SYS_DEBCONF_DB=/var/cache/debconf/config.dat # what subdirectories we use as woody/CONF_DEBSUBDIR_* SYS_DEBSUBDIR_NON_US=non-US SYS_DEBSUBDIR_SECURITY=updates SYS_DEBSUBDIR_LOCAL=local # --- package to use swapfile # where we will place our .deb file for swapfile # only directory, as file name needs to stay unchanged, .deb package name SYS_SWAPDEB_ON_FLOPPY=/ SYS_SWAPDEB_ON_TARGET=/ # --- running an user command at the end of first install stage # where we will place our user command to run SYS_ENDFIRSTRUN_ON_FLOPPY=/${CONF_ENDFIRSTRUN_SCRIPT} SYS_ENDFIRSTRUN_ON_TARGET=/${CONF_ENDFIRSTRUN_SCRIPT}