Compare commits
19
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c7c3ba849c | ||
|
|
7cefbd1526 | ||
|
|
89a35b8865 | ||
|
|
403f9d5443 | ||
|
|
3588e4626c | ||
|
|
129eca256b | ||
|
|
72bc8d3321 | ||
|
|
6ee6450a03 | ||
|
|
777cd43fc1 | ||
|
|
6c5a913ab7 | ||
|
|
b9eeff19eb | ||
|
|
e005544608 | ||
|
|
32984a72e2 | ||
|
|
5a50282e0e | ||
|
|
ccf7e28e6e | ||
|
|
7ccff3ac13 | ||
|
|
ece517d3b4 | ||
|
|
8fb2800179 | ||
|
|
c6df64398e |
@@ -2,3 +2,6 @@ context.properties = {
|
||||
#default.clock.rate = 48000
|
||||
default.clock.allowed-rates = [ 44100, 48000, 88200, 96000, 176400, 192000 ]
|
||||
}
|
||||
stream.properties = {
|
||||
resample.quality = 14
|
||||
}
|
||||
|
||||
@@ -5,6 +5,22 @@ Just a faster way to speedrun the good parts of [this guide](https://github.com/
|
||||
### YOLO Speedrun this
|
||||
Are you a busy professional with no time to waste or just a lazy bugger who trusts everything on the Internet? Can't be bothered to save the script manually, make it executable and run it? Don't worry, I've got you covered. Simply copy and paste the following command into your console:
|
||||
```shell
|
||||
curl "https://www.lolnope.dk/post.sh" -s | bash
|
||||
curl "https://hvad.nu/Siim/Fedora-post-install-script/raw/branch/main/fedora_post_install.sh" -s | bash
|
||||
```
|
||||
Trust me bro.
|
||||
***
|
||||
|
||||
### What the script actually does
|
||||
1. Removes the fluff we never use anyway, such as Gnome maps, weather, calendar etc
|
||||
2. Adds RPM fusion & non-free repositories so you can install all the *good* stuff like codecs & drivers
|
||||
3. Adds better Flatpak support
|
||||
4. Installs nifty tools: [Ghostty](https://ghostty.org/) & [Tailscale](https://tailscale.com/)
|
||||
5. Updates the firmware of your hardware
|
||||
6. Creates the alias `upup` that updates everything installed via DNF & flatpak. Admit it, you wouldn't be here if you weren't a lazy bastard
|
||||
7. Installs the drivers your GFX needs
|
||||
8. Installs video codecs
|
||||
9. Adds support for bluetooth auto-switching, headphone profile to headset profile and vice versa. If you use your computer for Teams/Meet/Zoom calls, you want this.
|
||||
10. Adds support for bit-perfect audio. If you use your computer for listening to music, you want this.
|
||||
11. Adds support for rar & zip archives
|
||||
12. Adds support for AppImages (Gearlever)
|
||||
13. Adds auto-update for Flatpaks (WIP)
|
||||
|
||||
+27
-39
@@ -7,18 +7,8 @@ if [[ $EUID > 0 ]]; then
|
||||
sudo su -
|
||||
fi
|
||||
|
||||
# Source - https://stackoverflow.com/a/29436423
|
||||
# Posted by Tiago Lopo, modified by community. See post 'Timeline' for change history
|
||||
# Retrieved 2026-04-07, License - CC BY-SA 3.0
|
||||
function yes_or_no {
|
||||
while true; do
|
||||
read -p "$* [y/n]: " yn
|
||||
case $yn in
|
||||
[Yy]*) return 0 ;;
|
||||
[Nn]*) echo "Aborted" ; return 1 ;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
echo "Removing fluff (maps, tour, etc)"
|
||||
dnf remove -y gnome-maps gnome-weather gnome-tour gnome-calendar gnome-contacts simple-scan &> /dev/null
|
||||
|
||||
|
||||
echo "adding RPM fusion repos & updating DNF"
|
||||
@@ -28,21 +18,18 @@ dnf install -y https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-
|
||||
# Get the nonfree repository (NVIDIA drivers, some codecs)
|
||||
dnf install -y https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm &> /dev/null
|
||||
|
||||
# Installing nushell
|
||||
echo "[gemfury-nushell]
|
||||
name=Gemfury Nushell Repo
|
||||
baseurl=https://yum.fury.io/nushell/
|
||||
enabled=1
|
||||
gpgcheck=0
|
||||
gpgkey=https://yum.fury.io/nushell/gpg.key" | tee /etc/yum.repos.d/fury-nushell.repo
|
||||
dnf install -y nushell &> /dev/null
|
||||
# Add Ghostty
|
||||
dnf copr enable scottames/ghostty -y &> /dev/null
|
||||
dnf install ghostty -y &> /dev/null
|
||||
|
||||
# Installing Tailscale
|
||||
curl -fsSL https://tailscale.com/install.sh | sh &> /dev/null
|
||||
|
||||
# Update everything so it all plays nice together
|
||||
echo "Updating everything..."
|
||||
dnf group upgrade core -y &> /dev/null
|
||||
dnf check-update &> /dev/null
|
||||
dnf update -y &> /dev/null
|
||||
dnf update --refresh -y &> /dev/null
|
||||
#dnf check-update &> /dev/null
|
||||
#dnf update -y &> /dev/null
|
||||
|
||||
###Firmware updates
|
||||
# See what can be updated
|
||||
@@ -55,7 +42,7 @@ fwupdmgr refresh --force &> /dev/null
|
||||
fwupdmgr get-updates &> /dev/null
|
||||
|
||||
# Apply them
|
||||
fwupdmgr update &> /dev/null
|
||||
fwupdmgr update -y &> /dev/null
|
||||
|
||||
###Flathub
|
||||
echo "Fixing flathub"
|
||||
@@ -103,16 +90,18 @@ dnf install -y ffmpeg-libs libva libva-utils openh264 gstreamer1-plugin-openh264
|
||||
dnf config-manager --set-enabled fedora-cisco-openh264 &> /dev/null
|
||||
dnf update -y &> /dev/null
|
||||
|
||||
###Fix BT headsets
|
||||
sed -i "$ a AutoConnect=true" /etc/bluetooth/main.conf
|
||||
sed -i "$ a MultiProfile=multiple" /etc/bluetooth/main.conf
|
||||
|
||||
###Adding the update alias
|
||||
echo "Now you can just use the command 'upup' to update everything."
|
||||
"alias upup='sudo dnf update --refresh -y && flatpak update -y'" >> $HOME/.bashrc
|
||||
|
||||
###Archive support
|
||||
echo "Installing archive support"
|
||||
dnf install -y p7zip p7zip-plugins unrar &> /dev/null
|
||||
|
||||
###MS fonts
|
||||
echo "Installing MS fonts"
|
||||
dnf install -y curl cabextract xorg-x11-font-utils fontconfig &> /dev/null
|
||||
rpm -i --nodigest --nosignature https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm &> /dev/null
|
||||
fc-cache -fv &> /dev/null
|
||||
|
||||
###AppImage support
|
||||
echo "Adding AppImage support"
|
||||
dnf install -y fuse fuse-libs &> /dev/null
|
||||
@@ -120,6 +109,7 @@ flatpak install -y flathub it.mijorus.gearlever &> /dev/null
|
||||
|
||||
# AppImage autoupdate
|
||||
# Create the service unit
|
||||
echo "Creating Flatpak update task"
|
||||
tee /etc/systemd/system/flatpak-update.service > /dev/null <<'EOF'
|
||||
[Unit]
|
||||
Description=Update Flatpak apps automatically
|
||||
@@ -150,15 +140,13 @@ systemctl daemon-reload &> /dev/null
|
||||
systemctl enable --now flatpak-update.timer &> /dev/null
|
||||
|
||||
###Bit-perfect audio support
|
||||
function bitperfect_audio {
|
||||
###This will enable support for the following audio sample rates:
|
||||
###44100, 48000, 88200, 96000, 176400, 192000
|
||||
###Please adjust according to the capabilities of your hardware
|
||||
###or simply delete the file created below if you don't care about resampling
|
||||
mkdir -p ~/.config/pipewire/pipewire.conf.d
|
||||
curl https://git.zfx.dk/Siim/Fedora-post-install-script/raw/branch/main/10-bitperfect.conf > ~/.config/pipewire/pipewire.conf.d/10-bitperfect.conf
|
||||
}
|
||||
yes_or_no "Would you like to add support for high-res audio?" && bitperfect_audio ||
|
||||
###This will enable support for the following audio sample rates:
|
||||
###44100, 48000, 88200, 96000, 176400, 192000
|
||||
###Please adjust according to the capabilities of your hardware
|
||||
###or simply delete the file created below if you don't care about resampling
|
||||
echo "Adding bitperfect audio support"
|
||||
mkdir -p $HOME/.config/pipewire/pipewire.conf.d
|
||||
curl https://hvad.nu/Siim/Fedora-post-install-script/raw/branch/main/10-bitperfect.conf > $HOME/.config/pipewire/pipewire.conf.d/10-bitperfect.conf
|
||||
|
||||
###All done
|
||||
echo "Script completed, please reboot."
|
||||
Reference in New Issue
Block a user