apt-get update -y
wget -qO- https://astral.sh/uv/install.sh | sh
source $HOME/.local/bin/env
alias pip='uv pip' && source ~/.bashrc
uv python install 3.12
| Get-ChildItem -Directory -Force -Recurse -Filter ".git" -Depth 1 | ForEach-Object {$currentLocation = Get-Location; Set-Location -Path $_.Parent.FullName; Write-Host $_.Parent.FullName; git pull; Set-Location -Path $currentLocation} | |
| # make sure to run it on the folder that have all those repositories that needs to be updated |
| ls -R -d */.git | cut -d'.' -f1 | xargs -P10 -I{} git -C {} pull | |
| # make sure to run it on the folder that have all those repositories that needs to be updated |
| history -c && history -w && clear && cd ~ |
| # Without Hyper-V Enabled | |
| # Powershell (As Administrator) | |
| wsl --shutdown | |
| diskpart | |
| # Diskpart Compacting Operations | |
| select vdisk file="E:\LABS\DockerWSL\docker-desktop-data\ext4.vhdx" | |
| attach vdisk readonly | |
| compact vdisk | |
| detach vdisk |
| ###### WSL2 DEBIAN SETUP ##### | |
| # wsl --install Debian | |
| # wsluser | |
| # password | |
| echo cd ~ >> ~/.bashrc && source ~/.bashrc | |
| sudo nano /etc/wsl.conf | |
| ```wsl.conf | |
| [boot] |
apt-get update -y
wget -qO- https://astral.sh/uv/install.sh | sh
source $HOME/.local/bin/env
alias pip='uv pip' && source ~/.bashrc
uv python install 3.12
| # Disable Fast Startup in Windows (CRITICAL for read-write access & NTFS health) | |
| # In Windows: Control Panel -> Power Options -> "Choose what the power buttons do" | |
| # -> "Change settings that are currently unavailable" -> (UN)check "Turn on fast startup". | |
| # | |
| # If not doing that (i.e., if Fast Startup is LEFT ON), please restart Windows (not just shutdown), | |
| # because in contrary, Windows shutdown with Fast Startup ON is not "clean" | |
| # and possibly dangerous to use partition in this state on another machine. | |
| # TL;DR: if Fast Startup is ON, then before accessing drives in Linux for read-write, use Restart from Windows. | |
| # Restarting from Windows to Linux is a safe alternative to get a clean filesystem state. | |
| # If Fast Startup is OFF, then a normal "Shut down" is also fine. |
Various post-installation tasks for a Fedora 42 Workstation setup using GNOME 48, an Nvidia GPU, and Wayland session.
# Use lsblk to find Windows EFI partition, note that,
# this case it's /dev/nvme0n1p1
lsblk
sudo nano /etc/default/grub# it's typed on Powershell
wsl --install Debian --name debian --web-download --location "D:\WSL\debian" --no-launch
wsl -d debianEnter new username and password
# now it's inside WSL2 bashAfter installing Windows to a partition and then after the automatic reboot:
When the installation screen shows "Is this the right country or region?" press: Shift + F10
In the Command Prompt, type the following commands:
(change vboxuser to your username)