<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="lt">
	<id>https://wiki.eofnet.lt/w//index.php?action=history&amp;feed=atom&amp;title=XServer_automatinis_prisijungimas_ir_programos_paleidimas</id>
	<title>XServer automatinis prisijungimas ir programos paleidimas - Versijų istorija</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.eofnet.lt/w//index.php?action=history&amp;feed=atom&amp;title=XServer_automatinis_prisijungimas_ir_programos_paleidimas"/>
	<link rel="alternate" type="text/html" href="https://wiki.eofnet.lt/w//index.php?title=XServer_automatinis_prisijungimas_ir_programos_paleidimas&amp;action=history"/>
	<updated>2026-04-19T09:08:48Z</updated>
	<subtitle>Šio puslapio versijų istorija projekte</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.eofnet.lt/w//index.php?title=XServer_automatinis_prisijungimas_ir_programos_paleidimas&amp;diff=7929&amp;oldid=prev</id>
		<title>\dev\null: fix permission</title>
		<link rel="alternate" type="text/html" href="https://wiki.eofnet.lt/w//index.php?title=XServer_automatinis_prisijungimas_ir_programos_paleidimas&amp;diff=7929&amp;oldid=prev"/>
		<updated>2016-08-06T17:40:54Z</updated>

		<summary type="html">&lt;p&gt;fix permission&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Naujas puslapis&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Naudosime [https://github.com/spanezz/nodm nodm] įrankį, kuris leis paleisti XServer be vartotojo/slaptažodžio prašymo ir automatiškai paleisime kokią nors programą. Šis būdas praverčia kai norima sistemos startavimo metu paleisti tam tikrą programą, display terminale ar kokiame panašaus pobūdžio kioske. Naudosime [[twm]], kaip window managerį.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Įdiegiam nodm ===&lt;br /&gt;
 sudo apt-get install libpam0g-dev help2man twm&lt;br /&gt;
 git clone https://github.com/spanezz/nodm nodm&lt;br /&gt;
 cd nodm&lt;br /&gt;
 ./autogen.sh&lt;br /&gt;
 ./configure --prefix=/opt/nodm&lt;br /&gt;
 make &amp;amp;&amp;amp; sudo make install&lt;br /&gt;
=== Sukonfigūruojam ===&lt;br /&gt;
&lt;br /&gt;
Sukuriam ir įrašom į failą '''/etc/pam.d/nodm''':&lt;br /&gt;
&lt;br /&gt;
'''JEIGU DEBIAN'''&lt;br /&gt;
 session       required   pam_env.so readenv=1&lt;br /&gt;
 session       required   pam_env.so readenv=1 envfile=/etc/default/locale&lt;br /&gt;
 session    required   pam_limits.so&lt;br /&gt;
 @include common-account&lt;br /&gt;
 @include common-password&lt;br /&gt;
 @include common-session&lt;br /&gt;
&lt;br /&gt;
'''JEIGU KITA DISTRA'''&lt;br /&gt;
 #%PAM-1.0&lt;br /&gt;
 auth       required     pam_nologin.so&lt;br /&gt;
 auth       include      system-local-login&lt;br /&gt;
 account    include      system-local-login&lt;br /&gt;
 password   include      system-local-login&lt;br /&gt;
 session    include      system-local-login&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Taip pat reikia paredaguoti pačio nodm konfigą, pakeisti username&lt;br /&gt;
 # nodm configuration file&lt;br /&gt;
 # Controls the user that is used to automatically log in&lt;br /&gt;
 NODM_USER='username'&lt;br /&gt;
 # Options to pass to the X server (for example: &amp;quot;vt7 -nolisten tcp&amp;quot;)&lt;br /&gt;
 NODM_X_OPTIONS='-nolisten tcp'&lt;br /&gt;
 # Minimum time (in seconds) that a session should last in order for nodm to&lt;br /&gt;
 # decide that it has not quit too soon.  If an X session will run for less than&lt;br /&gt;
 # this time, nodm will wait an increasing bit of time before restarting it.&lt;br /&gt;
 NODM_MIN_SESSION_TIME=60&lt;br /&gt;
 # Restart session after it ending?&lt;br /&gt;
 NODM_RESTART_SESSION=0&lt;br /&gt;
 # Path to the xinit program&lt;br /&gt;
 NODM_XINIT='/usr/bin/xinit'&lt;br /&gt;
 # Path to the X session script (useful if using xinit instead of startx).&lt;br /&gt;
 # NOTE: This file needs to be executable!&lt;br /&gt;
 NODM_XSESSION='/home/username/.xinitrc'&lt;br /&gt;
Į /home/username/.xinitrc įrašom norimą paleisti [[Window Manager|WM]]&lt;br /&gt;
 exec fluxbox&lt;br /&gt;
Padarom jį paleidžiamu:&lt;br /&gt;
 chmod +x /home/username/.xinitrc&lt;br /&gt;
Toliau seka tiktai systemd paleidžiamasis skriptukas:&lt;br /&gt;
 [Unit]&lt;br /&gt;
 Description=nodm display manager&lt;br /&gt;
 [Service]&lt;br /&gt;
 EnvironmentFile=/etc/nodm.conf&lt;br /&gt;
 ExecStart=/opt/nodm/sbin/nodm&lt;br /&gt;
 TimeoutStopSec=4sec&lt;br /&gt;
 [Install]&lt;br /&gt;
 WantedBy=graphical.target&lt;br /&gt;
Jį sudėti galime į '''/etc/systemd/system/''' užvadinę '''nodm.service'''&lt;br /&gt;
Taip pat norimo vartotojo home directorijoje t.y /home/username/.xinitrc esančiame faile aprašome&lt;br /&gt;
 exec twm&lt;br /&gt;
=== Paleidimas ===&lt;br /&gt;
Leidžiame parašius&lt;br /&gt;
 systemctl start nodm&lt;br /&gt;
=== Programos paleidimas kartu ===&lt;br /&gt;
&lt;br /&gt;
Taip pat su Xserveriu ir [[twm]] galime startuoti programą į .xinitrc prieš '''exec''' įrašę '''programa&amp;amp;''', viskas turi atrodyti maždaug taip:&lt;br /&gt;
 programa&amp;amp;&lt;br /&gt;
 exec twm&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:Debian]]&lt;br /&gt;
[[Category:Ubuntu]]&lt;br /&gt;
[[Category:Archlinux]]&lt;br /&gt;
[[Category:Slackware]]&lt;br /&gt;
[[Category:Gentoo]]&lt;br /&gt;
[[Category:CentOS]]&lt;/div&gt;</summary>
		<author><name>\dev\null</name></author>
	</entry>
</feed>