home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1999 November / VPR9911B.ISO / doc / sample.ks < prev    next >
Text File  |  1999-04-17  |  15KB  |  393 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. # For URL installs, give the url to the distribution files.  If
  88. # you need to use a proxy server, use --proxy to specify the server and
  89. # --proxyport to specify the port.
  90. #
  91. # Example:
  92. #url --url http://porkchop.redhat.com/mnt/test/i386
  93. #
  94. # For Hard Drive installs, give the partition and directory that contains
  95. # the distribution files.
  96. #
  97. # Example:
  98. #
  99. #harddrive --partition /dev/hda2 --dir /downloads/redhat
  100. #
  101. #
  102. # D E V I C E   S P E C I F I C A T I O N  (Required for upgrade)
  103. #
  104. # In this section, you can specify any device information required.
  105. # PCI cards can normally be autoprobed, so they don't need to be specified
  106. # here.
  107. #
  108. # To specify a device, start with the "device" keyword, followed by the
  109. # type of device:
  110. #
  111. # ethernet -- for ethernet cards.
  112. # scsi -- for scsi cards.
  113. # cdrom -- for non-scsi, non-ide cdrom cards (eg., sound cards with
  114. # proprietary CDROM interfaces).
  115. #
  116. # Optional parameters that are required by a device can also be specified
  117. # by using the --opts option.  Enclose the paratmeters in quotes after
  118. # --opts.
  119. #
  120. # Note that you can specify multiple types of devices.  For example, if you
  121. # know the machines you'll be kickstart-installing have either an Adaptec
  122. # 1542 or a Buslogic card, you can enter both in the kickstart file.  But
  123. # be aware that the install uses only the first card found, so order the
  124. # device entries appropriately...
  125. #
  126. # Example:
  127. #device ethernet 3c509 --opts "io=0x330, irq=7"
  128. #
  129. # K E Y M A P   S P E C I F I C A T I O N (Required for upgrade)
  130. # Next, specify the keymap to use with your keyboard.  The available keymap
  131. # types are listed in the kbdconfig program.
  132. #
  133. # Example:
  134. #keyboard us
  135. #
  136. # D E V I C E   C O N T R O L L E R S   -   N O P R O B E
  137. #
  138. # If you do not want your system device controllers to be automatically
  139. # probed then you can issue the command:
  140. #
  141. #noprobe
  142. #
  143. # By configuring this command, your system will not probe for any device
  144. # controllers, SCSI or otherwise. This is to be used only if you wish to
  145. # manually specify the devices that are on your system.
  146. #
  147. #
  148. # D E V I C E   C O N T R O L L E R S  -  --C O N T I N U E
  149. #
  150. # In order to load modules for more than 1 adapter
  151. # type, (for example, two different SCSI adapters) you will need to add
  152. # the command
  153. #
  154. #device --continue
  155. #
  156. # So, if you need to have modules for a Adaptec and a BusLogic adapter,
  157. # then you will need to have both of these specified in the configuration 
  158. # file and you will need to have --continue after the
  159. # first one in the configuration file:
  160. #
  161. #device scsi aic7xxx --continue
  162. #device scsi BusLogic
  163. #
  164. # However, if you have multiple adapters of the same type, then you
  165. # will not need to be concerned with this line, as the single module
  166. # insertion is enough to control all adapters of that type. For example,
  167. # if you have three Adaptec adapters, then the single line
  168. #
  169. #device scsi aic7xxx
  170. #
  171. # will load and allow all three adapters to function.
  172. #
  173. #
  174. # P A R T I T I O N   S P E C I F I C A T I O N
  175. # This is where you specify the partitions to be used in the install.
  176. # There are several sections that we'll cover in order.
  177. # If you are doing a kickstart install on a new drive, the partition table
  178. # will likely corrupt.  The zerombr command can be used to clear the
  179. # partition table if it is corrupt; otherwise it will take no action.  In
  180. # order to clear the partition table, follow the zerombr command with
  181. # "yes"; if followed by "no", no action will be taken.
  182. #
  183. # Example:
  184. #zerombr yes
  185. #
  186. # The clearpart command is used to control which partitions are to be wiped
  187. # from all drives.  Follow the clearpart command with "--all" to remove all
  188. # partitions from all drives, or "--linux" to remove all Linux-related
  189. # partitions (ie., partitions of type "Linux native" and "Linux swap") from
  190. # all drives.
  191. #
  192. # Example:
  193. #clearpart --linux
  194. # Next, specify the partitions that you'd like to create.  Partitions are
  195. # only created from free space available on the system.  Enter one
  196. # partition per line using the following format:
  197. #
  198. # part <mntpt> --size <size in megs> [--grow] [--maxsize <size in megs>]
  199. #
  200. # Where <mntpt> is the desired mount point for the partition (or "swap" for
  201. # swap partitions).  Add "--grow" to create a partition that will grow to
  202. # fill all remaining space on the drive.  To limit the affect of --grow,
  203. # you can add "--maxsize" followed by a size specification.
  204. # Examples:
  205. #part / --size 250
  206. #part swap --size 32
  207. #part /usr --size 500 --grow --maxsize 800
  208. #part /tmp --size 100 --grow
  209. # 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)
  210. # Here we specify whether an install or an upgrade is to be performed.
  211. # Enter "install" for a fresh install, and "upgrade" for an upgrade.
  212. # Note: If you are doing an upgrade, you only need to specify the following
  213. # items in the kickstart file:
  214. # Installation method
  215. # Device specification (if necessary)
  216. # Keymap specification
  217. # Install/upgrade specification (of course!)
  218. # LILO configuration
  219. #
  220. # Example:
  221. #install
  222. #
  223. # M O U S E   S P E C I F I C A T I O N
  224. #
  225. # Enter the type of mouse here.  Valid mouse types can be found by 
  226. # running 'mouseconfig --help'.
  227. # The default device is correctly set for busmice.  /dev/cua0 is the
  228. # default for serial mice, but can be overridden with the "--device"
  229. # option.  Follow it with the device name; for example, "cua2".  If three
  230. # button emulation is needed, specify "--emulthree"
  231. #
  232. # Example:
  233. #mouse generic3ps/2
  234. #
  235. # T I M E Z O N E   S P E C I F I C A T I O N
  236. #
  237. # To specify the desired timezone, use the "timezone" command.  Run
  238. # /usr/sbin/timeconfig to see all the valid timezone names.  If you
  239. # computer's clock is set to GMT/UTC, add the --utc option.
  240. #
  241. # Example:
  242. #timezone --utc US/Eastern
  243. #
  244. # 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
  245. # Next, it's necessary to enter information related to X.  In order to
  246. # properly configure X, the installation program will need to know about
  247. # your video card (or at least the X server it should use), and your
  248. # monitor (or at least your monitor's specifications).
  249. #
  250. # Video card selection:
  251. # The installation program will normally find PCI video cards
  252. # automatically.  However, you can specify the video card by adding the
  253. # --card option, followed by the card type.  If you run Xconfigurator on a
  254. # Red Hat Linux system, and use the --help option, you'll get a list of all
  255. # valid card types.
  256. # Alternatively, you can enter the name of the X server to be used by
  257. # adding the --server option, followed by the server type.  Again, run
  258. # Xconfigurator --help to obtain a listing of all valid X servers.
  259. #
  260. # Monitor selection:
  261. # Next, you'll need to specify your monitor.  If no monitor information is
  262. # specified, the installation program assumes it it capable of operation at
  263. # 640x480@60hz.  Otherwise, use the --monitor option, followed by the
  264. # monitor type.  Xconfigurator --help lists all valid monitor types.
  265. #
  266. # Alternatively, you can enter the monitor's horizontal and vertical synch
  267. # rates using the --hsync and --vsync options.  Each is followed by the
  268. # appropriate synch rate.  The rates may be single numbers (representing
  269. # kilohertz and megahertz, as appropriate), groups of numbers separated by
  270. # commas, or two numbers separated by a dash (signifying a range).  For
  271. # example: --hsync "31.5,35.5,50-65" --vsync "50-70"
  272. #
  273. # Example:
  274. #xconfig --server "Mach64" --monitor "tatung cm14uhe"
  275. # R O O T   P A S S W O R D
  276. #
  277. # This is where the root password for the freshly-installed system is
  278. # specified.  Note that, for NFS kickstarts, this password goes over the
  279. # network in the clear.  In that case, you can enter a pre-crypted password
  280. # (ie, one suitable for inclusion in /etc/passwd without further editing)
  281. # by using the --iscrypted option, followed by the crypted password.
  282. #
  283. #Example:
  284. #rootpw RHkickedme
  285. #
  286. #
  287. # A U T H E N T I C A T I O N    C O N F I G U R A T I O N
  288. #
  289. # The authconfig format for kickstart looks similiar to:
  290. #
  291. # auth --enablenis --nisdomain foo.redhat.com --nisserver
  292. # server.foo.redhat.com [--useshadow] [--enablemd5]
  293. #
  294. # The commands in the square brackets are optional. If you choose
  295. # to set them up, you do not need to use the brackets.
  296. #
  297. # You are able to change authconfig using these commands to set up
  298. # the different password options:
  299. #
  300. #     --enablenis          enable nis by default
  301. #     --nisdomain <domain> default NIS domain
  302. #     --nisserver <server> default NIS server
  303. #     --useshadow          use shadow passwords
  304. #     --enablemd5          enable MD5 passwords
  305. #
  306. #
  307. # L I L O   C O N F I G U R A T I O N (Required for upgrade)
  308. #
  309. # In this section you specify how LILO is to be configured.  By default,
  310. # LILO will be installed in the master boot record, and will have no append
  311. # line for kernel boot-time options.  You can modify this by using the
  312. # --location option to specify where LILO should be installed, and by using
  313. # the --append option to add an append line to /etc/lilo.conf.
  314. #
  315. # The --location option takes the following parameters:
  316. #
  317. # mbr -- Install LILO in the master boot record.
  318. # partition -- Install LILO in the first sector of the root partition.
  319. # none -- Do not install LILO (meaning you'd better have another way of
  320. # booting this system!
  321. #
  322. # (Note: There is no equivalent to this command on the Alpha.)
  323. # Example:
  324. #lilo --append "mem=128M" --location mbr
  325. #
  326. # P A C K A G E   S P E C I F I C A T I O N
  327. #
  328. # In this section you can select the components and packages that are to be
  329. # installed.  This section must be started with a line containing
  330. # "%packages".  Component and/or package names then follow.  Components are
  331. # preceded by "@ " (NOTE THE SPACE!), and packages appear as-is.
  332. #
  333. # To get a list of components and packages, refer to the file
  334. # RedHat/base/comps on the CD.  The components in the file are preceded by
  335. # a number and a space, while the packages have no preceding characters.
  336. # Example:
  337. #%packages
  338. #@ Networked Workstation
  339. #@ C Development
  340. #@ Web Server
  341. #@ X Window System
  342. #bsd-games
  343. #
  344. # New for 5.2 and later releases is the option to specify "Server" 
  345. # or "Workstation".  This installs the same package set as the 
  346. # normal mode install for those two options. 
  347. # An example would be:
  348. # %packages
  349. # @ Workstation
  350. #
  351. # P O S T - I N S T A L L A T I O N   C O M M A N D S
  352. #
  353. # This section must be the last in the kickstart file.  It can contain
  354. # commands to be executed when the installation has completed.  This
  355. # section must be started with a line containing "%post".  Any lines after
  356. # this one will be executed as commands.
  357. #
  358. # You can access the network in a %post if it was previously configured,
  359. # but you don't have access to nameservice.  So use IP addresses only.
  360. #
  361. # Example:
  362. #%post
  363. #echo "Kickstart-installed Red Hat Linux `/bin/date`" > /etc/motd
  364.