Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
homelab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shore
homelab
Commits
722b5976
Commit
722b5976
authored
5 months ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Kodi: Use GBM and some updates.
Use GBM and remove X.org. Some small updates too.
parent
0bbf773e
No related branches found
No related tags found
No related merge requests found
Pipeline
#4215
passed
4 months ago
Stage: build
Stage: test
Stage: deploy
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Ansible/roles/kodi/files/kodi.service
+5
-2
5 additions, 2 deletions
Ansible/roles/kodi/files/kodi.service
Ansible/roles/kodi/files/xorg.service
+0
-44
0 additions, 44 deletions
Ansible/roles/kodi/files/xorg.service
Ansible/roles/kodi/tasks/main.yml
+1
-17
1 addition, 17 deletions
Ansible/roles/kodi/tasks/main.yml
with
6 additions
and
63 deletions
Ansible/roles/kodi/files/kodi.service
+
5
−
2
View file @
722b5976
# vim: filetype=systemd
# vim: filetype=systemd
[Unit]
[Unit]
Description
=
Kodi Media Center on %i
Description
=
Kodi Media Center on %i
After
=
systemd-user-sessions.service sound.target network-online.target
xorg.service
After
=
systemd-user-sessions.service sound.target network-online.target
# Require the library to be mounted.
# Require the library to be mounted.
After
=
srv-library.mount
After
=
srv-library.mount
...
@@ -18,8 +18,11 @@ User=kodi
...
@@ -18,8 +18,11 @@ User=kodi
PAMName
=
login
PAMName
=
login
SupplementaryGroups
=
audio
SupplementaryGroups
=
audio
SupplementaryGroups
=
cdrom
SupplementaryGroups
=
cdrom
SupplementaryGroups
=
input
SupplementaryGroups
=
render
SupplementaryGroups
=
video
Environment
=
"DISPLAY=:0"
Environment
=
"DISPLAY=:0"
ExecStart
=
flatpak run --device=all --share=network --filesystem=/etc/group --filesystem=/srv/library tv.kodi.Kodi --standalone --windowing=
x11
-fs
ExecStart
=
flatpak run --device=all --share=network --filesystem=/etc/group --filesystem=/srv/library tv.kodi.Kodi --standalone --windowing=
gbm
-fs
Type
=
simple
Type
=
simple
Restart
=
always
Restart
=
always
RestartSec
=
5
RestartSec
=
5
...
...
This diff is collapsed.
Click to expand it.
Ansible/roles/kodi/files/xorg.service
deleted
100644 → 0
+
0
−
44
View file @
0bbf773e
# vim: filetype=systemd
[Unit]
Description
=
X Windows display server
After
=
systemd-user-sessions.service
# D-Bus is necessary for contacting logind. Logind is required.
Wants
=
dbus.socket
After
=
dbus.socket
Conflicts
=
getty@tty7.service
Before
=
graphical.target
# On systems without virtual consoles, don't start
ConditionPathExists
=
/dev/tty7
[Service]
User
=
kodi
SupplementaryGroups
=
input
SupplementaryGroups
=
tty
SupplementaryGroups
=
video
PAMName
=
login
ExecStart
=
startx
Type
=
simple
Restart
=
on-abort
RestartSec
=
5
KillMode
=
control-group
# A virtual terminal is needed.
TTYPath
=
/dev/tty7
TTYReset
=
yes
TTYVHangup
=
yes
TTYVTDisallocate
=
yes
# Fail to start if not controlling the tty.
StandardOutput
=
tty
StandardInput
=
tty
StandardError
=
journal
# Log this user with utmp, letting it show up with commands 'w' and 'who'.
UtmpIdentifier
=
tty7
UtmpMode
=
user
[Install]
WantedBy
=
graphical.target
This diff is collapsed.
Click to expand it.
Ansible/roles/kodi/tasks/main.yml
+
1
−
17
View file @
722b5976
...
@@ -12,9 +12,7 @@
...
@@ -12,9 +12,7 @@
-
plymouth-themes
-
plymouth-themes
-
firmware-linux
-
firmware-linux
-
udisks2
-
udisks2
-
unison
-
upower
-
upower
-
xorg
state
:
present
state
:
present
update_cache
:
true
update_cache
:
true
...
@@ -32,8 +30,7 @@
...
@@ -32,8 +30,7 @@
-
name
:
Enable boot splash
-
name
:
Enable boot splash
ansible.builtin.lineinfile
:
ansible.builtin.lineinfile
:
backup
:
true
backup
:
true
# yamllint disable-line rule:line-length
line
:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
line
:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash systemd.unified_cgroup_hierarchy=0"
path
:
/etc/default/grub
path
:
/etc/default/grub
notify
:
notify
:
-
Update GRUB
-
Update GRUB
...
@@ -86,29 +83,16 @@
...
@@ -86,29 +83,16 @@
system
:
true
system
:
true
uid
:
'
{{
900
+
idx
}}'
uid
:
'
{{
900
+
idx
}}'
notify
:
notify
:
-
Restart Xorg
-
Restart Kodi
-
Restart Kodi
-
name
:
Configure rootless Xorg
ansible.builtin.copy
:
backup
:
true
content
:
|
allowed_users=anybody
dest
:
/etc/X11/Xwrapper.config
mode
:
0o0644
notify
:
-
Restart Xorg
-
name
:
Copy services
-
name
:
Copy services
with_items
:
&services
with_items
:
&services
-
xorg.service
-
kodi.service
-
kodi.service
ansible.builtin.copy
:
ansible.builtin.copy
:
dest
:
/etc/systemd/system/
dest
:
/etc/systemd/system/
mode
:
preserve
mode
:
preserve
src
:
'
{{
item
}}'
src
:
'
{{
item
}}'
notify
:
notify
:
-
Restart Xorg
-
Restart Kodi
-
Restart Kodi
-
name
:
Enable services
-
name
:
Enable services
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment