Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- clear
- sleep 1
- echo -e "
- \e[1m####################################################
- #################### \e[5m\e[92mWelcome to\e[0m\e[1m ####################\e[0m
- \e[91mTyler's \e[36mArch Linux\e[0m \e[93mP\e[0m\e[91mrogram \e[0m\e[93mI\e[0m\e[91mnstallation Script\e[0m \e[36m\e[1mv8.1.1\e[0m
- (C) \e[93mspongeyperson\e[0m
- > Created: Feb 8th, 2017 ; 10am
- > \e[30m\e[42mUpdated: Jun 19th, 2017 ; 9am\e[0m
- \e[1m####################################################\e[0m"
- echo ""
- # Selection Menu
- PS3='
- Please Select an Option: '
- options=("Continue Program Installation" "Changelog" "Planned Features" "About this Script" "Install only iGPU Drivers" "Install iGPU Drivers + Bumblebee" "Quit")
- select opt in "${options[@]}"
- do
- case $opt in
- "Changelog")
- clear
- echo "Displaying Changelog:"
- echo ""
- echo ""
- echo "
- # ## >>V8.1.1 CHANGES<< ##
- #- Fixed Issues with incorrect syntax on selecting first option
- #- Updated Code
- # ## >>V8.1 CHANGES<< ##
- #- Moved Bumblebee & Graphics Installation to their own menu
- # ## >>V8 CHANGES<< ##
- #- Added Interactable Menu System
- #- Changed Welcome Screen - Added Colors, Reformatted Text
- #- Reformatted Entire Script to Accomidate Menu System
- #- Added End Script Chime - Only Works on PulseAudio... for now
- #- Added cava - Console Based Audio Visualizer
- #- Added fftw - Dependancy for cava
- #- Added ncurses - Dependancy for cava
- # ## >>V7 CHANGES<< ##
- #- Added Change Log
- #- Updated Yaourt Lines to include No Confirm & notified user
- #- Working on adding Automatic config file Generation
- #- Added Currently Working on Text to Signify what i was
- # last working on, in the Script
- #- Added neofetch
- #- Added sshfs
- #- Added audacity
- #- Added python
- #- Added python-pip - Dependancy for Speedtest-CLI
- #- Added speedtest-cli
- #- Added nodejs - Dependancy for npm
- #- Added npm
- #- Added lib32-mesa
- #- Added vulkan-intel"
- echo ""
- echo ""
- read -n 1 -s -p "Press any key to return to Main Menu..."
- echo""
- clear
- ;;
- "Planned Features")
- clear
- echo ""
- echo ""
- echo "
- ## Planned Features... ##
- #- Add proper menu return system
- #- Automatic Reconstruction of Customized .BashRC
- #- Replacement of Post Installation Script
- #- (Fix) Main Menu MOTD follows the rest of the Menus
- #- Alsa adeptation for Ending Chime
- #- More Coming Soon...
- "
- echo ""
- echo ""
- read -n 1 -s -p "Press any key to return to Main Menu..."
- echo""
- clear
- ;;
- "About this Script")
- clear
- echo "
- This Script was created to fufill the need of preinstalling a huge load of
- applications all at once. I, the creator of the script used to reinstall
- Operating Systems all the time and having to grab all the programs needed to
- make my system fully functional for my needs was a major pain. I am not
- very good at Bash Scripting, but i tried to make the script as simple as
- possible, and the script is meant to fufill my needs. If you have used this
- script and would like to modify it, I will allow modifications, but credit
- must be given to the person who created this script. I know the script
- might be messy, and/or probably not very hard to achieve for someone of
- great scripting knowledge, but i'd like to have my own hard work at least
- credited for spending hours doing this, even if it isn't very good.
- I appreciate you for using my script
- Thanks, Tyler"
- echo ""
- echo ""
- read -n 1 -s -p "Press any key to return to Main Menu..."
- echo""
- clear
- ;;
- "Continue Program Installation")
- clear
- echo "Script Continuing Normally..."
- echo ""
- echo ""
- # Update Pacman Repositories & Packages #
- echo -e "\e[38;5;226mUpdating Pacman Packages & Repositories...\033[0m"
- sudo pacman -Syy && sudo pacman -Syu
- sleep 2
- # Post Install Text File #
- # >>> Will be Replacing this section soon <<< #
- echo ''
- echo -e "\e[4mCopying Post Install Text File...\033[0m"
- echo -e "\e[1mFile Location: ~/Documents/post_install.txt\033[0m"
- printf '%s\n' 'Pacman Customizations:' 'In /etc/pacman.conf, under [options], add ILoveCandy. Then under Misc Options, Uncomment Color' '' '' >> ~/Documents/post_install.txt
- sleep 2
- # Yaourt No Prompts #
- echo ''
- echo -e "\e[96mRemoving Prompts from Yaourt...\033[0m"
- sudo printf '%s\n' 'BUILD_NOCONFIRM=1' 'EDITFILES=0' >> ~/.yaourtrc
- sleep 2
- # Install Programs #
- ## >>> CURRENTLY WORKING ON <<< ##
- echo ''
- echo -e "\e[38;5;82mInstalling Pacman Programs...\033[0m"
- sudo pacman -S geany thefuck filelight docky terminator firefox keepass obs-studio jack2-dbus pulseaudio-alsa pulseaudio-jack qemu virt-manager libvirt samba arandr gnome-disk-utility audacity nodejs python python-pip sshfs npm screenfetch fftw ncurses
- sleep 2
- echo -e "\e[95mInstalling Yaourt Programs...\033[0m"
- echo -e ""
- echo -e "\e[4m\e[1mPlease Note:\e[0m\e[1m Due to Yaourt's Annoying 'Ask about everything' nature,"
- echo -e "\e[1mI will be Installing the following Programs without Confirmation:\e[0m"
- echo -e ""
- echo "cadence"
- echo "ovmf-git"
- echo "google-chrome"
- echo "discord"
- echo "synergy-free"
- echo "grub-customizer"
- echo "teamviewer"
- echo "neofetch"
- echo "cava"
- echo -e ""
- read -n 1 -s -p "Press any key to continue..."
- echo -e ""
- yaourt -S --noconfirm cadence ovmf-git google-chrome discord synergy-free grub-customizer teamviewer neofetch cava
- sleep 2
- echo -e ""
- echo -e "Installing Speedtest-CLI"
- echo -e ""
- sudo pip install speedtest-cli
- sleep 2
- # Copying samba & bashrc Config #
- # WILL NOT WORK ON YOUR COMPUTER, PERSONAL COPIES ONLY
- #echo ''
- #echo -e "\e[93mPreparing Samba & bashrc Config File Copy...\033[0m"
- #echo -e "\e[5m\e[30m\e[101mWARNING: Make sure External is mounted as /run/media/tyler/EXTERNAL\033[0m"
- #echo ''
- #read -n 1 -s -p "Press any key to continue..."
- #echo ''
- #sudo rm -rf /etc/samba/smb.conf
- #sudo rm -rf ~/.bashrc
- #echo -e "\e[93mCopying Samba & bashrc Config File:\033[0m"
- #sudo cp /run/media/tyler/EXTERNAL/MAIN/Backups/Redstone\ Gaming\ Computer/Linux/Manual\ Backup/#Resetup\ Files/smb.conf /etc/samba/smb.conf
- #sudo cp /run/media/tyler/EXTERNAL/MAIN/Backups/Redstone\ Gaming\ Computer/Linux/Manual\ Backup/#Resetup\ Files/bashrc ~/.bashrc
- #source ~/.bashrc
- break
- ;;
- "Install iGPU Drivers + Bumblebee")
- # Install Graphics Drivers & Bumblebee #
- echo ''
- echo -e "\e[35mPreparing Graphics Drivers & Bumblebee Installation...\033[0m"
- read -n 1 -s -p "press ENTER to Continue, CTRL+C to cancel..."
- echo ''
- echo ''
- echo -e "\e[1;5m\e[38;5;1mNow Starting Graphics Drivers Installation:\033[0m"
- sudo pacman -S bumblebee mesa mesa-libgl lib32-mesa vulkan-intel xf86-video-intel nvidia nvidia-utils lib32-virtualgl lib32-nvidia-utils
- sleep 2
- echo -e "\e[39mRemoving Nvidia-Libgl & Installing Mesa-Libgl...\033[0m"
- sudo pacman -Rns lib32-nvidia-libgl
- sudo pacman -S lib32-mesa-libgl
- # Bumblebee Group & Services Setup #
- echo ''
- echo -e "\e[93mSetting up Bumblebee Group & Services\033[0m"
- sudo gpasswd -a tyler bumblebee
- sleep 2
- sudo systemctl enable bumblebeed.service
- sudo systemctl start bumblebeed.service
- echo ''
- echo ''
- echo ''
- break
- ;;
- "Install only iGPU Drivers")
- echo ''
- echo -e "\e[35mPreparing iGPU Drivers Installation...\033[0m"
- read -n 1 -s -p "press ENTER to Continue, CTRL+C to cancel..."
- echo ''
- echo ''
- echo -e "\e[1;5m\e[38;5;1mNow Starting Graphics Drivers Installation:\033[0m"
- sudo pacman -S mesa mesa-libgl lib32-mesa vulkan-intel xf86-video-intel
- break
- ;;
- "Quit")
- break
- ;;
- *) echo invalid option;;
- esac
- done
- # End Script #
- echo -e "\e[30m\e[42mEND SCRIPT :)\033[0m"
- paplay /usr/share/sounds/freedesktop/stereo/complete.oga
Advertisement
Add Comment
Please, Sign In to add comment