Scroll to navigation

LIVE-CONFIG(7) Proyecto Live Systems LIVE-CONFIG(7)

NOMBRE

live-config - Componentes de configuración del sistema

DESCRIPCIÓN

live-config contiene los componentes que configuran un sistema en vivo durante el proceso de arranque (late userspace).

CONFIGURACIÓN

live-config se puede configurar mediante parámetros durante el proceso de arranque o mediante ficheros de configuración. Si se usan ambos métodos para una misma opción, los parámetros de arranque tienen preferencia sobre los ficheros de configuración. Cuando se utiliza la persistencia, los componentes de live-config sólo se ejecutan una vez.

Si se utiliza live-build(7) para construir el sistema en vivo, los parámetros de live-config utilizados por defecto se pueden establecer mediante la opción --bootappend-live, ver la página del manual lb_config(1)

Parámetros de arranque (componentes)

live-config sólo se activa si se utiliza como parámetro de arranque «boot=live». Adicionalmente, se debe especificar a live-config qué componentes tiene que ejecutar mediante el parámetro «live-config.components» o qué componentes no tiene que ejecutar mediante la opción «live-config.nocomponents». Si se usan las dos opciones «live-config.components» y «live-config.nocomponents» a la vez, o si alguna de las dos se especifica varias veces, la última tiene prioridad sobre las anteriores.

live-config.components | components
Se ejecutan todos los componentes. Esto es lo que las imágenes en vivo utilizan por defecto.
live-config.components=COMPONENT1,COMPONENT2, ... COMPONENTn | components=COMPONENT1,COMPONENT2, ... COMPONENTn
Sólo se ejecutan los scripts especificados. Se debe tener en cuenta que el orden es importante. p.ej. «live-config=sudo,user-setup» no funcionaría ya que el usuario debe añadirse antes de configurarse como «sudo». Puede revisarse los nombres de los scripts en /lib/live/config para ver su orden.
live-config.nocomponents | nocomponents
No se ejecuta ningún componente. Es lo mismo que no utilizar ninguno de «live-config.components» o «live-config.nocomponents».
live-config.nocomponents=COMPONENT1,COMPONENT2, ... COMPONENTn | nocomponents=COMPONENT1,COMPONENT2, ... COMPONENTn
Se ejecutan todos los componentes, a excepción de los especificados.

Parámetros de arranque (opciones)

Algunos componentes pueden cambiar su comportamiento según que parámetros de arranque se utilicen.

live-config.debconf-preseed=filesystem|medium|URL1|URL2| ... |URLn | debconf-preseed=medium|filesystem|URL1|URL2| ... |URLn
Allows one to fetch and apply one or more debconf preseed files to be applied to the debconf database. Note that the URLs must be fetchable by wget (http, ftp or file://).
Si el fichero está en el medio en vivo, se puede obtener con file:///lib/live/mount/medium/FILE, o con file:///FILE si se encuentra en el directorio raíz del sistema en vivo.
Todos los ficheros de preconfiguración en /lib/live/config-preseed/ en el sistema de ficheros raíz del sistema en vivo pueden activarse automáticamente con la palabra clave «filesystem».
Todos los ficheros en /live/config-preseed/ del medio en vivo pueden activarse automáticamente con la palabra clave «medium».
Si se combinan varios mecanismos, los ficheros de preconfiguración del sistema de ficheros se aplican primero, después los ficheros de preconfiguración del medio, y en último lugar los de red.
live-config.hostname=HOSTNAME | hostname=HOSTNAME
Allows one to set the hostname of the system. The default is 'debian'.
live-config.username=USERNAME | username=USERNAME
Allows one to set the username that gets created for autologin. The default is 'user'.
live-config.user-default-groups=GROUP1,GROUP2 ... GROUPn | user-default-groups=GROUP1,GROUP2 ... GROUPn
Allows one to set the default groups of the users that gets created for autologin is member of. The default is 'audio cdrom dip floppy video plugdev netdev powerdev scanner bluetooth'.
live-config.user-fullname="USER FULLNAME" | user-fullname="USER·FULLNAME"
Allows one to set the fullname of the users that gets created for autologin. On Debian the default is 'Debian Live user'.
live-config.locales=LOCALE1,LOCALE2·...·LOCALEn | locales=LOCALE1,LOCALE2·...·LOCALEn
Allows one to set the locale of the system, e.g. 'de_CH.UTF-8'. The default is 'en_US.UTF-8'. In case the selected locale is not already available on the system, it is automatically generated on the fly.
live-config.timezone=TIMEZONE | timezone=TIMEZONE
Allows one to set the timezone of the system, e.g. 'Europe/Zurich'. The default is 'UTC'.
live-config.keyboard-model=KEYBOARD_MODEL | keyboard-model=KEYBOARD_MODEL
Allows one to change the keyboard model. There is no default value set.
live-config.keyboard-layouts=KEYBOARD_LAYOUT1,KEYBOARD_LAYOUT2 ... KEYBOARD_LAYOUTn | keyboard-layouts=KEYBOARD_LAYOUT1,KEYBOARD_LAYOUT2 ... KEYBOARD_LAYOUTn
Allows one to change the keyboard layouts. If more than one is specified, the tools of the desktop environment will allow one to switch it under X11. There is no default value set.
live-config.keyboard-variants=KEYBOARD_VARIANT1,KEYBOARD_VARIANT2 ... KEYBOARD_VARIANTn | keyboard-variants=KEYBOARD_VARIANT1,KEYBOARD_VARIANT2 ... KEYBOARD_VARIANTn
Allows one to change the keyboard variants. If more than one is specified, the same number of values as keyboard-layouts values should be specified as they will be matched one-to-one in the order specified. Blank values are allowed. The tools of the desktop environment will allow one to switch between each layout and variant pair under X11. There is no default value set.
live-config.keyboard-options=KEYBOARD_OPTIONS | keyboard-options=KEYBOARD_OPTIONS
Allows one to change the keyboard options. There is no default value set.
live-config.sysv-rc=SERVICE1,SERVICE2 ... SERVICEn | sysv-rc=SERVICE1,SERVICE2 ... SERVICEn
Allows one to disable sysv services through update-rc.d.
live-config.utc=yes|no | utc=yes|no
Allows one to change if the system is assuming that the hardware clock is set to UTC or not. The default is 'yes'.
live-config.x-session-manager=X_SESSION_MANAGER | x-session-manager=X_SESSION_MANAGER
Allows one to set the x-session-manager through update-alternatives.
live-config.xorg-driver=XORG_DRIVER | xorg-driver=XORG_DRIVER
Allows one to set xorg driver instead of autodetecting it. If a PCI ID is specified in /usr/share/live/config/xserver-xorg/DRIVER.ids within the live system, the DRIVER is enforced for these devices. If both a boot parameter and an override are found, the boot parameter takes precedence.
live-config.xorg-resolution=XORG_RESOLUTION·|·xorg-resolution=XORG_RESOLUTION
Allows one to set xorg resolution instead of autodetecting it, e.g. 1024x768.
live-config.wlan-driver=WLAN_DRIVER | wlan-driver=WLAN_DRIVER
Allows one to set WLAN driver instead of autodetecting it. If a PCI ID is specified in /usr/share/live/config/broadcom-sta/DRIVER.ids within the live system, the DRIVER is enforced for these devices. If both a boot parameter and an override are found, the boot parameter takes precedence.
live-config.hooks=filesystem|medium|URL1|URL2| ... |URLn | hooks=medium|filesystem|URL1|URL2| ... |URLn
Allows one to fetch and execute one or more arbitrary files. Note that the URLs must be fetchable by wget (http, ftp or file://), the files are executed in /tmp of the running live system, and that the files needs their dependencies, if any, already installed, e.g. if a python script should be executed the system needs python installed. Some hooks for some common use-cases are available at /usr/share/doc/live-config/examples/hooks/ and <http://live-systems.org/other/hooks>.
Si el fichero está en el medio en vivo, se puede obtener con file:///lib/live/mount/medium/FILE, o con file:///FILE si se encuentra en el directorio raíz del sistema en vivo.
Todos los scripts gancho de /lib/live/config-hooks/ del directorio raíz del sistema en vivo pueden activarse con la palabra clave «filesystem».
Todos los scripts gancho de /live/config-hooks/ del medio en vivo pueden activarse con la palabra clave «medium».
Si se combinan varios mecanismos, los scripts gancho del sistema de ficheros se ejecutan primero, después los del medio, y en último lugar los de red.

Parámetros de arranque (atajos)

Para algunos casos de uso común en los que es necesario combinar varios parámetros individuales, live-config proporciona atajos. Esto permite tener control total sobre todas las opciones así como poder hacer las cosas de forma sencilla.

live-config.noroot | noroot
Desactiva sudo y policyKit, el usuario no puede obtener privilegios de superusuario en el sistema.
live-config.noautologin | noautologin
Desactiva el inicio de sesión automático en la consola y el inicio de sesión automático en la interfaz gráfica.
live-config.nottyautologin | nottyautologin
Desactiva el inicio de sesión automático en la consola, sin afectar al inicio de sesión automático gráfico.
live-config.nox11autologin | nox11autologin
Desactiva el inicio de sesión automático con cualquier gestor de ventanas, sin afectar el inicio de sesión automático en un terminal tty.

Parámetros de arranque (opciones especiales)

For special use cases there are some special boot parameters.

live-config.debug | debug
Activa la información sobre errores en live-config.

Ficheros de configuración

live-config se puede configurar (pero no activar) mediante ficheros de configuración. Todo, excepto los atajos que se pueden configurar con un parámetro de arranque, puede ser, alternativamente, configurado a través de uno o más ficheros. Aunque se utilicen los ficheros de configuración, el parámetro «boot =live» es necesario para activar live-config.

Nota: Si se utilizan ficheros de configuración, todos los parámetros de arranque deben (preferiblemente) ser especificados en la variable LIVE_CONFIG_CMDLINE o bien, se pueden especificar variables individuales, el usuario debe asegurarse de crear todas las variables necesarias para tener una configuración válida.

Los ficheros de configuración se pueden colocar en el sistema de ficheros raíz (/etc/live/config.conf, /etc/live/config.conf.d/*.conf), o en el medio en vivo (live/config.conf, live/config.conf.d/*.conf). Si ambos directorios se utilizan para una determinada opción, la del medio en vivo tienen prioridad sobre la del sistema de ficheros raíz.

Although the configuration files placed in the configuration directories do not require a particular name, it is suggested for consistency reasons to either use 'vendor.conf' or 'project.conf' as a naming scheme (whereas 'vendor' or 'project' is replaced with the actual name, resulting in a filename like 'progress-linux.conf').

El contenido de los ficheros de configuración consiste en una o más de las siguientes variables.

LIVE_CONFIG_CMDLINE=PARAMETER1 PARAMETER2 ... PARAMETERn
Esta variable corresponde a la línea de comandos del gestor de arranque.
LIVE_CONFIG_COMPONENTS=COMPONENT1,COMPONENT2, ... COMPONENTn
Esta variable corresponde al parámetro 'live-config.components=COMPONENT1,COMPONENT2, ... COMPONENTn'
LIVE_CONFIG_NOCOMPONENTS=COMPONENT1,COMPONENT2, ... COMPONENTn
Esta variable corresponde al parámetro 'live-config.nocomponents=COMPONENT1,COMPONENT2, ... COMPONENTn'
LIVE_DEBCONF_PRESEED=filesystem|medium|URL1|URL2| ... |URLn
Esta variable corresponde al parámetro 'live-config.debconf-preseed=filesystem|medium|URL1|URL2| ... |URLn'.
LIVE_HOSTNAME=HOSTNAME
Esta variable corresponde al parámetro 'live-config.hostname=HOSTNAME'
LIVE_USERNAME=USERNAME
Esta variable corresponde al parámetro 'live-config.username=USERNAME'
LIVE_USER_DEFAULT_GROUPS=GROUP1,GROUP2 ... GROUPn
Esta variable corresponde al parámetro 'live-config.user-default-groups="GROUP1,GROUP2 ... GROUPn"'
LIVE_USER_FULLNAME="USER FULLNAME"
Esta variable corresponde al parámetro 'live-config.user-fullname="USER FULLNAME"'
LIVE_LOCALES=LOCALE1,LOCALE2 ... LOCALEn
Esta variable corresponde al parámetro 'live-config.locales=LOCALE1,LOCALE2 ... LOCALEn'
LIVE_TIMEZONE=TIMEZONE
Esta variable corresponde al parámetro 'live-config.timezone=TIMEZONE'
LIVE_KEYBOARD_MODEL=KEYBOARD_MODEL
Esta variable corresponde al parámetro 'live-config.keyboard-model=KEYBOARD_MODEL'
LIVE_KEYBOARD_LAYOUTS=KEYBOARD_LAYOUT1,KEYBOARD_LAYOUT2 ... KEYBOARD_LAYOUTn
Esta variable corresponde al parámetro 'live-config.keyboard-layouts=KEYBOARD_LAYOUT1,KEYBOARD_LAYOUT2 ... KEYBOARD_LAYOUTn'
LIVE_KEYBOARD_VARIANTS=KEYBOARD_VARIANT1,KEYBOARD_VARIANT2 ... KEYBOARD_VARIANTn
Esta variable corresponde al parámetro 'live-config.keyboard-variants=KEYBOARD_VARIANT1,KEYBOARD_VARIANT2 ... KEYBOARD_VARIANTn'
LIVE_KEYBOARD_OPTIONS=KEYBOARD_OPTIONS
Esta variable corresponde al parámetro 'live-config.keyboard-options=KEYBOARD_OPTIONS'
LIVE_SYSV_RC=SERVICE1,SERVICE2 ... SERVICEn
Esta variable corresponde al parámetro 'live-config.sysv-rc=SERVICE1,SERVICE2 ... SERVICEn'
LIVE_UTC=yes|no
Esta variable corresponde al parámetro 'live-config.utc=yes|no'
LIVE_X_SESSION_MANAGER=X_SESSION_MANAGER
Esta variable corresponde al parámetro 'live-config.x-session-manager=X_SESSION_MANAGER'
LIVE_XORG_DRIVER=XORG_DRIVER
Esta variable corresponde al parámetro 'live-config.xorg-driver=XORG_DRIVER'
LIVE_XORG_RESOLUTION=XORG_RESOLUTION
Esta variable corresponde al parámetro 'live-config.xorg-resolution=XORG_RESOLUTION'
LIVE_WLAN_DRIVER=WLAN_DRIVER
Esta variable corresponde al parámetro 'live-config.wlan-driver=WLAN_DRIVER'
LIVE_HOOKS=filesystem|medium|URL1|URL2| ... |URLn
Esta variable corresponde al parámetro 'live-config.hooks=filesystem|medium|URL1|URL2| ... |URLn'
LIVE_CONFIG_DEBUG=true|false
Esta variable corresponde al parámetro 'live-config.debug'

PERSONALIZACIÓN

live-config puede ser fácilmente personalizado para proyectos derivados o de uso local.

Añadiendo nuevos componentes de configuración

Los proyectos derivados pueden incluir sus componentes en /lib/live/config y sin necesidad de hacer otra cosa, las secuencias de comandos se ejecutarán automáticamente durante el proceso de arranque.

Lo ideal sería incluir los componentes en su propio paquete debian. En /usr/share/doc/live-config/examples se encuentra un paquete de muestra con un componente de ejemplo.

Eliminación de componentes de configuración existentes.

It is not really possible to remove components itself in a sane way yet without requiring either to ship a locally modified live-config package or using dpkg-divert. However, the same can be achieved by disabling the respective components through the live-config.nocomponents mechanism, see above. To avoid to always need specifying disabled components through the boot parameter, a configuration file should be used, see above.

Lo ideal sería incluir los ficheros de configuración para el sistema en vivo dentro de un paquete debian. Se puede encontrar un paquete de muestra con un ejemplo de configuración en /usr/share/doc/live-config/examples.

COMPONENTES

live-config incluye los siguientes componentes en /lib/live/config.

debconf
allows one to apply arbitrary preseed files placed on the live media or an http/ftp server.
hostname
configura /etc/hostname y /etc/hosts.
user-setup
Añade una cuenta de usuario en vivo.
sudo
garantiza privilegios de sudo al usuario del sistema en vivo.
locales
configura las variantes locales.
locales-all
configura las variantes locales-all.
tzdata
configura /etc/timezone.
gdm3
configura el inicio de sesión automático en gdm3.
kdm
configura el inicio de sesión automático en kdm.
lightdm
configura el inicio de sesión automático en lightdm.
lxdm
configura el inicio de sesión automático en lxdm.
nodm
configura el inicio de sesión automático en nodm.
slim
configura el inicio de sesión automático en slim.
xinit
configura el inicio de sesión automático con xinit.
keyboard-configuration
configura el teclado.
systemd
configura el inicio de sesión automático con systemd.
sysvinit
configura sysvinit.
sysv-rc
configura sysv-rc desactivando los sevicios listados.
login
Desactiva lastlog.
apport
Desactiva apport.
gnome-panel-data
Desactiva el botón de bloqueo de la pantalla.
gnome-power-manager
Desactiva la hibernación.
gnome-screensaver
Impide que el salvapantallas bloquee la pantalla.
kaboom
Desactiva el asistente de migración de KDE (Squeeze y superior).
kde-services
Desactiva algunos servicios de KDE no deseados (squeeze y superior).
policykit
garantiza privilegios de usuario mediante policykit.
ssl-cert
Regenera los certificados ssl snake-oil.
anacron
Desactiva anacron.
util-linux
Desactiva util-linux' hwclock.
login
Desactiva lastlog.
xserver-xorg
configura xserver-xorg.
broadcom-sta
configura el controlador broadcom-sta WLAN.
openssh-server
Recrea las claves del host openssh-server.
xfce4-panel
configura xfce4-panel utilizando las opciones por defecto.
xscreensaver
Impide que el salvapantallas bloquee la pantalla.
hooks
allows one to run arbitrary commands from a file placed on the live media or an http/ftp server.

FICHEROS

/etc/live/config.conf
/etc/live/config.conf.d/*.conf
live/config.conf
live/config.conf.d/*.conf
/lib/live/config.sh
/lib/live/config/
/var/lib/live/config/
/var/log/live/config.log
/live/config-hooks/*
live/config-hooks/*
/live/config-preseed/*
live/config-preseed/*

VER ADEMÁS

live-boot(7)

live-build(7)

live-tools(7)

PÁGINA PRINCIPAL

Se puede encontrar más información acerca de live-config y el proyecto Live Systems en su página principal en <http://live-systems.org/> y en el manual en <http://live-systems.org/manual/>.

ERRORES

Se puede notificar los fallos enviando un informe de errores sobre el paquete live-config al Sistema de Seguimiento de Errores en <http://bugs.debian.org/> o escribiendo un mensaje a la lista de correo de Live Systems a la dirección <debian-live@lists.debian.org>.

AUTOR

live-config fue escrito por Daniel Baumann <mail@daniel-baumann.ch>.
2015-09-23 5.0~a5-1