Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions docs/autoinstall-config-24/user-data
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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'
2 changes: 1 addition & 1 deletion download-ubuntu-base-image
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
30 changes: 30 additions & 0 deletions packages/ytl-linux-customize-24/dconf/01-power-settings
Original file line number Diff line number Diff line change
Expand Up @@ -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'
4 changes: 3 additions & 1 deletion packages/ytl-linux-purge-deb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down