|
|
|
@@ -20,9 +20,6 @@ function yes_or_no {
|
|
|
|
|
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"
|
|
|
|
|
# Get the free repository (most stuff you need)
|
|
|
|
@@ -43,9 +40,9 @@ dnf install -y nushell &> /dev/null
|
|
|
|
|
|
|
|
|
|
# Update everything so it all plays nice together
|
|
|
|
|
echo "Updating everything..."
|
|
|
|
|
dnf update --refresh -y &> /dev/null
|
|
|
|
|
#dnf check-update &> /dev/null
|
|
|
|
|
#dnf update -y &> /dev/null
|
|
|
|
|
dnf group upgrade core -y &> /dev/null
|
|
|
|
|
dnf check-update &> /dev/null
|
|
|
|
|
dnf update -y &> /dev/null
|
|
|
|
|
|
|
|
|
|
###Firmware updates
|
|
|
|
|
# See what can be updated
|
|
|
|
@@ -106,15 +103,16 @@ 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
###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
|
|
|
|
@@ -157,10 +155,31 @@ function bitperfect_audio {
|
|
|
|
|
###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 $HOME/.config/pipewire/pipewire.conf.d
|
|
|
|
|
curl https://karf.net/Siim/Fedora-post-install-script/raw/branch/main/10-bitperfect.conf > $HOME/.config/pipewire/pipewire.conf.d/10-bitperfect.conf
|
|
|
|
|
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 ||
|
|
|
|
|
|
|
|
|
|
###Tailscale install
|
|
|
|
|
function tailscale_install {
|
|
|
|
|
###Will use the standard Tailscale installation script
|
|
|
|
|
###but also request an API key in order to generate
|
|
|
|
|
###a pre-auth key for auto-approving the new client.
|
|
|
|
|
###Todo:
|
|
|
|
|
####1) Request API key from user
|
|
|
|
|
####2) Use API key to generate auth key
|
|
|
|
|
####3) Run tailscale up --auth-key=$keywejustgot
|
|
|
|
|
|
|
|
|
|
#Install Tailscale but be quiet about it
|
|
|
|
|
#Script source is here: https://github.com/tailscale/tailscale/blob/main/scripts/installer.sh
|
|
|
|
|
curl -fsSL https://tailscale.com/install.sh | sh &> /dev/null
|
|
|
|
|
#Request an API key
|
|
|
|
|
read -p "Please enter your Tailscale API key: " tskey
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
yes_or_no "Would you like to install Tailscale?" && tailscale_install ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
###All done
|
|
|
|
|
echo "Script completed, please reboot."
|