Linux sur windows: wsl

Lancer une fenêtre power shell.

https://learn.microsoft.com/fr-fr/windows/wsl/install

Les commandes utiles:

  • wsl –install
  • wsl.exe –list –online
  • wsl.exe –install Ubuntu-24.04
    • Créer un user (sa.)
    • Mdp: arg
  • wsl.exe -d Ubuntu-24.04
  • sudo ls
  • ls /mnt/c/Users/san
  • cd /home/san* sudo apt update && sudo apt upgrade -y
  • sudo apt install ffmpeg -y
  • ffmpeg -version
  • sudo apt install python3-pip -y
  • pip install -r requirements.txt
  • python3 toto.py
  • sudo apt install python3.12-venv -y
  • python3 -m venv my-venv
  • my-venv/bin/pip install -r requirements.txt
  • pip install -r requirements.txt to install the requirements in the current environment
  • source my-venv/bin/activate to enter the virtual environment

Installer pyenv: https://github.com/pyenv/pyenv#automatic-installer

  • curl -fsSL https://pyenv.run | bash
  • sudo apt install libedit-dev -y
  • sudo apt-get install libbz2-dev -y
  • sudo apt-get install libffi-dev -y
  • sudo apt install libreadline-dev -y
  • sudo apt-get install libssl-dev -y
  • sudo apt install libsqlite3-dev -y
  • sudo apt-get install python3-tk -y
  • sudo apt-get install lzma -y
  • sudo apt-get install python3-full -y
  • pyenv install 3.10
  • pyenv local 3.10
  • export PATH=$PATH:~/.pyenv/bin
  • export PATH=$PATH:~/.pyenv/versions/3.10.19/bin

SurfShark

DHCPD

  • sudo apt-get install isc-dhcp-server
  • sudo nano /etc/default/isc-dhcp-server
  • sudo nano /etc/dhcp/dhcpd.conf
  • sudo service isc-dhcp-server restart
  • sudo netstat -uap

Applications graphiques

  • wsl –install
  • wsl –update
  • wsl –shutdown
  • sudo apt update -y
  • echo éditeur de texte
  • sudo apt install gnome-text-editor -y
  • gnome-text-editor ~/.bashrc
  • sudo apt install gimp -y
  • gimp
  • sudo apt install nautilus -y
  • nautilus
  • sudo apt install vlc -y
  • vlc
  • sudo apt install x11-apps -y
  • xcalc
  • cd /tmp
  • sudo apt install -f ./google-chrome-stable_current_amd64.deb
  • google-chrome
  • sudo apt install firefox
  • firefox

VirtualBox mint: Cliquez sur Périphériques > Insérer l’image CD des Additions invité. L’ISO des additions invité est maintenant monté sur le système.

  • cd /media/[Utilisateur]/VBOX_GAs_xxx/
  • sudo ./VBoxLinuxAdditions.run
  • sudo gpasswd -a san vboxsf

eval "$(pyenv init -)"

eval "$(pyenv virtualenv-init -)"

  • source ~/.bash_profile
  • pyenv install -l
  • pyenv install 3.10.19
  • /home/san/.pyenv/versions/3.10.19/bin/python3.10 -m pip install –upgrade pip
  • pip3 install PyQt6
  • export QT_DEBUG_PLUGINS=1
  • sudo apt-get install libxcb-xinerama0-dev
  • sudo apt-get install -qq libglu1-mesa-dev libx11-xcb-dev '^libxcb*'
M:/SanDiegoWWW/www/dokuwiki/data/pages/sanlinuxwsl.txt · Dernière modification: 2025/12/07 19:17 par admin
 
Sauf mention contraire, le contenu de ce wiki est placé sous la licence suivante : CC Attribution-Noncommercial 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki