ΠΡΠΏΠΎΠ»Π½ΠΈΡΠ΅ ΠΊΠΎΠΌΠ°Π½Π΄Ρ ΠΏΠ΅ΡΠ΅Π΄ Π·Π°ΠΏΡΡΠΊΠΎΠΌ ΡΠ»ΡΠΆΠ±Ρ.
ΠΡΠΎΠ²Π΅ΡΡΡΠ΅ ΡΠΎΡΡΠΎΡΠ½ΠΈΠ΅ ΡΠ»ΡΠΆΠ±Ρ, ΠΊΠΎΡΠΎΡΠ°Ρ Π±ΡΠ΄Π΅Ρ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΡΡΡ Π² ΠΊΠ°ΡΠ΅ΡΡΠ²Π΅ ΠΏΡΠΈΠΌΠ΅ΡΠ°.
$ systemctl status gdm
β gdm.service - GNOME Display Manager
Loaded: loaded (/usr/lib/systemd/system/gdm.service; static)
Active: active (running) since Mon 2024-11-18 23:27:08 CET; 8min ago
Main PID: 1799 (gdm3)
Tasks: 4 (limit: 9324)
Memory: 6.4M (peak: 8.7M)
CPU: 82ms
CGroup: /system.slice/gdm.service
ββ1799 /usr/sbin/gdm3
Nov 18 23:27:08 desktop systemd[1]: Starting gdm.service - GNOME Display Manager...
Nov 18 23:27:08 desktop systemd[1]: Started gdm.service - GNOME Display Manager.
Nov 18 23:27:08 desktop gdm-launch-environment][1806]: pam_unix(gdm-launch-environment:session): session open>
Nov 18 23:27:15 desktop gdm-password][2355]: gkr-pam: unable to locate daemon control file
Nov 18 23:27:15 desktop gdm-password][2355]: gkr-pam: stashed password to try later in open session
Nov 18 23:27:15 desktop gdm-password][2355]: pam_unix(gdm-password:session): session opened for user milosz(u>
Nov 18 23:27:15 desktop gdm-password][2355]: gkr-pam: unlocked login keyring
Nov 18 23:27:17 desktop gdm3[1799]: Gdm: Child process -1842 was already dead.
ΠΡΠΎΠ²Π΅ΡΡΡΠ΅ ΡΠ°ΠΉΠ» ΠΊΠΎΠ½ΡΠΈΠ³ΡΡΠ°ΡΠΈΠΈ, ΠΊΠΎΡΠΎΡΡΠΉ Π±ΡΠ΄Π΅Ρ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ ΠΏΠ΅ΡΠ΅Π΄ Π·Π°ΠΏΡΡΠΊΠΎΠΌ ΡΠ»ΡΠΆΠ±Ρ.
$ cat /etc/gdm3/custom.conf
# GDM configuration storage # # See /usr/share/gdm/gdm.schemas for a list of available options. [daemon] # Uncomment the line below to force the login screen to use Xorg #WaylandEnable=false # Enabling automatic login # AutomaticLoginEnable = true # AutomaticLogin = user1 # Enabling timed login # TimedLoginEnable = true # TimedLogin = user1 # TimedLoginDelay = 10 [security] [xdmcp] [chooser] [debug] # Uncomment the line below to turn on debugging # More verbose logs # Additionally lets the X server dump core if it crashes #Enable=true
Π‘ΠΎΠ·Π΄Π°ΠΉΡΠ΅ ΠΊΠ°ΡΠ°Π»ΠΎΠ³ ΠΏΠ΅ΡΠ΅ΠΎΠΏΡΠ΅Π΄Π΅Π»Π΅Π½ΠΈΡ ΡΠ»ΡΠΆΠ±.
$ sudo mkdir /etc/systemd/system/gdm.service.d
Π‘ΠΎΠ·Π΄Π°ΠΉΡΠ΅ ΠΏΠ΅ΡΠ΅ΠΎΠΏΡΠ΅Π΄Π΅Π»Π΅Π½ΠΈΠ΅ ΡΠ»ΡΠΆΠ±Ρ, ΠΊΠΎΡΠΎΡΠΎΠ΅ ΠΈΠ·ΠΌΠ΅Π½ΠΈΡ ΡΠ°ΠΉΠ» ΠΊΠΎΠ½ΡΠΈΠ³ΡΡΠ°ΡΠΈΠΈ.
$ echo -e "[Service]\nExecStartPre=/bin/sed -i 's/AutomaticLoginEnable=.*/AutomaticLoginEnable=false/g' /etc/gdm3/custom.conf\nExecStartPre=/bin/sed -i '/^AutomaticLogin=/d' /etc/gdm3/custom.conf" | \ sudo tee /etc/systemd/system/gdm.service.d/disable_automatic_login.conf
[Service] ExecStartPre=/bin/sed -i 's/AutomaticLoginEnable=.*/AutomaticLoginEnable=false/g' /etc/gdm3/custom.conf ExecStartPre=/bin/sed -i '/^AutomaticLogin=/d' /etc/gdm3/custom.conf
ΠΠ΅ΡΠ΅Π·Π°Π³ΡΡΠ·ΠΈΡΠ΅ ΠΊΠΎΠ½ΡΠΈΠ³ΡΡΠ°ΡΠΈΡ systemd.
$ sudo systemctl daemon-reload
ΠΡΠΎΠ²Π΅ΡΡΡΠ΅ ΡΠΎΡΡΠΎΡΠ½ΠΈΠ΅ ΡΠ»ΡΠΆΠ±Ρ.
$ systemctl status gdm
β gdm.service - GNOME Display Manager
Loaded: loaded (/usr/lib/systemd/system/gdm.service; static)
Drop-In: /etc/systemd/system/gdm.service.d
ββdisable_automatic_login.conf
Active: active (running) since Mon 2024-11-18 23:27:08 CET; 14min ago
Main PID: 1799 (gdm3)
Tasks: 4 (limit: 9324)
Memory: 6.3M (peak: 8.7M)
CPU: 82ms
CGroup: /system.slice/gdm.service
ββ1799 /usr/sbin/gdm3
Nov 18 23:27:08 desktop systemd[1]: Starting gdm.service - GNOME Display Manager...
Nov 18 23:27:08 desktop systemd[1]: Started gdm.service - GNOME Display Manager.
Nov 18 23:27:08 desktop gdm-launch-environment][1806]: pam_unix(gdm-launch-environment:session): session open>
Nov 18 23:27:15 desktop gdm-password][2355]: gkr-pam: unable to locate daemon control file
Nov 18 23:27:15 desktop gdm-password][2355]: gkr-pam: stashed password to try later in open session
Nov 18 23:27:15 desktop gdm-password][2355]: pam_unix(gdm-password:session): session opened for user milosz(u>
Nov 18 23:27:15 desktop gdm-password][2355]: gkr-pam: unlocked login keyring
Nov 18 23:27:17 desktop gdm3[1799]: Gdm: Child process -1842 was already dead.
ΠΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠ΅ ΡΠ°ΠΉΠ»Π° ΠΊΠΎΠ½ΡΠΈΠ³ΡΡΠ°ΡΠΈΠΈ.
ΠΡΠΎΠ²Π΅ΡΡΡΠ΅ ΡΠ°ΠΉΠ» ΠΊΠΎΠ½ΡΠΈΠ³ΡΡΠ°ΡΠΈΠΈ.
$ cat /etc/gdm3/custom.conf
# GDM configuration storage # # See /usr/share/gdm/gdm.schemas for a list of available options. [daemon] AutomaticLoginEnable=True AutomaticLogin=milosz # Uncomment the line below to force the login screen to use Xorg #WaylandEnable=false # Enabling automatic login # AutomaticLoginEnable = true # AutomaticLogin = user1 # Enabling timed login # TimedLoginEnable = true # TimedLogin = user1 # TimedLoginDelay = 10 [security] [xdmcp] [chooser] [debug] # Uncomment the line below to turn on debugging # More verbose logs # Additionally lets the X server dump core if it crashes #Enable=true
ΠΠ΅ΡΠ΅Π·Π°ΠΏΡΡΡΠΈΡΠ΅ ΠΎΠΏΠ΅ΡΠ°ΡΠΈΠΎΠ½Π½ΡΡ ΡΠΈΡΡΠ΅ΠΌΡ ΠΈΠ»ΠΈ ΡΠ»ΡΠΆΠ±Ρ, ΠΊΠΎΡΠΎΡΠ°Ρ ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΠ΅ΡΡΡ Π² ΡΡΠΎΠΌ ΠΏΡΠΈΠΌΠ΅ΡΠ΅.
$ sudo systemctl restart gdm
ΠΡΠΎΡΠΌΠΎΡΡΠΈΡΠ΅ ΡΠ°ΠΉΠ» ΠΊΠΎΠ½ΡΠΈΠ³ΡΡΠ°ΡΠΈΠΈ.
$ cat /etc/gdm3/custom.conf
# GDM configuration storage # # See /usr/share/gdm/gdm.schemas for a list of available options. [daemon] AutomaticLoginEnable=false # Uncomment the line below to force the login screen to use Xorg #WaylandEnable=false # Enabling automatic login # AutomaticLoginEnable = true # AutomaticLogin = user1 # Enabling timed login # TimedLoginEnable = true # TimedLogin = user1 # TimedLoginDelay = 10 [security] [xdmcp] [chooser] [debug] # Uncomment the line below to turn on debugging # More verbose logs # Additionally lets the X server dump core if it crashes #Enable=true
- π§Β ΠΠ°ΠΊ Π·Π°ΠΏΡΡΡΠΈΡΡ ΡΠ»ΡΠΆΠ±Ρ systemd ΠΏΡΠΈ Π·Π°Π³ΡΡΠ·ΠΊΠ΅ ΡΠΈΡΡΠ΅ΠΌΡ
- π³Β ΠΠ²ΡΠΎΠΌΠ°ΡΠΈΡΠ΅ΡΠΊΠΈΠΉ Π·Π°ΠΏΡΡΠΊ Docker ΠΊΠΎΠ½ΡΠ΅ΠΉΠ½Π΅ΡΠ°
- π§Β ΠΠ°ΠΊ Π·Π°ΠΏΡΡΠΊΠ°ΡΡ ΠΊΠΎΠΌΠ°Π½Π΄Ρ Bash Π² ΡΠΎΠ½ΠΎΠ²ΠΎΠΌ ΡΠ΅ΠΆΠΈΠΌΠ΅ Π² Linux
![]()
