Skip to content

Instantly share code, notes, and snippets.

@MushuLeDragon
Last active January 24, 2022 09:47
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 Linux

Installer WSL2 pour Windows 10

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

# Confi Git
git config --global user.email "you@example.com"
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