Skip to content

Instantly share code, notes, and snippets.

@MushuLeDragon
Last active September 24, 2024 05:13
Show Gist options
  • Save MushuLeDragon/3d351e46c0a456d703fbe8d34add2759 to your computer and use it in GitHub Desktop.
Save MushuLeDragon/3d351e46c0a456d703fbe8d34add2759 to your computer and use it in GitHub Desktop.
Install WSL2 Windows 10/11 > Linux

Installer WSL2 pour Windows 10/11 > Linux Ubuntu

Source : https://medium.com/@fred.gauthier.dev/web-development-environment-with-wsl-2-and-docker-for-symfony-5860704e127a

Ajouter une connexion au lecteur réseau pour la distribution

Ce PC > Connecter un lecteur réseau > Choisir le lecteur > Ajouter la distribution dans le champs Dossier : \\wsl$\ubuntu

Packages à installer la première fois

Config des alias linux : https://gist.github.com/MushuLeDragon/0d077949fc4f91b6b1e79690a64049ca

# Confi Git
git config --global user.email "[email protected]"
git config --global user.name "Your Name"

sudo apt update
sudo apt upgrade
sudo apt update

# Install packages
sudo apt install \
  net-tools \
  nodejs \
  npm \
  php-pear \
  php-xdebug \
  php7.4-cli \
  php7.4-common \
  php7.4-curl \
  php7.4-gd \
  php7.4-intl \
  php7.4-mbstring \
  php7.4-mysql \
  php7.4-opcache \
  php7.4-pdo \
  php7.4-xml \
  unzip

# Install Symfony
cd ~
sudo apt install ca-certificates
curl -sS https://get.symfony.com/cli/installer | bash
sudo mv /home/mushuledragon/.symfony/bin/symfony /usr/local/bin/symfony
echo "alias sc='symfony console'" >> ~/.bashrc # Ajout d'un alias pour Symfony

# Install Composer: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-composer-on-ubuntu-20-04-fr
cd ~
curl -sS https://getcomposer.org/installer | php -- --disable-tls
mv composer.phar /usr/local/bin/composer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment