Softpanorama
(slightly skeptical) Open Source Software Educational Society

May the source be with you, but remember the KISS principle ;-)

Google   


Sample autoinst file

 

<?xml version="1.0"?>
<!DOCTYPE profile SYSTEM "/usr/share/autoinstall/dtd/profile.dtd">
<profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.c
om/1.0/configns">
  <configure>
    <networking>
      <dns>
        <dhcp_hostname config:type="boolean">false</dhcp_hostname>
        <dhcp_resolv config:type="boolean">false</dhcp_resolv>
        <domain>labtest.com</domain>
        <hostname>sles9serv</hostname>
        <nameServers config:type="list">
          <nameServer>9.3.5.2</nameServer>
          <nameServer>9.3.5.254</nameServer>
        </nameServers>
        <searchlist config:type="list">
          <search>labtest.com</search>
        </searchlist>
      </dns>
      <interfaces config:type="list">
        <interface>
          <bootproto>static</bootproto>
          <broadcast>9.3.5.255</broadcast>
          <device>eth0</device>
          <ipaddr>9.3.5.7</ipaddr>
          <netmask>255.255.255.0</netmask>
          <network>9.3.5.0</network>
          <startmode>onboot</startmode>
        </interface>
      </interfaces>
      <modules config:type="list">
        <module_entry>
          <device>static-0</device>
          <module></module>
          <options></options>
        </module_entry>
      </modules>
      <routing>
        <ip_forward config:type="boolean">false</ip_forward>
        <routes config:type="list">
          <route>
            <destination>default</destination>
            <device>-</device>
            <gateway>9.3.5.1</gateway>
            <netmask>-</netmask>
          </route>
        </routes>
      </routing>
    </networking>
    <printer>
      <cups_installation config:type="symbol">server</cups_installation>
      <default>local_lp0</default>
      <printcap config:type="list">
        <printcap_entry>
          <ff config:type="boolean">false</ff>
          <info>Local parallel printer</info>
          <location>Local direct connection to LPT1</location>
          <manufacturer>HP</manufacturer>
          <model>HP LaserJet 5</model>
          <name>local_lp0</name>
          <nick>HP LaserJet 5 Foomatic/hpijs (recommended)</nick>
          <options config:type="list"/>
          <ppd_options config:type="list">
            <ppd_option>
              <key>Copies</key>
              <value>1</value>
            </ppd_option>
            <ppd_option>
              <key>Duplex</key>
              <value>None</value>
            </ppd_option>
            <ppd_option>
              <key>Economode</key>
              <value>Off</value>
            </ppd_option>
            <ppd_option>
              <key>InputSlot</key>
              <value>Default</value>
            </ppd_option>
            <ppd_option>
              <key>MPTray</key>
              <value>First</value>
            </ppd_option>
            <ppd_option>
              <key>PageSize</key>
              <value>A4</value>
            </ppd_option>
            <ppd_option>
              <key>PrintoutMode</key>
              <value>Normal</value>
            </ppd_option>
            <ppd_option>
              <key>Quality</key>
              <value>FromPrintoutMode</value>
            </ppd_option>
            <ppd_option>
              <key>REt</key>
              <value>Medium</value>
            </ppd_option>
            <ppd_option>
              <key>TonerDensity</key>
              <value>5</value>
            </ppd_option>
          </ppd_options>
          <raw config:type="boolean">false</raw>
          <uri>parallel:/dev/lp0</uri>
        </printcap_entry>
      </printcap>
      <server_hostname></server_hostname>
      <spooler>cups</spooler>
    </printer>
    <security>
      <console_shutdown>reboot</console_shutdown>
      <cracklib_dict_path>/usr/lib/cracklib_dict</cracklib_dict_path>
      <cwd_in_root_path>yes</cwd_in_root_path>
      <cwd_in_user_path>yes</cwd_in_user_path>
      <displaymanager_remote_access>no</displaymanager_remote_access>
      <enable_sysrq>no</enable_sysrq>
      <fail_delay>3</fail_delay>
      <faillog_enab>yes</faillog_enab>
      <gid_max>60000</gid_max>
      <gid_min>1000</gid_min>
      <kdm_shutdown>all</kdm_shutdown>
      <lastlog_enab>yes</lastlog_enab>
      <obscure_checks_enab>yes</obscure_checks_enab>
      <pass_max_days>99999</pass_max_days>
      <pass_max_len>7</pass_max_len>
      <pass_min_days>0</pass_min_days>
      <pass_min_len>5</pass_min_len>
      <pass_warn_age>7</pass_warn_age>
      <passwd_encryption>des</passwd_encryption>
      <passwd_use_cracklib>yes</passwd_use_cracklib>
      <permission_security>secure</permission_security>
      <run_updatedb_as>nobody</run_updatedb_as>
      <system_gid_max>499</system_gid_max>
      <system_gid_min>100</system_gid_min>
      <system_uid_max>499</system_uid_max>
      <system_uid_min>100</system_uid_min>
      <uid_max>60000</uid_max>
      <uid_min>500</uid_min>
      <useradd_cmd>/usr/sbin/useradd.local</useradd_cmd>
      <userdel_postcmd>/usr/sbin/userdel-post.local</userdel_postcmd>
      <userdel_precmd>/usr/sbin/userdel-pre.local</userdel_precmd>
    </security>
    <x11>
      <color_depth config:type="integer">16</color_depth>
      <configure_x11 config:type="boolean">true</configure_x11>
      <display_manager>kdm</display_manager>
      <enable_3d config:type="boolean">false</enable_3d>
      <monitor>
        <display>
          <frequency config:type="integer">60</frequency>
          <height config:type="integer">768</height>
          <width config:type="integer">1024</width>
        </display>
        <monitor_device>1024X768@60HZ</monitor_device>
        <monitor_vendor> LCD</monitor_vendor>
      </monitor>
      <resolution>1024x768</resolution>
      <window_manager>kde</window_manager>
    </x11>
  </configure>
  <install>
    <bootloader>
      <activate config:type="boolean">true</activate>
      <global config:type="list">
        <global_entry>
          <key>color</key>
          <value>white/blue black/light-gray</value>
        </global_entry>
        <global_entry>
          <key>default</key>
          <value config:type="integer">0</value>
        </global_entry>
        <global_entry>
          <key>timeout</key>
          <value config:type="integer">8</value>
        </global_entry>
        <global_entry>
          <key>gfxmenu</key>
          <value>/boot/message</value>
        </global_entry>
      </global>
      <loader_device>/dev/sda</loader_device>
      <loader_type>grub</loader_type>
      <location>mbr</location>
      <repl_mbr config:type="boolean">false</repl_mbr>
      <sections config:type="list">
        <section config:type="list">
          <section_entry>
            <key>title</key>
            <value>Linux</value>
          </section_entry>
          <section_entry>
            <key>kernel</key>
            <value>/boot/vmlinuz root= vga=0x314 selinux=0 splash=silent resume=
 showopts elevator=cfq</value>
          </section_entry>
          <section_entry>
            <key>initrd</key>
            <value>/boot/initrd</value>
          </section_entry>
        </section>
        <section config:type="list">
          <section_entry>
            <key>title</key>
            <value>Hard Disk</value>
          </section_entry>
          <section_entry>
            <key>root</key>
            <value>(hd0)</value>
          </section_entry>
          <section_entry>
            <key>chainloader</key>
            <value>+1</value>
          </section_entry>
        </section>
        <section config:type="list">
          <section_entry>
            <key>title</key>
            <value>Failsafe</value>
          </section_entry>
          <section_entry>
            <key>kernel</key>
            <value>/boot/vmlinuz root= showopts ide=nodma apm=off acpi=off vga=n
