kernel still breaking. updated name which may have been issue

This commit is contained in:
tumillanino
2026-04-09 15:58:55 +10:00
parent 1c59f8a718
commit c6ffa3591f
155 changed files with 6219 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
set allow-duplicate-recipes := true
set ignore-comments := true
import "/usr/share/appends/01-system.just"
import "/usr/share/appends/10-apps.just"
import? "/usr/share/appends/99-solarpowered-ex.just"
import? "/usr/share/appends/99-solarpowered.just"
import? "$HOME/.justfile"
import? "$HOME/Justfile"

View File

@@ -0,0 +1,124 @@
# Boot into this device's BIOS/UEFI screen
bios:
#!/usr/bin/bash
if [ -d /sys/firmware/efi ]; then
systemctl reboot --firmware-setup
else
echo "Rebooting to legacy BIOS from OS is not supported."
fi
# Regenerate GRUB config
regenerate-grub:
#!/usr/bin/env bash
if [ -d /sys/firmware/efi ]; then
sudo grub2-mkconfig -o /etc/grub2-efi.cfg
else
sudo grub2-mkconfig -o /etc/grub2.cfg
fi
# Check for local overrides
check-local-overrides:
#!/usr/bin/env bash
diff -r \
--suppress-common-lines \
--color="always" \
--exclude "passwd*" \
--exclude "group*" \
--exclude="subgid*" \
--exclude="subuid*" \
--exclude="machine-id" \
--exclude="adjtime" \
--exclude="fstab" \
--exclude="system-connections" \
--exclude="shadow*" \
--exclude="gshadow*" \
--exclude="ssh_host*" \
--exclude="cmdline" \
--exclude="crypttab" \
--exclude="hostname" \
--exclude="localtime" \
--exclude="locale*" \
--exclude="*lock" \
--exclude=".updated" \
--exclude="*LOCK" \
--exclude="vconsole*" \
--exclude="00-keyboard.conf" \
--exclude="grub" \
--exclude="system.control*" \
--exclude="cdi" \
--exclude="default.target" \
/usr/etc /etc 2>/dev/null | sed '/Binary\ files\ /d'
# Show changelog between deployments
changelogs:
rpm-ostree db diff --changelogs
# Clean up old up unused podman images, volumes, flatpak packages and rpm-ostree content
clean-system:
podman image prune -af
podman volume prune -f
flatpak uninstall --unused
rpm-ostree cleanup -bm
# Renew IP & flush DNS
reset-address:
sudo nmcli device disconnect enp4s0
sudo nmcli device connect enp4s0
sudo systemctl restart systemd-resolved
systemd-resolve --status
# Enable iwd, disable wpa_supplicant
enable-iwd:
#!/usr/bin/env bash
sudo systemctl disable --now wpa_supplicant
sudo systemctl mask wpa_supplicant
mkdir -Z /etc/NetworkManager/conf.d
sudo cat > /etc/NetworkManager/conf.d/iwd.conf <<EOF
[device]
wifi.backend=iwd
EOF
restorecon -R /etc/NetworkManager
sudo systemctl restart NetworkManager
# Disable iwd, reenable wpa_supplicant
disable-iwd:
sudo mv "/etc/NetworkManager/conf.d/iwd.conf" "/etc/NetworkManager/conf.d/iwd.conf.off"
sudo systemctl disable --now iwd
sudo systemctl unmask wpa_supplicant
sudo systemctl enable --now wpa_supplicant
sudo systemctl restart NetworkManager
# Disable Zram and enable Zswap. Requires reboot
enable-zswap: disable-zram
sudo rpm-ostree kargs --append-if-missing=zswap.enabled=1 --append-if-missing=zswap.compressor=lz4 --append-if-missing=zswap.max_pool_percent=25
echo "Zswap is enabled and changes will reflect upon reboot."
# Enable Zram and disable zswap. Requires reboot
disable-zswap: enable-zram
sudo rpm-ostree kargs --delete-if-present=zswap.enabled=1 --delete-if-present=zswap.compressor=lz4 --delete-if-present=zswap.max_pool_percent=25
echo "Zswap is disabled and changes will reflect upon reboot."
# Disable Zram. Requires reboot
disable-zram:
#!/usr/bin/env bash
if [[ -e /etc/systemd/zram-generator.conf ]]; then
sudo mv /etc/zram-generator.conf /etc/zram-generator.conf.bak
fi
sudo touch /etc/systemd/zram-generator.conf
if [[ -e /etc/udev/rules.d/30-zram.rules ]]; then
sudo mv /etc/udev/rules.d/30-zram.rules /etc/udev/rules.d/30-zram.rules.bak
fi
sudo touch /etc/udev/rules.d/30-zram.rules
sudo systemctl daemon-reload
sudo udevadm control --reload-rules
sudo udevadm trigger
echo "Zram is disabled and changes will reflect upon reboot."
# Enable Zram. Requires reboot
enable-zram:
sudo rm /etc/systemd/zram-generator.conf
sudo rm /etc/udev/rules.d/30-zram.rules
sudo systemctl daemon-reload
sudo udevadm control --reload-rules
sudo udevadm trigger
echo "Zram is enabled and changes will reflect upon reboot."

View File

