From 100337de63ced059db12a9b09bab3d36e48f77ce Mon Sep 17 00:00:00 2001 From: Benjamin Pettinen <32071163+AirPett@users.noreply.github.com> Date: Thu, 25 Sep 2025 23:38:13 +0000 Subject: [PATCH 1/4] Use Ubuntu Server 24.04.3 as base image --- download-ubuntu-base-image | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download-ubuntu-base-image b/download-ubuntu-base-image index 778bd3c..1ea2b34 100755 --- a/download-ubuntu-base-image +++ b/download-ubuntu-base-image @@ -8,7 +8,7 @@ if [[ -z "${1:-}" ]]; then fi # location of the original Ubuntu installation ISO image -DOWNLOAD_URL=https://releases.ubuntu.com/noble/ubuntu-24.04.2-live-server-amd64.iso +DOWNLOAD_URL=https://releases.ubuntu.com/noble/ubuntu-24.04.3-live-server-amd64.iso IMAGE="$1" if [ ! -e "$IMAGE" ]; then From a0f047be1bb16961f6388373ea9b6c23e60464c7 Mon Sep 17 00:00:00 2001 From: Benjamin Pettinen <32071163+AirPett@users.noreply.github.com> Date: Thu, 25 Sep 2025 23:38:48 +0000 Subject: [PATCH 2/4] Remove gnome-keyring and apport to get rid of useless popups. --- packages/ytl-linux-purge-deb/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/ytl-linux-purge-deb/Makefile b/packages/ytl-linux-purge-deb/Makefile index 014d8b1..24dea9f 100644 --- a/packages/ytl-linux-purge-deb/Makefile +++ b/packages/ytl-linux-purge-deb/Makefile @@ -14,7 +14,9 @@ CONFLICTS := \ --conflicts cups-ipp-utils \ --conflicts cups-pdf \ --conflicts cups-ppdc \ - --conflicts cups-server-common + --conflicts cups-server-common \ + --conflicts gnome-keyring \ + --conflicts apport DEB_ROOT := deb-root From e1e3b481f5637db9abf834b3320614659cd81110 Mon Sep 17 00:00:00 2001 From: Benjamin Pettinen <32071163+AirPett@users.noreply.github.com> Date: Thu, 25 Sep 2025 23:39:04 +0000 Subject: [PATCH 3/4] Make power setting defaults more robust --- .../dconf/01-power-settings | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/packages/ytl-linux-customize-24/dconf/01-power-settings b/packages/ytl-linux-customize-24/dconf/01-power-settings index 3bb0b67..77138df 100644 --- a/packages/ytl-linux-customize-24/dconf/01-power-settings +++ b/packages/ytl-linux-customize-24/dconf/01-power-settings @@ -6,3 +6,33 @@ sleep-display-ac=0 sleep-display-battery=0 sleep-inactive-ac-timeout=0 sleep-inactive-battery-timeout=0 + +# Disable lid and power button actions. +lid-close-battery-action='nothing' +lid-close-ac-action='nothing' +button-power='nothing' + +# Disable screensaver. +[org/cinnamon/desktop/session] +idle-delay=uint32 0 + +# Disable sleep timeouts as well as lid and power button actions on login screen before first login. +# Before the first Cinnamon session is started after boot, the power settings of Unity Greeter (login screen) are in effect. +# This causes the computer to sleep if left sitting in login screen after install or boot. +# Additionally, the computer might not recover from this sleep but show a black screen instead after waking up. +# The only solution is to reboot the computer by long-pressing the power button or by going blind to e.g. tty2 using Ctrl+Alt+F2 and then rebooting using Ctrl+Alt+Delete. +[com/canonical/unity/settings-daemon/plugins/power] +sleep-inactive-ac-timeout=0 +sleep-inactive-battery-timeout=0 +lid-close-battery-action='nothing' +lid-close-ac-action='nothing' +power-button-action='nothing' + +# Do the same just in case for Gnome settings. This might not be necessary, but won't hurt either. +# The combination of Unity Greeter, Cinnamon Desktop and LightDM Display Manager is somewhat unstable and settings from multiple components can conflict. +[org/gnome/settings-daemon/plugins/power] +sleep-inactive-ac-timeout=0 +sleep-inactive-battery-timeout=0 +lid-close-battery-action='nothing' +lid-close-ac-action='nothing' +power-button-action='nothing' \ No newline at end of file From e467895c399b07c143bfc5215ebc2565c5a861be Mon Sep 17 00:00:00 2001 From: Benjamin Pettinen <32071163+AirPett@users.noreply.github.com> Date: Thu, 25 Sep 2025 23:39:49 +0000 Subject: [PATCH 4/4] Add default config for Firefox. Pin Firefox, Naksu and Naksu 2 to taskbar. --- docs/autoinstall-config-24/user-data | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/docs/autoinstall-config-24/user-data b/docs/autoinstall-config-24/user-data index d36b73b..6885ac2 100644 --- a/docs/autoinstall-config-24/user-data +++ b/docs/autoinstall-config-24/user-data @@ -189,6 +189,9 @@ autoinstall: - ytl-linux-customize-24 - ytl-linux-purge-deb - snapd + # Required for in-place JSON file editing + - jq + - moreutils snaps: - name: firefox storage: @@ -203,6 +206,30 @@ autoinstall: groups: sudo,adm,cdrom,dip,plugdev,lxd,docker lock_passwd: false shell: /bin/bash + write_files: + # Add default Firefox settings + - path: /etc/firefox/policies/policies.json + content: | + { + "policies": { + "DownloadDirectory": "/home/school/ktp-jako", + "Homepage": { + "URL": "https://oma.abitti.fi/", + "StartPage": "homepage" + }, + "NewTabPage": false, + "OverrideFirstRunPage": "", + "OverridePostUpdatePage": "", + "TranslateEnabled": false, + "Preferences": { + "dom.input.fallbackUploadDir": "/home/school/ktp-jako" + } + } + } + permissions: '0644' + runcmd: + # Disable keyboard and mouse integration notification popups in VirtualBox + - su - school -c 'VBoxManage setextradata global GUI/SuppressMessages remindAboutMouseIntegration,remindAboutAutoCapture' ssh: install-server: no late-commands: @@ -233,3 +260,7 @@ autoinstall: # Set hostname (cannot be set in identity section as we use user-data to create the user) # Tried using hostnamectl set-hostname, but it doesn't properly work in curtin for some unexplained reason, so good ol' echo it is - echo ktp > /target/etc/hostname + # Unpin the non-existing pinned by default Firefox (non-snap) from the taskbar + - curtin in-target --target=/target -- bash -c 'jq '\''."pinned-apps".default -= ["firefox.desktop"]'\'' /usr/share/cinnamon/applets/grouped-window-list@cinnamon.org/settings-schema.json | sponge /usr/share/cinnamon/applets/grouped-window-list@cinnamon.org/settings-schema.json' + # Pin Firefox (snap), Naksu and Naksu 2 to taskbar + - curtin in-target --target=/target -- bash -c 'jq '\''."pinned-apps".default += ["firefox_firefox.desktop", "naksu.desktop", "naksu2.desktop"]'\'' /usr/share/cinnamon/applets/grouped-window-list@cinnamon.org/settings-schema.json | sponge /usr/share/cinnamon/applets/grouped-window-list@cinnamon.org/settings-schema.json'