Last active
October 13, 2021 19:35
-
-
Save dovab/db283fe6510da738337c616e159814d9 to your computer and use it in GitHub Desktop.
Setup WSL2 box
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 | |
echo "Installing PHP 8" | |
sudo apt install software-properties-common | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt update | |
sudo apt install -y php8.0 php8.0-curl php8.0-mysql php8.0-xml php8.0-zip | |
echo "Installing composer" | |
cd /tmp | |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
php -r "if (hash_file('sha384', 'composer-setup.php') === '906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" | |
php composer-setup.php | |
php -r "unlink('composer-setup.php');" | |
sudo mv composer.phar /usr/local/bin/composer | |
echo "Installing Symfony CLI" | |
wget https://get.symfony.com/cli/installer -O - | bash | |
sudo mv ~/.symfony/bin/symfony /usr/local/bin/symfony | |
echo "Installing NodeJS 14" | |
curl -sL https://deb.nodesource.com/setup_14.x | sudo bash - | |
sudo apt-get install -y nodejs | |
sudo npm install --global yarn | |
echo "All done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run
sudo wget https://gist.githubusercontent.com/dovab/db283fe6510da738337c616e159814d9/raw/0e39cc8539d9975c82ad814216d3ab5245cd9389/install -O - | bash
in a fresh WSL Distro of Ubuntu to install your favorite dev tools.