arch-wiki-md-repo
Version:
All arch-wiki articles in markdown format, updated every two days.
39 lines (25 loc) • 1.51 kB
Markdown
Related articles
* [Display manager](/index.php/Display_manager "Display manager")
[nodm](https://github.com/spanezz/nodm) is an automatic display manager which automatically starts an X session at system boot. It is meant for devices like smartphones, but can be used on a regular computer as well, if the security implications are acceptable.
The author is no longer continuing to develop, and has expressed a plan to replace it with a lightdm autologin wrapper [[2]](https://github.com/spanezz/nodm/issues/8).
## Installation
[Install](/index.php/Install "Install") the [nodm](https://www.archlinux.org/packages/?name=nodm) package.
## Usage
Now ensure no other display managers get started by [disabling](/index.php/Disabling "Disabling") their systemd services.
After installing nodm, modify the `/etc/nodm.conf` file. Set the `NODM_USER` variable to the user which should be automatically logged in, and change the `NODM_XSESSION` variable to point to the script that starts your session. The `NODM_XSESSION` script must be executable!
`/etc/nodm.conf`
```
NODM_USER=*user*
NODM_XSESSION=/home/*user/.xinitrc*
```
[Enable](/index.php/Enable "Enable") `nodm.service` so *nodm* will be started on boot.
### Login session
For proper session handling, create pam.d file with the following content:
`/etc/pam.d/nodm`
```
#%PAM-1.0
auth include system-local-login
account include system-local-login
password include system-local-login
session include system-local-login
```