The xdm program manages a collection of X displays, which may be on the local host or remote servers. The design of xdm was guided by the needs of X terminals as well as the X Consortium standard XDMCP, the X Display Manager Control Protocol. Now, /.xsession for xdm is the rough equivalent of /.xinitrc for startx. Depending on how you start X, either the /.xinitrc or the /.xsession file will be executed by the server. Finally, if you execute i3wm from /.xinitrc or /.xsession, then i3wm.
Xorg provides an X Display Manager, XDM, which can be used for login session management. XDM provides a graphical interface for choosing which display server to connect to and for entering authorization information such as a login and password combination.
This section demonstrates how to configure the X Display Manager on FreeBSD. Some desktop environments provide their own graphical login manager. Refer to Section 5.7.1, “GNOME” for instructions on how to configure the GNOME Display Manager and Section 5.7.2, “KDE” for instructions on how to configure the KDE Display Manager.
To install XDM, use the x11/xdm package or port. Once installed, XDM can be configured to run when the machine boots up by editing this entry in /etc/ttys
:
Change the off
to on
and save the edit. The ttyv8
in this entry indicates that XDM will run on the ninth virtual terminal.
Xdm Startup Programs
The XDM configuration directory is located in /usr/local/etc/X11/xdm
. This directory contains several files used to change the behavior and appearance of XDM, as well as a few scripts and programs used to set up the desktop when XDM is running. Table 5.1, “XDM Configuration Files” summarizes the function of each of these files. The exact syntax and usage of these files is described in xdm(1).
File | Description |
---|---|
Xaccess | The protocol for connecting to XDM is called the X Display Manager Connection Protocol (XDMCP). This file is a client authorization ruleset for controlling XDMCP connections from remote machines. By default, this file does not allow any remote clients to connect. |
Xresources | This file controls the look and feel of the XDM display chooser and login screens. The default configuration is a simple rectangular login window with the hostname of the machine displayed at the top in a large font and “Login:” and “Password:” prompts below. The format of this file is identical to the app-defaults file described in the Xorg documentation. |
Xservers | The list of local and remote displays the chooser should provide as login choices. |
Xsession | Default session script for logins which is run by XDM after a user has logged in. This points to a customized session script in ~/.xsession . |
Xsetup_ * | Script to automatically launch applications before displaying the chooser or login interfaces. There is a script for each display being used, named Xsetup_* , where * is the local display number. Typically these scripts run one or two programs in the background such as xconsole . |
xdm-config | Global configuration for all displays running on this machine. |
xdm-errors | Contains errors generated by the server program. If a display that XDM is trying to start hangs, look at this file for error messages. These messages are also written to the user's ~/.xsession-errors on a per-session basis. |
xdm-pid | The running process ID of XDM. |
Xdm Startup Programs Near Me
By default, only users on the same system can login using XDM. To enable users on other systems to connect to the display server, edit the access control rules and enable the connection listener.
To configure XDM to listen for any remote connection, comment out the DisplayManager.requestPort
line in /usr/local/etc/X11/xdm/xdm-config
by putting a !
in front of it:
Save the edits and restart XDM. To restrict remote access, look at the example entries in /usr/local/etc/X11/xdm/Xaccess
and refer to xdm(1) for further information.
Xdm Startup Programs 2020
Hello All,
I want to achieve a kiosk like functionality with minimal X. Purposely chose twm as that offers no icons, menus and if I manage to run my intended program under twm, that will give a better kiosk feel. I do not want KDE, GNOME, XFCE to claim memory and resources as they have no role in my application.
Now I have referred to various posts on net and know XDM cannot give me autologin. I plan to autologin via inittab / mingetty and startx from .bashrc and expect to launch application from within twm.
I have been unable to get my application to run in twm on start. I have put the command in .xinitrc (after executing twm, like below), but it does not launch at all. But if I start a xterm and run that command, application runs without any problem.
I have tried putting that in .profile and .bashrc too without success. Any ideas ?
My .xinitrc section:Thanks in advance.