• R/O
  • HTTP
  • SSH
  • HTTPS

alterlinux: 提交

GitHubのミラーです
https://github.com/FascodeNet/alterlinux


Commit MetaInfo

修订版2eb66087b6a323fade467f16a9295936a5278801 (tree)
时间2020-05-24 10:42:19
作者hayao <shun819.mail@gmai...>
Commiterhayao

Log Message

Merge branch 'live-lightdm' into dev

更改概述

差异

--- /dev/null
+++ b/channels/lxde/airootfs.i686/etc/lightdm/lightdm.conf
@@ -0,0 +1,163 @@
1+#
2+# General configuration
3+#
4+# start-default-seat = True to always start one seat if none are defined in the configuration
5+# greeter-user = User to run greeter as
6+# minimum-display-number = Minimum display number to use for X servers
7+# minimum-vt = First VT to run displays on
8+# lock-memory = True to prevent memory from being paged to disk
9+# user-authority-in-system-dir = True if session authority should be in the system location
10+# guest-account-script = Script to be run to setup guest account
11+# logind-check-graphical = True to on start seats that are marked as graphical by logind
12+# log-directory = Directory to log information to
13+# run-directory = Directory to put running state in
14+# cache-directory = Directory to cache to
15+# sessions-directory = Directory to find sessions
16+# remote-sessions-directory = Directory to find remote sessions
17+# greeters-directory = Directory to find greeters
18+# backup-logs = True to move add a .old suffix to old log files when opening new ones
19+# dbus-service = True if LightDM provides a D-Bus service to control it
20+#
21+[LightDM]
22+#start-default-seat=true
23+#greeter-user=lightdm
24+#minimum-display-number=0
25+#minimum-vt=7 # Setting this to a value < 7 implies security issues, see FS#46799
26+#lock-memory=true
27+#user-authority-in-system-dir=false
28+#guest-account-script=guest-account
29+#logind-check-graphical=false
30+#log-directory=/var/log/lightdm
31+run-directory=/run/lightdm
32+#cache-directory=/var/cache/lightdm
33+#sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions
34+#remote-sessions-directory=/usr/share/lightdm/remote-sessions
35+#greeters-directory=$XDG_DATA_DIRS/lightdm/greeters:$XDG_DATA_DIRS/xgreeters
36+#backup-logs=true
37+#dbus-service=true
38+
39+#
40+# Seat configuration
41+#
42+# Seat configuration is matched against the seat name glob in the section, for example:
43+# [Seat:*] matches all seats and is applied first.
44+# [Seat:seat0] matches the seat named "seat0".
45+# [Seat:seat-thin-client*] matches all seats that have names that start with "seat-thin-client".
46+#
47+# type = Seat type (local, xremote)
48+# pam-service = PAM service to use for login
49+# pam-autologin-service = PAM service to use for autologin
50+# pam-greeter-service = PAM service to use for greeters
51+# xserver-command = X server command to run (can also contain arguments e.g. X -special-option)
52+# xmir-command = Xmir server command to run (can also contain arguments e.g. Xmir -special-option)
53+# xserver-config = Config file to pass to X server
54+# xserver-layout = Layout to pass to X server
55+# xserver-allow-tcp = True if TCP/IP connections are allowed to this X server
56+# xserver-share = True if the X server is shared for both greeter and session
57+# xserver-hostname = Hostname of X server (only for type=xremote)
58+# xserver-display-number = Display number of X server (only for type=xremote)
59+# xdmcp-manager = XDMCP manager to connect to (implies xserver-allow-tcp=true)
60+# xdmcp-port = XDMCP UDP/IP port to communicate on
61+# xdmcp-key = Authentication key to use for XDM-AUTHENTICATION-1 (stored in keys.conf)
62+# greeter-session = Session to load for greeter
63+# greeter-hide-users = True to hide the user list
64+# greeter-allow-guest = True if the greeter should show a guest login option
65+# greeter-show-manual-login = True if the greeter should offer a manual login option
66+# greeter-show-remote-login = True if the greeter should offer a remote login option
67+# user-session = Session to load for users
68+# allow-user-switching = True if allowed to switch users
69+# allow-guest = True if guest login is allowed
70+# guest-session = Session to load for guests (overrides user-session)
71+# session-wrapper = Wrapper script to run session with
72+# greeter-wrapper = Wrapper script to run greeter with
73+# guest-wrapper = Wrapper script to run guest sessions with
74+# display-setup-script = Script to run when starting a greeter session (runs as root)
75+# display-stopped-script = Script to run after stopping the display server (runs as root)
76+# greeter-setup-script = Script to run when starting a greeter (runs as root)
77+# session-setup-script = Script to run when starting a user session (runs as root)
78+# session-cleanup-script = Script to run when quitting a user session (runs as root)
79+# autologin-guest = True to log in as guest by default
80+# autologin-user = User to log in with by default (overrides autologin-guest)
81+# autologin-user-timeout = Number of seconds to wait before loading default user
82+# autologin-session = Session to load for automatic login (overrides user-session)
83+# autologin-in-background = True if autologin session should not be immediately activated
84+# exit-on-failure = True if the daemon should exit if this seat fails
85+#
86+[Seat:*]
87+#type=local
88+#pam-service=lightdm
89+#pam-autologin-service=lightdm-autologin
90+#pam-greeter-service=lightdm-greeter
91+#xserver-command=X
92+#xmir-command=Xmir
93+#xserver-config=
94+#xserver-layout=
95+#xserver-allow-tcp=false
96+#xserver-share=true
97+#xserver-hostname=
98+#xserver-display-number=
99+#xdmcp-manager=
100+#xdmcp-port=177
101+#xdmcp-key=
102+greeter-session=lightdm-slick-greeter
103+#greeter-hide-users=false
104+#greeter-allow-guest=true
105+#greeter-show-manual-login=false
106+#greeter-show-remote-login=true
107+#user-session=default
108+#allow-user-switching=true
109+#allow-guest=true
110+#guest-session=
111+session-wrapper=/etc/lightdm/Xsession
112+#greeter-wrapper=
113+#guest-wrapper=
114+#display-setup-script=
115+#display-stopped-script=
116+#greeter-setup-script=
117+#session-setup-script=
118+#session-cleanup-script=
119+#autologin-guest=false
120+autologin-user=%USERNAME%
121+autologin-user-timeout=0
122+#autologin-in-background=false
123+autologin-session=lxde
124+#exit-on-failure=false
125+
126+#
127+# XDMCP Server configuration
128+#
129+# enabled = True if XDMCP connections should be allowed
130+# port = UDP/IP port to listen for connections on
131+# listen-address = Host/address to listen for XDMCP connections (use all addresses if not present)
132+# key = Authentication key to use for XDM-AUTHENTICATION-1 or blank to not use authentication (stored in keys.conf)
133+# hostname = Hostname to report to XDMCP clients (defaults to system hostname if unset)
134+#
135+# The authentication key is a 56 bit DES key specified in hex as 0xnnnnnnnnnnnnnn. Alternatively
136+# it can be a word and the first 7 characters are used as the key.
137+#
138+[XDMCPServer]
139+#enabled=false
140+#port=177
141+#listen-address=
142+#key=
143+#hostname=
144+
145+#
146+# VNC Server configuration
147+#
148+# enabled = True if VNC connections should be allowed
149+# command = Command to run Xvnc server with
150+# port = TCP/IP port to listen for connections on
151+# listen-address = Host/address to listen for VNC connections (use all addresses if not present)
152+# width = Width of display to use
153+# height = Height of display to use
154+# depth = Color depth of display to use
155+#
156+[VNCServer]
157+#enabled=false
158+#command=Xvnc
159+#port=5900
160+#listen-address=
161+#width=1024
162+#height=768
163+#depth=8
--- a/channels/lxde/airootfs.i686/root/customize_airootfs_lxde.sh
+++ b/channels/lxde/airootfs.i686/root/customize_airootfs_lxde.sh
@@ -98,4 +98,21 @@ if [[ "${japanese}" = true ]]; then
9898 else
9999 remove /etc/skel/Desktop/welcome-to-alter-jp.desktop
100100 remove /home/${username}/Desktop/welcome-to-alter-jp.desktop
101-fi
\ No newline at end of file
101+fi
102+
103+
104+# Added autologin group to auto login
105+groupadd autologin
106+usermod -aG autologin ${username}
107+
108+
109+# Enable LightDM to auto login
110+if [[ "${boot_splash}" = true ]]; then
111+ systemctl enable lightdm.service
112+else
113+ systemctl enable lightdm-plymouth.service
114+fi
115+
116+
117+# Replace auto login user
118+sed -i s/%USERNAME%/${username}/g /etc/lightdm/lightdm.conf
--- /dev/null
+++ b/channels/lxde/airootfs.x86_64/etc/lightdm/lightdm.conf
@@ -0,0 +1,163 @@
1+#
2+# General configuration
3+#
4+# start-default-seat = True to always start one seat if none are defined in the configuration
5+# greeter-user = User to run greeter as
6+# minimum-display-number = Minimum display number to use for X servers
7+# minimum-vt = First VT to run displays on
8+# lock-memory = True to prevent memory from being paged to disk
9+# user-authority-in-system-dir = True if session authority should be in the system location
10+# guest-account-script = Script to be run to setup guest account
11+# logind-check-graphical = True to on start seats that are marked as graphical by logind
12+# log-directory = Directory to log information to
13+# run-directory = Directory to put running state in
14+# cache-directory = Directory to cache to
15+# sessions-directory = Directory to find sessions
16+# remote-sessions-directory = Directory to find remote sessions
17+# greeters-directory = Directory to find greeters
18+# backup-logs = True to move add a .old suffix to old log files when opening new ones
19+# dbus-service = True if LightDM provides a D-Bus service to control it
20+#
21+[LightDM]
22+#start-default-seat=true
23+#greeter-user=lightdm
24+#minimum-display-number=0
25+#minimum-vt=7 # Setting this to a value < 7 implies security issues, see FS#46799
26+#lock-memory=true
27+#user-authority-in-system-dir=false
28+#guest-account-script=guest-account
29+#logind-check-graphical=false
30+#log-directory=/var/log/lightdm
31+run-directory=/run/lightdm
32+#cache-directory=/var/cache/lightdm
33+#sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions
34+#remote-sessions-directory=/usr/share/lightdm/remote-sessions
35+#greeters-directory=$XDG_DATA_DIRS/lightdm/greeters:$XDG_DATA_DIRS/xgreeters
36+#backup-logs=true
37+#dbus-service=true
38+
39+#
40+# Seat configuration
41+#
42+# Seat configuration is matched against the seat name glob in the section, for example:
43+# [Seat:*] matches all seats and is applied first.
44+# [Seat:seat0] matches the seat named "seat0".
45+# [Seat:seat-thin-client*] matches all seats that have names that start with "seat-thin-client".
46+#
47+# type = Seat type (local, xremote)
48+# pam-service = PAM service to use for login
49+# pam-autologin-service = PAM service to use for autologin
50+# pam-greeter-service = PAM service to use for greeters
51+# xserver-command = X server command to run (can also contain arguments e.g. X -special-option)
52+# xmir-command = Xmir server command to run (can also contain arguments e.g. Xmir -special-option)
53+# xserver-config = Config file to pass to X server
54+# xserver-layout = Layout to pass to X server
55+# xserver-allow-tcp = True if TCP/IP connections are allowed to this X server
56+# xserver-share = True if the X server is shared for both greeter and session
57+# xserver-hostname = Hostname of X server (only for type=xremote)
58+# xserver-display-number = Display number of X server (only for type=xremote)
59+# xdmcp-manager = XDMCP manager to connect to (implies xserver-allow-tcp=true)
60+# xdmcp-port = XDMCP UDP/IP port to communicate on
61+# xdmcp-key = Authentication key to use for XDM-AUTHENTICATION-1 (stored in keys.conf)
62+# greeter-session = Session to load for greeter
63+# greeter-hide-users = True to hide the user list
64+# greeter-allow-guest = True if the greeter should show a guest login option
65+# greeter-show-manual-login = True if the greeter should offer a manual login option
66+# greeter-show-remote-login = True if the greeter should offer a remote login option
67+# user-session = Session to load for users
68+# allow-user-switching = True if allowed to switch users
69+# allow-guest = True if guest login is allowed
70+# guest-session = Session to load for guests (overrides user-session)
71+# session-wrapper = Wrapper script to run session with
72+# greeter-wrapper = Wrapper script to run greeter with
73+# guest-wrapper = Wrapper script to run guest sessions with
74+# display-setup-script = Script to run when starting a greeter session (runs as root)
75+# display-stopped-script = Script to run after stopping the display server (runs as root)
76+# greeter-setup-script = Script to run when starting a greeter (runs as root)
77+# session-setup-script = Script to run when starting a user session (runs as root)
78+# session-cleanup-script = Script to run when quitting a user session (runs as root)
79+# autologin-guest = True to log in as guest by default
80+# autologin-user = User to log in with by default (overrides autologin-guest)
81+# autologin-user-timeout = Number of seconds to wait before loading default user
82+# autologin-session = Session to load for automatic login (overrides user-session)
83+# autologin-in-background = True if autologin session should not be immediately activated
84+# exit-on-failure = True if the daemon should exit if this seat fails
85+#
86+[Seat:*]
87+#type=local
88+#pam-service=lightdm
89+#pam-autologin-service=lightdm-autologin
90+#pam-greeter-service=lightdm-greeter
91+#xserver-command=X
92+#xmir-command=Xmir
93+#xserver-config=
94+#xserver-layout=
95+#xserver-allow-tcp=false
96+#xserver-share=true
97+#xserver-hostname=
98+#xserver-display-number=
99+#xdmcp-manager=
100+#xdmcp-port=177
101+#xdmcp-key=
102+greeter-session=lightdm-slick-greeter
103+#greeter-hide-users=false
104+#greeter-allow-guest=true
105+#greeter-show-manual-login=false
106+#greeter-show-remote-login=true
107+#user-session=default
108+#allow-user-switching=true
109+#allow-guest=true
110+#guest-session=
111+session-wrapper=/etc/lightdm/Xsession
112+#greeter-wrapper=
113+#guest-wrapper=
114+#display-setup-script=
115+#display-stopped-script=
116+#greeter-setup-script=
117+#session-setup-script=
118+#session-cleanup-script=
119+#autologin-guest=false
120+autologin-user=%USERNAME%
121+autologin-user-timeout=0
122+#autologin-in-background=false
123+autologin-session=lxde
124+#exit-on-failure=false
125+
126+#
127+# XDMCP Server configuration
128+#
129+# enabled = True if XDMCP connections should be allowed
130+# port = UDP/IP port to listen for connections on
131+# listen-address = Host/address to listen for XDMCP connections (use all addresses if not present)
132+# key = Authentication key to use for XDM-AUTHENTICATION-1 or blank to not use authentication (stored in keys.conf)
133+# hostname = Hostname to report to XDMCP clients (defaults to system hostname if unset)
134+#
135+# The authentication key is a 56 bit DES key specified in hex as 0xnnnnnnnnnnnnnn. Alternatively
136+# it can be a word and the first 7 characters are used as the key.
137+#
138+[XDMCPServer]
139+#enabled=false
140+#port=177
141+#listen-address=
142+#key=
143+#hostname=
144+
145+#
146+# VNC Server configuration
147+#
148+# enabled = True if VNC connections should be allowed
149+# command = Command to run Xvnc server with
150+# port = TCP/IP port to listen for connections on
151+# listen-address = Host/address to listen for VNC connections (use all addresses if not present)
152+# width = Width of display to use
153+# height = Height of display to use
154+# depth = Color depth of display to use
155+#
156+[VNCServer]
157+#enabled=false
158+#command=Xvnc
159+#port=5900
160+#listen-address=
161+#width=1024
162+#height=768
163+#depth=8
--- a/channels/lxde/airootfs.x86_64/root/customize_airootfs_lxde.sh
+++ b/channels/lxde/airootfs.x86_64/root/customize_airootfs_lxde.sh
@@ -105,4 +105,21 @@ if [[ "${japanese}" = true ]]; then
105105 else
106106 remove /etc/skel/Desktop/welcome-to-alter-jp.desktop
107107 remove /home/${username}/Desktop/welcome-to-alter-jp.desktop
108-fi
\ No newline at end of file
108+fi
109+
110+
111+# Added autologin group to auto login
112+groupadd autologin
113+usermod -aG autologin ${username}
114+
115+
116+# Enable LightDM to auto login
117+if [[ "${boot_splash}" = true ]]; then
118+ systemctl enable lightdm.service
119+else
120+ systemctl enable lightdm-plymouth.service
121+fi
122+
123+
124+# Replace auto login user
125+sed -i s/%USERNAME%/${username}/g /etc/lightdm/lightdm.conf
--- /dev/null
+++ b/channels/xfce/airootfs.i686/etc/lightdm/lightdm.conf
@@ -0,0 +1,163 @@
1+#
2+# General configuration
3+#
4+# start-default-seat = True to always start one seat if none are defined in the configuration
5+# greeter-user = User to run greeter as
6+# minimum-display-number = Minimum display number to use for X servers
7+# minimum-vt = First VT to run displays on
8+# lock-memory = True to prevent memory from being paged to disk
9+# user-authority-in-system-dir = True if session authority should be in the system location
10+# guest-account-script = Script to be run to setup guest account
11+# logind-check-graphical = True to on start seats that are marked as graphical by logind
12+# log-directory = Directory to log information to
13+# run-directory = Directory to put running state in
14+# cache-directory = Directory to cache to
15+# sessions-directory = Directory to find sessions
16+# remote-sessions-directory = Directory to find remote sessions
17+# greeters-directory = Directory to find greeters
18+# backup-logs = True to move add a .old suffix to old log files when opening new ones
19+# dbus-service = True if LightDM provides a D-Bus service to control it
20+#
21+[LightDM]
22+#start-default-seat=true
23+#greeter-user=lightdm
24+#minimum-display-number=0
25+#minimum-vt=7 # Setting this to a value < 7 implies security issues, see FS#46799
26+#lock-memory=true
27+#user-authority-in-system-dir=false
28+#guest-account-script=guest-account
29+#logind-check-graphical=false
30+#log-directory=/var/log/lightdm
31+run-directory=/run/lightdm
32+#cache-directory=/var/cache/lightdm
33+#sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions
34+#remote-sessions-directory=/usr/share/lightdm/remote-sessions
35+#greeters-directory=$XDG_DATA_DIRS/lightdm/greeters:$XDG_DATA_DIRS/xgreeters
36+#backup-logs=true
37+#dbus-service=true
38+
39+#
40+# Seat configuration
41+#
42+# Seat configuration is matched against the seat name glob in the section, for example:
43+# [Seat:*] matches all seats and is applied first.
44+# [Seat:seat0] matches the seat named "seat0".
45+# [Seat:seat-thin-client*] matches all seats that have names that start with "seat-thin-client".
46+#
47+# type = Seat type (local, xremote)
48+# pam-service = PAM service to use for login
49+# pam-autologin-service = PAM service to use for autologin
50+# pam-greeter-service = PAM service to use for greeters
51+# xserver-command = X server command to run (can also contain arguments e.g. X -special-option)
52+# xmir-command = Xmir server command to run (can also contain arguments e.g. Xmir -special-option)
53+# xserver-config = Config file to pass to X server
54+# xserver-layout = Layout to pass to X server
55+# xserver-allow-tcp = True if TCP/IP connections are allowed to this X server
56+# xserver-share = True if the X server is shared for both greeter and session
57+# xserver-hostname = Hostname of X server (only for type=xremote)
58+# xserver-display-number = Display number of X server (only for type=xremote)
59+# xdmcp-manager = XDMCP manager to connect to (implies xserver-allow-tcp=true)
60+# xdmcp-port = XDMCP UDP/IP port to communicate on
61+# xdmcp-key = Authentication key to use for XDM-AUTHENTICATION-1 (stored in keys.conf)
62+# greeter-session = Session to load for greeter
63+# greeter-hide-users = True to hide the user list
64+# greeter-allow-guest = True if the greeter should show a guest login option
65+# greeter-show-manual-login = True if the greeter should offer a manual login option
66+# greeter-show-remote-login = True if the greeter should offer a remote login option
67+# user-session = Session to load for users
68+# allow-user-switching = True if allowed to switch users
69+# allow-guest = True if guest login is allowed
70+# guest-session = Session to load for guests (overrides user-session)
71+# session-wrapper = Wrapper script to run session with
72+# greeter-wrapper = Wrapper script to run greeter with
73+# guest-wrapper = Wrapper script to run guest sessions with
74+# display-setup-script = Script to run when starting a greeter session (runs as root)
75+# display-stopped-script = Script to run after stopping the display server (runs as root)
76+# greeter-setup-script = Script to run when starting a greeter (runs as root)
77+# session-setup-script = Script to run when starting a user session (runs as root)
78+# session-cleanup-script = Script to run when quitting a user session (runs as root)
79+# autologin-guest = True to log in as guest by default
80+# autologin-user = User to log in with by default (overrides autologin-guest)
81+# autologin-user-timeout = Number of seconds to wait before loading default user
82+# autologin-session = Session to load for automatic login (overrides user-session)
83+# autologin-in-background = True if autologin session should not be immediately activated
84+# exit-on-failure = True if the daemon should exit if this seat fails
85+#
86+[Seat:*]
87+#type=local
88+#pam-service=lightdm
89+#pam-autologin-service=lightdm-autologin
90+#pam-greeter-service=lightdm-greeter
91+#xserver-command=X
92+#xmir-command=Xmir
93+#xserver-config=
94+#xserver-layout=
95+#xserver-allow-tcp=false
96+#xserver-share=true
97+#xserver-hostname=
98+#xserver-display-number=
99+#xdmcp-manager=
100+#xdmcp-port=177
101+#xdmcp-key=
102+greeter-session=lightdm-slick-greeter
103+#greeter-hide-users=false
104+#greeter-allow-guest=true
105+#greeter-show-manual-login=false
106+#greeter-show-remote-login=true
107+#user-session=default
108+#allow-user-switching=true
109+#allow-guest=true
110+#guest-session=
111+session-wrapper=/etc/lightdm/Xsession
112+#greeter-wrapper=
113+#guest-wrapper=
114+#display-setup-script=
115+#display-stopped-script=
116+#greeter-setup-script=
117+#session-setup-script=
118+#session-cleanup-script=
119+#autologin-guest=false
120+autologin-user=%USERNAME%
121+autologin-user-timeout=0
122+#autologin-in-background=false
123+autologin-session=xfce
124+#exit-on-failure=false
125+
126+#
127+# XDMCP Server configuration
128+#
129+# enabled = True if XDMCP connections should be allowed
130+# port = UDP/IP port to listen for connections on
131+# listen-address = Host/address to listen for XDMCP connections (use all addresses if not present)
132+# key = Authentication key to use for XDM-AUTHENTICATION-1 or blank to not use authentication (stored in keys.conf)
133+# hostname = Hostname to report to XDMCP clients (defaults to system hostname if unset)
134+#
135+# The authentication key is a 56 bit DES key specified in hex as 0xnnnnnnnnnnnnnn. Alternatively
136+# it can be a word and the first 7 characters are used as the key.
137+#
138+[XDMCPServer]
139+#enabled=false
140+#port=177
141+#listen-address=
142+#key=
143+#hostname=
144+
145+#
146+# VNC Server configuration
147+#
148+# enabled = True if VNC connections should be allowed
149+# command = Command to run Xvnc server with
150+# port = TCP/IP port to listen for connections on
151+# listen-address = Host/address to listen for VNC connections (use all addresses if not present)
152+# width = Width of display to use
153+# height = Height of display to use
154+# depth = Color depth of display to use
155+#
156+[VNCServer]
157+#enabled=false
158+#command=Xvnc
159+#port=5900
160+#listen-address=
161+#width=1024
162+#height=768
163+#depth=8
--- a/channels/xfce/airootfs.i686/root/customize_airootfs_xfce.sh
+++ b/channels/xfce/airootfs.i686/root/customize_airootfs_xfce.sh
@@ -93,4 +93,22 @@ dconf update
9393
9494
9595 # firewalld
96-systemctl enable firewalld.service
\ No newline at end of file
96+systemctl enable firewalld.service
97+
98+
99+# Added autologin group to auto login
100+groupadd autologin
101+usermod -aG autologin ${username}
102+
103+
104+# Enable LightDM to auto login
105+if [[ "${boot_splash}" = true ]]; then
106+ systemctl enable lightdm.service
107+else
108+ systemctl enable lightdm-plymouth.service
109+fi
110+
111+
112+# Replace auto login user
113+sed -i s/%USERNAME%/${username}/g /etc/lightdm/lightdm.conf
114+
--- /dev/null
+++ b/channels/xfce/airootfs.x86_64/etc/lightdm/lightdm.conf
@@ -0,0 +1,163 @@
1+#
2+# General configuration
3+#
4+# start-default-seat = True to always start one seat if none are defined in the configuration
5+# greeter-user = User to run greeter as
6+# minimum-display-number = Minimum display number to use for X servers
7+# minimum-vt = First VT to run displays on
8+# lock-memory = True to prevent memory from being paged to disk
9+# user-authority-in-system-dir = True if session authority should be in the system location
10+# guest-account-script = Script to be run to setup guest account
11+# logind-check-graphical = True to on start seats that are marked as graphical by logind
12+# log-directory = Directory to log information to
13+# run-directory = Directory to put running state in
14+# cache-directory = Directory to cache to
15+# sessions-directory = Directory to find sessions
16+# remote-sessions-directory = Directory to find remote sessions
17+# greeters-directory = Directory to find greeters
18+# backup-logs = True to move add a .old suffix to old log files when opening new ones
19+# dbus-service = True if LightDM provides a D-Bus service to control it
20+#
21+[LightDM]
22+#start-default-seat=true
23+#greeter-user=lightdm
24+#minimum-display-number=0
25+#minimum-vt=7 # Setting this to a value < 7 implies security issues, see FS#46799
26+#lock-memory=true
27+#user-authority-in-system-dir=false
28+#guest-account-script=guest-account
29+#logind-check-graphical=false
30+#log-directory=/var/log/lightdm
31+run-directory=/run/lightdm
32+#cache-directory=/var/cache/lightdm
33+#sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions
34+#remote-sessions-directory=/usr/share/lightdm/remote-sessions
35+#greeters-directory=$XDG_DATA_DIRS/lightdm/greeters:$XDG_DATA_DIRS/xgreeters
36+#backup-logs=true
37+#dbus-service=true
38+
39+#
40+# Seat configuration
41+#
42+# Seat configuration is matched against the seat name glob in the section, for example:
43+# [Seat:*] matches all seats and is applied first.
44+# [Seat:seat0] matches the seat named "seat0".
45+# [Seat:seat-thin-client*] matches all seats that have names that start with "seat-thin-client".
46+#
47+# type = Seat type (local, xremote)
48+# pam-service = PAM service to use for login
49+# pam-autologin-service = PAM service to use for autologin
50+# pam-greeter-service = PAM service to use for greeters
51+# xserver-command = X server command to run (can also contain arguments e.g. X -special-option)
52+# xmir-command = Xmir server command to run (can also contain arguments e.g. Xmir -special-option)
53+# xserver-config = Config file to pass to X server
54+# xserver-layout = Layout to pass to X server
55+# xserver-allow-tcp = True if TCP/IP connections are allowed to this X server
56+# xserver-share = True if the X server is shared for both greeter and session
57+# xserver-hostname = Hostname of X server (only for type=xremote)
58+# xserver-display-number = Display number of X server (only for type=xremote)
59+# xdmcp-manager = XDMCP manager to connect to (implies xserver-allow-tcp=true)
60+# xdmcp-port = XDMCP UDP/IP port to communicate on
61+# xdmcp-key = Authentication key to use for XDM-AUTHENTICATION-1 (stored in keys.conf)
62+# greeter-session = Session to load for greeter
63+# greeter-hide-users = True to hide the user list
64+# greeter-allow-guest = True if the greeter should show a guest login option
65+# greeter-show-manual-login = True if the greeter should offer a manual login option
66+# greeter-show-remote-login = True if the greeter should offer a remote login option
67+# user-session = Session to load for users
68+# allow-user-switching = True if allowed to switch users
69+# allow-guest = True if guest login is allowed
70+# guest-session = Session to load for guests (overrides user-session)
71+# session-wrapper = Wrapper script to run session with
72+# greeter-wrapper = Wrapper script to run greeter with
73+# guest-wrapper = Wrapper script to run guest sessions with
74+# display-setup-script = Script to run when starting a greeter session (runs as root)
75+# display-stopped-script = Script to run after stopping the display server (runs as root)
76+# greeter-setup-script = Script to run when starting a greeter (runs as root)
77+# session-setup-script = Script to run when starting a user session (runs as root)
78+# session-cleanup-script = Script to run when quitting a user session (runs as root)
79+# autologin-guest = True to log in as guest by default
80+# autologin-user = User to log in with by default (overrides autologin-guest)
81+# autologin-user-timeout = Number of seconds to wait before loading default user
82+# autologin-session = Session to load for automatic login (overrides user-session)
83+# autologin-in-background = True if autologin session should not be immediately activated
84+# exit-on-failure = True if the daemon should exit if this seat fails
85+#
86+[Seat:*]
87+#type=local
88+#pam-service=lightdm
89+#pam-autologin-service=lightdm-autologin
90+#pam-greeter-service=lightdm-greeter
91+#xserver-command=X
92+#xmir-command=Xmir
93+#xserver-config=
94+#xserver-layout=
95+#xserver-allow-tcp=false
96+#xserver-share=true
97+#xserver-hostname=
98+#xserver-display-number=
99+#xdmcp-manager=
100+#xdmcp-port=177
101+#xdmcp-key=
102+greeter-session=lightdm-slick-greeter
103+#greeter-hide-users=false
104+#greeter-allow-guest=true
105+#greeter-show-manual-login=false
106+#greeter-show-remote-login=true
107+#user-session=default
108+#allow-user-switching=true
109+#allow-guest=true
110+#guest-session=
111+session-wrapper=/etc/lightdm/Xsession
112+#greeter-wrapper=
113+#guest-wrapper=
114+#display-setup-script=
115+#display-stopped-script=
116+#greeter-setup-script=
117+#session-setup-script=
118+#session-cleanup-script=
119+#autologin-guest=false
120+autologin-user=%USERNAME%
121+autologin-user-timeout=0
122+#autologin-in-background=false
123+autologin-session=xfce
124+#exit-on-failure=false
125+
126+#
127+# XDMCP Server configuration
128+#
129+# enabled = True if XDMCP connections should be allowed
130+# port = UDP/IP port to listen for connections on
131+# listen-address = Host/address to listen for XDMCP connections (use all addresses if not present)
132+# key = Authentication key to use for XDM-AUTHENTICATION-1 or blank to not use authentication (stored in keys.conf)
133+# hostname = Hostname to report to XDMCP clients (defaults to system hostname if unset)
134+#
135+# The authentication key is a 56 bit DES key specified in hex as 0xnnnnnnnnnnnnnn. Alternatively
136+# it can be a word and the first 7 characters are used as the key.
137+#
138+[XDMCPServer]
139+#enabled=false
140+#port=177
141+#listen-address=
142+#key=
143+#hostname=
144+
145+#
146+# VNC Server configuration
147+#
148+# enabled = True if VNC connections should be allowed
149+# command = Command to run Xvnc server with
150+# port = TCP/IP port to listen for connections on
151+# listen-address = Host/address to listen for VNC connections (use all addresses if not present)
152+# width = Width of display to use
153+# height = Height of display to use
154+# depth = Color depth of display to use
155+#
156+[VNCServer]
157+#enabled=false
158+#command=Xvnc
159+#port=5900
160+#listen-address=
161+#width=1024
162+#height=768
163+#depth=8
--- a/channels/xfce/airootfs.x86_64/root/customize_airootfs_xfce.sh
+++ b/channels/xfce/airootfs.x86_64/root/customize_airootfs_xfce.sh
@@ -100,3 +100,20 @@ else
100100 remove /etc/skel/Desktop/welcome-to-alter-jp.desktop
101101 remove /home/${username}/Desktop/welcome-to-alter-jp.desktop
102102 fi
103+
104+
105+# Added autologin group to auto login
106+groupadd autologin
107+usermod -aG autologin ${username}
108+
109+
110+# Enable LightDM to auto login
111+if [[ "${boot_splash}" = true ]]; then
112+ systemctl enable lightdm.service
113+else
114+ systemctl enable lightdm-plymouth.service
115+fi
116+
117+
118+# Replace auto login user
119+sed -i s/%USERNAME%/${username}/g /etc/lightdm/lightdm.conf
Show on old repository browser