Skip to content

Commit 2eb6608

Browse files
committed
Merge branch 'live-lightdm' into dev
2 parents 63a907b + f8b7f7c commit 2eb6608

8 files changed

Lines changed: 724 additions & 3 deletions

File tree

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

channels/lxde/airootfs.i686/root/customize_airootfs_lxde.sh

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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
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
Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

channels/lxde/airootfs.x86_64/root/customize_airootfs_lxde.sh

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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
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

0 commit comments

Comments
 (0)