Skip to content

Instantly share code, notes, and snippets.

@cesc1989
Last active November 17, 2024 20:58
Show Gist options
  • Save cesc1989/5f538428d143d8e5427f to your computer and use it in GitHub Desktop.
Save cesc1989/5f538428d143d8e5427f to your computer and use it in GitHub Desktop.
Get Linux distro in a ready-to-work state with this bash script
#!/bin/bash
# Update system
echo "Updating system and installing new packages"
sudo apt-get update
sudo apt-get upgrade
# Install dependencies and utilities
echo "Install utilities"
sudo apt-get -y install rar \
unrar \
zip \
unzip \
libpq-dev \
tree \
curl
# Install Git
echo "Installing git"
sudo apt-get update
sudo apt-get -y install git
# Install VLC player
echo "Installing VL Player"
sudo apt-get -y install vlc
# Install Sublime Text 4
echo "Installing Sublime Text 4"
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/sublimehq-archive.gpg > /dev/null
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get -y install apt-transport-https
sudo apt-get update
sudo apt-get -y install sublime-text
# Install chruby
echo "Installing chruby"
wget https://github.com/postmodern/chruby/releases/download/v0.3.9/chruby-0.3.9.tar.gz
tar -xzvf chruby-0.3.9.tar.gz
cd chruby-0.3.9/
sudo make install
# Install ruby-install
echo "Installing ruby-install"
wget https://github.com/postmodern/ruby-install/releases/download/v0.9.3/ruby-install-0.9.3.tar.gz
tar -xzvf ruby-install-0.9.3.tar.gz
cd ruby-install-0.9.3/
sudo make install
# Install NVM
echo "Installing NVM"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
# Install Redis
echo "Installing Redis"
sudo apt-get update
sudo apt-get install -y redis-server
# Install Image Magick
echo "Installing Image Magick"
git clone https://github.com/ImageMagick/ImageMagick.git ImageMagick
cd ImageMagick
./configure
make
sudo make install
sudo ldconfig /usr/local/lib
## Install Zellij
echo "Instalando Zellij"
wget https://github.com/zellij-org/zellij/releases/download/v0.41.1/zellij-x86_64-unknown-linux-musl.tar.gz
tar -xvf zellij*.tar.gz
chmod +x zellij
mv zellij ~/Zellij
echo "All done"
@cesc1989
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment