Skip to content

Commit

Permalink
Update LMDE to Faye
Browse files Browse the repository at this point in the history
  • Loading branch information
sebanc committed Oct 3, 2023
1 parent 7a80bc7 commit e25f3ec
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion Readme/Distro-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 15 additions & 4 deletions Readme/Live-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.


<!-- Reference Links -->
<!-- Badges -->
Expand Down
41 changes: 32 additions & 9 deletions linuxloops
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -3343,7 +3343,7 @@ yes | DEBIAN_FRONTEND=noninteractive apt install bash bash-completion btrfs-prog

cat >"${linuxloopsdir}"/chroot/bootstrap/linuxloops/prepare_chroot <<PREPARE_CHROOT
yes | DEBIAN_FRONTEND=noninteractive apt install debootstrap
debootstrap --arch=amd64 --include=ca-certificates,console-setup,dirmngr,gpg,kbd,locales bullseye /mnt http://deb.debian.org/debian
debootstrap --arch=amd64 --include=ca-certificates,console-setup,dirmngr,gpg,kbd,locales bookworm /mnt http://deb.debian.org/debian
PREPARE_CHROOT
chmod 0755 "${linuxloopsdir}"/chroot/bootstrap/linuxloops/prepare_chroot

Expand All @@ -3352,13 +3352,13 @@ cat >"${linuxloopsdir}"/chroot/bootstrap/linuxloops/chroot_init <<CHROOT_INIT
set -e
rm -f /etc/apt/sources.list
cat >/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: *
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit e25f3ec

Please sign in to comment.