Skip to content

Instantly share code, notes, and snippets.

@jazio
Created December 24, 2019 17:04
Show Gist options
  • Save jazio/44eea19b42d45331bb35143ea1633c9e to your computer and use it in GitHub Desktop.
Save jazio/44eea19b42d45331bb35143ea1633c9e to your computer and use it in GitHub Desktop.
Install Goodies on Linux Mint/Ubuntu
#!/usr/bin/env bash
#############################################################
# Scope: Install goodies on linux mint.
#############################################################
# debug on/off.
# set -x
# Colors. 0 = Normal; 1 = Bold.
RED=$'\e[1;31m'
GREEN=$'\e[0;32m'
YELLOW=$'\e[0;33m'
BLUE=$'\e[0;34m'
MAGENTA=$'\e[0;35m'
CYAN=$'\e[0;36m'
NO_COLOR=$'\e[0m'
# Background
BG_WHITE=$'\e[47m' # White
# Home.
home_path=$(echo $HOME)
echo "$homepath"
sudo ufw enable
sed -i "s|GRUB_HIDDEN_TIMEOUT=Yes|GRUB_HIDDEN_TIMEOUT=|g" grub
sudo upgrade-grub
## declare an array variable
declare -a arr=("git"
"guake" "vim" "mc" "kazam"
"sublime-text"
# Utilities
"vlc" "filezilla" "solaar"
"inkscape" "gimp" "scribus"
)
## now loop through the above array
for i in "${arr[@]}"
do
echo "Installing $i"
apt-get install $i
# or do whatever with individual element of the array
done
# CONFIGURATION
# You can access them using echo "${arr[0]}", "${arr[1]}" also
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment