Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
mkimage-profiles
Commits
c4e06819
Commit
c4e06819
authored
May 28, 2019
by
Andrey Cherepanov
Committed by
Michael Shigorin
Jun 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11-autologin: use separate lightdm config for autologin
Set autologin parameters for lightdm in /etc/lightdm/lightdm.conf.d/autoinstall.conf
parent
38e149a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
40-x11-autologin
....in/x11-autologin/rootfs/image-scripts.d/40-x11-autologin
+7
-9
No files found.
features.in/x11-autologin/rootfs/image-scripts.d/40-x11-autologin
View file @
c4e06819
...
...
@@ -54,23 +54,21 @@ fi
## lightdm autologin
LIGHTDM_CONF
=
/etc/lightdm/lightdm.conf
if
[
-f
"
$LIGHTDM_CONF
"
]
;
then
backup
"
$LIGHTDM_CONF
"
mkdir
-p
/etc/lightdm/lightdm.conf.d
cat
>
/etc/lightdm/lightdm.conf.d/autologin.conf
<<
AUTOLOGIN_LIGHTDM
[Seat:*]
autologin-user=altlinux
autologin-user-timeout=0
AUTOLOGIN_LIGHTDM
default_session
=
"
$(
ls
-1
/usr/share/xsessions/
*
.desktop |
sed
-n
's/^.*\/\([^/]\+\)\.desktop$/\1/;1p'
)
"
if
[
-n
"
$default_session
"
]
;
then
sed
-i
\
-e
"s/^#(autologin-session=).*
$/
\1
$default_session
/"
\
"
$LIGHTDM_CONF
"
echo
"autologin-session=
$default_session
"
>>
/etc/lightdm/lightdm.conf.d/autologin.conf
else
echo
"** WARNING: no sessions found in /usr/share/xsessions/"
>
&2
fi
sed
-i
\
-e
"s/^#
\(
autologin-user=
\)
.*
$/
\1
$USER
/"
\
-e
"s/^#
\(
autologin-user-timeout=0
\)
/
\1
/"
\
"
$LIGHTDM_CONF
"
backup
"/etc/group"
add_nopasswdlogin_group lightdm
||
:
restore_later
"
$LIGHTDM_CONF
"
restore_later
"/etc/group"
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment