mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-23 05:35:20 +00:00
📃 feat: Linux Neptune (Valve's kernel for SteamDeck) installation (#683)
* Linux Neptune installation script * fixed some stuff that's not supposed to be here Co-authored-by: nnyyxxxx <nnyyxxxx@users.noreply.github.com> * fix repo check * added audio patches https://github.com/ChrisTitusTech/linutil/issues/269#issuecomment-2380379049 * add linux neptune to docs (userguide) * steamdeck precondition Co-authored-by: Liam <33645555+lj3954@users.noreply.github.com> * precondition fix * another precondition fix --------- Co-authored-by: nnyyxxxx <nnyyxxxx@users.noreply.github.com> Co-authored-by: Liam <33645555+lj3954@users.noreply.github.com> Co-authored-by: Chris Titus <contact@christitus.com>
This commit is contained in:
parent
1234edd466
commit
9d1dc35f43
60
core/tabs/system-setup/arch/linux-neptune.sh
Executable file
60
core/tabs/system-setup/arch/linux-neptune.sh
Executable file
|
@ -0,0 +1,60 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
. ../../common-script.sh
|
||||
|
||||
setUpRepos() {
|
||||
if ! grep -q "^\s*\[jupiter-staging\]" /etc/pacman.conf; then
|
||||
printf "%b\n" "${CYAN}Adding jupiter-staging to pacman repositories...${RC}"
|
||||
echo "[jupiter-staging]" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf
|
||||
echo "Server = https://steamdeck-packages.steamos.cloud/archlinux-mirror/\$repo/os/\$arch" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf
|
||||
echo "SigLevel = Never" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf
|
||||
fi
|
||||
if ! grep -q "^\s*\[holo-staging\]" /etc/pacman.conf; then
|
||||
printf "%b\n" "${CYAN}Adding holo-staging to pacman repositories...${RC}"
|
||||
echo "[holo-staging]" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf
|
||||
echo "Server = https://steamdeck-packages.steamos.cloud/archlinux-mirror/\$repo/os/\$arch" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf
|
||||
echo "SigLevel = Never" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf
|
||||
fi
|
||||
}
|
||||
|
||||
installKernel() {
|
||||
if ! "$PACKAGER" -Q | grep -q "\blinux-neptune"; then
|
||||
printf "%b\n" "${CYAN}Installing linux-neptune..."
|
||||
"$ESCALATION_TOOL" "$PACKAGER" -Syyu --noconfirm
|
||||
"$ESCALATION_TOOL" "$PACKAGER" -S --noconfirm linux-neptune linux-neptune-headers steamdeck-dsp jupiter-staging/alsa-ucm-conf
|
||||
"$ESCALATION_TOOL" mkinitcpio -P
|
||||
else
|
||||
printf "%b\n" "${GREEN}linux-neptune detected. Skipping installation.${RC}"
|
||||
fi
|
||||
|
||||
if [ -f /etc/default/grub ]; then
|
||||
printf "%b\n" "${CYAN}Updating GRUB...${RC}"
|
||||
if ! grep -q '^UPDATEDEFAULT=' /etc/default/grub; then
|
||||
echo 'UPDATEDEFAULT=yes' | "$ESCALATION_TOOL" tee -a /etc/default/grub
|
||||
else
|
||||
"$ESCALATION_TOOL" sed -i 's/^UPDATEDEFAULT=.*/UPDATEDEFAULT=yes/' /etc/default/grub
|
||||
fi
|
||||
if [ -f /boot/grub/grub.cfg ]; then
|
||||
"$ESCALATION_TOOL" grub-mkconfig -o /boot/grub/grub.cfg
|
||||
else
|
||||
printf "%b\n" "${RED}GRUB configuration file not found. Run grub-mkconfig manually.${RC}"
|
||||
fi
|
||||
else
|
||||
printf "%b\n" "${RED}GRUB not detected. Manually set your bootloader to use linux-neptune.${RC}"
|
||||
fi
|
||||
}
|
||||
|
||||
copyFirmwareFiles() {
|
||||
printf "%b\n" "${CYAN}Copying firmware files...${RC}"
|
||||
"$ESCALATION_TOOL" mkdir -p /usr/lib/firmware/cirrus
|
||||
"$ESCALATION_TOOL" cp /usr/lib/firmware/cs35l41-dsp1-spk-cali.bin /usr/lib/firmware/cirrus/
|
||||
"$ESCALATION_TOOL" cp /usr/lib/firmware/cs35l41-dsp1-spk-cali.wmfw /usr/lib/firmware/cirrus/
|
||||
"$ESCALATION_TOOL" cp /usr/lib/firmware/cs35l41-dsp1-spk-prot.bin /usr/lib/firmware/cirrus/
|
||||
"$ESCALATION_TOOL" cp /usr/lib/firmware/cs35l41-dsp1-spk-prot.wmfw /usr/lib/firmware/cirrus/
|
||||
}
|
||||
|
||||
checkEnv
|
||||
checkEscalationTool
|
||||
setUpRepos
|
||||
installKernel
|
||||
copyFirmwareFiles
|
|
@ -15,6 +15,17 @@ script = "arch/server-setup.sh"
|
|||
task_list = "SI D"
|
||||
multi_select = false
|
||||
|
||||
[[data.entries]]
|
||||
name ="Linux Neptune for SteamDeck"
|
||||
description = "Valve's fork of Linux Kernel for the SteamDeck"
|
||||
script = "arch/linux-neptune.sh"
|
||||
task_list = "I PFM K"
|
||||
|
||||
[[data.entries.preconditions]]
|
||||
matches = true
|
||||
data = { file = "/sys/devices/virtual/dmi/id/board_vendor" }
|
||||
values = [ "Valve" ]
|
||||
|
||||
[[data.entries]]
|
||||
name = "Paru AUR Helper"
|
||||
description = "Paru is your standard pacman wrapping AUR helper with lots of features and minimal interaction. To know more about AUR helpers visit: https://wiki.archlinux.org/title/AUR_helpers"
|
||||
|
|
|
@ -86,6 +86,7 @@ https://github.com/ChrisTitusTech/dwm-titus
|
|||
### Arch Linux
|
||||
|
||||
- **Arch Server Setup**: This command installs a minimal arch server setup under 5 minutes.
|
||||
- **Linux Neptune for SteamDeck**: Valve's fork of Linux Kernel for the SteamDeck
|
||||
- **Paru AUR Helper**: Paru is your standard pacman wrapping AUR helper with lots of features and minimal interaction. To know more about AUR helpers visit: https://wiki.archlinux.org/title/AUR_helpers
|
||||
- **Yay AUR Helper**: Yet Another Yogurt - An AUR Helper Written in Go. To know more about AUR helpers visit: https://wiki.archlinux.org/title/AUR_helpers
|
||||
|
||||
|
|
|
@ -30,6 +30,7 @@ D - disk modifications (ex. partitioning) (privileged)
|
|||
FI - flatpak installation
|
||||
FM - file modification
|
||||
I - installation (privileged)
|
||||
K - kernel modifications (privileged)
|
||||
MP - package manager actions
|
||||
SI - full system installation
|
||||
SS - systemd actions (privileged)
|
||||
|
|
Loading…
Reference in New Issue
Block a user