-
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathinstall-audio.sh
More file actions
executable file
·139 lines (109 loc) · 4.44 KB
/
install-audio.sh
File metadata and controls
executable file
·139 lines (109 loc) · 4.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
#!/bin/bash
# ---------------------------
# This is a bash script for configuring Fedora 43 for pro audio USING PIPEWIRE.
# ---------------------------
# NOTE: Execute this script by running the following command on your system:
# wget -O ~/install-audio.sh https://raw.githubusercontent.com/tuxaudio/linux-audio-setup-scripts/main/fedora/43/install-audio.sh && chmod +x ~/install-audio.sh && ~/install-audio.sh
# Exit if any command fails
set -e
notify () {
echo "--------------------------------------------------------------------"
echo $1
echo "--------------------------------------------------------------------"
}
# ---------------------------
# Update our system
# ---------------------------
notify "Update the system"
sudo dnf update
# ---------------------------
# Use preemptive kernel option
# ---------------------------
sudo grubby --args="preempt=full" --update-kernel=ALL
# ---------------------------
# limits
# See https://wiki.linuxaudio.org/wiki/system_configuration for more information.
# ---------------------------
notify "Modify limits.d/audio.conf"
echo '@pipewire - rtprio 90
@pipewire - nice -19
@pipewire - memlock unlimited' | sudo tee -a /etc/security/limits.d/audio.conf
# ---------------------------
# sysctl.conf
# See https://wiki.linuxaudio.org/wiki/system_configuration for more information.
# ---------------------------
notify "Modify /etc/sysctl.conf"
echo 'vm.swappiness=10
fs.inotify.max_user_watches=600000' | sudo tee -a /etc/sysctl.conf
# ---------------------------
# Add the user to the pipewire group
# ---------------------------
notify "Add ourselves to the pipewire group"
sudo usermod -a -G pipewire $USER
# ---------------------------
# REAPER
# Note: REAPER is not free. It is incredible software - and cheap.
# Please do the right thing and purchase it.
# Note: The instructions below will create a PORTABLE REAPER installation at ~/REAPER.
# ---------------------------
notify "REAPER"
wget -O reaper.tar.xz http://reaper.fm/files/7.x/reaper757_linux_x86_64.tar.xz
mkdir ./reaper
tar -C ./reaper -xf reaper.tar.xz
./reaper/reaper_linux_x86_64/install-reaper.sh --install ~/ --integrate-desktop
rm -rf ./reaper
rm reaper.tar.xz
touch ~/REAPER/reaper.ini
# ------------------------------------------------------------------------------------
# Wine and yabridge
# https://copr.fedorainfracloud.org/coprs/patrickl/wine-tkg/
# ------------------------------------------------------------------------------------
sudo dnf install realtime-setup -y
sudo systemctl enable realtime-setup.service
sudo systemctl enable realtime-entsk.service
sudo usermod -a -G realtime $USER
sudo systemctl disable rtkit-daemon
sudo systemctl mask rtkit-daemon
sudo dnf copr enable patrickl/wine-tkg -y
sudo dnf copr enable patrickl/wine-mono -y
sudo dnf copr enable patrickl/mingw-wine-gecko -y
sudo dnf copr enable patrickl/vkd3d -y
sudo dnf copr enable patrickl/wine-dxvk -y
sudo dnf copr enable patrickl/winetricks -y
sudo dnf copr enable patrickl/yabridge -y
sudo dnf copr enable patrickl/libcurl-gnutls -y
sudo dnf install wine wine-mono mingw32-wine-gecko mingw64-wine-gecko libvkd3d wine-dxvk* winetricks yabridge libcurl-gnutls -y --refresh
echo "# Audio: wine and yabridge" >> ~/.bashrc
echo "export WINEESYNC=1" >> ~/.bashrc
echo "export WINEFSYNC=1" >> ~/.bashrc
# Winetricks
sudo dnf install winetricks -y
winetricks -q corefonts
# Create common VST paths for yabridge
mkdir -p "$HOME/.wine/drive_c/Program Files/Steinberg/VstPlugins"
mkdir -p "$HOME/.wine/drive_c/Program Files/Common Files/VST2"
mkdir -p "$HOME/.wine/drive_c/Program Files/Common Files/VST3"
# Add them into yabridge
yabridgectl add "$HOME/.wine/drive_c/Program Files/Steinberg/VstPlugins"
yabridgectl add "$HOME/.wine/drive_c/Program Files/Common Files/VST2"
yabridgectl add "$HOME/.wine/drive_c/Program Files/Common Files/VST3"
# ---------------------------
# Install Windows VST plugins
# This is a manual step for you to run when you download plugins.
# First, run the plugin installer .exe file
# When the installer asks for a directory, make sure you select
# one of the directories above.
# VST2 plugins:
# C:\Program Files\Steinberg\VstPlugins
# OR
# C:\Program Files\Common Files\VST2
# VST3 plugins:
# C:\Program Files\Common Files\VST3
# ---------------------------
# Each time you install a new plugin, you need to run:
# yabridgectl sync
# ---------------------------
# FINISHED!
# Now just reboot, and make music!
# ---------------------------
notify "Done - please reboot."