larbs

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 1889c2a2fb55da11b0522862fd392516fbb6084c
parent 9dc95d2e143f74466d0c3be32f8831a5cc3d4723
Author: Luke <luke@lukesmith.xyz>
Date:   Fri, 24 Nov 2017 09:18:01 -0700

Merge branch 'caianrais-repo-cleanup'

Diffstat:
TREADME.md | 0
Adocs/README.md | 156+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Dlarbs.sh | 268-------------------------------------------------------------------------------
Dlarbsp.sh | 268-------------------------------------------------------------------------------
Rarch.sh -> src/arch.sh | 0
Rchroot.sh -> src/chroot.sh | 0
Asrc/larbs.sh | 348+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Rlarbs_user.sh -> src/larbs_user.sh | 0
Rlarbs_userp.sh -> src/larbs_userp.sh | 0
Asrc/larbsp.sh | 268+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Rsudoers -> src/sudoers | 0
Rsudoers_tmp -> src/sudoers_tmp | 0
Rtest.sh -> src/test.sh | 0
Rindex.html -> www/index.html | 0
Rpix/arch.jpg -> www/pix/arch.jpg | 0
Rpix/arch.png -> www/pix/arch.png | 0
Rpix/autism.jpg -> www/pix/autism.jpg | 0
Rpix/big_brane.jpg -> www/pix/big_brane.jpg | 0
Rpix/brainlet.jpg -> www/pix/brainlet.jpg | 0
Rpix/faveicon.ico -> www/pix/faveicon.ico | 0
Rpix/gnu-linux.jpg -> www/pix/gnu-linux.jpg | 0
Rpix/i3.jpg -> www/pix/i3.jpg | 0
Rpix/larbs.jpg -> www/pix/larbs.jpg | 0
Rpix/vim.jpg -> www/pix/vim.jpg | 0
Rpreviews.html -> www/previews.html | 0
Rpreviews/asian.png -> www/previews/asian.png | 0
Rpreviews/asian.png.jpg -> www/previews/asian.png.jpg | 0
Rpreviews/bow.png -> www/previews/bow.png | 0
Rpreviews/bow.png.jpg -> www/previews/bow.png.jpg | 0
Rpreviews/larbs.png -> www/previews/larbs.png | 0
Rpreviews/larbs.png.jpg -> www/previews/larbs.png.jpg | 0
Rpreviews/varg.png -> www/previews/varg.png | 0
Rpreviews/varg.png.jpg -> www/previews/varg.png.jpg | 0
Rprograms.html -> www/programs.html | 0
Rstyle.css -> www/styles.css | 0
35 files changed, 772 insertions(+), 536 deletions(-)

diff --git a/README.md b/README.md diff --git a/docs/README.md b/docs/README.md @@ -0,0 +1,156 @@ +# Luke's Auto-Rice Bootstraping Scripts (LARBS) + +[Official Website: larbs.xyz](http://larbs.xyz) + +This is a set of scripts either can either (1) install Arch Linux automatically +with a typical Arch ISOed USB, and perhaps more prominently (2) automatically +install and configure all of the prerequisites for an advanced Linux desktop +environment, using my configs [here](https://github.com/LukeSmithxyz/voidrice) +as a base. + + +## Table of Contents + + - [About](#about) + - [Installation](#installation) + - [On an already existing Arch install](#on-an-already-existing-arch-install) + - [Installing Arch automatically](#installing-arch-automatically) + - [How to Use](#how-to-use) + - [Permission Details (sudoers file)](#permission-details-sudoers-file) + - [Version](#version) + - [Why I made this](#why-i-made-this) + - [Bugs?](#bugs) + + +## About + +Really, the goal of this script is to start a kind of Linux meta-distribution +which makes the more nuanced aspects of an advanced Linux setup available to +even Linux newbies. Of course, it's also a great tool for advanced users who +want to get into tiling window managers and just generally cool-looking and +efficient worksetups. + +All the core stuff we be installed without prompt, but you'll have the option +to install some of the larger non-essential packages (LaTeX, LibreOffice, +Blender, etc.). + + +## Installation + +### On an already existing Arch install + +This is just as easy. Log in as the root user and run the following. + +```sh +curl -O http://larbs.xyz/larbs.sh #Downloads the script. +bash larbs.sh #Runs it. +``` + +After prompting you for some settings and some package choices, the system will +install my full i3-gaps tiling window manager Desktop Environment. If you don't +know what that means, don't worry, because I've gone to great lengths to write +readable instructions about how to go PRO super quick with this system. + +Finally, it will use `git` to download my +[Voidrice](https://github.com/lukesmithxyz/voidrice) +dotfiles and will plop them in their proper location for instant use! + +Then, finally, once that all is done, you should be able to log out, then log in +as your newly created user and type `startx` to begin the graphical environment. +Congrats! + +### Installing Arch automatically + +I also have a script here for installing Arch automatically. I *only* wrote this +script so I could quickly install then test the other scripts on new computers, +but theoretically you could use it as well. *BUT* this is a lazy, pre-alpha +script which does not give you many options (it automatically chooses the New +York time zone, US English, GRUB, Network Manager, etc). Even more important, it +automatically partitions /dev/sda without asking, so unless, you have no +non-backed up data on your machine, I don't advise running it unless you don't +mind a full wipe. That said, you can run it like this after booting into an Arch +live environment: + +```sh +curl -O http://larbs.xyz/arch.sh #Downloads the script. +bash arch.sh #Runs it. +``` + +After the system installs, you'll have the option of bootstrapping automatically +into installing my configs as well. + + +## How to Use + +Once you're in the environment, just type `Super` / `Mod` / `Windows` + `F1` to +pull up a document that will explain everything. + + +## Permission Details (sudoers file) + +These script will give your new created user (and those others you put in the +`wheel` group) sudo access (with a password), but will also allow some commands +to be run without any password confirmation. Those include: + ++ `shutdown` ++ `reboot` ++ `pacman -Syyu`/`pacman -Syu` ++ `packer -Syyu`/`packer -Syu` ++ `mount` ++ `umount` ++ `systemctl restart NetworkManager` + +Additionally, if you've put your password in a terminal window already, you will +not need to repeat putting it in in other terminal windows. + + +## Version + +We're basically on Version 2.0 now, which is still pretty primitive. I'm adding +some error handling, if the script fails, check the contents of LARBS.log in +whatever directory you've run the script. Still, this script is still in the +Wild West, so I recommend only running it on fresh installs. + + +## Why I made this + +When you've installed Arch Linux 6 gorrillian times like me, you get pretty sick +of having to reproduce your favorite configuration on fresh installs over and +over. When you're a C-list YouTube celebrity, it gets even more difficult when +literally thousands of people ask you how to do X or get Y. + +The LARBS are a final solution to all of that. These scripts are to be run on a +fresh install of Arch Linux, and they create a user, install all required +programs and set up dotfiles directly from Github to give normal people a fairly +sleek Linux configuration without hundreds of autsitic hours. I did the work, so +why should you? + +I've also documented the configuration fairly well, check out the documentation +on my **voidrice** repository for that. + + +## Bugs? + +### When I type `startx` I get some kind of non-descript error! + +Some computers might require some additional drivers to run a graphical +environment, for example, some ThinkPads might require you to install +`xf86-video-intel`. If you search your model or graphics card along with "Arch +Linux" on your preferred search engine, you'll probably get the answer fast. + +### I have some other problem and it didn't install correctly. + +In normal circumstances, there are two main causes of misinstalls: faulty +internet connections and errors with particular package upgrades or with the +pacman keyring. Check yourself if the former may be at fault, but feel free to +inform me in the latter case; I may be able to provide a quick fix. + +### >still using systemd botnet distro and/or not a 100% free-as-in-freedumb Parabola GANOO slash Linocks + +I do plan on making an alternative script option for Parabola sooner or later, +after all Parabola *is* the distro I actually use. If you want to use Arch +OpenRC or another Arch-based non-systemd distro, I think this script still +*should* work, although you may have to manually enable Network Manager or +Pulseaudio. I haven't tested this though. If you have, tell me the results and +I might implement it. + diff --git a/larbs.sh b/larbs.sh @@ -1,268 +0,0 @@ -#!/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 "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" - - mmm mmmm m - m" " m" "m # - # mm # # # - # # # # " - "mmm" #mm# # - -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 || (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" - - mmmmm m ""# ""# " m mmmmmmm m m - # m mm mmm mm#mm mmm # # mmm m mm mmmm # mmm # mmm # # - # #" # # " # " # # # # #" # #" "# # " # # #" # ## - # # # """m # m"""# # # # # # # # # m"""# # #"""" m""m - mm#mm # # "mmm" "mm "mm"# "mm "mm mm#mm # # "#m"# #mmmmm "mm"# # "#mm" m" "m # # # - m # - "" - - # # mmmmm mmmmmmm mmmmmm mmmm m -m m mmm m mm mmm# mmm m m mmm # m mmm # # # # m" "m # -"m m m" #" "# #" " #" "# #" " # # #" " # m" # " #mmmm" # #mmmmm # # # - #m#m# # # # # # # # # # #"# """m # # # # # # " - # # "#m#" # "#m## "#mm" "mm"# "#mm" # "m "mmm" #mmmm" # # #mm# # - -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" - - - #" m " " m " m"" " "# - # mmm m m mm#mm mmm mmm mmmmm mmm m mm mm#mm mmm m mm mmm mmm mm#mm mmm mmm mmm # - # " # # # # # # " # # # # #" # # #" # #" # # " # # # #" # # " # - # m"""# # # # # """m # # # # # # # #"""" # # """m # # # #"""" """m # - # "mm"# "mm"# "mm mm#mm "mmm" # # # mm#mm # # "mm "#mm" # # "mmm" mm#mm # mm#mm "#mm" "mmm" # - "" "" - -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" - mm m m m mmmm mmmm mmmmmmm mmmmmmm m m mmmmmm mmmmm mmmmmm m - ## # ## ## m" "m #" " # # # # # # "# # # - # # # # ## # # # "#mmm # # #mmmm# #mmmmm #mmmm" #mmmmm # - #mm# # # "" # # # "# # # # # # # "m # " - # # #mmmmm # # #mm# "mmm#" # # # # #mmmmm # " #mmmmm # -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 diff --git a/larbsp.sh b/larbsp.sh @@ -1,268 +0,0 @@ -#!/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" - - mmm mmmm m - m" " m" "m # - # mm # # # - # # # # " - "mmm" #mm# # - -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" - - mmmmm m ""# ""# " m mmmmmmm m m - # m mm mmm mm#mm mmm # # mmm m mm mmmm # mmm # mmm # # - # #" # # " # " # # # # #" # #" "# # " # # #" # ## - # # # """m # m"""# # # # # # # # # m"""# # #"""" m""m - mm#mm # # "mmm" "mm "mm"# "mm "mm mm#mm # # "#m"# #mmmmm "mm"# # "#mm" m" "m # # # - m # - "" - - # # mmmmm mmmmmmm mmmmmm mmmm m -m m mmm m mm mmm# mmm m m mmm # m mmm # # # # m" "m # -"m m m" #" "# #" " #" "# #" " # # #" " # m" # " #mmmm" # #mmmmm # # # - #m#m# # # # # # # # # # #"# """m # # # # # # " - # # "#m#" # "#m## "#mm" "mm"# "#mm" # "m "mmm" #mmmm" # # #mm# # - -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" - - - #" m " " m " m"" " "# - # mmm m m mm#mm mmm mmm mmmmm mmm m mm mm#mm mmm m mm mmm mmm mm#mm mmm mmm mmm # - # " # # # # # # " # # # # #" # # #" # #" # # " # # # #" # # " # - # m"""# # # # # """m # # # # # # # #"""" # # """m # # # #"""" """m # - # "mm"# "mm"# "mm mm#mm "mmm" # # # mm#mm # # "mm "#mm" # # "mmm" mm#mm # mm#mm "#mm" "mmm" # - "" "" - -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" - mm m m m mmmm mmmm mmmmmmm mmmmmmm m m mmmmmm mmmmm mmmmmm m - ## # ## ## m" "m #" " # # # # # # "# # # - # # # # ## # # # "#mmm # # #mmmm# #mmmmm #mmmm" #mmmmm # - #mm# # # "" # # # "# # # # # # # "m # " - # # #mmmmm # # #mm# "mmm#" # # # # #mmmmm # " #mmmmm # -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 diff --git a/arch.sh b/src/arch.sh diff --git a/chroot.sh b/src/chroot.sh diff --git a/src/larbs.sh b/src/larbs.sh @@ -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" + + mmm mmmm m + m" " m" "m # + # mm # # # + # # # # " + "mmm" #mm# # + +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" + + mmmmm m ""# ""# " m mmmmmmm m m + # m mm mmm mm#mm mmm # # mmm m mm mmmm # mmm # mmm # # + # #" # # " # " # # # # #" # #" "# # " # # #" # ## + # # # """m # m"""# # # # # # # # # m"""# # #"""" m""m + mm#mm # # "mmm" "mm "mm"# "mm "mm mm#mm # # "#m"# #mmmmm "mm"# # "#mm" m" "m # # # + m # + "" + + # # mmmmm mmmmmmm mmmmmm mmmm m +m m mmm m mm mmm# mmm m m mmm # m mmm # # # # m" "m # +"m m m" #" "# #" " #" "# #" " # # #" " # m" # " #mmmm" # #mmmmm # # # + #m#m# # # # # # # # # # #"# """m # # # # # # " + # # "#m#" # "#m## "#mm" "mm"# "#mm" # "m "mmm" #mmmm" # # #mm# # + +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" + + + #" m " " m " m"" " "# + # mmm m m mm#mm mmm mmm mmmmm mmm m mm mm#mm mmm m mm mmm mmm mm#mm mmm mmm mmm # + # " # # # # # # " # # # # #" # # #" # #" # # " # # # #" # # " # + # m"""# # # # # """m # # # # # # # #"""" # # """m # # # #"""" """m # + # "mm"# "mm"# "mm mm#mm "mmm" # # # mm#mm # # "mm "#mm" # # "mmm" mm#mm # mm#mm "#mm" "mmm" # + "" "" + +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/src/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/src/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" + mm m m m mmmm mmmm mmmmmmm mmmmmmm m m mmmmmm mmmmm mmmmmm m + ## # ## ## m" "m #" " # # # # # # "# # # + # # # # ## # # # "#mmm # # #mmmm# #mmmmm #mmmm" #mmmmm # + #mm# # # "" # # # "# # # # # # # "m # " + # # #mmmmm # # #mm# "mmm#" # # # # #mmmmm # " #mmmmm # +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/src/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 diff --git a/larbs_user.sh b/src/larbs_user.sh diff --git a/larbs_userp.sh b/src/larbs_userp.sh diff --git a/src/larbsp.sh b/src/larbsp.sh @@ -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" + + mmm mmmm m + m" " m" "m # + # mm # # # + # # # # " + "mmm" #mm# # + +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" + + mmmmm m ""# ""# " m mmmmmmm m m + # m mm mmm mm#mm mmm # # mmm m mm mmmm # mmm # mmm # # + # #" # # " # " # # # # #" # #" "# # " # # #" # ## + # # # """m # m"""# # # # # # # # # m"""# # #"""" m""m + mm#mm # # "mmm" "mm "mm"# "mm "mm mm#mm # # "#m"# #mmmmm "mm"# # "#mm" m" "m # # # + m # + "" + + # # mmmmm mmmmmmm mmmmmm mmmm m +m m mmm m mm mmm# mmm m m mmm # m mmm # # # # m" "m # +"m m m" #" "# #" " #" "# #" " # # #" " # m" # " #mmmm" # #mmmmm # # # + #m#m# # # # # # # # # # #"# """m # # # # # # " + # # "#m#" # "#m## "#mm" "mm"# "#mm" # "m "mmm" #mmmm" # # #mm# # + +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" + + + #" m " " m " m"" " "# + # mmm m m mm#mm mmm mmm mmmmm mmm m mm mm#mm mmm m mm mmm mmm mm#mm mmm mmm mmm # + # " # # # # # # " # # # # #" # # #" # #" # # " # # # #" # # " # + # m"""# # # # # """m # # # # # # # #"""" # # """m # # # #"""" """m # + # "mm"# "mm"# "mm mm#mm "mmm" # # # mm#mm # # "mm "#mm" # # "mmm" mm#mm # mm#mm "#mm" "mmm" # + "" "" + +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/src/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/src/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" + mm m m m mmmm mmmm mmmmmmm mmmmmmm m m mmmmmm mmmmm mmmmmm m + ## # ## ## m" "m #" " # # # # # # "# # # + # # # # ## # # # "#mmm # # #mmmm# #mmmmm #mmmm" #mmmmm # + #mm# # # "" # # # "# # # # # # # "m # " + # # #mmmmm # # #mm# "mmm#" # # # # #mmmmm # " #mmmmm # +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/src/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 diff --git a/sudoers b/src/sudoers diff --git a/sudoers_tmp b/src/sudoers_tmp diff --git a/test.sh b/src/test.sh diff --git a/index.html b/www/index.html diff --git a/pix/arch.jpg b/www/pix/arch.jpg Binary files differ. diff --git a/pix/arch.png b/www/pix/arch.png Binary files differ. diff --git a/pix/autism.jpg b/www/pix/autism.jpg Binary files differ. diff --git a/pix/big_brane.jpg b/www/pix/big_brane.jpg Binary files differ. diff --git a/pix/brainlet.jpg b/www/pix/brainlet.jpg Binary files differ. diff --git a/pix/faveicon.ico b/www/pix/faveicon.ico Binary files differ. diff --git a/pix/gnu-linux.jpg b/www/pix/gnu-linux.jpg Binary files differ. diff --git a/pix/i3.jpg b/www/pix/i3.jpg Binary files differ. diff --git a/pix/larbs.jpg b/www/pix/larbs.jpg Binary files differ. diff --git a/pix/vim.jpg b/www/pix/vim.jpg Binary files differ. diff --git a/previews.html b/www/previews.html diff --git a/previews/asian.png b/www/previews/asian.png Binary files differ. diff --git a/previews/asian.png.jpg b/www/previews/asian.png.jpg Binary files differ. diff --git a/previews/bow.png b/www/previews/bow.png Binary files differ. diff --git a/previews/bow.png.jpg b/www/previews/bow.png.jpg Binary files differ. diff --git a/previews/larbs.png b/www/previews/larbs.png Binary files differ. diff --git a/previews/larbs.png.jpg b/www/previews/larbs.png.jpg Binary files differ. diff --git a/previews/varg.png b/www/previews/varg.png Binary files differ. diff --git a/previews/varg.png.jpg b/www/previews/varg.png.jpg Binary files differ. diff --git a/programs.html b/www/programs.html diff --git a/style.css b/www/styles.css