home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Enter 1999 June / enter_06_1999.iso / doc / sample.ks < prev   
Text File  |  1998-10-05  |  12KB  |  319 lines

  1. # This is a sample kickstart file.  The values here probably won't be what
  2. # you want them to be for your install, and besides, they're all commented
  3. # out, so use this as a *template* for your kickstart file.
  4. #
  5. # H O W   T O   S E T   U P   A   K I C K S T A R T   I N S T A L L
  6. # (Note: Kickstart installs are not available for Red Hat Linux/SPARC.)
  7. #
  8. # To begin a kickstart install, you must include the "ks" option on the Red
  9. # Hat Linux boot diskette's boot command.  You can read the kickstart file
  10. # from diskette by using the boot command "linux ks=floppy" (For Red Hat
  11. # Linux/Intel only).  In this case, the kickstart file will be read from
  12. # the diskette.  It must be called ks.cfg, and must reside in the
  13. # diskette's root directory.
  14. # If you want to do a kickstart'ed NFS install, you must have a bootp
  15. # server on your network, and it must have an entry for the machine you're
  16. # installing.  The bootp server will be used to give the installing machine
  17. # its network information.  It can also provide the location of the
  18. # machine's kickstart file.  If this is done, an NFS mount on the kickstart
  19. # file's path is attempted, and the file is copied from there.
  20. # The file, by default, is called <ip-addr>-kickstart, in which <ip-addr>
  21. # is the machine's IP address in "dotted decimal" notation.
  22. # If the filename obtained from bootp ends with "/", it is interpreted as a
  23. # path.  In this case, the default kickstart filename is used, relative to
  24. # the given path.
  25. #
  26. # If the filename obtained from bootp doesn't end with "/", then it is
  27. # interpreted as the name of the kickstart file, including the specified
  28. # path.
  29. # If no filename is given, the default filename is used, and /kickstart/ is
  30. # used as the path.
  31. # L A N G U A G E   S P E C I F I C A T I O N (Required for upgrade)
  32. #
  33. # You must specify a language to be used for every kickstart install.  To
  34. # specify a language, simply use the two-letter ISO language code, such as
  35. # "en" for English, "de" for German, "fr" for French, etc.
  36. #
  37. # Example:
  38. #lang en
  39. #
  40. # N E T W O R K   C O N F I G U R A T I O N
  41. #
  42. # You may specify network configuration via one of three different methods:
  43. #
  44. # DHCP -- Use a dhcp server to obtain network configuration information.
  45. # BOOTP -- Use a bootp server to obtain network configuration information.
  46. # STATIC -- Use the network configuration information contained in the
  47. # kickstart file itself.
  48. #
  49. # Example:
  50. #network --bootproto dhcp
  51. #
  52. # For static network configuration, the following options are used:
  53. #
  54. # --ip <ipaddr> -- Specify the desired IP address.
  55. # --netmask <mask> -- Specify the desired network mask.
  56. # --gateway <gwaddr> -- Specify the desired gateway address.
  57. # --nameserver <nsaddr> -- Specify the desired nameserver address.
  58. #
  59. # Example:
  60. #network --bootproto static --ip 10.0.2.15 --netmask 255.255.255.0 --gateway 10.0.2.254 --nameserver 10.0.2.1
  61. # (Obviously, you'll want to change the addresses and netmask...)
  62. # (Note that this line may *not* be wrapped using the ol' backslash; it
  63. # must be strung out as one long line.  And no, you can't specify more than
  64. # one nameserver...)
  65. #
  66. # I N S T A L L A T I O N   M E T H O D (Required for upgrade)
  67. #
  68. # Kickstart installs can be performed using one of two methods:
  69. #
  70. # NFS -- Using an NFS server to obtain the distribution files.
  71. # CDROM -- Using a CDROM to obtain the distribution files.
  72. #
  73. # For NFS installs, use the --server option to specify the NFS server.
  74. # Note that it defaults to the server specified in the bootp response, or
  75. # to the bootp server itself, if the bootp response doesn't specify a
  76. # server.  The --dir option is used to point to the top-level directory
  77. # containing the distribution files.
  78. #
  79. # Example:
  80. #nfs --server porkchop.redhat.com --dir /mnt/test/i386
  81. #
  82. # For CDROM installs, just say, "cdrom".
  83. #
  84. # Example:
  85. #cdrom
  86. #
  87. # D E V I C E   S P E C I F I C A T I O N  (Required for upgrade)
  88. #
  89. # In this section, you can specify any device information required.
  90. # PCI cards can normally be autoprobed, so they don't need to be specified
  91. # here.
  92. #
  93. # To specify a device, start with the "device" keyword, followed by the
  94. # type of device:
  95. #
  96. # ethernet -- for ethernet cards.
  97. # scsi -- for scsi cards.
  98. # cdrom -- for non-scsi, non-ide cdrom cards (eg., sound cards with
  99. # proprietary CDROM interfaces).
  100. #
  101. # Optional parameters that are required by a device can also be specified
  102. # by using the --opts option.  Enclose the paratmeters in quotes after
  103. # --opts.
  104. #
  105. # Note that you can specify multiple types of devices.  For example, if you
  106. # know the machines you'll be kickstart-installing have either an Adaptec
  107. # 1542 or a Buslogic card, you can enter both in the kickstart file.  But
  108. # be aware that the install uses only the first card found, so order the
  109. # device entries appropriately...
  110. #
  111. # Example:
  112. #device ethernet 3c509 --opts "io=0x330, irq=7"
  113. #
  114. # K E Y M A P   S P E C I F I C A T I O N (Required for upgrade)
  115. # Next, specify the keymap to use with your keyboard.  The available keymap
  116. # types are listed in the kbdconfig program.
  117. #
  118. # Example:
  119. #keyboard us
  120. #
  121. # P A R T I T I O N   S P E C I F I C A T I O N
  122. # This is where you specify the partitions to be used in the install.
  123. # There are several sections that we'll cover in order.
  124. # If you are doing a kickstart install on a new drive, the partition table
  125. # will likely corrupt.  The zerombr command can be used to clear the
  126. # partition table if it is corrupt; otherwise it will take no action.  In
  127. # order to clear the partition table, follow the zerombr command with
  128. # "yes"; if followed by "no", no action will be taken.
  129. #
  130. # Example:
  131. #zerombr yes
  132. #
  133. # The clearpart command is used to control which partitions are to be wiped
  134. # from all drives.  Follow the clearpart command with "--all" to remove all
  135. # partitions from all drives, or "--linux" to remove all Linux-related
  136. # partitions (ie., partitions of type "Linux native" and "Linux swap") from
  137. # all drives.
  138. #
  139. # Example:
  140. #clearpart --linux
  141. # Next, specify the partitions that you'd like to create.  Partitions are
  142. # only created from free space available on the system.  Enter one
  143. # partition per line using the following format:
  144. #
  145. # part <mntpt> --size <size in megs> [--grow] [--maxsize <size in megs>]
  146. #
  147. # Where <mntpt> is the desired mount point for the partition (or "swap" for
  148. # swap partitions).  Add "--grow" to create a partition that will grow to
  149. # fill all remaining space on the drive.  To limit the affect of --grow,
  150. # you can add "--maxsize" followed by a size specification.
  151. # Examples:
  152. #part / --size 250
  153. #part swap --size 32
  154. #part /usr --size 500 --grow --maxsize 800
  155. #part /tmp --size 100 --grow
  156. # I N S T A L L / U P G R A D E   S P E C I F I C A T I O N (Required for upgrade)
  157. # Here we specify whether an install or an upgrade is to be performed.
  158. # Enter "install" for a fresh install, and "upgrade" for an upgrade.
  159. # Note: If you are doing an upgrade, you only need to specify the following
  160. # items in the kickstart file:
  161. # Installation method
  162. # Device specification (if necessary)
  163. # Keymap specification
  164. # Install/upgrade specification (of course!)
  165. # LILO configuration
  166. #
  167. # Example:
  168. #install
  169. #
  170. # M O U S E   S P E C I F I C A T I O N
  171. #
  172. # Enter the type of mouse here.  Valid mouse types can be found by 
  173. # running 'mouseconfig --help'.
  174. # The default device is correctly set for busmice.  /dev/cua0 is the
  175. # default for serial mice, but can be overridden with the "--device"
  176. # option.  Follow it with the device name; for example, "cua2".  If three
  177. # button emulation is needed, specify "--emulthree"
  178. #
  179. # Example:
  180. #mouse generic3ps/2
  181. #
  182. # T I M E Z O N E   S P E C I F I C A T I O N
  183. #
  184. # To specify the desired timezone, use the "timezone" command.  Run
  185. # /usr/sbin/timeconfig to see all the valid timezone names.  If you
  186. # computer's clock is set to GMT/UTC, add the --utc option.
  187. #
  188. # Example:
  189. #timezone --utc US/Eastern
  190. #
  191. # X   W I N D O W   S Y S T E M   S P E C I F I C A T I O N
  192. # Next, it's necessary to enter information related to X.  In order to
  193. # properly configure X, the installation program will need to know about
  194. # your video card (or at least the X server it should use), and your
  195. # monitor (or at least your monitor's specifications).
  196. #
  197. # Video card selection:
  198. # The installation program will normally find PCI video cards
  199. # automatically.  However, you can specify the video card by adding the
  200. # --card option, followed by the card type.  If you run Xconfigurator on a
  201. # Red Hat Linux system, and use the --help option, you'll get a list of all
  202. # valid card types.
  203. # Alternatively, you can enter the name of the X server to be used by
  204. # adding the --server option, followed by the server type.  Again, run
  205. # Xconfigurator --help to obtain a listing of all valid X servers.
  206. #
  207. # Monitor selection:
  208. # Next, you'll need to specify your monitor.  If no monitor information is
  209. # specified, the installation program assumes it it capable of operation at
  210. # 640x480@60hz.  Otherwise, use the --monitor option, followed by the
  211. # monitor type.  Xconfigurator --help lists all valid monitor types.
  212. #
  213. # Alternatively, you can enter the monitor's horizontal and vertical synch
  214. # rates using the --hsync and --vsync options.  Each is followed by the
  215. # appropriate synch rate.  The rates may be single numbers (representing
  216. # kilohertz and megahertz, as appropriate), groups of numbers separated by
  217. # commas, or two numbers separated by a dash (signifying a range).  For
  218. # example: --hsync "31.5,35.5,50-65" --vsync "50-70"
  219. #
  220. # Example:
  221. #xconfig --server "Mach64" --monitor "tatung cm14uhe"
  222. # R O O T   P A S S W O R D
  223. #
  224. # This is where the root password for the freshly-installed system is
  225. # specified.  Note that, for NFS kickstarts, this password goes over the
  226. # network in the clear.  In that case, you can enter a pre-crypted password
  227. # (ie, one suitable for inclusion in /etc/passwd without further editing)
  228. # by using the --iscrypted option, followed by the crypted password.
  229. #
  230. #Example:
  231. #rootpw RHkickedme
  232. #
  233. # L I L O   C O N F I G U R A T I O N (Required for upgrade)
  234. #
  235. # In this section you specify how LILO is to be configured.  By default,
  236. # LILO will be installed in the master boot record, and will have no append
  237. # line for kernel boot-time options.  You can modify this by using the
  238. # --location option to specify where LILO should be installed, and by using
  239. # the --append option to add an append line to /etc/lilo.conf.
  240. #
  241. # The --location option takes the following parameters:
  242. #
  243. # mbr -- Install LILO in the master boot record.
  244. # partition -- Install LILO in the first sector of the root partition.
  245. # none -- Do not install LILO (meaning you'd better have another way of
  246. # booting this system!
  247. #
  248. # (Note: There is no equivalent to this command on the Alpha.)
  249. # Example:
  250. #lilo --append "mem=128M" --location mbr
  251. #
  252. # P A C K A G E   S P E C I F I C A T I O N
  253. #
  254. # In this section you can select the components and packages that are to be
  255. # installed.  This section must be started with a line containing
  256. # "%packages".  Component and/or package names then follow.  Components are
  257. # preceded by "@ " (NOTE THE SPACE!), and packages appear as-is.
  258. #
  259. # To get a list of components and packages, refer to the file
  260. # RedHat/base/comps on the CD.  The components in the file are preceded by
  261. # a number and a space, while the packages have no preceding characters.
  262. # Example:
  263. #%packages
  264. #@ Networked Workstation
  265. #@ C Development
  266. #@ Web Server
  267. #@ X Window System
  268. #bsd-games
  269. #
  270. # New for 5.2 and later releases is the option to specify "Server" 
  271. # or "Workstation".  This installs the same package set as the 
  272. # normal mode install for those two options. 
  273. # An example would be:
  274. # %packages
  275. # @ Workstation
  276. #
  277. # P O S T - I N S T A L L A T I O N   C O M M A N D S
  278. #
  279. # This section must be the last in the kickstart file.  It can contain
  280. # commands to be executed when the installation has completed.  This
  281. # section must be started with a line containing "%post".  Any lines after
  282. # this one will be executed as commands.
  283. #
  284. # You can access the network in a %post if it was previously configured,
  285. # but you don't have access to nameservice.  So use IP addresses only.
  286. #
  287. # Example:
  288. #%post
  289. #echo "Kickstart-installed Red Hat Linux `/bin/date`" > /etc/motd
  290.