Last active
May 21, 2024 15:40
-
-
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
This file contains 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 | |
# 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 | |
# 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 | |
echo "All done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
DHH's gist https://gist.github.com/dhh/159b129f511f76db3ae8adb463f70d05