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
-
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 -)"