Difference between revisions of "Nodm"

From ArchWiki
Jump to navigation Jump to search
(Created page with "Category:Display managers [http://enricozini.org/sw/nodm/ nodm] is an automatic display manager which automatically starts an X session at system boot. It is meant for d...")
 
 
(12 intermediate revisions by 10 users not shown)
Line 1: Line 1:
 
[[Category:Display managers]]
 
[[Category:Display managers]]
 +
[[ja:Nodm]]
 +
{{Related articles start}}
 +
{{Related|Display manager}}
 +
{{Related articles end}}
 +
{{Merge|Display manager|No content to speak of, link to [https://github.com/spanezz/nodm] instead}}
 +
[https://github.com/spanezz/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.
  
 +
The author is no longer continuing to develop, and has expressed a plan to replace it with a lightdm autologin wrapper [https://github.com/spanezz/nodm/issues/8].
  
[http://enricozini.org/sw/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 ==
  
==Installation==
+
[[Install]] the {{pkg|nodm}} package.
  
[[Install]] the {{AUR|nodm}} package.
+
== Usage ==
  
 
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, you should modify the /etc/nodm.conf file.
+
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!
  
Now set the NODM_USER variable to the user that should be automatically logged in, and change the NODM_XSESSION variable to point to the script that starts your session. This script must be executable!
+
{{hc|1=/etc/nodm.conf|2=
 +
NODM_USER=''user''
 +
NODM_XSESSION=/home/''user/.xinitrc
 +
}}
  
NODM_USER='{user}'
+
[[Enable]] {{ic|nodm.service}} so ''nodm'' will be started on boot.
NODM_XSESSION='/home/{user}/.xinitrc'
 
  
Enable the systemd service so it will be started on boot.
+
=== Login session ===
 +
For proper session handling, create pam.d file with the following content:
  
  sudo systemctl enable nodm
+
{{hc|1=/etc/pam.d/nodm|2=
 +
#%PAM-1.0
 +
 
 +
auth      include  system-local-login
 +
account  include  system-local-login
 +
password include  system-local-login
 +
session  include  system-local-login
 +
}}
 +
 
 +
== Known issues ==
 +
 
 +
=== Unclean poweroff/reboot ===
 +
 
 +
Users have reported in [https://github.com/spanezz/nodm/issues/5 this issue] that upon poweroff/reboot, [[systemd]] will fail to kill nodm, resulting in a delayed poweroff until systemd hard kills the remaining processes.

Latest revision as of 15:17, 7 July 2019

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.

The author is no longer continuing to develop, and has expressed a plan to replace it with a lightdm autologin wrapper [2].

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-local-login
account   include   system-local-login
password  include   system-local-login
session   include   system-local-login

Known issues

Unclean poweroff/reboot

Users have reported in this issue that upon poweroff/reboot, systemd will fail to kill nodm, resulting in a delayed poweroff until systemd hard kills the remaining processes.