@@ -0,0 +1,96 @@
# Setup box
box:
distrobox-assemble create --file https://raw.githubusercontent.com/askpng/box/refs/heads/main/box.ini
distrobox-start boxit
# set junction as default for browsers
setup-junction:
xdg-settings set default-web-browser re.sonny.Junction.desktop
# install flameshot and grant screenshot permission
setup-flameshot:
flatpak install --noninteractive --assumeyes org.flameshot.Flameshot
flatpak permission-set screenshot screenshot org.flameshot.Flameshot yes
# Scripts to initialize, configure, integrate & reset Waydroid
setup-waydroid:
#!/usr/bin/env bash
set -e
if [ "$OPTION" == "" ]; then
echo "${bold}Waydroid utilities${normal}"
PS3="Please select an option: "
select OPTION in "Initialize Waydroid" "Configure Waydroid" "Enable fake touch" "Set as Nicole" "Install APKCombo installer and Material Files" "Logs, clean version" "Reset Waydroid (also removes waydroid-related files from user folder)"; do
if [[ -n "$OPTION" ]]; then
break
else
echo "Invalid option, please try again."
fi
done
fi
if [[ "${OPTION,,}" =~ ^init ]]; then
echo "sudo systemctl enable --now waydroid-container.service"
sudo systemctl enable --now waydroid-container.service
echo "waydroid init -s VANILLA -c 'https://ota.waydro.id/system' -v 'https://ota.waydro.id/vendor'"
sudo waydroid init -s VANILLA -c 'https://ota.waydro.id/system' -v 'https://ota.waydro.id/vendor'
echo "sudo restorecon -R /var/lib/waydroid"
sudo restorecon -R /var/lib/waydroid
echo "cp /usr/share/applications/waydroid-container-restart.desktop ~/.local/share/applications"
cp /usr/share/applications/waydroid-container-restart.desktop ~/.local/share/applications
echo "Waydroid has been initialized. Before continuing, run 'waydroid session start' and ensure it is up and running well."
elif [[ "${OPTION,,}" =~ ^configure ]]; then
echo "git clone https://github.com/askpng/waydroid_script.git --depth 1 /tmp/waydroid_script"
git clone https://github.com/askpng/waydroid_script.git --depth 1 /tmp/waydroid_script
echo "python3 -m venv /tmp/waydroid_script/venv"
python3 -m venv /tmp/waydroid_script/venv
echo "source /tmp/waydroid_script/venv/bin/activate"
source /tmp/waydroid_script/venv/bin/activate
echo "sudo /tmp/waydroid_script/venv/bin/pip install -r /tmp/waydroid_script/requirements.txt"
sudo /tmp/waydroid_script/venv/bin/pip install -r /tmp/waydroid_script/requirements.txt
echo "/tmp/waydroid_script/venv/bin/python3 /tmp/waydroid_script/main.py"
sudo /tmp/waydroid_script/venv/bin/python3 /tmp/waydroid_script/main.py
echo "deactivate"
deactivate
echo "sudo rm -rf /tmp/waydroid_script"
sudo rm -rf /tmp/waydroid_script ~/.cache/waydroid_script
elif [[ "${OPTION,,}" =~ ^enable ]]; then
echo "Setting fake touch for Aniplex apps..."
waydroid prop set persist.waydroid.fake_touch "com.aniplex.*"
elif [[ "${OPTION,,}" =~ ^set ]]; then
echo "curl -L 'https://raw.githubusercontent.com/askpng/waydroid_script/refs/heads/main/scripts/nicole.sh' -o /tmp/nicole.sh"
curl -L 'https://raw.githubusercontent.com/askpng/waydroid_script/refs/heads/main/scripts/nicole.sh' -o /tmp/nicole.sh
echo "chmod +x /tmp/nicole.sh"
chmod +x /tmp/nicole.sh
echo "sudo bash -c /tmp/nicole.sh"
sudo bash -c /tmp/nicole.sh
echo "rm -f /tmp/nicole.sh"
rm -f /tmp/nicole.sh
elif [[ "${OPTION,,}" =~ ^install ]]; then
echo "Installing APKCombo Installer"
curl -L "https://static.apkflash.com/files/com.apkcombo.app/apkcombo-installer.apk" -o /tmp/apkcombo-installer.apk
waydroid app install /tmp/apkcombo-installer.apk
echo "Installing Material Files"
curl -L "https://f-droid.org/repo/me.zhanghai.android.files_39.apk" -o /tmp/material-files.apk
waydroid app install /tmp/material-files.apk
echo "Removing .APK files"
rm /tmp/apkcombo-installer.apk /tmp/material-files.apk
echo "Success!"
elif [[ "${OPTION,,}" =~ ^logs ]]; then
echo "Grabbing clean logs..."
sudo waydroid logcat | grep -vi controller | grep -vi mantis | grep -vi gamepad | grep -v lowmemorykiller | grep -v libprocessgroup
elif [[ "${OPTION,,}" =~ ^reset ]]; then
echo "Resetting Waydroid"
echo "bash -c 'sudo rm -rf /var/lib/waydroid /home/.waydroid ~/waydroid ~/.share/waydroid ~/.local/share/applications/*aydroid* ~/.local/share/waydroid'"
bash -c 'sudo rm -rf /var/lib/waydroid /home/.waydroid ~/waydroid ~/.share/waydroid ~/.local/share/applications/*aydroid* ~/.local/share/waydroid'
echo "sudo systemctl disable --now waydroid-container.service"
sudo systemctl disable --now waydroid-container.service
echo "Waydroid has been reset! Re-initialize to get it back up and running."
fi