-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
252 lines (199 loc) · 7.67 KB
/
Copy pathinstall
File metadata and controls
252 lines (199 loc) · 7.67 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
#!/usr/bin/env bash
set -e
# ==============================
# Fedora Minimal GNOME Setup
# ==============================
echo
echo "================================"
echo " Optional Applications"
echo "================================"
echo
items=(
"Steam"
"Moonlight Support Amd And Intel"
"Sunshine"
"Modrinth App"
"Brave Origin"
"WireGuard"
"Remove REPO"
"VS Code"
"Arduino"
)
selected=(0 0 0 0 0 0 0 0 0)
for i in "${!items[@]}"; do
echo "$i) ${items[$i]}"
done
echo
echo "Select multiple items separated by spaces"
echo "Example: 0 1 5"
echo
read -rp "Select: " choices
for n in $choices; do
if [[ "$n" =~ ^[0-9]+$ ]] && [ "$n" -lt "${#items[@]}" ]; then
selected[$n]=1
fi
done
echo "================================"
echo " Installing selected apps"
echo "================================"
if [ "${selected[6]}" = 1 ]; then
echo "Installing Remove REPO..."
sudo rm /etc/yum.repos.d/fedora-updates-testing.repo
sudo dnf clean all
sudo dnf makecache
sudo dnf update -y
fi
if [ "${selected[0]}" = 1 ]; then
echo "Installing Steam..."
sudo dnf install glibc.i686 mesa-libGL.i686 libdrm.i686 libnsl.i686 tar -y
wget https://repo.steampowered.com/steam/archive/stable/steam_latest-stable.tar.gz
wget https://github.com/TimeAndTimeStudio/Fedora-Install/raw/refs/heads/main/steam/icons.tar.xz
tar -xvf steam_latest-stable.tar.gz
cd steam-launcher
sudo rm steam
sudo mv bin_steam.sh steam
sudo mv steam /usr/bin/
mkdir -p ~/.local/share/applications
mv steam.desktop ~/.local/share/applications/steam.desktop
chmod +x ~/.local/share/applications/steam.desktop
sudo mkdir /usr/lib/steam
sudo mv bootstraplinux_ubuntu12_32.tar.xz /usr/lib/steam/
cd ../
tar -xvf icons.tar.xz
sudo cp -r icons/* /usr/share/icons/hicolor/
sudo rm icons.tar.xz steam_latest-stable.tar.gz
sudo rm -r steam-launcher icons
fi
if [ "${selected[1]}" = 1 ]; then
echo "Installing Moonlight..."
wget https://github.com/TimeAndTimeStudio/Fedora-Install/releases/download/App-id-1/moonlight
wget https://github.com/TimeAndTimeStudio/Fedora-Install/raw/refs/heads/main/moonlight/moonlight.svg
wget https://github.com/TimeAndTimeStudio/Fedora-Install/raw/refs/heads/main/moonlight/moonlight.desktop
wget https://github.com/TimeAndTimeStudio/Fedora-Install/raw/refs/heads/main/mesa.sh
sudo chmod +x moonlight.desktop moonlight mesa.sh
mkdir -p ~/.local/share/applications
mv moonlight.desktop ~/.local/share/applications/moonlight.desktop
sudo mv mesa.sh /usr/bin/mesa.sh
sudo mv moonlight.svg /usr/share/icons/hicolor/scalable/apps/moonlight.svg
sudo mv moonlight /usr/bin/moonlight
sudo dnf install SDL2_ttf.x86_64 libswscale-free.x86_64 tar -y
sudo dnf install --setopt=install_weak_deps=False qt6-qtdeclarative -y
wget https://github.com/TimeAndTimeStudio/Fedora-Install/releases/download/App-id-1/ffmpeg.tar.xz
tar -xvf ffmpeg.tar.xz
rm ffmpeg.tar.xz
wget https://github.com/TimeAndTimeStudio/Fedora-Install/releases/download/App-id-1/mesa-install.tar.xz
tar -xvf mesa-install.tar.xz
rm mesa-install.tar.xz
fi
if [ "${selected[2]}" = 1 ]; then
echo "Installing Sunshine..."
sudo modprobe uinput
wget https://github.com/TimeAndTimeStudio/Fedora-Install/releases/download/App-id-1/sunshine
sudo chmod +x sunshine
sudo cp ./sunshine /tmp
sudo setcap cap_sys_admin,cap_sys_nice+p /tmp/sunshine
sudo getcap /tmp/sunshine
sudo mv /tmp/sunshine ./sunshine
sudo mv sunshine /usr/local/bin/sunshine
sudo usermod -aG input $USER
sudo wget https://github.com/TimeAndTimeStudio/Fedora-Install/raw/refs/heads/main/sunshine/uinput.rules
sudo mv uinput.rules /etc/udev/rules.d/uinput.rules
sudo udevadm control --reload-rules
sudo udevadm trigger /dev/uinput
wget https://github.com/TimeAndTimeStudio/Fedora-Install/raw/refs/heads/main/sunshine/sunshine.service
mkdir -p ~/.config/systemd/user/
mv sunshine.service ~/.config/systemd/user/sunshine.service
systemctl --user daemon-reload
systemctl --user enable sunshine.service
sudo firewall-cmd --permanent --add-port=47984/tcp
sudo firewall-cmd --permanent --add-port=47989/tcp
sudo firewall-cmd --permanent --add-port=47990/tcp
sudo firewall-cmd --permanent --add-port=48010/tcp
sudo firewall-cmd --permanent --add-port=47998-48000/udp
sudo firewall-cmd --reload
wget https://github.com/TimeAndTimeStudio/Fedora-Install/raw/refs/heads/main/mesa
sudo chmod +x mesa
sudo mv mesa /usr/local/bin/mesa
wget https://github.com/TimeAndTimeStudio/Fedora-Install/releases/download/App-id-1/mesa.tar.xz
tar -xvf mesa.tar.xz
rm mesa.tar.xz
sudo mv mesa /opt/
wget https://github.com/TimeAndTimeStudio/Fedora-Install/releases/download/App-id-1/assets.tar.xz
tar -xvf assets.tar.xz
rm assets.tar.xz
sudo mv assets /usr/local/
fi
if [ "${selected[3]}" = 1 ]; then
echo "Installing Modrinth App..."
wget https://launcher-files.modrinth.com/versions/0.15.11/linux/Modrinth%20App-0.15.11-1.x86_64.rpm
sudo dnf install ./"Modrinth App-0.15.11-1.x86_64.rpm" -y
sudo rm "Modrinth App-0.15.11-1.x86_64.rpm"
fi
if [ "${selected[4]}" = 1 ]; then
echo "Installing Brave Origin..."
sudo dnf config-manager addrepo --from-repofile=https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo
sudo dnf install brave-origin -y
fi
if [ "${selected[5]}" = 1 ]; then
echo "Installing WireGuard..."
sudo dnf install wireguard-tools -y
fi
if [ "${selected[7]}" = 1 ]; then
echo "Installing VS Code..."
wget https://github.com/TimeAndTimeStudio/Fedora-Install/releases/download/App-id-1/code-1.129.1-1784303689.el8.x86_64.rpm
sudo dnf install ./code-1.129.1-1784303689.el8.x86_64.rpm
sudo rm code-1.129.1-1784303689.el8.x86_64.rpm
fi
if [ "${selected[8]}" = 1 ]; then
echo "Installing Arduino..."
sudo dnf install tar -y
wget https://github.com/TimeAndTimeStudio/Fedora-Install/raw/refs/heads/main/arduino/icons.tar.xz
wget https://github.com/TimeAndTimeStudio/Fedora-Install/raw/refs/heads/main/arduino/arduino.desktop
wget https://github.com/TimeAndTimeStudio/Fedora-Install/releases/download/App-id-1/arduino.tar.xz
sudo chmod +x arduino.desktop
mkdir -p ~/.local/share/applications
mv arduino.desktop ~/.local/share/applications/arduino.desktop
tar -xvf arduino.tar.xz
sudo mv arduino /opt/
tar -xvf icons.tar.xz
sudo cp -r icons/* /usr/share/icons/hicolor/
sudo rm icons.tar.xz arduino.tar.xz
sudo rm -r icons
fi
echo "================================"
echo " Installing GNOME base system"
echo "================================"
sudo dnf install -y \
gdm \
gnome-terminal \
nautilus \
google-noto-sans-thai-fonts \
google-noto-sans-cjk-fonts \
tar \
nss-mdns \
google-noto-serif-cjk-fonts \
google-noto-serif-thai-fonts
echo
echo "================================"
echo " Removing unnecessary packages"
echo "================================"
sudo dnf remove -y \
gnome-tour \
malcontent-control \
gnome-remote-desktop
echo
echo "================================"
echo " Configure Plymouth"
echo "================================"
sudo dnf install -y plymouth-system-theme
sudo plymouth-set-default-theme -R bgrt
echo
echo "================================"
echo " Enable GNOME Login"
echo "================================"
sudo systemctl set-default graphical.target
sudo sed -i 's/^GRUB_TIMEOUT=.*/GRUB_TIMEOUT=0/' /etc/default/grub
sudo sed -i '1i GRUB_TIMEOUT_STYLE=hidden' /etc/default/grub
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
sudo rm install
sudo reboot now