This commit is contained in:
olli 2024-10-07 11:18:01 +02:00
parent 7bc47176e4
commit 1f42202c33
2 changed files with 111 additions and 117 deletions

219
kodi.yml
View File

@ -6,37 +6,32 @@
- name: Install Basic Packages - name: Install Basic Packages
apt: apt:
name: name:
# share desk # # share desk
- x11vnc # - x11vnc
# useful other stuff
- pwgen
- fdupes
- sshfs
- speedtest-cli
# tools for android-smartphones/LineageOS # tools for android-smartphones/LineageOS
- heimdall-flash - heimdall-flash
- adb - adb
- fastboot - fastboot
- mkbootimg - mkbootimg
# desktop specific # desktop specific
- cinnamon # - cinnamon
- cinnamon-l10n # - cinnamon-l10n
- gnome-terminal # - gnome-terminal
- lightdm # - lightdm
- xserver-xorg # - xserver-xorg
- xinit # - xinit
- x11-xserver-utils # - x11-xserver-utils
- dbus-x11 # - dbus-x11
- dconf-cli - dconf-cli
- dphys-swapfile - dphys-swapfile
- lightdm-autologin-greeter # - lightdm-autologin-greeter
- tsdecrypt - tsdecrypt
- x264 - x264
- x265 - x265
- flatpak - flatpak
- ttf-mscorefonts-installer - ttf-mscorefonts-installer
- fonts-terminus - fonts-terminus
- mint-y-icons # - mint-y-icons
# kodi # kodi
- kodi21 - kodi21
- kodi21-pvr-iptvsimple - kodi21-pvr-iptvsimple
@ -57,8 +52,8 @@
- sshfs - sshfs
- speedtest-cli - speedtest-cli
- gnome-characters - gnome-characters
- bluetooth # - bluetooth
- blueman # - blueman
# dconf-gui # dconf-gui
- dconf-editor - dconf-editor
# Media # Media
@ -68,7 +63,7 @@
- easytag - easytag
- audacity - audacity
- asunder - asunder
- mediathekview # - mediathekview
- audacious - audacious
- guvcview - guvcview
- easyeffects - easyeffects
@ -95,102 +90,102 @@
line: 'CONF_SWAPSIZE=1024' line: 'CONF_SWAPSIZE=1024'
backup: yes backup: yes
- name: Install Flatpaks # - name: Install Flatpaks
community.general.flatpak: # community.general.flatpak:
name: # name:
- tv.kodi.Kodi # - tv.kodi.Kodi
state: present # state: present
method: system # method: system
#
# - name: Create pi User
# ansible.builtin.user:
# name: pi
# comment: pi
# uid: 1100
# group: users
# groups: sudo,adm,audio,video,games,input,render,netdev
- name: Create pi User # - name: Raspi /boot/firmware/config.txt comment dtoverlay=vc4-kms-v3d
ansible.builtin.user: # replace:
name: pi # path: /boot/firmware/config.txt
comment: pi # regexp: '(^dtoverlay=vc4-kms-v3d$)'
uid: 1100 # replace: '#\1'
group: users
groups: sudo,adm,audio,video,games,input,render,netdev
- name: Raspi /boot/firmware/config.txt comment dtoverlay=vc4-kms-v3d # - name: Raspi /boot/firmware/config.txt
replace: # blockinfile:
path: /boot/firmware/config.txt # path: /boot/firmware/config.txt
regexp: '(^dtoverlay=vc4-kms-v3d$)' # insertafter: EOF
replace: '#\1' # marker: "# {mark} ANSIBLE MANAGED BLOCK"
# block: |
- name: Raspi /boot/firmware/config.txt # gpu_mem=256
blockinfile: # hdmi_force_hotplug=1
path: /boot/firmware/config.txt # hdmi_mode=4
insertafter: EOF # dtparam=audio=on
marker: "# {mark} ANSIBLE MANAGED BLOCK" # hdmi_drive=2
block: | # hdmi_ignore_edid=0xa5000080
gpu_mem=256 # config_hdmi_boost=4
hdmi_force_hotplug=1 # hdmi_group=1
hdmi_mode=4 # disable_overscan=1
dtparam=audio=on #
hdmi_drive=2 # [pi2]
hdmi_ignore_edid=0xa5000080 # dtoverlay=vc4-fkms-v3d,cma-256
config_hdmi_boost=4 # arm_freq=1000
hdmi_group=1 # sdram_freq=500
disable_overscan=1 # core_freq=500
# over_voltage=4
[pi2] #
dtoverlay=vc4-fkms-v3d,cma-256 # [pi3]
arm_freq=1000 # dtoverlay=vc4-fkms-v3d,cma-256
sdram_freq=500 # arm_freq=1100
core_freq=500 # core_freq=500
over_voltage=4 # sdram_freq=500
# over_voltage=4
[pi3] #
dtoverlay=vc4-fkms-v3d,cma-256 # [pi4]
arm_freq=1100 # dtoverlay=vc4-kms-v3d,cma-256
core_freq=500
sdram_freq=500
over_voltage=4
[pi4]
dtoverlay=vc4-kms-v3d,cma-256
- name: lightdm.conf # - name: lightdm.conf
blockinfile: # blockinfile:
path: /etc/lightdm/lightdm.conf # path: /etc/lightdm/lightdm.conf
create: yes # create: yes
mode: "0444" # mode: "0444"
owner: root # owner: root
group: root # group: root
insertafter: "#exit-on-failure=false" # insertafter: "#exit-on-failure=false"
marker: "# {mark} ANSIBLE MANAGED BLOCK" # marker: "# {mark} ANSIBLE MANAGED BLOCK"
block: | # block: |
session-wrapper=/etc/X11/Xsession # session-wrapper=/etc/X11/Xsession
user-session=cinnamon # user-session=cinnamon
autologin-session=cinnamon # autologin-session=cinnamon
greeter-session=lightdm-autologin-greeter # greeter-session=lightdm-autologin-greeter
greeter-hide-users=false # greeter-hide-users=false
greeter-show-manual-login=true # greeter-show-manual-login=true
allow-guest=false # allow-guest=false
xserver-command=X -core -dpi 96 # xserver-command=X -core -dpi 96
autologin-user=user # autologin-user=user
backup: yes # backup: yes
notify: # notify:
- Restart lightdm # - Restart lightdm
#
- name: 'add lightdm to startup' # - name: 'add lightdm to startup'
command: systemctl enable lightdm # command: systemctl enable lightdm
args: # args:
creates: /etc/systemd/system/display-manager.service # creates: /etc/systemd/system/display-manager.service
- name: 'remove smartmontools from startup' - name: 'remove smartmontools from startup'
command: systemctl disable smartmontools command: systemctl disable smartmontools
args: args:
removes: /etc/systemd/system/smartd.service removes: /etc/systemd/system/smartd.service
- name: "Get current systemd default" # - name: "Get current systemd default"
command: "systemctl get-default" # command: "systemctl get-default"
changed_when: false # changed_when: false
register: systemdefault # register: systemdefault
#
- name: "Set default to graphical target" # - name: "Set default to graphical target"
command: "systemctl set-default graphical.target" # command: "systemctl set-default graphical.target"
when: "'graphical' not in systemdefault.stdout" # when: "'graphical' not in systemdefault.stdout"
- name: Allow port 8080 for remote control - name: Allow port 8080 for remote control
community.general.ufw: community.general.ufw:
@ -199,10 +194,10 @@
proto: tcp proto: tcp
handlers: # handlers:
#
- name: Restart lightdm # - name: Restart lightdm
service: # service:
name: lightdm # name: lightdm
state: restarted # state: restarted

