This commit is contained in:
Luke Smith 2018-03-03 00:21:16 -07:00
parent 1f6bf8f893
commit 4f762537f7
2 changed files with 8 additions and 8 deletions

View file

@ -18,12 +18,12 @@ do
done done
dialog --infobox "Adding user \"$name\"..." 4 50 dialog --infobox "Adding user \"$name\"..." 4 50
useradd -m -g wheel -s /bin/bash $name useradd -m -g wheel -s /bin/bash $name >/dev/tty6
echo "$name:$pass1" | chpasswd echo "$name:$pass1" | chpasswd >/dev/tty6
cmd=(dialog --separate-output --nocancel --buildlist "Press <SPACE> to select the packages you want to install. LARBS will install all the packages you put in the right column. cmd=(dialog --separate-output --nocancel --buildlist "Press <SPACE> to select the packages you want to install. LARBS will install all the packages you put in the right column.
Use `^` and `$` to move to the left and right columns respectively. Press <ENTER> when done." 22 76 16) Use \"^\" and \"\$\" to move to the left and right columns respectively. Press <ENTER> when done." 22 76 16)
options=(X "LaTeX packages" off options=(X "LaTeX packages" off
L "Libreoffice" off L "Libreoffice" off
G "GIMP" off G "GIMP" off
@ -34,11 +34,11 @@ options=(X "LaTeX packages" off
D "Music visualizers and decoration" off D "Music visualizers and decoration" off
P "Pandoc for document management" off P "Pandoc for document management" off
) )
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty6) choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
let="\(\|[a-z]\|$(echo $choices | sed -e "s/ /\\\|/g")\)" let="\(\|[a-z]\|$(echo $choices | sed -e "s/ /\\\|/g")\)"
dialog --title "Let's get this party started!" --msgbox "The rest of the installation will now be totally automated, so you can sit back and relax.\n\nIt will take some time, but when done, you can relax even more with your complete system.\n\nNow just press <OK> and the system will begin installation!" 13 60 || clear && exit dialog --title "Let's get this party started!" --msgbox "The rest of the installation will now be totally automated, so you can sit back and relax.\n\nIt will take some time, but when done, you can relax even more with your complete system.\n\nNow just press <OK> and the system will begin installation!" 13 60 || (clear && exit)
clear clear
@ -55,7 +55,7 @@ installProgram() { ( (pacman --noconfirm --needed -S $1 &>/dev/tty6 && echo $1 i
for x in $(cat /tmp/progs.csv | grep -G ",$let," | awk -F, {'print $1'}) for x in $(cat /tmp/progs.csv | grep -G ",$let," | awk -F, {'print $1'})
do do
n=$((n+1)) n=$((n+1))
dialog --infobox "Downloading and installing program $n out of $count: $x..." 10 60 dialog --title "LARBS Installation" --infobox "Downloading and installing program $n out of $count: $x...\n\nThe first programs will take more time due to dependencies. You can watch the output on tty6." 8 70
installProgram $x >/dev/tty6 installProgram $x >/dev/tty6
done done

View file

@ -9,7 +9,7 @@ calcurse,,calendar,
cli-visualizer,D,music/audio visualizer, cli-visualizer,D,music/audio visualizer,
cmatrix,D,terminal screensaver, cmatrix,D,terminal screensaver,
compton,,transparency and removing tearing, compton,,transparency and removing tearing,
discount,,, discount,?,,
dosfstools,,file system compatibility, dosfstools,,file system compatibility,
emacs,E,everything, emacs,E,everything,
exfat-utils,,file system compatibility, exfat-utils,,file system compatibility,
@ -20,7 +20,7 @@ gimp,G,image modification,
git,,dling config repos, git,,dling config repos,
gnome-keyring,,system keyring, gnome-keyring,,system keyring,
highlight,r,ranger previews highlighted, highlight,r,ranger previews highlighted,
htop-vim-git,,system info, htop-vim-git,D,system info,
i3-gaps,,window manager, i3-gaps,,window manager,
i3lock,,screen lock, i3lock,,screen lock,
imagemagick,,"image conversion and modification, lock screen", imagemagick,,"image conversion and modification, lock screen",

1 arandr gui adjustment of screen
9 cli-visualizer D music/audio visualizer
10 cmatrix D terminal screensaver
11 compton transparency and removing tearing
12 discount ?
13 dosfstools file system compatibility
14 emacs E everything
15 exfat-utils file system compatibility
20 git dling config repos
21 gnome-keyring system keyring
22 highlight r ranger previews highlighted
23 htop-vim-git D system info
24 i3-gaps window manager
25 i3lock screen lock
26 imagemagick image conversion and modification, lock screen