Difference between revisions of "Nodm"

From ArchWiki
Jump to navigation Jump to search
(Add information about login sessions)
m (Clarified what needs to be marked as executable, since I was very confused myself.)
Line 15: Line 15:
 
Now ensure no other display managers get started by [[disabling]] their systemd services.
 
Now ensure no other display managers get started by [[disabling]] their systemd services.
  
After installing nodm, modify the {{ic|/etc/nodm.conf}} file. Set the {{ic|NODM_USER}} variable to the user which should be automatically logged in, and change the {{ic|NODM_XSESSION}} variable to point to the script that starts your session. This script must be executable!
+
After installing nodm, modify the {{ic|/etc/nodm.conf}} file. Set the {{ic|NODM_USER}} variable to the user which should be automatically logged in, and change the {{ic|NODM_XSESSION}} variable to point to the script that starts your session. The {{ic|NODM_XSESSION}} script must be executable!
  
 
{{hc|1=/etc/nodm.conf|2=
 
{{hc|1=/etc/nodm.conf|2=

Revision as of 00:20, 5 March 2017

Merge-arrows-2.pngThis article or section is a candidate for merging with Display manager.Merge-arrows-2.png

Notes: No content to speak of, link to [1] instead (Discuss in Talk:Nodm#)

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.

Installation

Install the nodm package.

Usage

Now ensure no other display managers get started by 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 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-login
account   include   system-login
password  include   system-login
session   include   system-login