-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathgdl.conf
More file actions
633 lines (617 loc) · 11.9 KB
/
gdl.conf
File metadata and controls
633 lines (617 loc) · 11.9 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
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
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
#!/bin/bash
#
# Configuration file for the Golden Drake Linux (GDL) installer.
#
# Copyright (C) 2020-2025 Golden Drake Studios: goldendrakestudios.com
# Forked originally from the Anarchy installer: anarchyinstaller.gitlab.io
#
# shellcheck disable=SC2034,SC2155
readonly GDL_VERSION='1.2.2a'
# 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='
7zip
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
fastfetch
foliate
fortune-mod
figlet
fwupd
gamemode lib32-gamemode
git-lfs
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
jp2a
kernel-modules-hook
linux-firmware
linux-zen
linux-zen-headers
lolcat
man-db
man-pages
mesa lib32-mesa
networkmanager
noto-fonts-emoji
nss-mdns
nvtop
openbsd-netcat
pacman-contrib
pavucontrol
pipewire-alsa
pipewire-jack
pipewire-pulse
plocate
reflector
soundfont-fluid
system-config-printer
toilet
tree
ttf-liberation
unrar
unzip
vulkan-tools
wget
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
cbonsai
matcha-gtk-theme
no-more-secrets
ps_mem
wtf
'
# Desktop-specific globals
DISPLAY_MANAGER=''
DESKTOP_ENV=''
readonly -A DESKTOP_ENV_PACKAGES=(
['kde-plasma']='
ark
dolphin-plugins
ffmpegthumbs
gwenview
kamoso
kate
kblocks
kbreakout
kcalc
kdialog
kde-inotify-survey
kdeconnect
kdegraphics-thumbnailers
kdenetwork-filesharing
kfind
khelpcenter
kimageformats
kmines
kolf
konsole
kreversi
ksirk
ksudoku
kwalletmanager
okular
phonon-qt6-vlc
plasma
spectacle
sshfs
transmission-qt
vlc-plugins-all
'
['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
cinnamon
cinnamon-translations
ffmpegthumbnailer
gnome-calculator
gnome-characters
gnome-keyring
gnome-screenshot
gnome-mines
gnome-nibbles
gnome-sudoku
gpaste
iagno
metacity
mpv
nemo-fileroller
python-xlib
quadrapassel
redshift
snapshot
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
mugshot
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']='gdm-settings gnome-shell-extension-pano-git '
['cinnamon']='xviewer '
['xfce']='xfce-superkey-git '
)
# Optional packages
readonly -a OPTIONAL_SOFTWARE_LISTS=(
'MISC_GAMES_SOFTWARE_TITLE
lutris
steam
bottles
itch-setup-bin
heroic-games-launcher-bin
bsd-games2
libretro
dosbox
scummvm
playonlinux
innoextract'
'ACTION_GAMES_SOFTWARE_TITLE
supertux
frogatto
alex4
sdlpop
asciiportal
mari0
xonotic
warsow
sauerbraten
assaultcube-reloaded
openarena
astromenace
chromium-bsu
starfighter
teeworlds
bzflag'
'ADVENTURE_GAMES_SOFTWARE_TITLE
bass
fotaq
lure
drascula
zsdx
zork1
zork2
zork3
open-adventure'
'ROLEPLAYING_GAMES_SOFTWARE_TITLE
openmw
daggerfall-unity-bin
rogue
angband
umoria
nethack
tome4
crawl-tiles
cataclysm-dda-tiles
drl
freedroidrpg
flare-game
naev
planeshift-legacy
runescape-launcher
runelite
manaplus'
'STRATEGY_GAMES_SOFTWARE_TITLE
0ad
widelands
megaglest
warzone2100
boswars
curseofwar
wesnoth
pingus
hedgewars
warmux
freeciv
singularity'
'RACING_GAMES_SOFTWARE_TITLE
supertuxkart
extremetuxracer
armagetronad
gltron
torcs'
'SIM_GAMES_SOFTWARE_TITLE
dwarffortress
lincity-ng
simutrans
flightgear
luanti
minecraft-launcher'
'DEV_SOFTWARE_TITLE
godot
unityhub
unreal-engine
flax
o3de-bin
panda3d
spring
ogre
ogre-next
defold-bin
love
solarus
python-pygame
tiled
allegro
raylib
sdl3
sfml
decker
android-studio
visual-studio-code-bin
code
geany
emacs'
'GRAPHICS_SOFTWARE_TITLE
gimp
inkscape
blender
goxel
magicavoxel
libresprite
aseprite
mtpaint
mypaint
krita'
'MULTIMEDIA_SOFTWARE_TITLE
obs-studio
kdenlive
openshot
simplescreenrecorder
minitube
yt-dlp
audacity
lmms
spotify'
'INTERNET_SOFTWARE_TITLE
firefox
chromium
google-chrome
opera
w3m
lynx
proton-vpn-gtk-app
discord
slack-desktop
signal-desktop
hexchat
filezilla'
'WRITING_AND_OFFICE_SOFTWARE_TITLE
libreoffice-fresh
libreoffice-still
calligra
onlyoffice-bin
inky
twinejs-standalone
obsidian
standardnotes-bin
xchm'
'FONTS_AND_LANG_SOFTWARE_TITLE
noto-fonts
noto-fonts-extra
noto-fonts-cjk
ibus-libpinyin
ibus-chewing
ibus-kkc
ibus-hangul'
'UTILITIES_SOFTWARE_TITLE
htop
gtop
bashtop
mangohud
timeshift
gparted
gnome-disk-utility
baobab
tmux
ranger
virtualbox
libvirt
vmware-workstation
insync
pcloud-drive
clamav
bleachbit')
readonly DEFAULT_OPTIONAL_SOFTWARE='firefox noto-fonts htop'
# Additional/supplemental packages
readonly -A MISC_PACKAGES=(
['battery']='tlp '
['touchpad']='xf86-input-libinput '
['multi-boot']='os-prober '
['efi']='efibootmgr '
['lvm']='lvm2 '
['root-btrfs']='grub-btrfs inotify-tools '
['gdm']='gdm '
['lightdm']='lightdm-gtk-greeter-settings '
['sddm']='sddm '
['kdenlive']='python-pip '
['mangohud']='lib32-mangohud '
['libvirt']='qemu-desktop '
['virtualbox']='virtualbox-host-dkms '
['cjk']='noto-fonts-cjk '
['unity-vscode']='dotnet-sdk mono-addins mono-msbuild-sdkresolver '
)
readonly -A MISC_AUR_PACKAGES=(
['lightdm']='lightdm-guest-account '
['drascula']='drascula-audio '
['insync-kde-plasma']='insync-dolphin '
['insync-gnome']='insync-nautilus '
['insync-cinnamon']='insync-nemo '
['insync-xfce']='insync-thunar '
['timeshift-btrfs']='timeshift-autosnap '
['unity-vscode']='code-marketplace mono-tools '
)
# If Lutris or another Wine-centric package is selected, these are installed as
# they may be necessary or helpful for certain non-Steam Windows games/apps
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-compat lib32-sdl2-compat
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
'
# CPU/GPU-related globals
GPU_CHIPSET='Unknown'
DEFAULT_GPU_DRIVER='xf86-video-vesa'
readonly -A GPU_PACKAGES=(
['xf86-video-amdgpu']='vulkan-radeon lib32-vulkan-radeon '
['xf86-video-ati']='vulkan-radeon lib32-vulkan-radeon '
['nvidia-dkms']='
nvidia-prime
nvidia-settings
nvidia-utils lib32-nvidia-utils
'
['nvidia-open-dkms']='
nvidia-prime
nvidia-settings
nvidia-utils lib32-nvidia-utils
'
['xf86-video-nouveau']='vulkan-nouveau lib32-vulkan-nouveau '
['xf86-video-intel']='
libva-intel-driver lib32-libva-intel-driver
vulkan-intel lib32-vulkan-intel
'
['xf86-video-vesa']=''
)
readonly -A IGPU_PACKAGES=(
['amd']='radeontop '
['intel']='intel-gpu-tools '
)
readonly -A CPU_PACKAGES=(
['AuthenticAMD']='amd-ucode '
['GenuineIntel']='intel-ucode thermald '
)
# VM-related globals
VM_TYPE="$(systemd-detect-virt)"
readonly -A VM_GUEST_PACKAGES=(
['vmware']='gtkmm3 net-tools open-vm-tools xf86-input-vmmouse '
['qemu']='qemu-guest-agent spice-vdagent '
['oracle']='virtualbox-guest-utils '
['other']='xf86-video-fbdev '
)
# 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'
readonly -A FS_PACKAGES=(
['btrfs']='btrfs-progs compsize '
['xfs']='xfsprogs '
['ext']='e2fsprogs '
['vfat']='dosfstools '
)
# User-specific globals
USERNAME=''
FULL_NAME=''
PASSWORD=''
DEFAULT_GROUPS='audio,games,network,optical,power,storage,wheel'
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 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