Skip to content

Instantly share code, notes, and snippets.

@perseoq
Forked from aamnah/install-apps.sh
Created December 25, 2021 20:18
Show Gist options
  • Save perseoq/8621433045334f7acb954e2c8ae801ad to your computer and use it in GitHub Desktop.
Save perseoq/8621433045334f7acb954e2c8ae801ad to your computer and use it in GitHub Desktop.
Bash script to install packages [Git, s3cmd] on a new system. For Debian and Ubuntu. To run, copy the script to the server and run ``bash install-apps.sh``
#!/bin/bash/
#######################################
# Bash script to install apps on a new system (Ubuntu)
# Written by @AamnahAkram from http://aamnah.com
#######################################
## Update packages and Upgrade system
sudo apt-get update -y
## Git ##
echo '###Installing Git..'
sudo apt-get install git -y
# Git Configuration
echo '###Congigure Git..'
echo "Enter the Global Username for Git:";
read GITUSER;
git config --global user.name "${GITUSER}"
echo "Enter the Global Email for Git:";
read GITEMAIL;
git config --global user.email "${GITEMAIL}"
echo 'Git has been configured!'
git config --list
## s3cmd ##
echo '###Installing s3cmd..'
#Import S3tools signing key:
wget -O- -q http://s3tools.org/repo/deb-all/stable/s3tools.key | sudo apt-key add -
# Add the repo to sources.list:
sudo wget -O/etc/apt/sources.list.d/s3tools.list http://s3tools.org/repo/deb-all/stable/s3tools.list
# Refresh package cache and install the newest s3cmd:
sudo apt-get update && sudo apt-get install s3cmd
#s3cmd Configuration
echo '###Congigure s3cmd..'
sudo s3cmd --configure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment