Display Manager (Español)

From ParabolaWiki
Jump to: navigation, search
Resumen
Un gestor de pantalla presenta una pantalla de acceso donde se pide un nombre de usuario y una contraseña. La sesión comienza cuand se ingresan correctamente esos datos. Este artículo trata la instalación, configuración y solución de problemas frecuentes para los gestores de pantallas más comunes.
Vistazo general
The Xorg project provides a free software implementation of the X Window System – the foundation for a graphical user interface. Desktop environments such as LXQt, Openbox/KDE, Cinnamon, MATE, Xfce, GNOME, Deepin provide a complete graphical environment. Various window managers offer alternative and novel environments, and may be used standalone to conserve system resources. Display managers provide a graphical login prompt.
Relacionados
Start X at Boot

Un gestor de pantalla, o gestor de acceso, es una interfaz gráfica (pantalla) que se muestra al final del proceso de arranque del sistema en vez del shell predefinido. Hay varios tipos de gestores de pantalla, así como hay varios tipos de gestores de ventanas y entornos de escritorio. Usualmente hay cierto margen para personalización para esos gestores.

1 Lista de gestores de pantalla

Tip: Si usa un entorno de escritorio, usted podría considerar usar gestor de pantalla manager que corresponda con dicho entorno.

1.1 Gráficos

  • SLiM (Simple Login Manager) — ligero y elegante
https://github.com/iwamatsu/slim || slim
  • Qingy — ultraligero y muy configurable (usa DirectFB)
http://qingy.sourceforge.net/ || qingy
  • XDM — Gestor de pantalla X con soporte para XDMCP, selector de host.
http://www.x.org/archive/X11R7.5/doc/man/man1/xdm.1.html || xorg-xdm
http://projects.gnome.org/gdm/ || gdm
This article or section is poorly written.
Please help improve the quality of writing in this article to prevent it from being considered for deletion. (Discuss)

2 Cargando el gestor de pantalla

Existen dos métodos fáciles para hacer que el sistema cargue el gestor de pantalla:

el método inittab
El gestor de pantalla se cargará automáticamente después del inicio y se regenerará en caso de una caída del sistema.
el método Daemon
El gestor de pantalla se cargará automáticamente durante el inicio como un daemon.

El método inittab le permitirá arrancar directamente desde modo framebuffer en el GRUB. This is an advantage should the graphics driver crash in X, for example, you would not be forced to fix your system from a live CD or through other needlessly complex means.

With the inittab method all you would have to do is to press 'e' for edit at the GRUB prompt and just add the number of the run-level you prefer, such as run-level 3, to the end of the 'kernel' line to boot directly into framebuffer mode in order to fix your system/X (this described in detail below.)

When using the daemon method you can simply boot into runlevel 1/S which will prevent any daemons, including the login manager, from being started. Then you can fix your system/X and switch into the runlevel 3. Both methods are equally easy.

2.1 método inittab

See inittab for additional information.

The run-levels are:

0    Halt
1(S) Single-user
2    Not used
3    Multi-user (default)
4    Not used
5    X11
6    Reboot

2.1.1 Modify default run-level

Edit /etc/inittab and find the line that looks like this:

id:3:initdefault:

Modify the 3 to 5 for X11:

id:5:initdefault:

The next time you reboot, the 'X display manager' should run. For other display managers see below:

2.1.2 Modify default display manager

Edit /etc/inittab and find the line that looks like similar to this one (near the end):

x:5:respawn:/usr/bin/xdm -nodaemon

Modify it so it points to the display manager of your choice:

  • GDM:
x:5:respawn:/usr/sbin/gdm -nodaemon
  • KDM:
x:5:respawn:/usr/bin/kdm -nodaemon
  • SLiM
x:5:respawn:/usr/bin/slim >/dev/null 2>&1
  • LXDM:
x:5:respawn:/usr/sbin/lxdm >& /dev/null

The next time you reboot, the display manager of your choice should run.

2.1.3 Auto switch to tty7

You may find login prompt from agetty appeared before the display manager is started. If you don't like to see this prompt, add this line to inittab:

xt:5:wait:/usr/bin/chvt 7

2.2 Método Daemon

You simply need to add the daemon name to your daemons array in /etc/rc.conf

Near the end of the file you will see a line that looks similar to the following:

DAEMONS=(syslogd klogd !pcmcia network netfs crond) # this is the daemons array

Append the daemon name for the display manager of your choice (gdm, kdm, or slim):

DAEMONS=(syslogd klogd !pcmcia network netfs crond slim)

Ensure you start the display manager last in the DAEMONS array, otherwise X will later allocate a tty device which was previously claimed by Getty (see /etc/inittab). Not placing the display manager at the end can cause X crashes, and is therefore unsupported.

The next time you reboot, the display manager should run. In the event that it does not, be certain that you typed in the name correctly, and that the manager you selected is installed. It also helps to ensure that startx is not stopping with errors.

Note: If you use this method and your display manager hangs while loading, or X does not recognize any input device, you will need to boot into single user mode (run-level 1) using the examples above and remove the display manager daemon from rc.conf.

2.3 systemd method

Many display managers come packaged with a systemd service file. Simply run the following command, replacing the daemon name for the display manager of your choice, gdm, kdm, lightdm, or slim.

systemctl enable slim.service

The next time you reboot, the display manager should run.

3 Solución de problemas

You can switch runlevel if you want to test out the display manager without rebooting. See Switching runlevel for instructions.

3.1 D-Bus is required

If system loads the XDM but does not login, check the logs in /var/log/xdm.log If there is a message like:

Dbus error: Unable to open session: Failed to connect to socket 

or GDM displays:

Couldn't connect to system bus: Failed to connect to socket... 

You need to start D-Bus before XDM. You can add it to your DAEMONS array so it starts automatically on boot or start manually by rc.d start dbus. Also, XDM will cycle back and restart itself if you're not starting a window manager session.

4 Reconocimientos

This wiki article is based on ArchWiki. We may have removed non-FSDG bits from it.