2017-10-07 22:09:18 +00:00
#!/bin/bash
2017-10-09 07:03:33 +00:00
blue( ) { printf " \n\033[0;34m $* \033[0m\n\n " && ( echo $* >> /tmp/LARBS.log) ; }
red( ) { printf " \n\033[0;31m $* \033[0m\n\n " && ( echo ERROR: $* >> /tmp/LARBS.log) ; }
2017-10-09 05:02:09 +00:00
echo " LARBS started $( date) " >> /tmp/LARBS.log
chmod 777 /tmp/LARBS.log
2017-10-09 18:43:41 +00:00
pacman -S --noconfirm --needed dialog || ( echo "Error at script start: Are you sure you're running this as the root user? Are you sure you have an internet connection?" && exit )
2017-10-07 22:09:18 +00:00
dialog --title "Welcome!" --msgbox "Welcome to Luke's Auto-Rice Bootstrapping Script!\n\nThis script will automatically install a fully-featured i3wm Arch Linux desktop, which I use as my main machine.\n\n-Luke" 10 60
2017-10-09 01:36:59 +00:00
dialog --no-cancel --inputbox "First, please enter a name for the user account." 10 60 2> /tmp/.name
2017-10-07 22:09:18 +00:00
2017-10-09 01:36:59 +00:00
dialog --no-cancel --passwordbox "Enter a password for that user." 10 60 2> /tmp/.pass1
2017-11-14 21:53:28 +00:00
dialog --no-cancel --passwordbox "Retype password." 10 60 2> /tmp/.pass2
2017-10-07 22:09:18 +00:00
2017-10-09 01:36:59 +00:00
while [ $( cat /tmp/.pass1) != $( cat /tmp/.pass2) ]
2017-10-07 22:09:18 +00:00
do
2017-10-09 01:36:59 +00:00
dialog --no-cancel --passwordbox "Passwords do not match.\n\nEnter password again." 10 60 2> /tmp/.pass1
2017-11-10 23:00:29 +00:00
dialog --no-cancel --passwordbox "Retype password." 10 60 2> /tmp/.pass2
2017-10-07 22:09:18 +00:00
done
2017-10-09 01:36:59 +00:00
chmod 777 /tmp/.name
NAME = $( cat /tmp/.name)
shred -u /tmp/.name
2017-10-07 22:09:18 +00:00
useradd -m -g wheel -s /bin/bash $NAME
2017-10-09 01:36:59 +00:00
echo " $NAME : $( cat /tmp/.pass1) " | chpasswd
2017-10-07 22:09:18 +00:00
#I shred the password for safety's sake.
2017-10-09 01:36:59 +00:00
shred -u /tmp/.pass1
shred -u /tmp/.pass2
2017-10-07 22:09:18 +00:00
cmd = ( dialog --separate-output --checklist "Select additional packages to install with <SPACE>:" 22 76 16)
options = ( 1 "LaTeX packages" off
2 "Libreoffice Suite" off
3 "GIMP" off
4 "Blender" off
5 "Emacs" off
6 "Fonts for unicode and other languages" off
2018-01-20 17:17:32 +00:00
7 "Transmission torrent client" off
2017-10-09 02:55:02 +00:00
8 "Music visualizers and decoration" off
2017-10-07 22:09:18 +00:00
)
choices = $( " ${ cmd [@] } " " ${ options [@] } " 2>& 1 >/dev/tty)
2017-10-09 02:55:02 +00:00
echo $choices > /tmp/.choices
2017-10-07 22:09:18 +00:00
2017-10-11 00:10:42 +00:00
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
2017-10-07 22:09:18 +00:00
2017-10-09 17:31:21 +00:00
clear
cat << "EOF"
2018-01-18 06:21:52 +00:00
mmmmm # mmm
2017-10-09 17:31:21 +00:00
# "# mmm mmm mmm# m m " #
2018-01-18 06:21:52 +00:00
#mmmm" #" # " # #" "# "m m" m#"
# "m #"""" m"""# # # #m# "
# " "#mm" "mm"# "#m## "# #
m"
2017-10-09 17:31:21 +00:00
EOF
sleep 1
cat << "EOF"
2018-01-18 06:21:52 +00:00
mmmm m mmm
2017-10-09 17:31:21 +00:00
#" " mmm mm#mm " #
2018-01-18 06:21:52 +00:00
"#mmm #" # # m#"
"# #" "" " # "
"mmm#" "#mm" " mm #
2017-10-09 17:31:21 +00:00
EOF
sleep 1
2017-10-09 23:59:14 +00:00
#Prints metal gay
cat << "EOF"
2018-01-18 06:21:52 +00:00
[ 0; 1; 34; 94mmmm[ 0m [ 0; 34mmmmm[ 0m [ 0; 34mm[ 0m
[ 0; 34mm" [0m [0;34m" [ 0m [ 0; 34mm" [0m [0;34m" m[ 0m [ 0; 37m#[ 0m
[ 0; 34m#[ 0m [ 0; 34mmm[ 0m [ 0; 37m#[ 0m [ 0; 37m#[ 0m [ 0; 37m#[ 0m
[ 0; 37m#[ 0m [ 0; 37m#[ 0m [ 0; 37m#[ 0m [ 0; 37m#[ 0m [ 0; 1; 30; 90m" [0m
[ 0; 37m"mmm" [ 0m [ 0; 1; 30; 90m#mm#[ 0m [ 0; 1; 30; 90m#[ 0m
2017-10-09 17:31:21 +00:00
EOF
sleep .5
2017-10-09 07:21:18 +00:00
cat << "EOF"
2018-01-18 06:21:52 +00:00
2017-10-09 07:21:18 +00:00
- = .--._
- - ~_= = ~_- = - ` . ` -.
= = ~_ = = _ ~ - = .-' ` .
--= ~_ - ~ = = - = .' _..:._
---= ~ _~ = = - = ` . .--.' ` .
--= _-= - ~= _ - = - _.' ` . .--.:
-= _~ -- = = ~- .' : : :
-= -_ ~= = - _-` --. : .--: D
-= ~ _ = = -~_= ` ; .'.: ,`---' @
--= _ = = ~- -= .' .' ` ._ ` -.__.'
--= = ~_ - = = - .' .' _.` ---'
--= ~_= = - = ~ .'--' ' . ` -..__.--.
jgs--= = ~ _ = - ~-= = -~_- ` -..___( = = = ;
--= = ~_= = - = __ ~-= - - .' `---'
EOF
2017-10-09 17:31:21 +00:00
sleep .5
2017-10-09 07:03:33 +00:00
2017-10-07 22:09:18 +00:00
2017-11-14 22:55:47 +00:00
blue \[ 1\/ 6\] Now installing main programs \( system basics\) ...
2018-01-20 09:52:19 +00:00
2018-01-22 19:07:21 +00:00
pacman --noconfirm -Sy archlinux-keyring
2018-01-20 09:52:19 +00:00
2017-11-14 22:55:47 +00:00
pacman --noconfirm --needed -Sy \
2018-01-22 19:07:21 +00:00
base-devel \
git \
2017-11-14 22:55:47 +00:00
xorg-xinit \
xorg-server \
compton \
arandr \
2018-01-20 17:17:32 +00:00
ttf-inconsolata \
2017-11-14 22:55:47 +00:00
noto-fonts \
unzip \
2017-12-10 22:41:05 +00:00
unrar \
2017-11-14 22:55:47 +00:00
wget \
atool \
ntfs-3g \
2018-01-22 20:05:47 +00:00
dosfstools || ( red Error installing system basics. Check your internet connection and pacman keyring.)
2017-11-14 22:55:47 +00:00
blue \[ 2\/ 6\] Now installing main programs \( productivity\) ...
pacman --noconfirm --needed -Sy \
calcurse \
ranger \
vim \
tmux \
rofi \
poppler \
mupdf \
pandoc || ( red Error installing productivity packages. Check your internet connection and pacman keyring.)
blue \[ 3\/ 6\] Now installing main programs \( network and internet\) ...
pacman --noconfirm --needed -Sy \
wireless_tools \
network-manager-applet \
networkmanager \
w3m \
offlineimap \
msmtp \
notmuch \
notmuch-mutt \
2018-01-20 01:07:48 +00:00
qutebrowser \
2017-11-14 22:55:47 +00:00
rsync \
newsboat || ( red Error installing network packages. Check your internet connection and pacman keyring.)
blue \[ 4\/ 6\] Now installing main programs \( graphics\) ...
pacman --noconfirm --needed -Sy \
feh \
imagemagick \
scrot \
libcaca || ( red Error installing graphic packages. Check your internet connection and pacman keyring.)
blue \[ 5\/ 6\] Now installing main programs \( audio\) ...
pacman --noconfirm --needed -Sy \
ffmpeg \
pulseaudio \
pulseaudio-alsa \
pamixer \
mpd \
mpc \
ncmpcpp \
youtube-dl \
youtube-viewer \
mediainfo \
mpv || ( red Error installing audio packages. Check your internet connection and pacman keyring.)
blue \[ 6\/ 6\] Now installing main programs \( devel\) ...
pacman --noconfirm --needed -Sy \
python-dbus \
python-gobject \
2017-12-06 19:48:32 +00:00
discount \
2017-11-14 22:55:47 +00:00
r \
highlight || ( red Error installing devel packages. Check your internet connection and pacman keyring.)
2017-10-23 17:22:15 +00:00
pacman --noconfirm --needed -S fzf || ( red Error with peripheral programs.)
2017-10-07 22:09:18 +00:00
2017-10-09 18:43:41 +00:00
cat << "EOF"
2018-01-18 06:21:52 +00:00
_____________________________
2017-10-09 18:43:41 +00:00
< Drink whole milk every day! >
2018-01-18 06:21:52 +00:00
-----------------------------
\ ____________
2017-10-09 18:43:41 +00:00
\ | __________|
/ /\
/ / \
/___________/___/|
| | |
| = = \ /= = | |
| O O | \ \ |
| < | \ \|
/| | \ \
/ | \_ ____/ | / /
/ /| | / /|
/|| \| | /|| \/
2018-01-18 06:21:52 +00:00
-------------|
| | | |
2017-10-09 18:43:41 +00:00
<__/ \_ _>
EOF
2017-10-09 17:03:56 +00:00
2017-10-07 22:09:18 +00:00
for choice in $choices
do
case $choice in
1)
blue Now installing LaTeX packages...
2017-10-10 00:07:15 +00:00
cat << "EOF"
2018-01-18 06:21:52 +00:00
[ 0; 1; 34; 94mmmmmm[ 0m [ 0; 37mm[ 0m [ 0; 37m"" # [0m [0;1;30;90m""# [0m [0;1;30;90m" [0m [0;34mm [0m [0;37mmmmmmmm [0m [0;1;30;90mm [0m [0;1;30;90mm [0m
[ 0; 34m#[ 0m [ 0; 34mm[ 0m [ 0; 34mmm[ 0m [ 0; 37mmmm[ 0m [ 0; 37mmm#mm[ 0m [ 0; 37mmm[ 0; 1; 30; 90mm[ 0m [ 0; 1; 30; 90m#[ 0m [ 0; 1; 30; 90m#[ 0m [ 0; 1; 34; 94mmmm[ 0m [ 0; 1; 34; 94mm[ 0m [ 0; 1; 34; 94mmm[ 0m [ 0; 34mmmmm[ 0m [ 0; 34m#[ 0m [ 0; 37mmmm[ 0m [ 0; 37m#[ 0m [ 0; 1; 30; 90mmmm[ 0m [ 0; 1; 30; 90m#[ 0m [ 0; 1; 30; 90m#[ 0m
[ 0; 34m#[ 0m [ 0; 37m#" [0m [0;37m# [0m [0;37m# [0m [0;37m" [ 0m [ 0; 1; 30; 90m#[ 0m [ 0; 1; 30; 90m" [0m [0;1;30;90m# [0m [0;1;30;90m# [0m [0;1;34;94m# [0m [0;1;34;94m# [0m [0;34m#" [ 0m [ 0; 34m#[ 0m [ 0; 34m#" [0m [0;34m" # [0m [0;37m# [0m [0;37m" [0m [0;1;30;90m# [0m [0;1;30;90m# [0m [0;1;30;90m#" [0m [0;1;30;90m# [0m [0;1;34;94m## [0m
[ 0; 37m#[ 0m [ 0; 37m#[ 0m [ 0; 37m#[ 0m [ 0; 1; 30; 90m"" "m [0m [0;1;30;90m# [0m [0;1;30;90mm" " [0;1;34;94m" # [0m [0;1;34;94m# [0m [0;1;34;94m# [0m [0;34m# [0m [0;34m# [0m [0;34m# [0m [0;37m# [0m [0;37m# [0m [0;37m# [0m [0;1;30;90mm"""# [0m [0;1;30;90m# [0m [0;1;34;94m#"""" [0m [0;1;34;94mm""m [0m
[ 0; 37mmm#mm[ 0m [ 0; 1; 30; 90m#[ 0m [ 0; 1; 30; 90m#[ 0m [ 0; 1; 30; 90m"mmm" [ 0m [ 0; 1; 34; 94m"mm [0m [0;1;34;94m" mm"# [0m [0;1;34;94m" m[ 0; 34mm[ 0m [ 0; 34m"mm [0m [0;34mmm#mm [0m [0;37m# [0m [0;37m# [0m [0;37m" #m"# [0m [0;1;30;90m#mmmmm [0m [0;1;30;90m"mm [0;1;34;94m"# [0m [0;1;34;94m# [0m [0;1;34;94m"#mm" [0m [0;34mm" [0m [0;34m"m [0m [0;34m# [0m [0;37m# [0m [0;37m# [0m
[ 0; 1; 30; 90mm[ 0m [ 0; 1; 30; 90m#[ 0m
[ 0; 1; 30; 90m"" [ 0m
[ 0; 37m#[ 0m [ 0; 1; 30; 90m#[ 0m [ 0; 1; 34; 94mm[ 0; 34mmmmm[ 0m [ 0; 34mmmmmmmm[ 0m [ 0; 34mmmm[ 0; 37mmmm[ 0m [ 0; 37mmmmm[ 0m [ 0; 37mm[ 0m
[ 0; 34mm[ 0m [ 0; 34mm[ 0m [ 0; 34mmmm[ 0m [ 0; 37mm[ 0m [ 0; 37mmm[ 0m [ 0; 37mmmm#[ 0m [ 0; 37mmm[ 0; 1; 30; 90mm[ 0m [ 0; 1; 30; 90mm[ 0m [ 0; 1; 30; 90mm[ 0m [ 0; 1; 30; 90mmmm[ 0m [ 0; 1; 34; 94m#[ 0m [ 0; 1; 34; 94mm[ 0m [ 0; 1; 34; 94mmmm[ 0m [ 0; 34m#[ 0m [ 0; 34m#[ 0m [ 0; 37m#[ 0m [ 0; 37m#[ 0m [ 0; 37mm" [0m [0;1;30;90m" m[ 0m [ 0; 1; 30; 90m#[ 0m
[ 0; 34m"m [0m [0;34mm [0m [0;34mm" [ 0m [ 0; 37m#" [0m [0;37m" # [0m [0;37m#" [0m [0;37m" [0m [0;37m#" [0m [0;1;30;90m"# [0m [0;1;30;90m#" [0m [0;1;30;90m" [0m [0;1;30;90m# [0m [0;1;34;94m# [0m [0;1;34;94m#" [0m [0;1;34;94m" [0m [0;1;34;94m# [0m [0;1;34;94mm" [0m [0;34m# [0m [0;34m" [0m [0;34m# [0;37mmmmm" [0m [0;37m# [0m [0;37m#mm [0;1;30;90mmmm [0m [0;1;30;90m# [0m [0;1;30;90m# [0m [0;1;30;90m# [0m
[ 0; 37m#m#m#[ 0m [ 0; 37m#[ 0m [ 0; 37m#[ 0m [ 0; 1; 30; 90m#[ 0m [ 0; 1; 30; 90m#[ 0m [ 0; 1; 30; 90m#[ 0m [ 0; 1; 30; 90m#[ 0m [ 0; 1; 34; 94m#[ 0m [ 0; 1; 34; 94m#[ 0m [ 0; 1; 34; 94m#[ 0m [ 0; 34m#"# [0m [0;34m" "" m[ 0m [ 0; 37m#[ 0m [ 0; 37m#[ 0m [ 0; 1; 30; 90m#[ 0m [ 0; 1; 30; 90m#[ 0m [ 0; 1; 30; 90m#[ 0m [ 0; 1; 34; 94m#[ 0m [ 0; 1; 34; 94m" [0m
[ 0; 37m#[ 0m [ 0; 37m#[ 0m [ 0; 1; 30; 90m"#m#" [ 0m [ 0; 1; 30; 90m#[ 0m [ 0; 1; 30; 90m"# [0;1;34;94mm## [0m [0;1;34;94m" #mm" [0m [0;1;34;94m"mm" [0;34m# [0m [0;34m"#mm" [0m [0;34m# [0m [0;34m"m [0m [0;37m"mmm" [0m [0;37m# [0;1;30;90mmmmm" [0m [0;1;30;90m# [0m [0;1;30;90m# [0m [0;1;34;94m#mm# [0m [0;1;34;94m# [0m
2017-10-10 00:07:15 +00:00
EOF
2017-10-09 07:03:33 +00:00
pacman --noconfirm --needed -S texlive-most texlive-lang biber
2017-10-07 22:09:18 +00:00
; ;
2)
blue Now installing LibreOffice Suite...
2017-10-09 07:03:33 +00:00
pacman --noconfirm --needed -S libreoffice-fresh
2017-10-07 22:09:18 +00:00
; ;
3)
blue Now installing GIMP...
2017-10-09 07:03:33 +00:00
pacman --noconfirm --needed -S gimp
2017-10-07 22:09:18 +00:00
; ;
4)
blue Now installing Blender...
2017-10-09 07:03:33 +00:00
pacman --noconfirm --needed -S blender
2017-10-07 22:09:18 +00:00
; ;
5)
blue Now installing Emacs...
2017-10-09 07:03:33 +00:00
pacman --noconfirm --needed -S emacs
2017-10-07 22:09:18 +00:00
; ;
6)
blue Now installing extra fonts...
2017-10-09 07:03:33 +00:00
pacman --noconfirm --needed -S noto-fonts-cjk noto-fonts-emoji
2017-10-07 22:09:18 +00:00
; ;
7)
blue Now installing transmission...
2017-10-09 07:03:33 +00:00
pacman --noconfirm --needed -S transmission-cli
2017-10-09 02:55:02 +00:00
; ;
8)
blue Now installing visualizers and decoration...
2017-10-09 18:18:46 +00:00
pacman --noconfirm --needed -S projectm-pulseaudio cmatrix asciiquarium screenfetch
2017-10-09 02:55:02 +00:00
; ;
2017-10-07 22:09:18 +00:00
esac
done
2017-10-09 23:59:14 +00:00
#Prints gay [autism intensifies]
2017-10-09 18:43:41 +00:00
cat << "EOF"
2017-10-09 23:52:36 +00:00
2018-01-18 06:21:52 +00:00
[ 0; 1; 33; 93m#[ 0; 1; 32; 92m" [0m [0;1;31;91mm [0m [0;1;36;96m" [ 0m [ 0; 1; 35; 95m" [0m [0;1;31;91mm [0m [0;1;32;92m" [ 0m [ 0; 1; 31; 91mm" [0;1;33;93m" [ 0m [ 0; 1; 36; 96m" [0m [0;1;33;93m" [ 0; 1; 32; 92m#[ 0m
[ 0; 1; 32; 92m#[ 0m [ 0; 1; 35; 95mm[ 0; 1; 31; 91mmm[ 0m [ 0; 1; 32; 92mm[ 0m [ 0; 1; 34; 94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 0; 1; 34; 94m#[ 0m [ 0; 1; 32; 92m#[ 0m [ 0; 1; 35; 95m#[ 0m [ 0; 1; 32; 92m#" [0m [0;1;34;94m# [0m [0;1;35;95m# [0m [0;1;33;93m" [ 0m [ 0; 1; 34; 94m#[ 0m
[ 0; 1; 34; 94m#[ 0m [ 0; 1; 33; 93mm" [0;1;32;92m" " [0;1;36;96m# [0m [0;1;34;94m# [0m [0;1;31;91m# [0m [0;1;36;96m# [0m [0;1;31;91m# [0m [0;1;36;96m" [ 0; 1; 34; 94m"" [ 0; 1; 35; 95mm[ 0m [ 0; 1; 31; 91m#[ 0m [ 0; 1; 33; 93m#[ 0m [ 0; 1; 32; 92m#[ 0m [ 0; 1; 32; 92m#[ 0m [ 0; 1; 35; 95m#[ 0m [ 0; 1; 33; 93m#[ 0m [ 0; 1; 36; 96m#[ 0m [ 0; 1; 31; 91m#" [0;1;33;93m" " [0;1;32;92m" [ 0m [ 0; 1; 36; 96m#[ 0m [ 0; 1; 35; 95m#[ 0m [ 0; 1; 33; 93m" [0;1;32;92m" " [0;1;36;96mm [0m [0;1;35;95m# [0m [0;1;36;96m# [0m [0;1;31;91m# [0m [0;1;36;96m#" [ 0; 1; 34; 94m"" [ 0; 1; 35; 95m" [0m [0;1;33;93m" " [0;1;32;92m" m[ 0m [ 0; 1; 35; 95m#[ 0m
[ 0; 1; 35; 95m#[ 0m [ 0; 1; 32; 92m"m [0;1;36;96mm" [ 0; 1; 34; 94m#[ 0m [ 0; 1; 35; 95m" [0;1;31;91mmm [0;1;33;93m" # [0m [0;1;34;94m"m [0;1;35;95mm [0m [0;1;31;91mm [0;1;33;93mm# [0;1;32;92mmm [0m [0;1;34;94m"m [0;1;35;95mmm [0;1;31;91m" [0m [0;1;33;93m# [0m [0;1;32;92m# [0m [0;1;36;96m# [0m [0;1;32;92mm [0;1;36;96mm# [0;1;34;94mmm [0m [0;1;31;91m# [0m [0;1;32;92m# [0m [0;1;34;94m" [0;1;35;95mmm [0m [0;1;33;93m"# [0;1;32;92mmm [0;1;36;96m" [0m [0;1;34;94m# [0m [0;1;31;91m# [0m [0;1;32;92m"m [0;1;36;96mmm [0;1;34;94m" [0m [0;1;35;95mm [0;1;31;91mm# [0;1;33;93mmm [0m [0;1;34;94m# [0m [0;1;31;91mm [0;1;33;93mm# [0;1;32;92mmm [0m [0;1;34;94m"# [0;1;35;95mmm [0;1;31;91m" [0m [0;1;33;93m" [0;1;32;92mmm [0;1;36;96mm" [0m [0;1;31;91m# [0m
[ 0; 1; 31; 91m" [0;1;33;93m" [ 0m [ 0; 1; 31; 91m" [0;1;33;93m" [ 0m
2017-10-09 18:43:41 +00:00
EOF
2017-10-09 17:31:21 +00:00
2017-10-09 18:43:41 +00:00
cat << "EOF"
2018-01-18 06:21:52 +00:00
________________________
2017-10-09 18:43:41 +00:00
< >tfw too hot to handle >
2018-01-18 06:21:52 +00:00
------------------------
\ . . .
\ . . . ` ,
\ .; . : .' : : : .
\ i..` : i` i.i.,i i .
\ ` ,--.| i | i| ii| ii| i:
UooU\. '@@@@@@`.||'
\_ _/( @@@@@@@@@@) '
( @@@@@@@@)
` YY~~~~YY'
|| ||
2017-10-09 18:43:41 +00:00
EOF
2017-10-09 17:31:21 +00:00
2018-01-18 06:21:52 +00:00
curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/master/src/sudoers_tmp > /etc/sudoers
2017-10-09 00:22:34 +00:00
2017-10-08 23:53:40 +00:00
cd /tmp
2017-10-09 05:02:09 +00:00
blue Changing working directory to /tmp/...
2017-10-08 20:40:48 +00:00
blue Downloading next portion of the script \( larbs_user.sh\) ...
2017-11-24 03:36:44 +00:00
curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/master/src/larbs_user.sh > /tmp/larbs_user.sh && blue Running larbs_user.sh script as $NAME ...
2017-10-08 23:53:40 +00:00
sudo -u $NAME bash /tmp/larbs_user.sh || red Error when running larbs_user.sh...
rm -f /tmp/larbs_user.sh
2017-10-07 22:09:18 +00:00
2017-10-09 23:59:14 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m#[ 0m [ 0; 1; 36; 96m#[ 0m [ 0; 1; 34; 94m#[ 0; 1; 35; 95m#[ 0m [ 0; 1; 31; 91m#[ 0m [ 0; 1; 33; 93m#[ 0m [ 0; 1; 36; 96m#[ 0m [ 0; 1; 34; 94m" [0;1;35;95m#m [0;1;31;91mmm [0m [0;1;36;96m# [0m [0;1;34;94m# [0m [0;1;31;91m# [0;1;33;93mmm [0;1;32;92mmm [0;1;36;96m# [0m [0;1;34;94m#m [0;1;35;95mmm [0;1;31;91mmm [0m [0;1;33;93m# [0;1;32;92mmm [0;1;36;96mmm [0;1;34;94m" [ 0m [ 0; 1; 35; 95m#m[ 0; 1; 31; 91mmm[ 0; 1; 33; 93mmm[ 0m [ 0; 1; 36; 96m#[ 0m
[ 0; 1; 34; 94m#m[ 0; 1; 35; 95mm#[ 0m [ 0; 1; 33; 93m#[ 0m [ 0; 1; 34; 94m#[ 0m [ 0; 1; 35; 95m" [0;1;31;91m" [ 0m [ 0; 1; 33; 93m#[ 0m [ 0; 1; 32; 92m#[ 0m [ 0; 1; 34; 94m#[ 0m [ 0; 1; 33; 93m" [0;1;32;92m# [0m [0;1;34;94m# [0m [0;1;35;95m# [0m [0;1;33;93m# [0m [0;1;34;94m# [0m [0;1;35;95m# [0m [0;1;32;92m# [0m [0;1;34;94m" [ 0; 1; 35; 95mm[ 0m [ 0; 1; 31; 91m#[ 0m [ 0; 1; 34; 94m" [0m
[ 0; 1; 34; 94m#[ 0m [ 0; 1; 33; 93m#[ 0m [ 0; 1; 32; 92m#m[ 0; 1; 36; 96mmm[ 0; 1; 34; 94mmm[ 0m [ 0; 1; 35; 95m#[ 0m [ 0; 1; 32; 92m#[ 0m [ 0; 1; 36; 96m#[ 0; 1; 34; 94mmm[ 0; 1; 35; 95m#[ 0m [ 0; 1; 31; 91m" [0;1;33;93mmm [0;1;32;92mm# [0;1;36;96m" [ 0m [ 0; 1; 35; 95m#[ 0m [ 0; 1; 31; 91m#[ 0m [ 0; 1; 32; 92m#[ 0m [ 0; 1; 35; 95m#[ 0m [ 0; 1; 31; 91m#m[ 0; 1; 33; 93mmm[ 0; 1; 32; 92mmm[ 0m [ 0; 1; 36; 96m#[ 0m [ 0; 1; 31; 91m" [0m [0;1;33;93m#m [0;1;32;92mmm [0;1;36;96mmm [0m [0;1;35;95m# [0m
2017-10-09 23:59:14 +00:00
EOF
2018-01-18 06:21:52 +00:00
2018-01-22 17:30:07 +00:00
blue Installing st...
cd /tmp
git clone https://github.com/lukesmithxyz/st.git
cd st
patch < patches/transparency.diff
make
make install
cd /tmp
2017-10-09 00:13:16 +00:00
blue Enabling Network Manager...
2017-10-07 22:09:18 +00:00
systemctl enable NetworkManager
systemctl start NetworkManager
2017-10-09 21:08:59 +00:00
blue Getting rid of that retarded error beep sound...
rmmod pcspkr
echo "blacklist pcspkr" > /etc/modprobe.d/nobeep.conf
2017-10-07 22:09:18 +00:00
2017-10-09 21:08:59 +00:00
blue Implementing temporary sudoers file...
2018-01-18 06:21:52 +00:00
curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/master/src/sudoers > /etc/sudoers
2017-10-07 22:09:18 +00:00
2017-10-09 05:07:10 +00:00
dialog --title "All done!" --msgbox "Congrats! Provided there were no hidden errors, the script completed successfully and all the programs and configuration files should be in place.\n\nTo run the new graphical environment, log out and log back in as your new user, then run the command \"startx\" to start the graphical environment.\n\n-Luke" 12 80
clear