View File

@ -2,8 +2,8 @@
# https://www.raspberrypi.com/documentation/computers/configuration.html # https://www.raspberrypi.com/documentation/computers/configuration.html
raspi-config nonint do_ssh 0 raspi-config nonint do_ssh 0
raspi-config nonint do_boot_behaviour B1 #raspi-config nonint do_boot_behaviour B1
raspi-config nonint do_wayland W1 #raspi-config nonint do_wayland W1
raspi-config nonint do_change_locale de_DE.UTF-8 raspi-config nonint do_change_locale de_DE.UTF-8
#apt -y install flatpak #apt -y install flatpak
@ -49,8 +49,7 @@ debian.ansible.traefik.server
debian.ansible.whoogle debian.ansible.whoogle
debian.ansible.flatpak debian.ansible.flatpak
firefox firefox
chromium chromium"
gtc-x11vnc"
bash install.sh bash install.sh
# get user # get user
@ -64,7 +63,7 @@ su - ${user} -c "wget -qO- https://raw.githubusercontent.com/Botspot/pi-apps/mas
#dpkg -i signal-desktop-unofficial_7.27.0_arm64.deb #dpkg -i signal-desktop-unofficial_7.27.0_arm64.deb
# boot in graphic # boot in graphic
systemctl set-default graphical.target #systemctl set-default graphical.target
# Personal settings with .xsessionrc # Personal settings with .xsessionrc
sudo cat <<EOF >/home/${user}/.xsessionrc sudo cat <<EOF >/home/${user}/.xsessionrc