-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·645 lines (604 loc) · 22.6 KB
/
install.sh
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
634
635
636
637
638
639
640
641
642
643
644
645
#!/bin/bash
# =================================================================================================
#
# This program provides helpful tools for initializing a new system based on my personal dotfiles.
# It aims to provide a core set of common configs across a number of tools I use, while remaining
# flexible to a variety of deployment scenarios with different requirements.
#
# To support flexibility, this installer reads from a set of package lists. These are stored in the
# `packages` directory, in `[arch,aur,apt].[global,local]` files, corresponding to the repository
# and scope of the package.
#
# To add an Arch User Repository (AUR) package to your local config, `touch ./packages/aur.local`
# and add the package name, one per line. These will be included when installing packages from their
# respective installer commands.
#
#
# =================================================================================================
# TODO: Put installer script in path
#
# TODO: Setup fingerprint reader
# Copy /etc/pam.d/ configs
# auth sufficient pam_fprintd.so
# /etc/pam.d/[kde, kde-fingerprint, login, sddm, sudo, i3lock, etc?]
#
# TODO: Setup touchpad gestures
# yay -S libinput-gestures
# sudo gpasswd -a "$USER" input
# libinput-gestures-setup autostart
# Need to logout here or otherwise reload groups
# libinput-gestures-setup start
# Config in .config/libinput-gestures.conf
# TODO: Install gruvbox themes
# cd dotfiles && git submodule update --init
# mkdir ~/dotfiles/config/themes ~/dotfiles/config/icons
# cp -r ~/dotfiles/dependencies/Gruvbox-GTK-Theme/themes/* ~/dotfiles/config/themes
# cp -r ~/dotfiles/dependencies/Gruvbox-GTK-Theme/icons/* ~/dotfiles/config/icons
# TODO: Customize lightdm
# Move some wallpaper assets into this repo
# cp ~/dotfiles/assets/lightdm-background.png /usr/share/endeavouros/backgrounds/custom-wallpaper.png
# sudo sed --in-place=.backup 's/background=/usr/share/endeavouros/backgrounds/endeavouros-wallpaper.png/background=/usr/share/endeavouros/backgrounds/custom-wallpaper.png/g' /etc/lightdm/slick-greeter.conf
# TODO: Setup github credentials
# gh auth login
# Possibly set up a credential store
# TODO: Separate out themes and make gruvbox optional
# TODO: Restart needed
dir=~/dotfiles # dotfiles repository directory
config_dir="$dir"/config
packages_dir="$dir"/packages
platform=$(uname)
pacman_args="--noconfirm --needed"
restart_needed=0
source "$dir"/functions.sh
# Files and directories to link to home directory
home_files="
zshrc
zsh_functions
profile
bash_aliases
tmux.conf
tmux
gtkrc-2.0.mine
themes
icons
"
# Files and directories under ~/.config
configs="
nvim
i3
alacritty
dunst
conky
rofi
gtk-3.0
powerline
xfce4
picom.conf
picom-extended.conf
libinput-gestures.conf
"
local_home_templates="
zshrc_local
profile.local
"
bin="
startplasma-sway-wayland
"
systemd_services="
"
xsessions="
plasma-i3.desktop
"
wayland_sessions="
plasma-sway.desktop
"
arch="
"
apt=""
aur="
"
flatpak="
"
function load_package_lists() {
if [[ -f "$packages_dir"/arch.global ]]; then
arch="$(<"$packages_dir"/arch.global)"
fi
if [[ -f "$packages_dir"/aur.global ]]; then
aur="$(<"$packages_dir"/aur.global)"
fi
if [[ -f "$packages_dir"/apt.global ]]; then
apt="$(<"$packages_dir"/apt.global)"
fi
if [[ -f "$packages_dir"/arch.local ]]; then
arch_overrides="$(<"$packages_dir"/arch.local)"
printf -v arch "${arch}\n${arch_overrides}"
fi
if [[ -f "$packages_dir"/aur.local ]]; then
aur_overrides="$(<"$packages_dir"/aur.local)"
printf -v aur "${aur}\n${aur_overrides}"
fi
if [[ -f "$packages_dir"/apt.local ]]; then
apt_overrides="$(<"$packages_dir"/apt.local)"
printf -v apt "${apt}\n${apt_overrides}"
fi
if [[ -f "$packages_dir"/flatpak.local ]]; then
flatpak_overrides="$(<"$packages_dir"/flatpak.local)"
printf -v flatpak "${flatpak}\n${flatpak_overrides}"
fi
}
function link_dotfiles {
# change to the dotfiles directory
cd $config_dir
echo ""
# Check if existing file in homedir and warn if so, otherwise create symlinks from the
# files in the dotfiles directory specified in $files to the homedir
for file in $home_files; do
if [[ -f $file || -d $file ]]; then
if [[ -f ~/.$file || -d ~/.$file ]]; then
echo "Skipping: $file because ~/.$file already exists"
else
echo "Linking: $file ($config_dir/$file -> ~/.$file)"
ln -s $config_dir/$file ~/.$file
fi
fi
done
for file in $configs; do
if [[ -f $file || -d $file ]]; then
if [[ -f ~/.config/$file || -d ~/.config/$file ]]; then
echo "Skipping: $file because ~/.config/$file already exists"
else
echo "Linking: $file ($config_dir/$file -> ~/.config/$file)"
ln -s $config_dir/$file ~/.config/$file
fi
fi
done
for file in $local_home_templates; do
if [[ -f $file || -d $file ]]; then
if [[ -f ~/.$file || -d ~/.$file ]]; then
echo "Skipping: $file because ~/.$file already exists"
else
echo "Copying: $file ($config_dir/$file -> ~/.$file)"
ln -s $config_dir/$file ~/.$file
fi
fi
done
for file in $bin; do
if [[ -f bin/$file && -x $file ]]; then
if [[ -f /usr/local/bin/$file ]]; then
echo "Skipping: $file because /usr/local/bin/$file already exists"
else
echo "Copying: $file ($config_dir/bin/$file -> /usr/local/bin/$file)"
sudo cp $config_dir/bin/$file /usr/local/bin/$file
fi
fi
done
for file in $systemd_services; do
if [[ -f systemd/user/$file || -d systemd/user/$file ]]; then
if [[ -f ~/.config/systemd/user/$file || -d ~/.config/systemd/user/$file ]]; then
echo "Skipping: $file because ~/.config/systemd/user/$file already exists"
else
echo "Linking: $file ($config_dir/systemd/user/$file -> ~/.config/systemd/user/$file)"
ln -s $config_dir/systemd/user/$file ~/.config/systemd/user/$file
# TODO: Probably should also enable the service
#systemctl --user enable --now $file
fi
fi
done
cd - > /dev/null
}
function install_aur() {
# install AUR programs if on Arch
if [ $(program_installed yay) == 1 ]; then
echo -n "Do you want to upgrade/install from AUR? (y/n) "
read response
if [[ $response == 'y' ]] || [[ $response == 'Y' ]]; then
echo "Updating AUR programs."
yay -Syua $pacman_args
echo -n "Would you like to install all AUR programs from package lists? (y/n) "
read response
if [[ $response == 'y' ]] || [[ $response == 'Y' ]]; then
echo "Installing AUR programs from package lists."
while IFS= read -r program || [[ -n $program ]]; do
# Check for comment or whitespace
if [[ "$program" == '#'* || -z "${program// }" ]]; then
continue
fi
if [ $(program_installed $program) == 0 ]; then
yay -Sqa $pacman_args $program
fi
done < <(printf '%s' "$aur")
fi
fi
fi
}
function install_programs() {
if [ $(program_installed pacman) == 1 ]; then
sudo pacman -Syuq
# https://superuser.com/a/284226
while IFS= read -r program || [[ -n $program ]]; do
# Check for comment or whitespace
if [[ "$program" == '#'* || -z "${program// }" ]]; then
continue
fi
if [ $(program_installed $program) == 0 ]; then
sudo pacman -Sq $pacman_args $program
fi
done < <(printf '%s' "$arch")
elif [ $(program_installed apt-get) == 1 ]; then
sudo apt-get update
while IFS= read -r program || [[ -n $program ]]; do
# Check for comment or whitespace
if [[ "$program" == '#'* || -z "${program// }" ]]; then
continue
fi
if [ $(program_installed $program) == 0 ]; then
sudo apt-get install $program
fi
done < <(printf '%s' "$apt")
else
echo "Cannot install programs, no compatible package manager."
fi
if [ $(program_installed flatpak) == 1 ]; then
flatpak update --noninteractive --assumeyes
while IFS= read -r program || [[ -n $program ]]; do
# Check for comment or whitespace
if [[ "$program" == '#'* || -z "${program// }" ]]; then
continue
fi
program_array=($program)
remote=${program_array[0]}
app=${program_array[1]}
flatpak install --noninteractive --assumeyes $remote $app
done < <(printf '%s' "$flatpak")
fi
}
function setup_zsh() {
# Only ask to setup if zsh installed and not the current shell
if [[ $(program_installed zsh) == 1 && "$SHELL" != "$(which zsh)" ]]; then
echo
echo -n "Would you like to set zsh as your default shell? (y/n) "
read response
if [[ "$response" == 'y' ]] || [[ "$response" == 'Y' ]]; then
echo "Setting zsh as default shell"
chsh -s /usr/bin/zsh
fi
fi
}
function setup_system_configs() {
setup_zsh
if [[ $(program_installed sshd) == 1 && $(service_enabled sshd.service) == 0 ]]; then
echo
echo "Enabling SSH server"
sudo systemctl enable --now sshd.service
fi
if [[ $(program_installed ssh-agent) == 1 && $(service_enabled ssh-agent.service) == 0 ]]; then
echo
echo "Enabling SSH agent"
systemctl --user enable --now ssh-agent.service
fi
if [ $(program_installed lightdm) == 1 ]; then
echo
echo "Enabling numlock at startup"
original=`cat /etc/lightdm/lightdm.conf` >> /dev/null
sudo sed --in-place=.backup 's/#greeter-setup-script=/greeter-setup-script=\/usr\/bin\/numlockx on/g' /etc/lightdm/lightdm.conf
edited=`cat /etc/lightdm/lightdm.conf` >> /dev/null
diff=`diff <(echo "$original") <(echo "$edited")`
if [[ "$diff" != '' ]]; then
echo "$diff"
restart_needed=1
else
echo "No changes were made"
fi
fi
# Assume Steam is desired if xdg-desktop-portal is installed
if [[ -f /usr/share/xdg-desktop-portal/portals/gtk.portal && $(program_installed i3) == 1 ]]; then
echo
echo "Enabling xdg-desktop-portal-gtk in i3 (needed for Steam)"
original=`cat /usr/share/xdg-desktop-portal/portals/gtk.portal` >> /dev/null
sudo sed --in-place=.backup 's/^UseIn=gnome$/UseIn=gnome;i3/g' /usr/share/xdg-desktop-portal/portals/gtk.portal
edited=`cat /usr/share/xdg-desktop-portal/portals/gtk.portal` >> /dev/null
diff=`diff <(echo "$original") <(echo "$edited")`
if [[ "$diff" != '' ]]; then
echo "$diff"
restart_needed=1
else
echo "No changes were made"
fi
fi
if [[ ! $(program_installed vim) == 1 && $(program_installed nvim) == 1 ]]; then
echo
echo "Preventing missing vim issues"
sudo ln -s "$(which nvim)" /usr/bin/vim
fi
# TODO: Make sure bluetooth is installed
if [[ $(service_enabled bluetooth.service) == 0 ]]; then
echo
echo "Enabling Bluetooth"
sudo systemctl enable --now bluetooth.service
fi
if [[ $(program_installed syncthing) == 1 ]]; then
echo
echo "Enabling Syncthing"
systemctl enable --user --now syncthing.service
echo "Configure syncthing here:"
echo "http://localhost:8384"
fi
choose_desktop_environment
}
function setup_sessions() {
# Install plasma + i3 sessions
echo
echo -n "Would you like to install X11 / Wayland sessions? (y/n) "
read response
if [[ "$response" == 'y' ]] || [[ "$response" == 'Y' ]]; then
# Check if xsessions directory exists
if [[ -d /usr/share/xsessions ]]; then
for file in $xsessions; do
if [[ -f xsessions/$file ]]; then
if [[ -f /usr/share/xsessions/$file ]]; then
echo "Skipping: $file because /usr/share/xsessions/$file already exists"
else
echo "Copying: $file ($config_dir/xsessions/$file -> /usr/share/xsessions/$file)"
sudo cp $config_dir/xsessions/$file /usr/share/xsessions/$file
fi
fi
done
fi
# Check if wayland_sessions directory exists
if [[ -d /usr/share/wayland-sessions ]]; then
for file in $wayland_sessions; do
if [[ -f wayland-sessions/$file ]]; then
if [[ -f /usr/share/wayland-sessions/$file ]]; then
echo "Skipping: $file because /usr/share/wayland-sessions/$file already exists"
else
echo "Copying: $file ($config_dir/wayland-sessions/$file -> /usr/share/wayland-sessions/$file)"
sudo cp $config_dir/wayland-sessions/$file /usr/share/wayland-sessions/$file
fi
fi
done
fi
fi
}
function choose_desktop_environment() {
echo
echo "Choose a desktop environment"
echo "[plasma-i3] Plasma desktop environment with i3 as window manager"
echo "[i3] i3 window manager only"
echo "[plasma] Set up samba credentials only"
echo "[0] No change"
echo ""
echo "What would you like to do?"
read response
if [[ $response == "plasma-i3" ]]; then
setup_plasma_i3
elif [[ $response == "i3" ]]; then
setup_bare_i3
elif [[ $response == "plasma" ]]; then
setup_bare_plasma
else
echo "Making no changes to desktop environment"
fi
}
function setup_bare_i3() {
echo "Configuring i3"
# TODO: Set display manager to lightdm?
if [[ ! -d ~/.config/i3/config.de ]]; then
mkdir ~/.config/i3/config.de
fi
if [[ -f ~/.config/i3/config.de/i3-keybindings.conf ]]; then
echo "Skipping: i3-keybindings.conf because ~/.config/i3/config.de/i3-keybindings.conf already exists"
else
echo "Linking: i3-keybindings.conf ($config_dir/bare-i3/i3-keybindings.conf -> ~/.config/i3/config.de/i3-keybindings.conf)"
ln -s $config_dir/bare-i3/i3-keybindings.conf ~/.config/i3/config.de/i3-keybindings.conf
fi
if [[ -f ~/.config/i3/config.de/i3-bar.conf ]]; then
echo "Skipping: i3-bar.conf because ~/.config/i3/config.de/i3-bar.conf already exists"
else
echo "Linking: i3-bar.conf ($config_dir/bare-i3/i3-bar.conf -> ~/.config/i3/config.de/i3-bar.conf)"
ln -s $config_dir/bare-i3/i3-bar.conf ~/.config/i3/config.de/i3-bar.conf
fi
if [[ -f ~/.config/i3/config.de/i3-autostart.conf ]]; then
echo "Skipping: i3-autostart.conf because ~/.config/i3/config.de/i3-autostart.conf already exists"
else
echo "Linking: i3-autostart.conf ($config_dir/bare-i3/i3-autostart.conf -> ~/.config/i3/config.de/i3-autostart.conf)"
ln -s $config_dir/bare-i3/i3-autostart.conf ~/.config/i3/config.de/i3-autostart.conf
fi
# TODO: Actually launch into i3 rather than plasma, need to set up DM configs
}
function setup_plasma_i3() {
if [[ ! $(program_installed plasmashell) == 1 ]]; then
echo "Plasma not installed, please install and rerun"
# TODO: echo the command to install plasma
return 1
fi
echo "Configuring i3"
if [[ -f ~/.config/i3/config.de/i3-keybindings.conf ]]; then
echo "Skipping: i3-keybindings.conf because ~/.config/i3/config.de/i3-keybindings.conf already exists"
else
echo "Linking: i3-keybindings.conf ($config_dir/plasma-i3/i3-keybindings.conf -> ~/.config/i3/config.de/i3-keybindings.conf)"
ln -s $config_dir/plasma-i3/i3-keybindings.conf ~/.config/i3/config.de/i3-keybindings.conf
fi
if [[ -f ~/.config/i3/config.de/i3-bar.conf ]]; then
echo "Skipping: i3-bar.conf because ~/.config/i3/config.de/i3-bar.conf already exists"
else
echo "Linking: i3-bar.conf ($config_dir/plasma-i3/i3-bar.conf -> ~/.config/i3/config.de/i3-bar.conf)"
ln -s $config_dir/plasma-i3/i3-bar.conf ~/.config/i3/config.de/i3-bar.conf
fi
echo "Disabling plasma systemd autostart"
if [[ $(program_installed kwriteconfig5) == 1 ]]; then
kwriteconfig5 --file startkderc --group General --key systemdBoot false
fi
if [[ $(program_installed kwriteconfig6) == 1 ]]; then
kwriteconfig6 --file startkderc --group General --key systemdBoot false
fi
setup_sessions
}
function setup_bare_plasma() {
if [[ ! $(program_installed plasmashell) == 1 ]]; then
echo "Plasma not installed, please install and rerun"
return 1
fi
echo "Configuring plasma"
# TODO: Copy over plasma configs (or just do this by default with other configs)
# Mostly we just want to not do the things we do in the other DE functions here
}
function setup_samba() {
echo
echo -n "Would you like to configure samba? (y/n) "
read response
if [[ "$response" == 'y' ]] || [[ "$response" == 'Y' ]]; then
echo -n "What samba host would you like to configure? "
read samba_host
if [[ "$samba_host" != '' ]]; then
echo -n "Would you like to configure samba credentials? (y/n) "
read response
if [[ "$response" == 'y' ]] || [[ "$response" == 'Y' ]]; then
[[ ! -d "/etc/samba" ]] && sudo mkdir /etc/samba
[[ ! -d "/etc/samba/credentials" ]] && sudo mkdir /etc/samba/credentials
if [[ -d "/etc/samba/credentials" ]]; then
echo
echo -n "username: "
read username
echo -n "password: "
read -s password
echo
echo "Writing config to /etc/samba/credentials/$samba_host"
printf "username=$username\npassword=$password" | sudo tee "/etc/samba/credentials/$samba_host" >> /dev/null
unset username
unset password
fi
fi
echo
echo "Add lines to /etc/fstab for each share to mount:"
echo "//{SAMBA_HOST_IP}/{SAMBA_SHARE} /mnt/{MOUNT_DIR} cifs _netdev,nofail,uid=`id -u`,gid=`id -g`,credentials=/etc/samba/credentials/$samba_host 0 0"
fi
fi
echo
unset samba_host
}
function setup_ssh() {
echo
echo -n "Would you like to configure an SSH host? (y/n) "
read response
if [[ "$response" == 'y' ]] || [[ "$response" == 'Y' ]]; then
if [[ ! -f ~/.ssh/id_ed25519.pub ]]; then
echo "No SSH key found"
echo -n "Would you like to set up a new public/private key pair? (y/n) "
read response
if [[ "$response" == 'y' ]] || [[ "$response" == 'Y' ]]; then
ssh-keygen -t ed25519
echo
echo -n "Would you like to add this key to ssh-agent? (y/n) "
read response
if [[ "$response" == 'y' ]] || [[ "$response" == 'Y' ]]; then
ssh-add ~/.ssh/id_ed25519
fi
fi
echo
fi
echo -n "What host would you like to send public key to? (eg user@host, host if user is same) "
read ssh_host
if [[ "$ssh_host" != '' ]]; then
ssh-copy-id -i ~/.ssh/id_ed25519.pub "$ssh_host"
unset ssh_host
setup_ssh
fi
fi
}
function push_dotfiles() {
cd "$dir"
echo "Pushing dotfiles"
git add -A
git commit
git push origin master
}
function update_dotfiles() {
cd "$dir"
git pull origin master
}
function install_local() {
if [ -f "$dir/install_local.sh" ]; then
"$dir"/install_local.sh
else
echo "No file at install_local.sh, skipping local installation script."
fi
}
function main() {
if [[ $(program_installed pacman) == 1 ]]; then
echo "[complete] Complete install (dotfiles, pacman, aur, system-configs, samba, local-install)"
elif [[ $(program_installed apt) == 1 ]]; then
echo "[complete] Complete install (dotfiles, apt, system-configs, samba, local-install)"
fi
echo "[push] Push to github"
echo "[pull] Pull from github"
echo "[dotfiles] Install dotfiles only"
if [[ $(program_installed pacman) == 1 ]]; then
echo "[programs] Install programs (pacman, aur) only"
elif [[ $(program_installed apt) == 1 ]]; then
echo "[programs] Install programs (apt) only"
fi
if [[ $(program_installed pacman) == 1 ]]; then
echo "[programs-official] Install official repository programs (pacman) only"
echo "[aur-only] Install AUR programs only"
fi
echo "[system-configs] Set up system configs only"
echo "[desktop-environment] Choose a desktop environment"
echo "[samba] Set up samba credentials only"
echo "[ssh] Set up SSH or send public key to host"
echo "[install-local] Run local installer only ($dir/install_local.sh)"
echo "[0] Quit"
echo ""
echo "What would you like to do?"
read response
if [[ $response == "complete" ]]; then
link_dotfiles
install_programs
install_aur
setup_system_configs
setup_samba
install_local
elif [[ $response == "push" ]]; then
push_dotfiles
elif [[ $response == "pull" ]]; then
update_dotfiles
elif [[ $response == "dotfiles" ]]; then
link_dotfiles
echo ""
main
elif [[ $response == "programs" ]]; then
install_programs
install_aur
echo ""
main
elif [[ $response == "programs-official" ]]; then
install_programs
echo ""
main
elif [[ $response == "aur-only" ]]; then
install_aur
echo ""
main
elif [[ $response == "system-configs" ]]; then
setup_system_configs
echo ""
main
elif [[ $response == "desktop-environment" ]]; then
choose_desktop_environment
echo ""
main
elif [[ $response == "samba" ]]; then
setup_samba
echo ""
main
elif [[ $response = "ssh" ]]; then
setup_ssh
echo ""
main
elif [[ $response == "install-local" ]]; then
install_local
echo ""
main
fi
}
load_package_lists
main