Move the scripts and LARBS-related files to src
This commit is contained in:
69
src/arch.sh
Executable file
69
src/arch.sh
Executable file
@ -0,0 +1,69 @@
|
||||
#!/bin/bash
|
||||
|
||||
#This is a lazy script I have for auto-installing Arch.
|
||||
#It's not officially part of LARBS, but I use it for testing.
|
||||
#DO NOT RUN THIS YOURSELF because Step 1 is it reformatting /dev/sda WITHOUT confirmation,
|
||||
#which means RIP in peace qq your data unless you've already backed up all of your drive.
|
||||
|
||||
pacman -S --noconfirm 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)
|
||||
RED='\033[0;31m'
|
||||
BLUE='\033[0;34m'
|
||||
NC='\033[0m'
|
||||
|
||||
dialog --defaultno --title "DON'T BE A BRAINLET!" --yesno "This is an Arch install script that is very rough around the edges.\n\nOnly run this script if you're a big-brane who doesn't mind deleting your entire /dev/sda drive.\n\nThis script is only really for me so I can autoinstall Arch.\n\nt. Luke" 15 60 || exit
|
||||
|
||||
dialog --defaultno --title "DON'T BE A BRAINLET!" --yesno "Do you think I'm meming? Only select yes to DELET your entire /dev/sda and reinstall Arch.\n\nTo stop this script, press no." 10 60 || exit
|
||||
|
||||
dialog --no-cancel --inputbox "Enter a name for your computer." 10 60 2> comp
|
||||
|
||||
timedatectl set-ntp true
|
||||
|
||||
cat <<EOF | fdisk /dev/sda
|
||||
o
|
||||
n
|
||||
p
|
||||
|
||||
|
||||
+200M
|
||||
n
|
||||
p
|
||||
|
||||
|
||||
+12G
|
||||
n
|
||||
p
|
||||
|
||||
|
||||
+25G
|
||||
n
|
||||
p
|
||||
|
||||
|
||||
w
|
||||
EOF
|
||||
partprobe
|
||||
|
||||
mkfs.ext4 /dev/sda4
|
||||
mkfs.ext4 /dev/sda3
|
||||
mkfs.ext4 /dev/sda1
|
||||
mkswap /dev/sda2
|
||||
swapon /dev/sda2
|
||||
mount /dev/sda3 /mnt
|
||||
mkdir /mnt/boot
|
||||
mount /dev/sda1 /mnt/boot
|
||||
mkdir /mnt/home
|
||||
mount /dev/sda4 /mnt/home
|
||||
|
||||
|
||||
pacstrap /mnt base base-devel
|
||||
|
||||
genfstab -U /mnt >> /mnt/etc/fstab
|
||||
|
||||
curl http://lukesmith.xyz/larbs/chroot.sh > /mnt/chroot.sh && arch-chroot /mnt bash chroot.sh && rm /mnt/chroot.sh
|
||||
|
||||
cat comp > /mnt/etc/hostname && rm comp
|
||||
|
||||
dialog --defaultno --title "Final Qs" --yesno "Eject CD/ROM (if any)?" 5 30 && eject
|
||||
dialog --defaultno --title "Final Qs" --yesno "Reboot computer?" 5 30 && reboot
|
||||
dialog --defaultno --title "Final Qs" --yesno "Return to chroot environment?" 6 30 && arch-chroot /mnt
|
||||
clear
|
21
src/chroot.sh
Executable file
21
src/chroot.sh
Executable file
@ -0,0 +1,21 @@
|
||||
#Potential variables: timezone, lang and local
|
||||
|
||||
passwd
|
||||
|
||||
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
|
||||
|
||||
hwclock --systohc
|
||||
|
||||
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
|
||||
echo "en_US ISO-8859-1" >> /etc/locale.gen
|
||||
locale-gen
|
||||
|
||||
pacman --noconfirm --needed -S networkmanager
|
||||
systemctl enable NetworkManager
|
||||
systemctl start NetworkManager
|
||||
|
||||
pacman --noconfirm --needed -S grub && grub-install --target=i386-pc /dev/sda && grub-mkconfig -o /boot/grub/grub.cfg
|
||||
|
||||
pacman --noconfirm --needed -S dialog
|
||||
larbs() { curl -O http://larbs.xyz/larbs.sh && bash larbs.sh ;}
|
||||
dialog --title "Install Luke's Rice" --yesno "This install script will easily let you access Luke's Auto-Rice Boostrapping Scripts (LARBS) which automatically install a full Arch Linux i3-gaps desktop environment.\n\nIf you'd like to install this, select yes, otherwise select no.\n\nLuke" 15 60 && larbs
|
348
src/larbs.sh
Executable file
348
src/larbs.sh
Executable file
@ -0,0 +1,348 @@
|
||||
#!/bin/bash
|
||||
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) ;}
|
||||
|
||||
echo "LARBS started $(date)" >> /tmp/LARBS.log
|
||||
chmod 777 /tmp/LARBS.log
|
||||
|
||||
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)
|
||||
|
||||
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
|
||||
|
||||
dialog --no-cancel --inputbox "First, please enter a name for the user account." 10 60 2> /tmp/.name
|
||||
|
||||
dialog --no-cancel --passwordbox "Enter a password for that user." 10 60 2> /tmp/.pass1
|
||||
dialog --no-cancel --passwordbox "Retype password." 10 60 2> /tmp/.pass2
|
||||
|
||||
while [ $(cat /tmp/.pass1) != $(cat /tmp/.pass2) ]
|
||||
do
|
||||
dialog --no-cancel --passwordbox "Passwords do not match.\n\nEnter password again." 10 60 2> /tmp/.pass1
|
||||
dialog --no-cancel --passwordbox "Retype password." 10 60 2> /tmp/.pass2
|
||||
done
|
||||
|
||||
chmod 777 /tmp/.name
|
||||
NAME=$(cat /tmp/.name)
|
||||
shred -u /tmp/.name
|
||||
useradd -m -g wheel -s /bin/bash $NAME
|
||||
|
||||
echo "$NAME:$(cat /tmp/.pass1)" | chpasswd
|
||||
#I shred the password for safety's sake.
|
||||
shred -u /tmp/.pass1
|
||||
shred -u /tmp/.pass2
|
||||
|
||||
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
|
||||
7 "transmission torrent client" off
|
||||
8 "Music visualizers and decoration" off
|
||||
)
|
||||
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
|
||||
echo $choices > /tmp/.choices
|
||||
|
||||
brow=(dialog --separate-output --checklist "Select a browser (none or multiple possible):" 22 76 16)
|
||||
options=(1 "qutebrowser" off
|
||||
2 "Firefox" off
|
||||
3 "Palemoon" off
|
||||
4 "Waterfox" off
|
||||
)
|
||||
browch=$("${brow[@]}" "${options[@]}" 2>&1 >/dev/tty)
|
||||
echo $browch > /tmp/.browch
|
||||
|
||||
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
|
||||
|
||||
cat << "EOF"
|
||||
|
||||
mmmmm # mmm
|
||||
# "# mmm mmm mmm# m m " #
|
||||
#mmmm" #" # " # #" "# "m m" m#"
|
||||
# "m #"""" m"""# # # #m# "
|
||||
# " "#mm" "mm"# "#m## "# #
|
||||
m"
|
||||
EOF
|
||||
sleep 1
|
||||
cat << "EOF"
|
||||
|
||||
mmmm m mmm
|
||||
#" " mmm mm#mm " #
|
||||
"#mmm #" # # m#"
|
||||
"# #"""" # "
|
||||
"mmm#" "#mm" "mm #
|
||||
EOF
|
||||
sleep 1
|
||||
|
||||
#Prints metal gay
|
||||
cat << "EOF"
|
||||
|
||||
[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
|
||||
|
||||
EOF
|
||||
sleep .5
|
||||
cat << "EOF"
|
||||
|
||||
|
||||
- = .--._
|
||||
- - ~_= =~_- = - `. `-.
|
||||
==~_ = =_ ~ - = .-' `.
|
||||
--=~_ - ~ == - = .' _..:._
|
||||
---=~ _~ = =- = `. .--.' `.
|
||||
--=_-=- ~= _ - = - _.' `. .--.:
|
||||
-=_~ -- = = ~- .' : : :
|
||||
-=-_ ~= = - _-`--. : .--: D
|
||||
-=~ _= = -~_= `; .'.: ,`---'@
|
||||
--=_= = ~- -= .' .' `._ `-.__.'
|
||||
--== ~_ - = =- .' .' _.`---'
|
||||
--=~_= = - = ~ .'--'' . `-..__.--.
|
||||
jgs--==~ _= - ~-= =-~_- `-..___( ===;
|
||||
--==~_==- =__ ~-= - - .' `---'
|
||||
|
||||
EOF
|
||||
sleep .5
|
||||
|
||||
|
||||
blue \[1\/6\] Now installing main programs \(system basics\)...
|
||||
pacman --noconfirm --needed -Sy \
|
||||
base-devel \
|
||||
xorg-xinit \
|
||||
xorg-server \
|
||||
compton \
|
||||
arandr \
|
||||
noto-fonts \
|
||||
rxvt-unicode \
|
||||
unzip \
|
||||
unrar \
|
||||
wget \
|
||||
atool \
|
||||
ntfs-3g \
|
||||
xf86-video-intel \
|
||||
dosfstools \
|
||||
cups \
|
||||
transset-df \
|
||||
htop || (red Error installing system basics. Check your internet connection and pacman keyring.)
|
||||
|
||||
|
||||
blue \[2\/6\] Now installing main programs \(productivity\)...
|
||||
pacman --noconfirm --needed -Sy \
|
||||
calcurse \
|
||||
ranger \
|
||||
vim \
|
||||
tmux \
|
||||
rofi \
|
||||
poppler \
|
||||
mupdf \
|
||||
evince \
|
||||
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 \
|
||||
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 \
|
||||
pavucontrol \
|
||||
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 \
|
||||
markdown \
|
||||
git \
|
||||
r \
|
||||
highlight || (red Error installing devel packages. Check your internet connection and pacman keyring.)
|
||||
|
||||
|
||||
pacman --noconfirm --needed -S fzf || (red Error with peripheral programs.)
|
||||
|
||||
cat << "EOF"
|
||||
_____________________________
|
||||
< Drink whole milk every day! >
|
||||
-----------------------------
|
||||
\ ____________
|
||||
\ |__________|
|
||||
/ /\
|
||||
/ / \
|
||||
/___________/___/|
|
||||
| | |
|
||||
| ==\ /== | |
|
||||
| O O | \ \ |
|
||||
| < | \ \|
|
||||
/| | \ \
|
||||
/ | \_____/ | / /
|
||||
/ /| | / /|
|
||||
/||\| | /||\/
|
||||
-------------|
|
||||
| | | |
|
||||
<__/ \__>
|
||||
EOF
|
||||
|
||||
for choice in $choices
|
||||
do
|
||||
case $choice in
|
||||
1)
|
||||
blue Now installing LaTeX packages...
|
||||
|
||||
cat << "EOF"
|
||||
|
||||
[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
|
||||
|
||||
EOF
|
||||
pacman --noconfirm --needed -S texlive-most texlive-lang biber
|
||||
;;
|
||||
2)
|
||||
blue Now installing LibreOffice Suite...
|
||||
pacman --noconfirm --needed -S libreoffice-fresh
|
||||
;;
|
||||
3)
|
||||
blue Now installing GIMP...
|
||||
pacman --noconfirm --needed -S gimp
|
||||
;;
|
||||
4)
|
||||
blue Now installing Blender...
|
||||
pacman --noconfirm --needed -S blender
|
||||
;;
|
||||
5)
|
||||
blue Now installing Emacs...
|
||||
pacman --noconfirm --needed -S emacs
|
||||
;;
|
||||
6)
|
||||
blue Now installing extra fonts...
|
||||
pacman --noconfirm --needed -S noto-fonts-cjk noto-fonts-emoji
|
||||
;;
|
||||
7)
|
||||
blue Now installing transmission...
|
||||
pacman --noconfirm --needed -S transmission-cli
|
||||
;;
|
||||
8)
|
||||
blue Now installing visualizers and decoration...
|
||||
pacman --noconfirm --needed -S projectm-pulseaudio cmatrix asciiquarium screenfetch
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
#Prints gay [autism intensifies]
|
||||
cat << "EOF"
|
||||
|
||||
|
||||
[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;94mm[0m [0;1;31;91mmm[0;1;33;93m#m[0;1;32;92mm[0m [0;1;36;96mm[0;1;34;94mmm[0m [0;1;33;93mm[0;1;32;92mmm[0m [0;1;34;94mm[0;1;35;95mmm[0;1;31;91mmm[0m [0;1;35;95mm[0;1;31;91mmm[0m [0;1;36;96mm[0m [0;1;34;94mmm[0m [0;1;31;91mm[0;1;33;93mm#[0;1;32;92mmm[0m [0;1;34;94mm[0;1;35;95mmm[0m [0;1;33;93mm[0m [0;1;32;92mm[0;1;36;96mm[0m [0;1;35;95mm[0;1;31;91mmm[0m [0;1;32;92mm[0;1;36;96mmm[0m [0;1;31;91mmm[0;1;33;93m#m[0;1;32;92mm[0m [0;1;36;96mm[0;1;34;94mmm[0m [0;1;33;93mm[0;1;32;92mmm[0m [0;1;35;95mmm[0;1;31;91mm[0m [0;1;36;96m#[0m
|
||||
[0;1;36;96m#[0m [0;1;31;91m"[0m [0;1;32;92m#[0m [0;1;36;96m#[0m [0;1;35;95m#[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;31;91m#[0m [0;1;33;93m#[0m [0;1;33;93m#[0m [0;1;34;94m#"[0m [0;1;31;91m#[0m [0;1;32;92m#[0m [0;1;35;95m#"[0m [0;1;33;93m#[0m [0;1;32;92m#[0;1;36;96m"[0m [0;1;34;94m#[0m [0;1;31;91m#[0m [0;1;32;92m"[0m [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
|
||||
|
||||
EOF
|
||||
|
||||
for choice in $browch
|
||||
do
|
||||
case $choice in
|
||||
1)
|
||||
blue Now installing qutebrowser...
|
||||
pacman --noconfirm --needed -S qutebrowser gst-libav gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly
|
||||
;;
|
||||
2)
|
||||
blue Now installing Firefox...
|
||||
pacman --noconfirm --needed -S firefox
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
cat << "EOF"
|
||||
________________________
|
||||
< >tfw too hot to handle >
|
||||
------------------------
|
||||
\ . . .
|
||||
\ . . . ` ,
|
||||
\ .; . : .' : : : .
|
||||
\ i..`: i` i.i.,i i .
|
||||
\ `,--.|i |i|ii|ii|i:
|
||||
UooU\.'@@@@@@`.||'
|
||||
\__/(@@@@@@@@@@)'
|
||||
(@@@@@@@@)
|
||||
`YY~~~~YY'
|
||||
|| ||
|
||||
EOF
|
||||
|
||||
curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/master/sudoers_tmp > /etc/sudoers
|
||||
|
||||
cd /tmp
|
||||
blue Changing working directory to /tmp/...
|
||||
blue Downloading next portion of the script \(larbs_user.sh\)...
|
||||
curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/master/larbs_user.sh > /tmp/larbs_user.sh && blue Running larbs_user.sh script as $NAME...
|
||||
sudo -u $NAME bash /tmp/larbs_user.sh || red Error when running larbs_user.sh...
|
||||
rm -f /tmp/larbs_user.sh
|
||||
|
||||
#Prints gay "ALMOST THERE!"
|
||||
cat << "EOF"
|
||||
[0;1;33;93mm[0;1;32;92mm[0m [0;1;34;94mm[0m [0;1;33;93mm[0m [0;1;34;94mm[0m [0;1;35;95mm[0;1;31;91mmm[0;1;33;93mm[0m [0;1;36;96mmm[0;1;34;94mmm[0m [0;1;35;95mm[0;1;31;91mmm[0;1;33;93mmm[0;1;32;92mmm[0m [0;1;31;91mm[0;1;33;93mmm[0;1;32;92mmm[0;1;36;96mmm[0m [0;1;34;94mm[0m [0;1;33;93mm[0m [0;1;32;92mmm[0;1;36;96mmm[0;1;34;94mmm[0m [0;1;35;95mm[0;1;31;91mmm[0;1;33;93mmm[0m [0;1;36;96mmm[0;1;34;94mmm[0;1;35;95mmm[0m [0;1;33;93mm[0m
|
||||
[0;1;32;92m#[0;1;36;96m#[0m [0;1;35;95m#[0m [0;1;32;92m#[0;1;36;96m#[0m [0;1;34;94m#[0;1;35;95m#[0m [0;1;31;91mm"[0m [0;1;32;92m"m[0m [0;1;36;96m#[0;1;34;94m"[0m [0;1;31;91m"[0m [0;1;32;92m#[0m [0;1;36;96m#[0m [0;1;35;95m#[0m [0;1;32;92m#[0m [0;1;36;96m#[0m [0;1;31;91m#[0m [0;1;32;92m"[0;1;36;96m#[0m [0;1;34;94m#[0m [0;1;32;92m#[0m
|
||||
[0;1;36;96m#[0m [0;1;34;94m#[0m [0;1;31;91m#[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
|
||||
EOF
|
||||
|
||||
|
||||
blue Enabling Network Manager...
|
||||
systemctl enable NetworkManager
|
||||
systemctl start NetworkManager
|
||||
|
||||
blue Getting rid of that retarded error beep sound...
|
||||
rmmod pcspkr
|
||||
echo "blacklist pcspkr" > /etc/modprobe.d/nobeep.conf
|
||||
|
||||
blue Implementing temporary sudoers file...
|
||||
curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/master/sudoers > /etc/sudoers
|
||||
|
||||
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
|
121
src/larbs_user.sh
Executable file
121
src/larbs_user.sh
Executable file
@ -0,0 +1,121 @@
|
||||
#!/bin/bash
|
||||
|
||||
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) ;}
|
||||
|
||||
NAME=$(whoami)
|
||||
|
||||
blue Activating Pulseaudio if not already active...
|
||||
pulseaudio --start && blue Pulseaudio enabled...
|
||||
|
||||
#Install an AUR package manually.
|
||||
aurinstall() { curl -O https://aur.archlinux.org/cgit/aur.git/snapshot/$1.tar.gz && tar -xvf $1.tar.gz && cd $1 && makepkg --noconfirm -si && cd .. && rm -rf $1 $1.tar.gz ;}
|
||||
|
||||
#aurcheck runs on each of its arguments, if the argument is not already installed, it either uses packer to install it, or installs it manually.
|
||||
aurcheck() {
|
||||
qm=$(pacman -Qm | awk '{print $1}')
|
||||
for arg in "$@"
|
||||
do
|
||||
if [[ $qm = *"$arg"* ]]; then
|
||||
echo $arg is already installed.
|
||||
else
|
||||
echo $arg not installed
|
||||
blue Now installing $arg...
|
||||
if [[ -e /usr/bin/packer ]]
|
||||
then
|
||||
(packer --noconfirm -S $arg && blue $arg now installed) || red Error installing $arg.
|
||||
else
|
||||
(aurinstall $arg && blue $arg now installed) || red Error installing $arg.
|
||||
fi
|
||||
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
blue Installing AUR programs...
|
||||
blue \(This may take some time.\)
|
||||
|
||||
cat << "EOF"
|
||||
[0;1;33;93mm[0;1;32;92mm[0m [0;1;34;94mm[0m [0;1;31;91mm[0m [0;1;33;93mm[0;1;32;92mmm[0;1;36;96mmm[0m [0;1;32;92mmm[0;1;36;96mmm[0;1;34;94mmm[0;1;35;95mm[0m [0;1;31;91mmm[0;1;33;93mmm[0;1;32;92mm[0m [0;1;36;96mm[0m [0;1;31;91mm[0m [0;1;33;93mmm[0;1;32;92mmm[0;1;36;96mmm[0m [0;1;35;95mm[0m
|
||||
[0;1;32;92m#[0;1;36;96m#[0m [0;1;35;95m#[0m [0;1;33;93m#[0m [0;1;32;92m#[0m [0;1;34;94m"[0;1;35;95m#[0m [0;1;34;94m#[0m [0;1;32;92m#[0m [0;1;34;94m#[0;1;35;95m#[0m [0;1;31;91m#[0;1;33;93m#[0m [0;1;32;92m#[0m [0;1;31;91m#[0m
|
||||
[0;1;36;96m#[0m [0;1;34;94m#[0m [0;1;31;91m#[0m [0;1;32;92m#[0m [0;1;36;96m#[0;1;34;94mmm[0;1;35;95mmm[0;1;31;91m"[0m [0;1;35;95m#[0m [0;1;36;96m#[0m [0;1;35;95m#[0m [0;1;31;91m#[0;1;33;93m#[0m [0;1;32;92m#[0m [0;1;36;96m#m[0;1;34;94mmm[0;1;35;95mmm[0m [0;1;33;93m#[0m
|
||||
[0;1;34;94m#m[0;1;35;95mm#[0m [0;1;33;93m#[0m [0;1;36;96m#[0m [0;1;34;94m#[0m [0;1;31;91m"[0;1;33;93mm[0m [0;1;31;91m#[0m [0;1;34;94m#[0m [0;1;31;91m#[0m [0;1;33;93m"[0;1;32;92m"[0m [0;1;36;96m#[0m [0;1;34;94m#[0m [0;1;32;92m"[0m
|
||||
[0;1;34;94m#[0m [0;1;33;93m#[0m [0;1;32;92m"m[0;1;36;96mmm[0;1;34;94mm"[0m [0;1;35;95m#[0m [0;1;32;92m"[0m [0;1;33;93m#[0m [0;1;34;94mmm[0;1;35;95m#m[0;1;31;91mm[0m [0;1;33;93m#[0m [0;1;34;94m#[0m [0;1;35;95m#m[0;1;31;91mmm[0;1;33;93mmm[0m [0;1;36;96m#[0m
|
||||
EOF
|
||||
|
||||
|
||||
gpg --recv-keys 5FAF0A6EE7371805 #Add the needed gpg key for neomutt
|
||||
|
||||
aurcheck packer i3-gaps vim-pathogen tamzen-font-git neomutt unclutter-xfixes-git urxvt-resize-font-git polybar python-pywal xfce-theme-blackbird fzf-git || red Error with basic AUR installations...
|
||||
#Also installing i3lock, since i3-gaps was only just now installed.
|
||||
sudo pacman -S --noconfirm --needed i3lock
|
||||
|
||||
#packer --noconfirm -S ncpamixer-git speedometer cli-visualizer
|
||||
|
||||
choices=$(cat /tmp/.choices)
|
||||
for choice in $choices
|
||||
do
|
||||
case $choice in
|
||||
1)
|
||||
aurcheck vim-live-latex-preview
|
||||
git clone https://github.com/lukesmithxyz/latex-templates.git && mkdir -p /home/$NAME/Documents/LaTeX && rsync -va latex-templates /home/$NAME/Documents/LaTeX && rm -rf latex-templates
|
||||
;;
|
||||
6)
|
||||
aurcheck ttf-ancient-fonts
|
||||
;;
|
||||
7)
|
||||
aurcheck transmission-remote-cli-git
|
||||
;;
|
||||
8)
|
||||
aurcheck bash-pipes cli-visualizer speedometer neofetch
|
||||
;;
|
||||
esac
|
||||
done
|
||||
cat << "EOF"
|
||||
|
||||
▄ ▄
|
||||
▌▒█ ▄▀▒▌
|
||||
▌▒▒▀▄ ▄▀▒▒▒▐
|
||||
▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐
|
||||
▄▄▀▒▒▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐
|
||||
▄▀▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▀██▀▒▌
|
||||
▐▒▒▒▄▄▄▒▒▒▒▒▒▒▒▒▒▒▒▒▀▄▒▒▌
|
||||
▌▒▒▐▄█▀▒▒▒▒▄▀█▄▒▒▒▒▒▒▒█▒▐
|
||||
▐▒▒▒▒▒▒▒▒▒▒▒▌██▀▒▒▒▒▒▒▒▒▀▄▌
|
||||
▌▒▀▄██▄▒▒▒▒▒▒▒▒▒▒▒░░░░▒▒▒▒▌
|
||||
▌▀▐▄█▄█▌▄▒▀▒▒▒▒▒▒░░░░░░▒▒▒▐
|
||||
▐▒▀▐▀▐▀▒▒▄▄▒▄▒▒▒▒▒░░░░░░▒▒▒▒▌
|
||||
▐▒▒▒▀▀▄▄▒▒▒▄▒▒▒▒▒▒░░░░░░▒▒▒▐
|
||||
▌▒▒▒▒▒▒▀▀▀▒▒▒▒▒▒▒▒░░░░▒▒▒▒▌
|
||||
▐▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▐
|
||||
▀▄▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▄▒▒▒▒▌
|
||||
▀▄▒▒▒▒▒▒▒▒▒▒▄▄▄▀▒▒▒▒▄▀
|
||||
▐▀▒▀▄▄▄▄▄▄▀▀▀▒▒▒▒▒▄▄▀
|
||||
▐▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▀▀
|
||||
|
||||
EOF
|
||||
|
||||
|
||||
|
||||
browsers=$(cat /tmp/.browch)
|
||||
for choice in $browsers
|
||||
do
|
||||
case $choice in
|
||||
3)
|
||||
gpg --recv-keys 865E6C87C65285EC #Key required for Palemoon install.
|
||||
aurcheck palemoon-bin
|
||||
;;
|
||||
4)
|
||||
aurcheck waterfox-bin
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
blue Downloading config files...
|
||||
git clone https://github.com/lukesmithxyz/voidrice.git && rsync -va voidrice/ /home/$NAME && rm -rf voidrice
|
||||
|
||||
blue Generating bash/ranger/qutebrowser shortcuts...
|
||||
cd /home/$NAME/
|
||||
python /home/$NAME/.config/Scripts/shortcuts.py
|
||||
|
121
src/larbs_userp.sh
Executable file
121
src/larbs_userp.sh
Executable file
@ -0,0 +1,121 @@
|
||||
#!/bin/bash
|
||||
|
||||
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) ;}
|
||||
|
||||
NAME=$(whoami)
|
||||
|
||||
blue Activating Pulseaudio if not already active...
|
||||
pulseaudio --start && blue Pulseaudio enabled...
|
||||
|
||||
#Install an AUR package manually.
|
||||
aurinstall() { curl -O https://aur.archlinux.org/cgit/aur.git/snapshot/$1.tar.gz && tar -xvf $1.tar.gz && cd $1 && makepkg --noconfirm -si && cd .. && rm -rf $1 $1.tar.gz ;}
|
||||
|
||||
#aurcheck runs on each of its arguments, if the argument is not already installed, it either uses packer to install it, or installs it manually.
|
||||
aurcheck() {
|
||||
qm=$(pacman -Qm | awk '{print $1}')
|
||||
for arg in "$@"
|
||||
do
|
||||
if [[ $qm = *"$arg"* ]]; then
|
||||
echo $arg is already installed.
|
||||
else
|
||||
echo $arg not installed
|
||||
blue Now installing $arg...
|
||||
if [[ -e /usr/bin/packer ]]
|
||||
then
|
||||
(packer --noconfirm -S $arg && blue $arg now installed) || red Error installing $arg.
|
||||
else
|
||||
(aurinstall $arg && blue $arg now installed) || red Error installing $arg.
|
||||
fi
|
||||
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
blue Installing AUR programs...
|
||||
blue \(This may take some time.\)
|
||||
|
||||
cat << "EOF"
|
||||
[0;1;33;93mm[0;1;32;92mm[0m [0;1;34;94mm[0m [0;1;31;91mm[0m [0;1;33;93mm[0;1;32;92mmm[0;1;36;96mmm[0m [0;1;32;92mmm[0;1;36;96mmm[0;1;34;94mmm[0;1;35;95mm[0m [0;1;31;91mmm[0;1;33;93mmm[0;1;32;92mm[0m [0;1;36;96mm[0m [0;1;31;91mm[0m [0;1;33;93mmm[0;1;32;92mmm[0;1;36;96mmm[0m [0;1;35;95mm[0m
|
||||
[0;1;32;92m#[0;1;36;96m#[0m [0;1;35;95m#[0m [0;1;33;93m#[0m [0;1;32;92m#[0m [0;1;34;94m"[0;1;35;95m#[0m [0;1;34;94m#[0m [0;1;32;92m#[0m [0;1;34;94m#[0;1;35;95m#[0m [0;1;31;91m#[0;1;33;93m#[0m [0;1;32;92m#[0m [0;1;31;91m#[0m
|
||||
[0;1;36;96m#[0m [0;1;34;94m#[0m [0;1;31;91m#[0m [0;1;32;92m#[0m [0;1;36;96m#[0;1;34;94mmm[0;1;35;95mmm[0;1;31;91m"[0m [0;1;35;95m#[0m [0;1;36;96m#[0m [0;1;35;95m#[0m [0;1;31;91m#[0;1;33;93m#[0m [0;1;32;92m#[0m [0;1;36;96m#m[0;1;34;94mmm[0;1;35;95mmm[0m [0;1;33;93m#[0m
|
||||
[0;1;34;94m#m[0;1;35;95mm#[0m [0;1;33;93m#[0m [0;1;36;96m#[0m [0;1;34;94m#[0m [0;1;31;91m"[0;1;33;93mm[0m [0;1;31;91m#[0m [0;1;34;94m#[0m [0;1;31;91m#[0m [0;1;33;93m"[0;1;32;92m"[0m [0;1;36;96m#[0m [0;1;34;94m#[0m [0;1;32;92m"[0m
|
||||
[0;1;34;94m#[0m [0;1;33;93m#[0m [0;1;32;92m"m[0;1;36;96mmm[0;1;34;94mm"[0m [0;1;35;95m#[0m [0;1;32;92m"[0m [0;1;33;93m#[0m [0;1;34;94mmm[0;1;35;95m#m[0;1;31;91mm[0m [0;1;33;93m#[0m [0;1;34;94m#[0m [0;1;35;95m#m[0;1;31;91mmm[0;1;33;93mmm[0m [0;1;36;96m#[0m
|
||||
EOF
|
||||
|
||||
|
||||
gpg --recv-keys 5FAF0A6EE7371805 #Add the needed gpg key for neomutt
|
||||
|
||||
aurcheck packer i3-gaps vim-pathogen tamzen-font-git urxvt-resize-font-git polybar python-pywal xfce-theme-blackbird || red Error with basic AUR installations...
|
||||
#Also installing i3lock, since i3-gaps was only just now installed.
|
||||
sudo pacman -S --noconfirm --needed i3lock
|
||||
|
||||
#packer --noconfirm -S ncpamixer-git speedometer cli-visualizer
|
||||
|
||||
choices=$(cat /tmp/.choices)
|
||||
for choice in $choices
|
||||
do
|
||||
case $choice in
|
||||
1)
|
||||
aurcheck vim-live-latex-preview
|
||||
git clone https://github.com/lukesmithxyz/latex-templates.git && mkdir -p /home/$NAME/Documents/LaTeX && rsync -va latex-templates /home/$NAME/Documents/LaTeX && rm -rf latex-templates
|
||||
;;
|
||||
6)
|
||||
aurcheck ttf-ancient-fonts
|
||||
;;
|
||||
7)
|
||||
aurcheck transmission-remote-cli-git
|
||||
;;
|
||||
8)
|
||||
aurcheck bash-pipes cli-visualizer speedometer neofetch
|
||||
;;
|
||||
esac
|
||||
done
|
||||
cat << "EOF"
|
||||
|
||||
▄ ▄
|
||||
▌▒█ ▄▀▒▌
|
||||
▌▒▒▀▄ ▄▀▒▒▒▐
|
||||
▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐
|
||||
▄▄▀▒▒▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐
|
||||
▄▀▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▀██▀▒▌
|
||||
▐▒▒▒▄▄▄▒▒▒▒▒▒▒▒▒▒▒▒▒▀▄▒▒▌
|
||||
▌▒▒▐▄█▀▒▒▒▒▄▀█▄▒▒▒▒▒▒▒█▒▐
|
||||
▐▒▒▒▒▒▒▒▒▒▒▒▌██▀▒▒▒▒▒▒▒▒▀▄▌
|
||||
▌▒▀▄██▄▒▒▒▒▒▒▒▒▒▒▒░░░░▒▒▒▒▌
|
||||
▌▀▐▄█▄█▌▄▒▀▒▒▒▒▒▒░░░░░░▒▒▒▐
|
||||
▐▒▀▐▀▐▀▒▒▄▄▒▄▒▒▒▒▒░░░░░░▒▒▒▒▌
|
||||
▐▒▒▒▀▀▄▄▒▒▒▄▒▒▒▒▒▒░░░░░░▒▒▒▐
|
||||
▌▒▒▒▒▒▒▀▀▀▒▒▒▒▒▒▒▒░░░░▒▒▒▒▌
|
||||
▐▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▐
|
||||
▀▄▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▄▒▒▒▒▌
|
||||
▀▄▒▒▒▒▒▒▒▒▒▒▄▄▄▀▒▒▒▒▄▀
|
||||
▐▀▒▀▄▄▄▄▄▄▀▀▀▒▒▒▒▒▄▄▀
|
||||
▐▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▀▀
|
||||
|
||||
EOF
|
||||
|
||||
|
||||
|
||||
browsers=$(cat /tmp/.browch)
|
||||
for choice in $browsers
|
||||
do
|
||||
case $choice in
|
||||
3)
|
||||
gpg --recv-keys 865E6C87C65285EC #Key required for Palemoon install.
|
||||
aurcheck palemoon-bin
|
||||
;;
|
||||
4)
|
||||
aurcheck waterfox-bin
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
blue Downloading config files...
|
||||
git clone https://github.com/lukesmithxyz/voidrice.git && rsync -va voidrice/ /home/$NAME && rm -rf voidrice
|
||||
|
||||
blue Generating bash/ranger/qutebrowser shortcuts...
|
||||
cd /home/$NAME/
|
||||
python /home/$NAME/.config/Scripts/shortcuts.py
|
||||
|
268
src/larbsp.sh
Executable file
268
src/larbsp.sh
Executable file
@ -0,0 +1,268 @@
|
||||
#!/bin/bash
|
||||
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) ;}
|
||||
|
||||
echo "LARBS started $(date)" >> /tmp/LARBS.log
|
||||
chmod 777 /tmp/LARBS.log
|
||||
|
||||
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)
|
||||
|
||||
dialog --title "Welcome!" --msgbox "Welcome to Luke's Auto-Rice Bootstrapping Script!\n\nThis script will automatically install a fully-featured i3wm Parabola GNU/Linux desktop, which I use as my main machine.\n\n-Luke" 10 60
|
||||
|
||||
dialog --no-cancel --inputbox "First, please enter a name for the user account." 10 60 2> /tmp/.name
|
||||
|
||||
dialog --no-cancel --passwordbox "Enter a password for that user." 10 60 2> /tmp/.pass1
|
||||
dialog --no-cancel --passwordbox "Reype password." 10 60 2> /tmp/.pass2
|
||||
|
||||
while [ $(cat /tmp/.pass1) != $(cat /tmp/.pass2) ]
|
||||
do
|
||||
dialog --no-cancel --passwordbox "Passwords do not match.\n\nEnter password again." 10 60 2> /tmp/.pass1
|
||||
dialog --no-cancel --passwordbox "Reype password." 10 60 2> /tmp/.pass2
|
||||
done
|
||||
|
||||
chmod 777 /tmp/.name
|
||||
NAME=$(cat /tmp/.name)
|
||||
shred -u /tmp/.name
|
||||
useradd -m -g wheel -s /bin/bash $NAME
|
||||
|
||||
echo "$NAME:$(cat /tmp/.pass1)" | chpasswd
|
||||
#I shred the password for safety's sake.
|
||||
shred -u /tmp/.pass1
|
||||
shred -u /tmp/.pass2
|
||||
|
||||
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
|
||||
7 "transmission torrent client" off
|
||||
8 "Music visualizers and decoration" off
|
||||
)
|
||||
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
|
||||
echo $choices > /tmp/.choices
|
||||
|
||||
brow=(dialog --separate-output --checklist "Select a browser (none or multiple possible):" 22 76 16)
|
||||
options=(1 "qutebrowser" off
|
||||
2 "Firefox" off
|
||||
3 "Palemoon" off
|
||||
4 "Waterfox" off
|
||||
)
|
||||
browch=$("${brow[@]}" "${options[@]}" 2>&1 >/dev/tty)
|
||||
echo $browch > /tmp/.browch
|
||||
|
||||
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
|
||||
|
||||
cat << "EOF"
|
||||
|
||||
mmmmm # mmm
|
||||
# "# mmm mmm mmm# m m " #
|
||||
#mmmm" #" # " # #" "# "m m" m#"
|
||||
# "m #"""" m"""# # # #m# "
|
||||
# " "#mm" "mm"# "#m## "# #
|
||||
m"
|
||||
EOF
|
||||
sleep 1
|
||||
cat << "EOF"
|
||||
|
||||
mmmm m mmm
|
||||
#" " mmm mm#mm " #
|
||||
"#mmm #" # # m#"
|
||||
"# #"""" # "
|
||||
"mmm#" "#mm" "mm #
|
||||
EOF
|
||||
sleep 1
|
||||
|
||||
#Prints metal gay
|
||||
cat << "EOF"
|
||||
|
||||
[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
|
||||
|
||||
EOF
|
||||
sleep .5
|
||||
cat << "EOF"
|
||||
|
||||
|
||||
- = .--._
|
||||
- - ~_= =~_- = - `. `-.
|
||||
==~_ = =_ ~ - = .-' `.
|
||||
--=~_ - ~ == - = .' _..:._
|
||||
---=~ _~ = =- = `. .--.' `.
|
||||
--=_-=- ~= _ - = - _.' `. .--.:
|
||||
-=_~ -- = = ~- .' : : :
|
||||
-=-_ ~= = - _-`--. : .--: D
|
||||
-=~ _= = -~_= `; .'.: ,`---'@
|
||||
--=_= = ~- -= .' .' `._ `-.__.'
|
||||
--== ~_ - = =- .' .' _.`---'
|
||||
--=~_= = - = ~ .'--'' . `-..__.--.
|
||||
jgs--==~ _= - ~-= =-~_- `-..___( ===;
|
||||
--==~_==- =__ ~-= - - .' `---'
|
||||
|
||||
EOF
|
||||
sleep .5
|
||||
|
||||
blue Now installing main programs...
|
||||
|
||||
pacman --noconfirm --needed -Sy base-devel xorg-xinit xorg-server noto-fonts rxvt-unicode feh ffmpeg pulseaudio pulseaudio-alsa wireless_tools arandr pavucontrol pamixer mpv wget rofi vim w3m ranger mediainfo poppler highlight tmux calcurse htop newsboat mpd mpc ncmpcpp network-manager-applet networkmanager imagemagick atool libcaca compton transset-df markdown mupdf evince rsync git youtube-dl youtube-viewer cups scrot unzip unrar ntfs-3g offlineimap msmtp notmuch notmuch-mutt dosfstools r pandoc python-dbus python-gobject xf86-video-intel neomutt unclutter-xfixes-git || (red Error installing basic packages. Check your internet connection and pacman keyring.)
|
||||
pacman --noconfirm --needed -S fzf || (red Error with peripheral programs.)
|
||||
|
||||
cat << "EOF"
|
||||
_____________________________
|
||||
< Drink whole milk every day! >
|
||||
-----------------------------
|
||||
\ ____________
|
||||
\ |__________|
|
||||
/ /\
|
||||
/ / \
|
||||
/___________/___/|
|
||||
| | |
|
||||
| ==\ /== | |
|
||||
| O O | \ \ |
|
||||
| < | \ \|
|
||||
/| | \ \
|
||||
/ | \_____/ | / /
|
||||
/ /| | / /|
|
||||
/||\| | /||\/
|
||||
-------------|
|
||||
| | | |
|
||||
<__/ \__>
|
||||
EOF
|
||||
|
||||
for choice in $choices
|
||||
do
|
||||
case $choice in
|
||||
1)
|
||||
blue Now installing LaTeX packages...
|
||||
|
||||
cat << "EOF"
|
||||
|
||||
[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
|
||||
|
||||
EOF
|
||||
pacman --noconfirm --needed -S texlive-most texlive-lang biber
|
||||
;;
|
||||
2)
|
||||
blue Now installing LibreOffice Suite...
|
||||
pacman --noconfirm --needed -S libreoffice-fresh
|
||||
;;
|
||||
3)
|
||||
blue Now installing GIMP...
|
||||
pacman --noconfirm --needed -S gimp
|
||||
;;
|
||||
4)
|
||||
blue Now installing Blender...
|
||||
pacman --noconfirm --needed -S blender
|
||||
;;
|
||||
5)
|
||||
blue Now installing Emacs...
|
||||
pacman --noconfirm --needed -S emacs
|
||||
;;
|
||||
6)
|
||||
blue Now installing extra fonts...
|
||||
pacman --noconfirm --needed -S noto-fonts-cjk noto-fonts-emoji
|
||||
;;
|
||||
7)
|
||||
blue Now installing transmission...
|
||||
pacman --noconfirm --needed -S transmission-cli
|
||||
;;
|
||||
8)
|
||||
blue Now installing visualizers and decoration...
|
||||
pacman --noconfirm --needed -S projectm-pulseaudio cmatrix asciiquarium screenfetch
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
#Prints gay [autism intensifies]
|
||||
cat << "EOF"
|
||||
|
||||
|
||||
[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;94mm[0m [0;1;31;91mmm[0;1;33;93m#m[0;1;32;92mm[0m [0;1;36;96mm[0;1;34;94mmm[0m [0;1;33;93mm[0;1;32;92mmm[0m [0;1;34;94mm[0;1;35;95mmm[0;1;31;91mmm[0m [0;1;35;95mm[0;1;31;91mmm[0m [0;1;36;96mm[0m [0;1;34;94mmm[0m [0;1;31;91mm[0;1;33;93mm#[0;1;32;92mmm[0m [0;1;34;94mm[0;1;35;95mmm[0m [0;1;33;93mm[0m [0;1;32;92mm[0;1;36;96mm[0m [0;1;35;95mm[0;1;31;91mmm[0m [0;1;32;92mm[0;1;36;96mmm[0m [0;1;31;91mmm[0;1;33;93m#m[0;1;32;92mm[0m [0;1;36;96mm[0;1;34;94mmm[0m [0;1;33;93mm[0;1;32;92mmm[0m [0;1;35;95mmm[0;1;31;91mm[0m [0;1;36;96m#[0m
|
||||
[0;1;36;96m#[0m [0;1;31;91m"[0m [0;1;32;92m#[0m [0;1;36;96m#[0m [0;1;35;95m#[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;31;91m#[0m [0;1;33;93m#[0m [0;1;33;93m#[0m [0;1;34;94m#"[0m [0;1;31;91m#[0m [0;1;32;92m#[0m [0;1;35;95m#"[0m [0;1;33;93m#[0m [0;1;32;92m#[0;1;36;96m"[0m [0;1;34;94m#[0m [0;1;31;91m#[0m [0;1;32;92m"[0m [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
|
||||
|
||||
EOF
|
||||
|
||||
for choice in $browch
|
||||
do
|
||||
case $choice in
|
||||
1)
|
||||
blue Now installing qutebrowser...
|
||||
pacman --noconfirm --needed -S qutebrowser gst-libav gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly
|
||||
;;
|
||||
2)
|
||||
blue Now installing Firefox...
|
||||
pacman --noconfirm --needed -S firefox
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
cat << "EOF"
|
||||
________________________
|
||||
< >tfw too hot to handle >
|
||||
------------------------
|
||||
\ . . .
|
||||
\ . . . ` ,
|
||||
\ .; . : .' : : : .
|
||||
\ i..`: i` i.i.,i i .
|
||||
\ `,--.|i |i|ii|ii|i:
|
||||
UooU\.'@@@@@@`.||'
|
||||
\__/(@@@@@@@@@@)'
|
||||
(@@@@@@@@)
|
||||
`YY~~~~YY'
|
||||
|| ||
|
||||
EOF
|
||||
|
||||
curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/master/sudoers_tmp > /etc/sudoers
|
||||
|
||||
cd /tmp
|
||||
blue Changing working directory to /tmp/...
|
||||
blue Downloading next portion of the script \(larbs_userp.sh\)...
|
||||
curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/master/larbs_userp.sh > /tmp/larbs_userp.sh && blue Running larbs_userp.sh script as $NAME...
|
||||
sudo -u $NAME bash /tmp/larbs_userp.sh || red Error when running larbs_userp.sh...
|
||||
rm -f /tmp/larbs_userp.sh
|
||||
|
||||
#Prints gay "ALMOST THERE!"
|
||||
cat << "EOF"
|
||||
[0;1;33;93mm[0;1;32;92mm[0m [0;1;34;94mm[0m [0;1;33;93mm[0m [0;1;34;94mm[0m [0;1;35;95mm[0;1;31;91mmm[0;1;33;93mm[0m [0;1;36;96mmm[0;1;34;94mmm[0m [0;1;35;95mm[0;1;31;91mmm[0;1;33;93mmm[0;1;32;92mmm[0m [0;1;31;91mm[0;1;33;93mmm[0;1;32;92mmm[0;1;36;96mmm[0m [0;1;34;94mm[0m [0;1;33;93mm[0m [0;1;32;92mmm[0;1;36;96mmm[0;1;34;94mmm[0m [0;1;35;95mm[0;1;31;91mmm[0;1;33;93mmm[0m [0;1;36;96mmm[0;1;34;94mmm[0;1;35;95mmm[0m [0;1;33;93mm[0m
|
||||
[0;1;32;92m#[0;1;36;96m#[0m [0;1;35;95m#[0m [0;1;32;92m#[0;1;36;96m#[0m [0;1;34;94m#[0;1;35;95m#[0m [0;1;31;91mm"[0m [0;1;32;92m"m[0m [0;1;36;96m#[0;1;34;94m"[0m [0;1;31;91m"[0m [0;1;32;92m#[0m [0;1;36;96m#[0m [0;1;35;95m#[0m [0;1;32;92m#[0m [0;1;36;96m#[0m [0;1;31;91m#[0m [0;1;32;92m"[0;1;36;96m#[0m [0;1;34;94m#[0m [0;1;32;92m#[0m
|
||||
[0;1;36;96m#[0m [0;1;34;94m#[0m [0;1;31;91m#[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
|
||||
EOF
|
||||
|
||||
|
||||
blue Enabling Network Manager...
|
||||
systemctl enable NetworkManager
|
||||
systemctl start NetworkManager
|
||||
|
||||
blue Getting rid of that retarded error beep sound...
|
||||
rmmod pcspkr
|
||||
echo "blacklist pcspkr" > /etc/modprobe.d/nobeep.conf
|
||||
|
||||
blue Implementing temporary sudoers file...
|
||||
curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/master/sudoers > /etc/sudoers
|
||||
|
||||
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
|
103
src/sudoers
Normal file
103
src/sudoers
Normal file
@ -0,0 +1,103 @@
|
||||
## sudoers file.
|
||||
##
|
||||
## This file MUST be edited with the 'visudo' command as root.
|
||||
## Failure to use 'visudo' may result in syntax or file permission errors
|
||||
## that prevent sudo from running.
|
||||
##
|
||||
## See the sudoers man page for the details on how to write a sudoers file.
|
||||
##
|
||||
|
||||
##
|
||||
## Host alias specification
|
||||
##
|
||||
## Groups of machines. These may include host names (optionally with wildcards),
|
||||
## IP addresses, network numbers or netgroups.
|
||||
# Host_Alias WEBSERVERS = www1, www2, www3
|
||||
|
||||
##
|
||||
## User alias specification
|
||||
##
|
||||
## Groups of users. These may consist of user names, uids, Unix groups,
|
||||
## or netgroups.
|
||||
# User_Alias ADMINS = millert, dowdy, mikef
|
||||
|
||||
##
|
||||
## Cmnd alias specification
|
||||
##
|
||||
## Groups of commands. Often used to group related commands together.
|
||||
# Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
|
||||
# /usr/bin/pkill, /usr/bin/top
|
||||
# Cmnd_Alias REBOOT = /sbin/halt, /sbin/reboot, /sbin/poweroff
|
||||
|
||||
##
|
||||
## Defaults specification
|
||||
##
|
||||
## You may wish to keep some of the following environment variables
|
||||
## when running commands via sudo.
|
||||
##
|
||||
## Locale settings
|
||||
# Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
|
||||
##
|
||||
## Run X applications through sudo; HOME is used to find the
|
||||
## .Xauthority file. Note that other programs use HOME to find
|
||||
## configuration files and this may lead to privilege escalation!
|
||||
# Defaults env_keep += "HOME"
|
||||
##
|
||||
## X11 resource path settings
|
||||
# Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
|
||||
##
|
||||
## Desktop path settings
|
||||
# Defaults env_keep += "QTDIR KDEDIR"
|
||||
##
|
||||
## Allow sudo-run commands to inherit the callers' ConsoleKit session
|
||||
# Defaults env_keep += "XDG_SESSION_COOKIE"
|
||||
##
|
||||
## Uncomment to enable special input methods. Care should be taken as
|
||||
## this may allow users to subvert the command being run via sudo.
|
||||
# Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
|
||||
##
|
||||
## Uncomment to use a hard-coded PATH instead of the user's to find commands
|
||||
# Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
##
|
||||
## Uncomment to send mail if the user does not enter the correct password.
|
||||
# Defaults mail_badpass
|
||||
##
|
||||
## Uncomment to enable logging of a command's output, except for
|
||||
## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
|
||||
# Defaults log_output
|
||||
# Defaults!/usr/bin/sudoreplay !log_output
|
||||
# Defaults!/usr/local/bin/sudoreplay !log_output
|
||||
# Defaults!REBOOT !log_output
|
||||
|
||||
##
|
||||
## Runas alias specification
|
||||
##
|
||||
|
||||
##
|
||||
## User privilege specification
|
||||
##
|
||||
root ALL=(ALL) ALL
|
||||
|
||||
## Uncomment to allow members of group wheel to execute any command
|
||||
%wheel ALL=(ALL) ALL
|
||||
|
||||
## Same thing without a password
|
||||
#%wheel ALL=(ALL) NOPASSWD: ALL
|
||||
|
||||
##Here I give wheel users the ability to run core non-harmless commands without a password.
|
||||
%wheel ALL=(ALL) NOPASSWD: /usr/bin/shutdown,/usr/bin/reboot,/usr/bin/mount,/usr/bin/umount,/usr/bin/pacman -Syu,/usr/bin/pacman -Syyu,/usr/bin/packer -Syu,/usr/bin/packer -Syyu,/usr/bin/systemctl restart NetworkManager,/usr/bin/rc-service NetworkManager restart
|
||||
|
||||
#This keeps you from needing to reinsert your passwords in each different terminal a wheel user uses sudo in.
|
||||
Defaults !tty_tickets
|
||||
|
||||
## Uncomment to allow members of group sudo to execute any command
|
||||
# %sudo ALL=(ALL) ALL
|
||||
|
||||
## Uncomment to allow any user to run sudo if they know the password
|
||||
## of the user they are running the command as (root by default).
|
||||
# Defaults targetpw # Ask for the password of the target user
|
||||
# ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
|
||||
|
||||
## Read drop-in files from /etc/sudoers.d
|
||||
## (the '#' here does not indicate a comment)
|
||||
#includedir /etc/sudoers.d
|
97
src/sudoers_tmp
Normal file
97
src/sudoers_tmp
Normal file
@ -0,0 +1,97 @@
|
||||
## sudoers file.
|
||||
##
|
||||
## This file MUST be edited with the 'visudo' command as root.
|
||||
## Failure to use 'visudo' may result in syntax or file permission errors
|
||||
## that prevent sudo from running.
|
||||
##
|
||||
## See the sudoers man page for the details on how to write a sudoers file.
|
||||
##
|
||||
|
||||
##
|
||||
## Host alias specification
|
||||
##
|
||||
## Groups of machines. These may include host names (optionally with wildcards),
|
||||
## IP addresses, network numbers or netgroups.
|
||||
# Host_Alias WEBSERVERS = www1, www2, www3
|
||||
|
||||
##
|
||||
## User alias specification
|
||||
##
|
||||
## Groups of users. These may consist of user names, uids, Unix groups,
|
||||
## or netgroups.
|
||||
# User_Alias ADMINS = millert, dowdy, mikef
|
||||
|
||||
##
|
||||
## Cmnd alias specification
|
||||
##
|
||||
## Groups of commands. Often used to group related commands together.
|
||||
# Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
|
||||
# /usr/bin/pkill, /usr/bin/top
|
||||
# Cmnd_Alias REBOOT = /sbin/halt, /sbin/reboot, /sbin/poweroff
|
||||
|
||||
##
|
||||
## Defaults specification
|
||||
##
|
||||
## You may wish to keep some of the following environment variables
|
||||
## when running commands via sudo.
|
||||
##
|
||||
## Locale settings
|
||||
# Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
|
||||
##
|
||||
## Run X applications through sudo; HOME is used to find the
|
||||
## .Xauthority file. Note that other programs use HOME to find
|
||||
## configuration files and this may lead to privilege escalation!
|
||||
# Defaults env_keep += "HOME"
|
||||
##
|
||||
## X11 resource path settings
|
||||
# Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
|
||||
##
|
||||
## Desktop path settings
|
||||
# Defaults env_keep += "QTDIR KDEDIR"
|
||||
##
|
||||
## Allow sudo-run commands to inherit the callers' ConsoleKit session
|
||||
# Defaults env_keep += "XDG_SESSION_COOKIE"
|
||||
##
|
||||
## Uncomment to enable special input methods. Care should be taken as
|
||||
## this may allow users to subvert the command being run via sudo.
|
||||
# Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
|
||||
##
|
||||
## Uncomment to use a hard-coded PATH instead of the user's to find commands
|
||||
# Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
##
|
||||
## Uncomment to send mail if the user does not enter the correct password.
|
||||
# Defaults mail_badpass
|
||||
##
|
||||
## Uncomment to enable logging of a command's output, except for
|
||||
## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
|
||||
# Defaults log_output
|
||||
# Defaults!/usr/bin/sudoreplay !log_output
|
||||
# Defaults!/usr/local/bin/sudoreplay !log_output
|
||||
# Defaults!REBOOT !log_output
|
||||
|
||||
##
|
||||
## Runas alias specification
|
||||
##
|
||||
|
||||
##
|
||||
## User privilege specification
|
||||
##
|
||||
root ALL=(ALL) ALL
|
||||
|
||||
## Uncomment to allow members of group wheel to execute any command
|
||||
#%wheel ALL=(ALL) ALL
|
||||
|
||||
## Same thing without a password
|
||||
%wheel ALL=(ALL) NOPASSWD: ALL
|
||||
|
||||
## Uncomment to allow members of group sudo to execute any command
|
||||
# %sudo ALL=(ALL) ALL
|
||||
|
||||
## Uncomment to allow any user to run sudo if they know the password
|
||||
## of the user they are running the command as (root by default).
|
||||
# Defaults targetpw # Ask for the password of the target user
|
||||
# ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
|
||||
|
||||
## Read drop-in files from /etc/sudoers.d
|
||||
## (the '#' here does not indicate a comment)
|
||||
#includedir /etc/sudoers.d
|
11
src/test.sh
Normal file
11
src/test.sh
Normal file
@ -0,0 +1,11 @@
|
||||
cat << "EOF"
|
||||
|
||||
|
||||
[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;94mm[0m [0;1;31;91mmm[0;1;33;93m#m[0;1;32;92mm[0m [0;1;36;96mm[0;1;34;94mmm[0m [0;1;33;93mm[0;1;32;92mmm[0m [0;1;34;94mm[0;1;35;95mmm[0;1;31;91mmm[0m [0;1;35;95mm[0;1;31;91mmm[0m [0;1;36;96mm[0m [0;1;34;94mmm[0m [0;1;31;91mm[0;1;33;93mm#[0;1;32;92mmm[0m [0;1;34;94mm[0;1;35;95mmm[0m [0;1;33;93mm[0m [0;1;32;92mm[0;1;36;96mm[0m [0;1;35;95mm[0;1;31;91mmm[0m [0;1;32;92mm[0;1;36;96mmm[0m [0;1;31;91mmm[0;1;33;93m#m[0;1;32;92mm[0m [0;1;36;96mm[0;1;34;94mmm[0m [0;1;33;93mm[0;1;32;92mmm[0m [0;1;35;95mmm[0;1;31;91mm[0m [0;1;36;96m#[0m
|
||||
[0;1;36;96m#[0m [0;1;31;91m"[0m [0;1;32;92m#[0m [0;1;36;96m#[0m [0;1;35;95m#[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;31;91m#[0m [0;1;33;93m#[0m [0;1;33;93m#[0m [0;1;34;94m#"[0m [0;1;31;91m#[0m [0;1;32;92m#[0m [0;1;35;95m#"[0m [0;1;33;93m#[0m [0;1;32;92m#[0;1;36;96m"[0m [0;1;34;94m#[0m [0;1;31;91m#[0m [0;1;32;92m"[0m [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
|
||||
|
||||
EOF
|
Reference in New Issue
Block a user