From e25f3ecbb7cea077a0557d21ccaed488fdacc0be Mon Sep 17 00:00:00 2001 From: sebanc Date: Tue, 3 Oct 2023 16:03:25 +0200 Subject: [PATCH] Update LMDE to Faye --- Readme.md | 4 ++-- Readme/Distro-notes.md | 2 +- Readme/Live-image.md | 19 +++++++++++++++---- linuxloops | 41 ++++++++++++++++++++++++++++++++--------- 4 files changed, 50 insertions(+), 16 deletions(-) diff --git a/Readme.md b/Readme.md index dff3a58..8032ecb 100644 --- a/Readme.md +++ b/Readme.md @@ -20,9 +20,9 @@ The main limitation of Linuxloops is that the partitionning is not currently cus ## How does it work ? -The LinuxLoops script will chroot into a temporary rootfs images (usually lxc container rootfs or an actual distribution iso) and then perform the install from there using the package manager. +The LinuxLoops script will chroot into a temporary rootfs images (usually lxc container rootfs or an actual distribution iso) and then perform the install from there using the target distribution package manager. -For security purpose, Linuxloops will not install packages/binaries which are not present in the official repositories. The only exceptions are: +For security purpose, Linuxloops will not install packages/binaries that are not present in the official distribution repositories. The only exceptions are: - The "RPM fusion" repo for Fedora and the "EPEL" repo for RedHat based distros are enabled by default as they contain necessary packages for standard use. - For Arch based distros, the "shim-signed" AUR package is included in order to support Secure Boot. diff --git a/Readme/Distro-notes.md b/Readme/Distro-notes.md index e6b3afd..c9378e7 100644 --- a/Readme/Distro-notes.md +++ b/Readme/Distro-notes.md @@ -127,7 +127,7 @@ Updates are managed through pacman (with `pacman -Syu` command). - desktop-autologin: Auto-login into Plasma. The gamescope session can be launched within Plasma through the "SteamDeck Session" shortcut (in "Game" section). - gamescope-session: Same as the SteamDeck. Boots directly into the SteamOS session. Plasma can be launched with the "Switch to Desktop" SteamOS option. -Note: Due to a bug with xdg-desktop-portal-kde, flatpak apps will trigger an "app running in the background" notification. Either disable those types of notifications entirely in plasma settings or install flatseal and allow "run in the background" permission. +Note: Due to a bug with xdg-desktop-portal-kde that has not yet been corrected in the SteamOS repositories, flatpak apps will trigger an "app running in the background" plasma notification. Either disable those types of notifications entirely in plasma settings or install flatseal and allow "run in the background" permission for each app. ## Tails diff --git a/Readme/Live-image.md b/Readme/Live-image.md index f83e7c3..242e514 100644 --- a/Readme/Live-image.md +++ b/Readme/Live-image.md @@ -7,17 +7,26 @@ # LinuxLoops live image -A linuxLoops live image is available in the releases section of github. +A linuxLoops live image is available in the releases section of this github repository. -This live image contains a full system with linuxloops installed by default to make the installation process even easier. -Note: you can use install the grub configuration on a linuxloops live USB to boot images installed on your hdd. +This live image contains a Debian system with linuxloops installed by default to make the installation process even easier. +You can also install disk images grub boot configurations to the linuxLoops live image. + +The default password for the "live" user account is: "linuxloops". + +✔ Base Requirements: +- x86_64 based computer with UEFI BIOS. +- Administrative privileges on the device. +- A 16GB (or more) USB flashdrive. ## With Linux Download the live image and run the following command to write it to the disk (this example assumes your drive is /dev/sdX: -`7z x linuxloops_live_XXXXXXXX.7z linuxloops_live_*.img -so | sudo tee /dev/sdX` +`7z x linuxloops_live_XXXXXXXX.7z linuxloops_live_*.img -so | sudo tee /dev/sdX` + +Reboot your computer and select the USB flashdrive from the UEFI boot menu. ## With Windows @@ -26,6 +35,8 @@ Install 7zip and extract the linuxloops_live_XXXXXXXX.7z file. Write the resulting image file to your USB flashdrive using Rufus, Etcher or a similar tool. +Reboot your computer and select the USB flashdrive from the UEFI boot menu. + diff --git a/linuxloops b/linuxloops index 124a7a8..58f2890 100644 --- a/linuxloops +++ b/linuxloops @@ -111,7 +111,7 @@ case "${1}" in ;; 'LMDE') available_desktops=("none" "cinnamon" "cinnamon-full") - bootstrap="lxc debian bullseye default" + bootstrap="lxc debian bookworm default" bootloader_id="linuxmint" bootloader_name="shimx64.efi" grub_theme="/boot/grub/themes/linuxmint/theme.txt" @@ -3343,7 +3343,7 @@ yes | DEBIAN_FRONTEND=noninteractive apt install bash bash-completion btrfs-prog cat >"${linuxloopsdir}"/chroot/bootstrap/linuxloops/prepare_chroot <"${linuxloopsdir}"/chroot/bootstrap/linuxloops/chroot_init </etc/apt/sources.list.d/official-package-repositories.list <<'REPOS' -deb http://packages.linuxmint.com elsie main upstream import backport #id:linuxmint_main +deb http://packages.linuxmint.com faye main upstream import backport #id:linuxmint_main -deb https://deb.debian.org/debian bullseye main contrib non-free -deb https://deb.debian.org/debian bullseye-updates main contrib non-free -deb http://security.debian.org bullseye-security main contrib non-free +deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware +deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware +deb http://deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware -deb https://deb.debian.org/debian bullseye-backports main contrib non-free +deb http://security.debian.org bookworm-security main contrib non-free non-free-firmware REPOS cat >/etc/apt/preferences.d/official-package-repositories.pref <<'PRIORITY' Package: * @@ -5065,7 +5065,7 @@ chmod 0755 "${linuxloopsdir}"/chroot/bootstrap/linuxloops/chroot_init hardware_support="alsa-lib alsa-utils alsa-topology-conf alsa-ucm-conf at-spi2-core avahi cups nss-mdns pipewire-audio pipewire-alsa pipewire-jack pipewire-pulse wireplumber system-config-printer xorg-server" basic_packages="gvfs udisks2 xdg-user-dirs-gtk" basic_themes="adobe-source-code-pro-fonts adwaita-icon-theme breeze-gtk breeze-icons gnome-backgrounds materia-gtk-theme noto-fonts oxygen-icons papirus-icon-theme ttf-dejavu ttf-roboto" -specific_packages="archlinux-wallpaper dbus-broker flatpak gamescope mangohud openssh weston steam-jupiter-stable vulkan-intel lib32-vulkan-intel vulkan-radeon lib32-vulkan-radeon lib32-pipewire lib32-fontconfig ttf-liberation wqy-zenhei" +specific_packages="archlinux-wallpaper dbus-broker flatpak gamescope mangohud openssh weston steam-jupiter-stable steam_notif_daemon vulkan-intel lib32-vulkan-intel vulkan-radeon lib32-vulkan-radeon lib32-pipewire lib32-fontconfig ttf-liberation wqy-zenhei" desktop_base="${hardware_support} ${basic_packages} ${basic_themes} ${specific_packages}" desktop_services="avahi-daemon.service cups.service cups-browsed.service" case "${desktop}" in @@ -5140,6 +5140,21 @@ systemctl enable --global dbus-broker.service mkdir -p /etc/sddm.conf.d echo -e '[Theme]\nCurrent=breeze' > /etc/sddm.conf.d/99_linuxloops.conf /linuxloops/install_steamos_configs +# Temporary XDG desktop portal fix +cat >/etc/xdg/autostart/xdg-desktop-portal-fix.desktop <<'PORTAL_FIX_AUTOSTART' +[Desktop Entry] +Type=Application +Name=XDG desktop portal fix +Exec=/usr/lib/xdg-desktop-portal-fix +OnlyShowIn=KDE; +NoDisplay=true +X-KDE-autostart-phase=1 +PORTAL_FIX_AUTOSTART +cat >/usr/lib/xdg-desktop-portal-fix <<'PORTAL_FIX' +#!/bin/sh +systemctl --user restart xdg-desktop-portal +PORTAL_FIX +chmod 0755 /usr/lib/xdg-desktop-portal-fix INSTALL_DESKTOP chmod 0755 "${linuxloopsdir}"/chroot/bootstrap/linuxloops/install_desktop @@ -5179,7 +5194,9 @@ export R600_DEBUG=nodcc pkill -9 gamescope || true pkill -9 steam || true -gamescope --generate-drm-mode fixed -b -e -f -h 720 -O '*',eDP-1 -- steam -steamos3 -steampal -steamdeck -gamepadui +ulimit -n 524288 + +gamescope --disable-layers --generate-drm-mode fixed --default-touch-mode 4 --hide-cursor-delay 3000 --fade-out-duration 200 -b -e -f -h 720 -O '*',eDP-1 -- steam -steamos3 -steampal -steamdeck -gamepadui DECKSESSION chmod 0755 /usr/bin/deck-session cat >/usr/bin/return-deck-session <<'RUNGAMINGSESSION' @@ -7653,6 +7670,12 @@ Type=Application StartupNotify=false LIVEICON chmod 0755 /usr/share/applications/linuxloops.desktop +mkdir -p /usr/share/glib-2.0/schemas +cat >/usr/share/glib-2.0/schemas/zz_noscreenlock.gschema.override <<'DCONF' +[org.cinnamon.desktop.lockdown] +disable-lock-screen=true +DCONF +if [ ! -z "\$(command -v glib-compile-schemas)" ]; then glib-compile-schemas /usr/share/glib-2.0/schemas/; fi INSTALLLIVE chmod 0755 "${linuxloopsdir}"/chroot/bootstrap/linuxloops/install_live }