Last active
November 26, 2024 12:36
-
-
Save wallysoncarvalho/71f6e63373c5f0e0eeae730707b69ed8 to your computer and use it in GitHub Desktop.
Debian software installations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# NEEDS to run `chmod +x intall_apps.sh` first | |
# Update package list and install dependencies | |
sudo apt update | |
# Install SDKMAN! | |
echo "Installing SDKMAN!" | |
curl -s "https://get.sdkman.io" | bash | |
# Load SDKMAN! and check installation | |
source "$HOME/.sdkman/bin/sdkman-init.sh" | |
sdk version | |
echo "\n\n" | |
# Install Gradle using SDKMAN! | |
echo "Installing Gradle using SDKMAN!" | |
sdk install gradle | |
echo "Gradle installation complete." | |
echo "\n\n" | |
# Install Git | |
echo "Installing Git..." | |
sudo apt install -y git | |
echo "\n\n" | |
# Install Visual Studio Code | |
echo "Installing Visual Studio Code..." | |
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg | |
sudo install -o root -g root -m 644 packages.microsoft.gpg /usr/share/keyrings/ | |
sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list' | |
sudo apt update | |
sudo apt install -y code | |
echo "\n\n" | |
# Install IntelliJ IDEA Community Edition | |
echo "Installing IntelliJ IDEA Community Edition..." | |
sudo snap install intellij-idea-community --classic | |
echo "\n\n" | |
# Install Postman | |
echo "Installing Postman..." | |
sudo snap install postman | |
echo "\n\n" | |
# Install Slack | |
echo "Installing Slack..." | |
sudo snap install slack --classic | |
echo "\n\n" | |
# Install Zoom | |
echo "Installing Zoom..." | |
wget https://zoom.us/client/latest/zoom_amd64.deb -O /tmp/zoom_amd64.deb | |
sudo apt install -y /tmp/zoom_amd64.deb | |
rm -f /tmp/zoom_amd64.deb | |
echo "\n\n" | |
# Install Spotify | |
echo "Installing Spotify..." | |
sudo snap install spotify | |
echo "\n\n" | |
# Install DBeaver Community Edition | |
echo "Installing DBeaver Community Edition..." | |
sudo snap install dbeaver-ce | |
echo "\n\n" | |
# Install FortiClient VPN | |
echo "Installing FortiClient VPN..." | |
wget https://repo.fortinet.com/repo/7.0/ubuntu/./forticlient_7.0.7.0246_amd64.deb -O /tmp/forticlient.deb | |
sudo apt install -y /tmp/forticlient.deb | |
rm -f /tmp/forticlient.deb | |
echo "\n\n" | |
# Install Docker | |
echo "Installing Docker..." | |
sudo apt-get remove -y docker docker-engine docker.io containerd runc # Remove any existing Docker installations | |
sudo apt-get update | |
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo apt-get update | |
sudo apt-get install -y docker-ce docker-ce-cli containerd.io | |
# Add current user to the Docker group to avoid needing `sudo` for Docker commands | |
sudo usermod -aG docker $USER | |
echo "\n\n" | |
echo "Installing FlameShot" | |
sudo apt install flameshot | |
echo "\n\n" | |
# Install Zsh and Oh My Zsh | |
echo "Installing Zsh and Oh My Zsh..." | |
sudo apt install -y zsh curl git | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended | |
# Set Zsh as the default shell | |
chsh -s $(which zsh) | |
# Install Oh My Zsh Plugins | |
echo "Installing Oh My Zsh plugins..." | |
ZSH_CUSTOM="${HOME}/.oh-my-zsh/custom" | |
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM}/plugins/zsh-autosuggestions | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM}/plugins/zsh-syntax-highlighting | |
git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git ${ZSH_CUSTOM}/plugins/fast-syntax-highlighting | |
git clone https://github.com/marlonrichert/zsh-autocomplete.git ${ZSH_CUSTOM}/plugins/zsh-autocomplete | |
# Update the .zshrc file with the desired configuration | |
echo "Configuring Zsh with plugins and theme..." | |
sed -i 's/plugins=(git)/plugins=(git zsh-autosuggestions zsh-syntax-highlighting fast-syntax-highlighting zsh-autocomplete)/' ~/.zshrc | |
sed -i 's/ZSH_THEME=".*"/ZSH_THEME="robbyrussell"/' ~/.zshrc | |
# Source .zshrc to apply changes | |
zsh | |
source ~/.zshrc | |
echo "\n\n" | |
# Cleanup | |
rm -f packages.microsoft.gpg | |
echo "Installation of all applications is complete." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment