larbs

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

commit 86ef7986da4ea5c94294884cc86309599aafb1e2
parent e47f472736054add2c356dcb8f51fb9a88e4dfe1
Author: Luke <luke@lukesmith.xyz>
Date:   Thu,  5 Oct 2017 22:36:28 -0700

`sudo` added where needed for non-root

Diffstat:
Minstall_packages.sh | 22+++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/install_packages.sh b/install_packages.sh @@ -1,7 +1,7 @@ #!/bin/bash blue() { printf "\033[0;34m $* \033[0m\n" && (echo $* >> LARBS.log) ;} red() { printf "\033[0;31m $* \033[0m\n" && (echo ERROR: $* >> LARBS.log) ;} -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) +sudo 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) error() { dialog --title "Error!" --msgbox "We've run into a fatal-ish error. Check the LARBS.log file for more information" 10 60 && clear && exit ;} @@ -35,7 +35,7 @@ if [[ -e .firstrun ]] then 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'll can relax even more with your complete system.\n\nNow just press <OK> and the system will begin installation!" 13 60 blue Now installing main programs... - pacman --noconfirm --needed -S base-devel xorg-xinit xorg-server rxvt-unicode feh ffmpeg pulseaudio pulseaudio-alsa arandr pavucontrol pamixer mpv wget rofi vim w3m ranger mediainfo poppler highlight tmux calcurse htop newsbeuter mpd mpc ncmpcpp network-manager-applet networkmanager imagemagick atool libcaca compton transset-df markdown mupdf evince rsync git youtube-dl youtube-viewer cups screenfetch scrot unzip unrar ntfs-3g offlineimap msmtp notmuch notmuch-mutt dosfstools fzf r pandoc || (echo "Error installing basic packages. Check your internet connection and pacman keyring." >> LARBS.log && error) + sudo pacman --noconfirm --needed -S base-devel xorg-xinit xorg-server rxvt-unicode feh ffmpeg pulseaudio pulseaudio-alsa arandr pavucontrol pamixer mpv wget rofi vim w3m ranger mediainfo poppler highlight tmux calcurse htop newsbeuter mpd mpc ncmpcpp network-manager-applet networkmanager imagemagick atool libcaca compton transset-df markdown mupdf evince rsync git youtube-dl youtube-viewer cups screenfetch scrot unzip unrar ntfs-3g offlineimap msmtp notmuch notmuch-mutt dosfstools fzf r pandoc || (echo "Error installing basic packages. Check your internet connection and pacman keyring." >> LARBS.log && error) fi for choice in $choices @@ -43,31 +43,31 @@ do case $choice in 1) blue Now installing LaTeX packages... - pacman --noconfirm --needed -S texlive-most texlive-lang biber + sudo pacman --noconfirm --needed -S texlive-most texlive-lang biber ;; 2) blue Now installing LibreOffice Suite... - pacman --noconfirm --needed -S libreoffice-fresh + sudo pacman --noconfirm --needed -S libreoffice-fresh ;; 3) blue Now installing GIMP... - pacman --noconfirm --needed -S gimp + sudo pacman --noconfirm --needed -S gimp ;; 4) blue Now installing Blender... - pacman --noconfirm --needed -S blender + sudo pacman --noconfirm --needed -S blender ;; 5) blue Now installing Emacs... - pacman --noconfirm --needed -S emacs + sudo pacman --noconfirm --needed -S emacs ;; 6) blue Now installing extra fonts... - pacman --noconfirm --needed -S noto-fonts-cjk noto-fonts-emoji + sudo pacman --noconfirm --needed -S noto-fonts-cjk noto-fonts-emoji ;; 7) blue Now installing transmission... - pacman --noconfirm --needed -S transmission-cli + sudo pacman --noconfirm --needed -S transmission-cli esac done @@ -76,11 +76,11 @@ 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 + sudo 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 + sudo pacman --noconfirm --needed -S firefox ;; esac done