ormal noresume selinux=0 barrier=off nosmp noapic maxcpus=0  3</value>
          </section_entry>
          <section_entry>
            <key>initrd</key>
            <value>/boot/initrd</value>
          </section_entry>
        </section>
      </sections>
    </bootloader>
    <general>
      <clock>
        <hwclock>localtime</hwclock>
        <timezone>US/Central</timezone>
      </clock>
      <keyboard>
        <keymap>english-us</keymap>
      </keyboard>
      <language>en_US</language>
      <mode>
        <confirm config:type="boolean">true</confirm>
        <forceboot config:type="boolean">true</forceboot>
      </mode>
      <mouse>
        <id>probe</id>
      </mouse>
    </general>
    <partitioning config:type="list">
      <drive>
        <device>/dev/hda</device>
        <initialize config:type="boolean">false</initialize>
        <partitions config:type="list">
          <partition>
            <crypt>twofish256</crypt>
            <filesystem config:type="symbol">reiser</filesystem>
            <format config:type="boolean">true</format>
            <loop_fs config:type="boolean">false</loop_fs>
            <mount>/</mount>
            <partition_id config:type="integer">131</partition_id>
            <size>4000</size>
          </partition>
          <partition>
            <crypt>twofish256</crypt>
            <format config:type="boolean">false</format>
            <loop_fs config:type="boolean">false</loop_fs>
            <mount></mount>
            <partition_id config:type="integer">130</partition_id>
            <size>512</size>
          </partition>
        </partitions>
        <use>free</use>
      </drive>
      <drive>
        <device>/dev/hdb</device>
        <initialize config:type="boolean">false</initialize>
        <partitions config:type="list">
          <partition>
            <crypt>twofish256</crypt>
            <format config:type="boolean">false</format>
            <loop_fs config:type="boolean">false</loop_fs>
            <mount>/var</mount>
            <partition_id config:type="integer">142</partition_id>
            <size>2048</size>
          </partition>
          <partition>
            <crypt>twofish256</crypt>
            <format config:type="boolean">false</format>
            <loop_fs config:type="boolean">false</loop_fs>
            <mount>/usr</mount>
            <partition_id config:type="integer">142</partition_id>
            <size>2048</size>
          </partition>
          <partition>
            <crypt>twofish256</crypt>
            <format config:type="boolean">false</format>
            <loop_fs config:type="boolean">false</loop_fs>
            <mount>/home</mount>
            <partition_id config:type="integer">142</partition_id>
            <size>3000</size>
          </partition>
        </partitions>
        <use>free</use>
      </drive>
    </partitioning>
    <software>
      <addons config:type="list">
        <addon>Base-System</addon>
        <addon>Basis-Devel</addon>
        <addon>Basis-Sound</addon>
        <addon>File-Server</addon>
        <addon>Gnome</addon>
        <addon>HA</addon>
        <addon>Kde-Desktop</addon>
        <addon>LAMP</addon>
        <addon>LSB</addon>
        <addon>Linux-Tools</addon>
        <addon>Mail_News-Server</addon>
        <addon>Print-Server</addon>
        <addon>SuSE-Documentation</addon>
        <addon>Various-Tools</addon>
        <addon>WBEM</addon>
        <addon>X11</addon>
        <addon>YaST2</addon>
        <addon>analyze</addon>
        <addon>auth</addon>
        <addon>dhcp_DNS-Server</addon>
      </addons>
      <base>Full-Installation</base>
    </software>
  </install>
</profile>

 



Copyright © 1996-2008 by Dr. Nikolai Bezroukov. www.softpanorama.org was created as a service to the UN Sustainable Development Networking Programme (SDNP) in the author free time. Submit comments This document is an industrial compilation designed and created exclusively for educational use and is placed under the copyright of the Open Content License(OPL). Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.

Standard disclaimer: The statements, views and opinions presented on this web page are those of the author and are not endorsed by, nor do they necessarily reflect, the opinions of the author present and former employers, SDNP or any other organization the author may be associated with. We do not warrant the correctness of the information provided or its fitness for any purpose.

Last modified: February 28, 2008