Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
netboot [Le 05/02/2013, 01:44] – [Création du menu de démarrage] maisondouf | netboot [Le 07/05/2019, 17:00] (Version actuelle) – [NetBoot : installation par TFTP, PXE, DHCP] nicolas84 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | {{tag> | ||
+ | ---- | ||
+ | |||
+ | |||
+ | ====== NetBoot : installation par TFTP, PXE, DHCP ====== | ||
+ | |||
+ | Ce document décrit une installation par le réseau, sur une machine pouvant démarrer PXE sur la carte réseau ou un autre média amovible Cette option de démarrage se configure dans le SETUP du PC client et elle est souvent appelée " | ||
+ | |||
+ | Nous utiliserons un autre PC comme serveur et nous y installerons [[apt> | ||
+ | |||
+ | Vous devez modifier les noms d' | ||
+ | |||
+ | <note tip> | ||
+ | Il existe une autre page sur le netboot permettant de démarrer une session //live//, comme depuis un CDRom ou une clé USB, disponible [[netboot_live|ici]]. | ||
+ | \\ | ||
+ | Préférez-la, | ||
+ | |||
+ | Il est aussi possible d' | ||
+ | </ | ||
+ | |||
+ | ===== Explication du processus de démarrage PXE ===== | ||
+ | |||
+ | - L' | ||
+ | - Le serveur [[: | ||
+ | - L' | ||
+ | - Il charge le fichier de configuration par défaut. | ||
+ | - Le fichier contient les informations nécessaire à l' | ||
+ | |||
+ | ===== Description du matériel ===== | ||
+ | |||
+ | Une machine cliente même sans lecteur de CD-ROM possédant une carte réseau compatible PXE. Il est à noter qu' | ||
+ | |||
+ | La machine qui fait office de serveur **TFTP** et **DHCP** est basé sur GNU/Linux et possède l' | ||
+ | |||
+ | <note warning> | ||
+ | Si votre Box ou Routeur internet ne protège pas votre serveur, installez le paquet [[apt> | ||
+ | |||
+ | |||
+ | ===== Installer et lancer le serveur DHCP ===== | ||
+ | |||
+ | Voir la documentation sur [[isc-dhcp-server]]. | ||
+ | |||
+ | Cette machine sert une adresse IP et les informations réseaux ainsi que le fichier « [[# | ||
+ | |||
+ | Sa configuration est identique à celle décrite [[: | ||
+ | |||
+ | ===== Installer et lancer le serveur TFTP ===== | ||
+ | |||
+ | Le serveur TFTP est celui qui va fournir les fichiers nécessaires au démarrage | ||
+ | |||
+ | Installez le paquet **[[apt> | ||
+ | |||
+ | |||
+ | |||
+ | ===== Installer les fichiers NETBOOT nécessaires au démarrage réseau ===== | ||
+ | ==== Installation des fichiers propres à chaque version ==== | ||
+ | Chaque version d' | ||
+ | Ces fichiers s' | ||
+ | |||
+ | Pour chaque version et pour chaque architecture, | ||
+ | http:// | ||
+ | |||
+ | Remplacez **VERSION** par la version que vous voulez (//lucid, precise, quantal//) et **ARCH** par la version de l' | ||
+ | |||
+ | Ensuite pour pouvoir différencier tous ces installateurs, | ||
+ | Nous allons donner l' | ||
+ | < | ||
+ | cd / | ||
+ | sudo tar -xzf /< | ||
+ | sudo tar -xzf /< | ||
+ | |||
+ | Les contenus sont fusionnés et le répertoire " | ||
+ | |||
+ | Vous pouvez répéter l' | ||
+ | ==== Création du menu de démarrage ==== | ||
+ | Il faut pour cela installer sur votre serveur le paquet [[apt> | ||
+ | Copiez maintenant depuis les librairies de " | ||
+ | < | ||
+ | sudo cp / | ||
+ | sudo cp / | ||
+ | |||
+ | Il faut maintenant créer un menu permettant de choisir entre les options (32 et 64 bits). | ||
+ | < | ||
+ | gksu gedit / | ||
+ | |||
+ | Remplissez, dans un premier temps, votre menu ainsi (exemple pour distribution Precise Pangolin): | ||
+ | < | ||
+ | #default menu for all PXE boot | ||
+ | DEFAULT vesamenu.c32 | ||
+ | # liste des choix | ||
+ | label Boot local disk | ||
+ | kernel chain.c32 | ||
+ | append hd0 | ||
+ | |||
+ | label Precise 32bits installer | ||
+ | kernel precise/ | ||
+ | append precise/ | ||
+ | |||
+ | label Precise 64bits installer | ||
+ | kernel precise/ | ||
+ | append precise/ | ||
+ | </ | ||
+ | Les fichiers de menu des installateurs font appel à plusieurs fichiers (include) qui sont censés se trouver dans le répertoire " | ||
+ | Vous pouvez, si vous ne mettez qu'une version de Ubuntu en ligne créer un lien symbolique pour pallier ce problème : \\ | ||
+ | < | ||
+ | sudo ln -s precise/ | ||
+ | |||
+ | Si vous avez mis en place d' | ||
+ | Dans ce cas, il faudra éditer un par un chaque menu dans les répertoires " | ||
+ | Il est aussi possible de remplacer automatiquement ces lignes grace à l' | ||
+ | < | ||
+ | |||
+ | <note tip>" | ||
+ | |||
+ | Il ne reste plus qu'à tester en démarrant un PC client en mode PXE. | ||
+ | ===== Démarrage de l' | ||
+ | |||
+ | * Démarrez l' | ||
+ | * < | ||
+ | |||
+ | <note warning> | ||
+ | |||
+ | |||
+ | |||
+ | ===== reliquat de documentation temporairement conservé ===== | ||
+ | <note warning> | ||
+ | // Une simplification s' | ||
+ | === Préparer les fichiers === | ||
+ | |||
+ | __Forcer la lecture seule pour tous sauf le propriétaire :__ | ||
+ | |||
+ | < | ||
+ | |||
+ | __S' | ||
+ | |||
+ | <note important> | ||
+ | Si vous êtes en environnement de production appliquer les règles de séparation de droits en créant un utilisateur autorisé à modifier ce dossier</ | ||
+ | |||
+ | Remplacer **$USER** par le nom de l' | ||
+ | |||
+ | < | ||
+ | |||
+ | Décompressez l' | ||
+ | |||
+ | < | ||
+ | |||
+ | ou | ||
+ | |||
+ | < | ||
+ | distrib=$(grep ID / | ||
+ | arch=$(dpkg --print-architecture) | ||
+ | |||
+ | mkdir -p / | ||
+ | |||
+ | __Appropriation des fichiers décompressés :__ | ||
+ | |||
+ | < | ||
+ | |||
+ | * Remplacez **karmic** par la version que vous voulez (//dapper feisty gutsy hardy intrepid karmic//) | ||
+ | * Remplacez **i386** par la version de l' | ||
+ | |||
+ | == Le fichier « pxelinux.0 » et le répertoire « pxelinux.cfg » == | ||
+ | |||
+ | Il faut indiquer l' | ||
+ | |||
+ | gksudo gedit / | ||
+ | |||
+ | et remplacer la ligne **filename " | ||
+ | |||
+ | Autre méthode : | ||
+ | Pour qu'il soient démarrables par tftp, le fichier « pxelinux.0 » et le répertoire « pxelinux.cfg » doivent être à la racine du serveur tftp. Déplacez-les donc par la commande : | ||
+ | |||
+ | cp -R / | ||
+ | | ||
+ | |||
+ | ==== Configurer les fichiers « PRESEED » et « PXELINUX.CFG » nécessaire au démarrage réseau ==== | ||
+ | |||
+ | === Configurer les fichiers « PXELINUX.CFG » === | ||
+ | |||
+ | == le fichier « pxelinux.cfg/ | ||
+ | <note tip> Il se peut que la prise en compte de l' | ||
+ | L' | ||
+ | </ | ||
+ | |||
+ | Vous pouvez également utiliser la notation Hexadécimale des IP (utiliser gethostip pour l' | ||
+ | |||
+ | * pxelinux.cfg/ | ||
+ | * pxelinux.cfg/ | ||
+ | * pxelinux.cfg/ | ||
+ | * pxelinux.cfg/ | ||
+ | * pxelinux.cfg/ | ||
+ | * pxelinux.cfg/ | ||
+ | * pxelinux.cfg/ | ||
+ | * pxelinux.cfg/ | ||
+ | |||
+ | |||
+ | Si ces configurations ne correspondent pas, le fichier default sera alors appliqué: | ||
+ | pxelinux.cfg/ | ||
+ | |||
+ | Voici un exemple de fichier de configuration, | ||
+ | |||
+ | < | ||
+ | display ubuntu/ | ||
+ | # | ||
+ | default edgyi386server-expert | ||
+ | #sargex8626 | ||
+ | |||
+ | F1 ubuntu/ | ||
+ | F2 ubuntu/ | ||
+ | F3 ubuntu/ | ||
+ | F4 ubuntu/ | ||
+ | F5 ubuntu/ | ||
+ | F6 ubuntu/ | ||
+ | F7 ubuntu/ | ||
+ | F8 ubuntu/ | ||
+ | F9 ubuntu/ | ||
+ | F0 ubuntu/ | ||
+ | ### *** UBUNTU EDGY *** | ||
+ | # preseed/ | ||
+ | LABEL edgyi386 | ||
+ | kernel ubuntu/ | ||
+ | append vga=normal initrd=ubuntu/ | ||
+ | LABEL edgyi386oem | ||
+ | kernel ubuntu/ | ||
+ | append vga=normal oem-config/ | ||
+ | LABEL edgyi386server | ||
+ | kernel ubuntu/ | ||
+ | append base-installer/ | ||
+ | LABEL edgyi386expert | ||
+ | kernel ubuntu/ | ||
+ | append DEBCONF_PRIORITY=low vga=normal initrd=ubuntu/ | ||
+ | LABEL edgyi386server-expert | ||
+ | kernel ubuntu/ | ||
+ | append base-installer/ | ||
+ | |||
+ | LABEL edgyi386rescue | ||
+ | kernel ubuntu/ | ||
+ | append vga=normal initrd=ubuntu/ | ||
+ | |||
+ | ### *** UBUNTU DAPPER *** | ||
+ | # | ||
+ | LABEL dapperia64 | ||
+ | kernel ubuntu/ | ||
+ | append vga=normal initrd=ubuntu/ | ||
+ | LABEL dapperia64server | ||
+ | kernel ubuntu/ | ||
+ | append base-installer/ | ||
+ | |||
+ | LABEL dapperia64expert | ||
+ | kernel ubuntu/ | ||
+ | append DEBCONF_PRIORITY=low vga=normal initrd=ubuntu/ | ||
+ | LABEL dapperia64server-expert | ||
+ | kernel ubuntu/ | ||
+ | append base-installer/ | ||
+ | |||
+ | LABEL dapperia64rescue | ||
+ | kernel ubuntu/ | ||
+ | append vga=normal initrd=ubuntu/ | ||
+ | |||
+ | ### *** DEBIAN SARGE *** | ||
+ | # | ||
+ | label sargex86 | ||
+ | kernel debian/ | ||
+ | append vga=normal initrd=debian/ | ||
+ | label sargex86expert | ||
+ | kernel debian/ | ||
+ | append DEBCONF_PRIORITY=low vga=normal initrd=debian/ | ||
+ | label sargex8626 | ||
+ | kernel debian/ | ||
+ | append vga=normal initrd=debian/ | ||
+ | label sargex86expert26 | ||
+ | kernel debian/ | ||
+ | append DEBCONF_PRIORITY=low vga=normal initrd=debian/ | ||
+ | |||
+ | label sargeia64 | ||
+ | kernel debian/ | ||
+ | append vga=normal initrd=debian/ | ||
+ | label sargeia64expert | ||
+ | kernel debian/ | ||
+ | append DEBCONF_PRIORITY=low vga=normal initrd=debian/ | ||
+ | label sargeia6426 | ||
+ | kernel debian/ | ||
+ | append vga=normal initrd=debian/ | ||
+ | label sargeia64expert26 | ||
+ | kernel debian/ | ||
+ | append DEBCONF_PRIORITY=low vga=normal initrd=debian/ | ||
+ | |||
+ | prompt 1 | ||
+ | timeout 600 | ||
+ | </ | ||
+ | |||
+ | == le fichier « ../ | ||
+ | |||
+ | Si vous voulez voir les possibilités à distance, il faut éditer le fichier f3.txt et y rajouter les labels par exemple comme ceci. | ||
+ | |||
+ | < | ||
+ | 0fBOOT METHODS07 | ||
+ | 0fAvailable boot methods:07 | ||
+ | 0f*** UBUNTU ***07 | ||
+ | 0fedgyi38607 | ||
+ | 0fedgyi386server07 | ||
+ | 0fedgyi386expert07 | ||
+ | 0fedgyi386server-expert07 | ||
+ | 0fedgyi386rescue07 | ||
+ | 0fdapperia6407 | ||
+ | 0fdapperia64server07 | ||
+ | 0fdapperia64expert07 | ||
+ | 0fdapperia64server-expert07 | ||
+ | 0fdapperia64rescue07 | ||
+ | 0f*** DEBIAN ***07 | ||
+ | 0fsargex8607 | ||
+ | 0fsargex86expert07 | ||
+ | 0fsargex862607 | ||
+ | 0fsargex86expert2607 | ||
+ | 0fsargeia6407 | ||
+ | 0fsargeia64expert07 | ||
+ | 0fsargeia642607 | ||
+ | 0fsargeia64expert2607 | ||
+ | 0fsargememtest07 | ||
+ | Perform a memory test. | ||
+ | Press F1control and F then 1 for the help index, or ENTER to | ||
+ | </ | ||
+ | |||
+ | === Configurer les fichiers « Preseed » === | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | |||
+ | Le fichier preseed permet d' | ||
+ | il faut le spécifier dans la ligne de chargement du noyau, du fichier | ||
+ | Celui-ci est pour dapper accéssible du net, il en existe aussi un pour edgy (edgy-preseed.cfg). | ||
+ | < | ||
+ | LABEL dapperi386 | ||
+ | kernel ubuntu/ | ||
+ | append vga=normal initrd=ubuntu/ | ||
+ | </ | ||
+ | |||
+ | == le fichier « preseed » == | ||
+ | |||
+ | Voici un exemple de fichier de configuration, | ||
+ | |||
+ | < | ||
+ | d-i mirror/ | ||
+ | </ | ||
+ | |||
+ | Vous pouvez aussi changer l' | ||
+ | |||
+ | < | ||
+ | d-i mirror/ | ||
+ | </ | ||
+ | |||
+ | Le fichier complet : | ||
+ | |||
+ | < | ||
+ | #### Modifying syslinux.cfg. | ||
+ | |||
+ | # Edit the syslinux.cfg (or similar) file, and add parameters to the end | ||
+ | # of the append line(s) for the kernel. | ||
+ | # | ||
+ | # You'll at least want to add a parameter telling the installer where to | ||
+ | # get its preseed file from. | ||
+ | # If you're installing from USB media, use this, and put the preseed file | ||
+ | # in the toplevel directory of the USB stick. | ||
+ | # | ||
+ | # If you're netbooting, use this instead: | ||
+ | # | ||
+ | # | ||
+ | # Be sure to copy this file to the location you specify. | ||
+ | # | ||
+ | # While you're at it, you may want to throw a debconf/ | ||
+ | # there, to avoid most questions even if the preseeding below misses some. | ||
+ | # And you might set the timeout to 1 in syslinux.cfg to avoid needing to hit | ||
+ | # enter to boot the installer. | ||
+ | # | ||
+ | # Language, country, and keyboard selection cannot be preseeded from a file, | ||
+ | # because the questions are asked before the preseed file can be loaded. | ||
+ | # Instead, to avoid these questions, pass some more parameters to the kernel: | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # If you need to pick a particular interface when netbooting before reading | ||
+ | # a preseed URL, pass a parameter like this as well: | ||
+ | # | ||
+ | # netcfg/ | ||
+ | # | ||
+ | # Note that the kernel accepts a maximum of 8 command line options and | ||
+ | # 8 environment options (including any options added by default for the | ||
+ | # installer). If these numbers are exceeded, 2.4 kernels will drop any | ||
+ | # excess options and 2.6 kernels will panic. With kernel 2.6.9 or newer, | ||
+ | # you can use 32 command line options and 32 environment options. | ||
+ | # Some of the default options, like ' | ||
+ | # safely removed for most installations, | ||
+ | # options for preseeding. | ||
+ | |||
+ | #### Shell commands. | ||
+ | |||
+ | # d-i preseeding is inherently not secure. Nothing in the installer checks | ||
+ | # for attempts at buffer overflows or other exploits of the values of a | ||
+ | # preseed file like this one. Only use preseed files from trusted | ||
+ | # locations! To drive that home, and because it's generally useful, here's | ||
+ | # a way to run any shell command you'd like inside the installer, | ||
+ | # automatically. | ||
+ | |||
+ | # This first command is run as early as possible, just after | ||
+ | # preseeding is read. | ||
+ | # | ||
+ | # This command is run just before the install finishes, but when there is | ||
+ | # still a usable /target directory. | ||
+ | # | ||
+ | # This command is run just as base-config is starting up. | ||
+ | # | ||
+ | # This command is run after base-config is done, just before the login: | ||
+ | # prompt. This is a good way to install a set of packages you want, or to | ||
+ | # tweak the configuration of the system. | ||
+ | # | ||
+ | |||
+ | #### Network configuration. | ||
+ | |||
+ | # Of course, this won't work if you're loading your preseed file from the | ||
+ | # network! But it's great if you're booting from CD or USB stick. You can | ||
+ | # also pass network config parameters in on the kernel params if you are | ||
+ | # loading preseed files from the network. | ||
+ | |||
+ | # netcfg will choose an interface that has link if possible. This makes it | ||
+ | # skip displaying a list if there is more than one interface. | ||
+ | # | ||
+ | |||
+ | # To pick a particular interface instead: | ||
+ | # | ||
+ | |||
+ | # If you prefer to configure the network manually, here's how: | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # Note that any hostname and domain names assigned from dhcp take | ||
+ | # precedence over values set here. However, setting the values still | ||
+ | # prevents the questions from being shown even if values come from dhcp. | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # Disable that annoying WEP key dialog. | ||
+ | # | ||
+ | # The wacky dhcp hostname that some ISPs use as a password of sorts. | ||
+ | # | ||
+ | |||
+ | #### Mirror settings. | ||
+ | |||
+ | d-i mirror/ | ||
+ | d-i mirror/ | ||
+ | d-i mirror/ | ||
+ | d-i mirror/ | ||
+ | # | ||
+ | |||
+ | ### Partitioning. | ||
+ | |||
+ | # If the system has free space you can choose to only partition that space. | ||
+ | # | ||
+ | # Alternatively, | ||
+ | # be given in either devfs or traditional non-devfs format. | ||
+ | # For example, to use the first disk devfs knows of: | ||
+ | # | ||
+ | |||
+ | # You can choose from any of the predefined partitioning recipes: | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # Or provide a recipe of your own... | ||
+ | # The recipe format is documented in the file devel/ | ||
+ | # If you have a way to get a recipe file into the d-i environment, | ||
+ | # just point at it. | ||
+ | # | ||
+ | # If not, you can put an entire recipe in one line. This example creates | ||
+ | # a small /boot partition, suitable swap, and uses the rest of the space | ||
+ | # for the root partition: | ||
+ | # | ||
+ | # For reference, here is that same recipe in a more readable form: | ||
+ | # boot-root :: | ||
+ | # 40 50 100 ext3 | ||
+ | # | ||
+ | # method{ format } format{ } | ||
+ | # | ||
+ | # | ||
+ | # . | ||
+ | # 500 10000 1000000000 ext3 | ||
+ | # method{ format } format{ } | ||
+ | # | ||
+ | # | ||
+ | # . | ||
+ | # 64 512 300% linux-swap | ||
+ | # method{ swap } format{ } | ||
+ | # . | ||
+ | |||
+ | # This makes partman automatically partition without confirmation. | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | |||
+ | #### Boot loader installation. | ||
+ | |||
+ | # Grub is the default boot loader (for x86). If you want lilo installed | ||
+ | # instead, uncomment this: | ||
+ | # | ||
+ | |||
+ | # This is fairly safe to set, it makes grub install automatically to the MBR | ||
+ | # if no other operating system is detected on the machine. | ||
+ | # | ||
+ | # This one makes grub-installer install to the MBR if if finds some other OS | ||
+ | # too, which is less safe as it might not be able to boot that other OS. | ||
+ | # | ||
+ | # Alternatively, | ||
+ | # uncomment and edit these lines: | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | |||
+ | ##### Finishing up the first stage install. | ||
+ | |||
+ | # Avoid that last message about the install being complete. | ||
+ | # | ||
+ | |||
+ | |||
+ | ##### Preseeding base-config. | ||
+ | # XXX: Note that most of this will not work right until base-config 2.40.4 | ||
+ | # is available. | ||
+ | |||
+ | # Avoid the introductory message. | ||
+ | # | ||
+ | |||
+ | # Avoid the final message. | ||
+ | # | ||
+ | |||
+ | # If you installed a display manager, but don't want to start it immediately | ||
+ | # after base-config finishes. | ||
+ | # | ||
+ | |||
+ | ###### Time zone setup. | ||
+ | |||
+ | # Controls whether or not the hardware clock is set to GMT. | ||
+ | # | ||
+ | |||
+ | # If you told the installer that you're in the United States, then you | ||
+ | # can set the time zone using this variable. | ||
+ | # (Choices are: Eastern, Central, Mountain, Pacific, Alaska, Hawaii, | ||
+ | # Aleutian, Arizona East-Indiana, | ||
+ | # | ||
+ | # If you told it you're in Canada. | ||
+ | # (Choices are: Newfoundland, | ||
+ | # East-Saskatchewan, | ||
+ | # | ||
+ | # If you told it you're in Brazil. (Choices are: East, West, Acre, | ||
+ | # DeNoronha, other) | ||
+ | # | ||
+ | # Many countries have only one time zone. If you told the installer you're | ||
+ | # in one of those countries, you can choose its standard time zone via this | ||
+ | # question. | ||
+ | # | ||
+ | # This question is asked as a fallback for countries other than those | ||
+ | # listed above, which have more than one time zone. You can preseed one of | ||
+ | # the time zones, or " | ||
+ | # | ||
+ | |||
+ | ###### Account setup. | ||
+ | |||
+ | # To preseed the root password, you have to put it in the clear in this | ||
+ | # file. That is not a very good idea, use caution! | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # If you want to skip creation of a normal user account. | ||
+ | # | ||
+ | # Alternatively, | ||
+ | # | ||
+ | # | ||
+ | # And their password, but use caution! | ||
+ | # | ||
+ | # | ||
+ | |||
+ | ###### Apt setup. | ||
+ | |||
+ | # This question controls what source the second stage installation uses | ||
+ | # for packages. Choices are cdrom, http, ftp, filesystem, edit sources list | ||
+ | # by hand | ||
+ | base-config apt-setup/ | ||
+ | |||
+ | # If you choose ftp or http, you'll be asked for a country and a mirror. | ||
+ | # | ||
+ | base-config apt-setup/ | ||
+ | base-config apt-setup/ | ||
+ | # Stop after choosing one mirror. | ||
+ | base-config apt-setup/ | ||
+ | |||
+ | # You can choose to install non-free and contrib software. | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # Do enable security updates. | ||
+ | base-config apt-setup/ | ||
+ | |||
+ | ###### Package selection. | ||
+ | |||
+ | # You can choose to install any combination of tasks that are available. | ||
+ | # Available tasks as of this writing include: Desktop environment, | ||
+ | # Web server, Print server, DNS server, File server, Mail server, | ||
+ | # SQL database, manual package selection. The last of those will run | ||
+ | # aptitude. You can also choose to install no tasks, and force the | ||
+ | # installation of a set of packages in some other way. | ||
+ | # XXX: this will not work until tasksel 2.12 is available | ||
+ | tasksel tasksel/ | ||
+ | |||
+ | ###### Mailer configuration. | ||
+ | |||
+ | # During a normal install, exim asks only two questions. Here's how to | ||
+ | # avoid even those. More complicated preseeding is possible. | ||
+ | # | ||
+ | # It's a good idea to set this to whatever user account you choose to | ||
+ | # create. Leaving the value blank results in postmaster mail going to | ||
+ | # / | ||
+ | # | ||
+ | |||
+ | ###### X Configuration. | ||
+ | |||
+ | # Preseeding Ubuntu' | ||
+ | # some details about the video hardware of the machine, since Ubuntu' | ||
+ | # configurator does not do fully automatic configuration of everything. | ||
+ | |||
+ | # X can detect the right driver for some cards, but if you're preseeding, | ||
+ | # you override whatever it chooses. Still, vesa will work most places. | ||
+ | # | ||
+ | |||
+ | # A caveat with mouse autodetection is that if it fails, X will retry it | ||
+ | # over and over. So if it's preseeded to be done, there is a possibility of | ||
+ | # an infinite loop if the mouse is not autodetected. | ||
+ | # | ||
+ | |||
+ | # Monitor autodetection is recommended. | ||
+ | # | ||
+ | # Uncomment if you have a LCD display. | ||
+ | # | ||
+ | # X has three configuration paths for the monitor. Here's how to preseed | ||
+ | # the " | ||
+ | # be available, and the " | ||
+ | # | ||
+ | # | ||
+ | |||
+ | ###### Everything else. | ||
+ | |||
+ | # Depending on what software you choose to install, or if things go wrong | ||
+ | # during the installation process, it's possible that other questions may | ||
+ | # be asked. You can preseed those too, of course. To get a list of every | ||
+ | # possible question that could be asked during an install, do an | ||
+ | # installation, | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # If you like, you can include other preseed files into this one. | ||
+ | # Any settings in those files will override pre-existing settings from this | ||
+ | # file. More that one file can be listed, separated by spaces; all will be | ||
+ | # loaded. The included files can have preseed/ | ||
+ | # own as well. Note that if the filenames are relative, they are taken from | ||
+ | # the same directory as the preseed file that includes them. | ||
+ | # | ||
+ | # More flexably, this runs a shell command and if it outputs the names of | ||
+ | # preseed files, includes those files. For example, to switch configs based | ||
+ | # on a particular usb storage device (in this case, a built-in card reader): | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Activez le serveur TFTP-HPA ==== | ||
+ | |||
+ | - Si vous utilisez **inetd**, vérifiez que le serveur est actif grâce à la commande : | ||
+ | |||
+ | < | ||
+ | $ cat / | ||
+ | tftp dgram | ||
+ | </ | ||
+ | |||
+ | Sinon ajoutez la ligne au fichier / | ||
+ | Redémarrer inetd : | ||
+ | |||
+ | sudo / | ||
+ | |||
+ | - Si vous utilisez **xinetd**, ajouter dans « / | ||
+ | |||
+ | < | ||
+ | | ||
+ | { | ||
+ | disable | ||
+ | socket_type = dgram | ||
+ | wait = yes | ||
+ | user = root | ||
+ | server | ||
+ | server_args = -v -s / | ||
+ | only_from | ||
+ | interface | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Redémarrez **xinetd** : | ||
+ | |||
+ | sudo killall -HUP xinetd | ||
+ | |||
+ | |||
+ | ===== Disquette d' | ||
+ | |||
+ | Construisez une disquette de démarrage **Etherboot** (Ethernet). // | ||
+ | |||
+ | Téléchargez et décompréssez Etherboot (etherboot-X.X.X.tar.bz2 depuis SourceForge dans mon cas). | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | Créez une disquette d' | ||
+ | |||
+ | make bin/ | ||
+ | |||
+ | (remplacez « 3c90x » par le type de votre carte) | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Netboot et test mémoire ===== | ||
+ | |||
+ | Il est possible de réaliser le test mémoire d'un PC client " | ||
+ | |||
+ | L' | ||
+ | |||
+ | Télécharger le fichier " | ||
+ | Déplacer et renommer le binaire dans le répertoire dédié au transfert tftp. | ||
+ | |||
+ | < | ||
+ | </ | ||
+ | (Pour une raison que j' | ||
+ | |||
+ | Editer, modifier ou créer le fichier / | ||
+ | |||
+ | < | ||
+ | DEFAULT menu.c32 | ||
+ | MENU MARGIN 0 | ||
+ | MENU ROWS -9 | ||
+ | MENU TABMSG | ||
+ | MENU TABMSGROW -3 | ||
+ | MENU CMDLINEROW -3 | ||
+ | MENU HELPMSGROW -4 | ||
+ | MENU HELPMSGENDROW -1 | ||
+ | MENU COLOR SCREEN 30;47 | ||
+ | MENU COLOR BORDER 30;47 | ||
+ | MENU COLOR TITLE 30;47 | ||
+ | MENU COLOR SCROLLBAR 30;47 | ||
+ | MENU COLOR SEL 37;40 | ||
+ | MENU COLOR UNSEL 30;47 | ||
+ | MENU COLOR CMDMARK 30;47 | ||
+ | MENU COLOR CMDLINE 30;47 | ||
+ | MENU COLOR TABMSG 37;40 | ||
+ | MENU COLOR DISABLED 37;40 | ||
+ | MENU COLOR HELP 37;40 | ||
+ | |||
+ | LABEL Lancer MemTest | ||
+ | KERNEL memtest.gz | ||
+ | </ | ||
+ | |||
+ | Voilà, c'est fini, vous pouvez démarrer votre PC client et bénéficier du fameux logiciel de test mémoire. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===== Voir aussi ===== | ||
+ | |||
+ | * [[netboot_live | Netboot avec l' | ||
+ | * [[http:// | ||
+ | * http:// | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | // Contributeurs : |