-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgdl.conf
407 lines (394 loc) · 8.25 KB
/
gdl.conf
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
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
#!/bin/bash
#
# Configuration file for the Golden Drake Linux (GDL) installer.
#
# Copyright (C) 2020-2024 Golden Drake Studios: goldendrakestudios.com
# Forked originally from the Anarchy installer: anarchyinstaller.gitlab.io
#
# shellcheck disable=SC2034,SC2155
readonly GDL_VERSION='1.1.1'
# Wi-Fi globals: provide SSID and password here to auto-connect
readonly WIFI_SSID=''
readonly WIFI_PASSWORD=''
# Globals for use with 'dialog'
readonly DEFAULT_BACKTITLE="Golden Drake Linux v${GDL_VERSION}"
readonly I='\Z3*\Zn' # item (to mark unordered list items)
TITLE=''
BACKTITLE=''
# Default packages to install from official Arch Linux repositories
BASE_PACKAGES='
acpi
alsa-utils
arch-wiki-lite
asciiquarium
audacious
base
base-devel
bash-completion
breeze
cmatrix
cool-retro-term
cowsay
cpupower
cups-pdf
dialog
dictd
duf
foliate
fortune-mod
figlet
fwupd
gamemode lib32-gamemode
git-lfs
gnu-netcat
grub
gst-libav
gst-plugin-pipewire
gst-plugins-base
gst-plugins-good
gst-plugins-bad
gst-plugins-ugly
gufw
gvfs-mtp
gvfs-smb
gvim
hplip
inetutils
iputils
jp2a
kernel-modules-hook
libreoffice-fresh
licenses
linux-firmware
linux-zen
linux-zen-headers
lolcat
man-db
man-pages
mesa lib32-mesa
neofetch
networkmanager
noto-fonts-emoji
nss-mdns
nvtop
p7zip
pacman-contrib
pavucontrol
pipewire-alsa
pipewire-jack
pipewire-pulse
plocate
reflector
screenfetch
soundfont-fluid
toilet
tree
ttf-liberation
unrar
unzip
vi
vulkan-tools
wget
xchm
xclip
xdg-user-dirs
xorg-apps
xorg-server
xorg-xinit
zip
'
# Default packages to install from the Arch User Repository (AUR)
AUR_PACKAGES='
beautyline
boxes
breeze-amber-cursor-theme
cbonsai
no-more-secrets
ps_mem
wtf
'
# Desktop-specific globals
DISPLAY_MANAGER=''
DESKTOP_ENV=''
readonly -A DESKTOP_ENV_BASE_PACKAGES=(
['kde-plasma']='
ark
dolphin-plugins
ffmpegthumbs
gwenview
kamoso
kate
kblocks
kbreakout
kcalc
kdialog
kdeconnect
kdegraphics-thumbnailers
kdenetwork-filesharing
kfind
khelpcenter
kmines
kolf
konsole
kreversi
ksirk
ksudoku
kwalletmanager
okular
packagekit-qt6
plasma
spectacle
transmission-qt
'
['gnome']='
archlinux-appstream-data
gcolor3
gnome
gnome-browser-connector
gnome-mines
gnome-nibbles
gnome-shell-extension-appindicator
gnome-shell-extension-dash-to-panel
gnome-sudoku
gnome-tweaks
iagno
network-manager-applet
quadrapassel
terminator
transmission-gtk
variety
'
['cinnamon']='
blueman
cheese
cinnamon
cinnamon-translations
ffmpegthumbnailer
gnome-calculator
gnome-characters
gnome-keyring
gnome-screenshot
gnome-mines
gnome-nibbles
gnome-sudoku
gpaste
iagno
mpv
nemo-fileroller
python-xlib
quadrapassel
redshift
terminator
transmission-gtk
xed
xreader
'
['xfce']='
atril
blueman
cheese
ffmpegthumbnailer
file-roller
galculator
gcolor3
gnome-characters
gnome-keyring
gnome-mines
gnome-nibbles
gnome-sudoku
iagno
mousepad
mpv
network-manager-applet
quadrapassel
redshift
ristretto
terminator
thunar-archive-plugin
thunar-media-tags-plugin
transmission-gtk
xfce4
xfce4-battery-plugin
xfce4-clipman-plugin
xfce4-cpufreq-plugin
xfce4-cpugraph-plugin
xfce4-datetime-plugin
xfce4-dict
xfce4-diskperf-plugin
xfce4-fsguard-plugin
xfce4-genmon-plugin
xfce4-mailwatch-plugin
xfce4-mount-plugin
xfce4-mpc-plugin
xfce4-netload-plugin
xfce4-notes-plugin
xfce4-pulseaudio-plugin
xfce4-screensaver
xfce4-screenshooter
xfce4-sensors-plugin
xfce4-smartbookmark-plugin
xfce4-systemload-plugin
xfce4-taskmanager
xfce4-time-out-plugin
xfce4-timer-plugin
xfce4-verve-plugin
xfce4-wavelan-plugin
xfce4-weather-plugin
xfce4-xkb-plugin
xfce4-whiskermenu-plugin
'
)
readonly -A DESKTOP_ENV_AUR_PACKAGES=(
['kde-plasma']='
plasma5-themes-matchama
'
['gnome']='
gnome-shell-extension-pano-git
gnome-shell-extension-transparent-window-moving-git
matcha-gtk-theme
'
['cinnamon']='
matcha-gtk-theme
xviewer
'
['xfce']='
matcha-gtk-theme
mugshot
xfce-superkey-git
'
)
# If Lutris or another Wine-centric package is selected, these are installed as
# they're often necessary or helpful for running non-Steam Windows games/apps.
# Main source: https://github.com/lutris/docs/blob/master/WineDependencies.md
readonly WINE_PACKAGES='
alsa-lib lib32-alsa-lib
alsa-plugins lib32-alsa-plugins
fluidsynth lib32-fluidsynth
giflib lib32-giflib
gnutls lib32-gnutls
gst-plugins-base-libs lib32-gst-plugins-base-libs
gtk3 lib32-gtk3
libcanberra lib32-libcanberra
libgcrypt lib32-libgcrypt
libgpg-error lib32-libgpg-error
libjpeg-turbo lib32-libjpeg-turbo
libldap lib32-libldap
libpng lib32-libpng
libpulse lib32-libpulse
libva lib32-libva
libxcomposite lib32-libxcomposite
libxinerama lib32-libxinerama
libxslt lib32-libxslt
mpg123 lib32-mpg123
ncurses lib32-ncurses
openal lib32-openal
ocl-icd lib32-ocl-icd
pipewire-jack lib32-pipewire-jack
python-magic
samba
sdl2 lib32-sdl2
sdl12-compat lib32-sdl12-compat
sqlite lib32-sqlite
v4l-utils lib32-v4l-utils
vkd3d lib32-vkd3d
vulkan-icd-loader lib32-vulkan-icd-loader
wine-staging
'
# GPU-related globals
GPU_CHIPSET='Unknown'
DEFAULT_GPU_DRIVER='xf86-video-vesa'
readonly NVIDIA_GPU_PACKAGES='
nvidia-prime
nvidia-settings
nvidia-utils lib32-nvidia-utils
'
readonly NOUVEAU_GPU_PACKAGES='
vulkan-nouveau lib32-vulkan-nouveau
'
readonly AMD_GPU_PACKAGES='
vulkan-radeon lib32-vulkan-radeon
'
readonly INTEL_GPU_PACKAGES='
libva-intel-driver lib32-libva-intel-driver
vulkan-intel lib32-vulkan-intel
'
# Partitioning-related globals
SYSTEM_MOUNTED='false'
SYSTEM_AUTO_ENCRYPTED='false'
ENABLE_HIBERNATION='false'
GPT='false'
UEFI='false'
DEVICE_LIST=''
ROOT_DRIVE=''
ROOT_FS=''
ROOT_PART=''
ROOT_PART_UUID=''
LVM_UUID=''
ROOT_LV=''
HOME_DRIVE=''
HOME_DRIVE_UUID=''
HOME_FS=''
BOOT_OR_ESP=''
BOOT_OR_ESP_MNT=''
BOOT_OR_ESP_SIZE=''
readonly DEFAULT_BOOT_SIZE='1024' # MiB
readonly DEFAULT_ESP_SIZE_SMALL='100' # MiB
readonly DEFAULT_ESP_SIZE_LARGE='260' # MiB
SWAP=''
SWAP_SIZE=''
RAM=''
readonly BTRFS_MOUNT_OPTIONS='noatime,compress-force=zstd:2'
# User-specific globals
USERNAME=''
FULL_NAME=''
PASSWORD=''
HOSTNAME='golden'
TIME_ZONE=''
KEYMAP=''
LANG_FILE='/usr/share/gdl/lang/english.conf'
# Misc. globals
readonly LOG_FILE='/root/gdl.log'
readonly CRYPT_KEY_FILE='/etc/gdl.key'
readonly SSL_KEY="$(openssl rand -base64 32)"
readonly VM_TYPE="$(systemd-detect-virt)"
readonly BATTERY="$(find /sys/class/power_supply -name 'BAT*' | head -n 1)"
REDUCE_EXTRANEOUS_TEXT='false'
ERRORS_LOGGED='0'
# Color constants for use with 'echo'
readonly BLACK='\e[0;30m'
readonly RED='\e[0;31m'
readonly GREEN='\e[0;32m'
readonly YELLOW='\e[0;33m'
readonly BLUE='\e[0;34m'
readonly MAGENTA='\e[0;35m'
readonly CYAN='\e[0;36m'
readonly WHITE='\e[0;37m'
readonly BOLD_BLACK='\e[1;30m'
readonly BOLD_RED='\e[1;31m'
readonly BOLD_GREEN='\e[1;32m'
readonly BOLD_YELLOW='\e[1;33m'
readonly BOLD_BLUE='\e[1;34m'
readonly BOLD_MAGENTA='\e[1;35m'
readonly BOLD_CYAN='\e[1;36m'
readonly BOLD_WHITE='\e[1;37m'
readonly COLOR_RESET='\e[m'
# Color scheme for installer
tput civis
echo -en '\e]P0000000' #darkblack (black)
echo -en '\e]P1800000' #darkred (maroon)
echo -en '\e]P200A86B' #darkgreen (jade)
echo -en '\e]P3DA9100' #darkyellow/brown (harvest gold)
echo -en '\e]P4082567' #darkblue (sapphire)
echo -en '\e]P5AB274F' #darkmagenta (amaranth purple)
echo -en '\e]P63AA8C1' #darkcyan (moonstone)
echo -en '\e]P7C0C0C0' #darkwhite/lightgrey (silver)
echo -en '\e]P8555555' #lightblack/darkgrey (Davy's gray)
echo -en '\e]P9FF2400' #lightred (scarlet)
echo -en '\e]PA50C878' #lightgreen (emerald)
echo -en '\e]PBD4AF37' #lightyellow (metallic gold)
echo -en '\e]PC318CE7' #lightblue (bleu de France)
echo -en '\e]PDE0115F' #lightmagenta (ruby)
echo -en '\e]PE7FFFD4' #lightcyan (aquamarine)
echo -en '\e]PFE5E4E2' #lightwhite (platinum)
setterm -background black -foreground yellow -store
tput cnorm