====== 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 [[https://support.surfshark.com/hc/en-us/articles/5067279648146-How-to-set-up-Surfshark-VPN-on-Linux#VPN-Settings|SurfShark]] * curl -f https://downloads.surfshark.com/linux/debian-install.sh --output surfshark-install.sh #gets the installation script * sh surfshark-install.sh * sudo apt-get update * sudo apt-get --only-upgrade install surfshark * 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 [[https://learn.microsoft.com/fr-fr/windows/wsl/tutorials/gui-apps|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 * wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb * 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 * sudo apt-get install -y make build-essential git libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev * curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash * nano ~/.bash_profile * export PATH="/home/san/.pyenv/bin:$PATH" * 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*'