|
176.
|
|
|
Advanced options
|
|
|
Tag: title
|
|
|
|
Opções avançadas
|
|
Translated and reviewed by
André Gondim
|
|
|
|
Located in
preseed.xml:1026
|
|
177.
|
|
|
Running custom commands during the installation
|
|
|
Tag: title
|
|
|
|
Executar comandos personalizados durante a instalação
|
|
Translated by
Antonio Moura
|
|
Reviewed by
Gerson "fserve" Barreiros
|
|
|
|
Located in
preseed.xml:1029
|
|
178.
|
|
|
A very powerful and flexible option offered by the preconfiguration tools is the ability to run commands or scripts at certain points in the installation.
|
|
|
Tag: para
|
|
|
|
Uma opção muito poderosa e flexível oferecida pelas ferramentas de pré-configuração é a habilidade de correr comandos ou scripts em certos pontos da instalação.
|
|
Translated by
Antonio Moura
|
|
Reviewed by
Gerson "fserve" Barreiros
|
|
|
|
Located in
preseed.xml:1030
|
|
179.
|
|
|
# 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
# preconfiguration file like this one. Only use preconfiguration 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.
#d-i preseed/early_command string anna-install some-udeb
# This command is run just before the install finishes, but when there is
# still a usable /target directory. You can chroot to /target and use it
# directly, or use the apt-install and in-target commands to easily install
# packages and run commands in the target system.
#d-i preseed/late_command string apt-install zsh; in-target chsh -s /bin/zsh
|
|
|
Tag: screen
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
# o preseed do d-i é inerentemente inseguro. Nada no instalador verifica
# se existem tentativas de buffer overflows e outros exploits nos valores do
# ficheiro de pré-configuração tal como este. Utilize apenas ficheiros
# de pré-configuração de procedência confiável! Para conseguir isso,
# e porque normalmente é útil, aqui está uma forma de correr qualquer
# comando da shell que queira dentro do instalador,
# automaticamente.
# Este primeiro comando é corrido tão cedo quanto possível, logo após o
# preseed ser lido.
#d-i preseed/early_command string anna-install some-udeb
# Este comando é corrido mesmo antes da instalação terminar, mas quando
# ainda existe um diretório /target utilizável. Pode fazer chroot para /target e utilizá-la
# diretamente, ou utilizar o apt-get install em comandos no alvo para instalar facilmente
# pacotes e correr comandos no sistema alvo.
#d-i preseed/late_command string apt-install zsh; in-target chsh -s /bin/zsh
|
|
Translated by
Antonio Moura
|
|
Reviewed by
Gerson "fserve" Barreiros
|
|
|
|
Located in
preseed.xml:1038
|
|
180.
|
|
|
Using preseeding to change default values
|
|
|
Tag: title
|
|
|
|
Utilizar o pressed para alterar valores por omissão
|
|
Translated by
Antonio Moura
|
|
Reviewed by
Gerson "fserve" Barreiros
|
|
|
|
Located in
preseed.xml:1043
|
|
181.
|
|
|
It is possible to use preseeding to change the default answer for a question, but still have the question asked. To do this the <firstterm>seen</firstterm> flag must be reset to <quote>false</quote> after setting the value for a question. <informalexample><screen>
d-i foo/bar string value
d-i foo/bar seen false
</screen></informalexample> The same effect can be achieved for <emphasis>all</emphasis> questions by setting the parameter <classname>preseed/interactive=true</classname> at the boot prompt. This can also be useful for testing or debugging your preconfiguration file.
|
|
|
Tag: para
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
preseed.xml:1044
|
|
182.
|
|
|
If you are preseeding using boot parameters, you can make the installer ask the corresponding question by using the <quote>?=</quote> operator, i.e. <userinput><replaceable>foo</replaceable>/<replaceable>bar</replaceable>?=<replaceable>value</replaceable></userinput>. This will of course only have effect for parameters that correspond to questions that are actually displayed during an installation and not for <quote>internal</quote> parameters.
|
|
|
Tag: para
|
|
|
|
(no translation yet)
|
|
|
|
Located in
preseed.xml:1058
|
|
183.
|
|
|
Chainloading preconfiguration files
|
|
|
Tag: title
|
|
|
|
Carregamento em série dos arquivos de pré-configuração
|
|
Translated and reviewed by
André Gondim
|
|
|
|
Located in
preseed.xml:1073
|
|
184.
|
|
|
It is possible to include other preconfiguration files from a preconfiguration file. Any settings in those files will override pre-existing settings from files loaded earlier. This makes it possible to put, for example, general networking settings for your location in one file and more specific settings for certain configurations in other files.
|
|
|
Tag: para
|
|
|
|
(no translation yet)
|
|
|
|
Located in
preseed.xml:1074
|
|
185.
|
|
|
# More than one file can be listed, separated by spaces; all will be
# loaded. The included files can have preseed/include directives of their
# own as well. Note that if the filenames are relative, they are taken from
# the same directory as the preconfiguration file that includes them.
#d-i preseed/include string x.cfg
# The installer can optionally verify checksums of preconfiguration files
# before using them. Currently only md5sums are supported, list the md5sums
# in the same order as the list of files to include.
#d-i preseed/include/checksum string 5da499872becccfeda2c4872f9171c3d
# More flexibly, this runs a shell command and if it outputs the names of
# preconfiguration files, includes those files.
#d-i preseed/include_command \
# string if [ "`hostname`" = bob ]; then echo bob.cfg; fi
# Most flexibly of all, this downloads a program and runs it. The program
# can use commands such as debconf-set to manipulate the debconf database.
# More than one script can be listed, separated by spaces.
# Note that if the filenames are relative, they are taken from the same
# directory as the preconfiguration file that runs them.
#d-i preseed/run string foo.sh
|
|
|
Tag: screen
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
preseed.xml:1084
|