other:win10wsl
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
other:win10wsl [2022/08/31 11:12] – WSL 1 vs 2, and note about which terminals to use jypeter | other:win10wsl [2022/08/31 11:40] – Started moving 'backup' to the Advanced section jypeter | ||
---|---|---|---|
Line 551: | Line 551: | ||
en_US.UTF8 | en_US.UTF8 | ||
</ | </ | ||
+ | |||
+ | |||
==== Package management ==== | ==== Package management ==== | ||
Line 559: | Line 561: | ||
* Install the **synaptic** package manager: '' | * Install the **synaptic** package manager: '' | ||
* [[https:// | * [[https:// | ||
+ | |||
=== Useful commands === | === Useful commands === | ||
Line 565: | Line 568: | ||
* '' | * '' | ||
* '' | * '' | ||
+ | |||
=== Example === | === Example === | ||
Line 734: | Line 738: | ||
* [[https:// | * [[https:// | ||
+ | |||
+ | |||
===== Advanced configuration ===== | ===== Advanced configuration ===== | ||
Line 958: | Line 964: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | |||
==== Rebooting WSL ==== | ==== Rebooting WSL ==== | ||
Line 998: | Line 1005: | ||
* <wrap hi> | * <wrap hi> | ||
- | * <wrap hi>The **full** Linux/ | ||
- | * Open a **Windows terminal** (preferably a // | ||
- | * Determine the name of the current Linux installation used in WSL (and see if it is running, and using //WSL 1// or //WSL 2//) | ||
- | * < | ||
- | Distributions du sous-système Windows pour Linux : | ||
- | Ubuntu (par défaut) | ||
- | > wsl --list --verbose | + | |
+ | ==== Restoring a WSL backup ==== | ||
+ | |||
+ | FIXME Read [[https:// | ||
+ | |||
+ | FIXME Check if [[https:// | ||
+ | |||
+ | This assumes that you have followed the steps above to create a full backup of your Linux distribution in a '' | ||
+ | * '' | ||
+ | * Note: found a page mentioning that you should be in a terminal with admin rights when using '' | ||
+ | * Can we use the same ''< | ||
+ | * If we use a new distribution name, it will probably not appear anymore in the Microsoft Store and will not be updated. Is this a problem? | ||
+ | * It seems we can use ''< | ||
+ | * Can we install out of the current user's Windows folder? | ||
+ | * Can we install out of '' | ||
+ | * Can we restore (//clone//) a backed up Linux distribution on another Windows 10 computer for another user? | ||
+ | * if the default user (and its password) has to be changed, you probably have to follow the steps to [[https:// | ||
+ | |||
+ | |||
+ | ===== Advanced usage ===== | ||
+ | |||
+ | |||
+ | ==== Creating a backup of a Linux installation ==== | ||
+ | |||
+ | You can use '' | ||
+ | * used later for restoring the full installation | ||
+ | * used for relocating the full installation from '' | ||
+ | |||
+ | |||
+ | * Determine the name of the current Linux installation used in WSL (and see if it is running, and using //WSL 1// or //WSL 2//) | ||
+ | * < | ||
NAME STATE | NAME STATE | ||
* Ubuntu | * Ubuntu | ||
- | | + | |
- | * < | + | * < |
- | NAME STATE | + | |
- | * Ubuntu | + | |
- | + | ||
- | > wsl --shutdown | + | |
> wsl -l -v | > wsl -l -v | ||
NAME STATE | NAME STATE | ||
- | * Ubuntu | + | * Ubuntu |
- | * Export the current | + | * Export the specified |
- | * FIXME '' | + | * You should export to a directory or external disk where you have //enough// space |
+ | * You should use a detailed enough file name for the tar file | ||
+ | | ||
* 1.4 Gb | * 1.4 Gb | ||
- | | + | |
* You can optionally open a new terminal (this will start again WSL+Ubuntu) to get some information about the created file (size and number of saved files/ | * You can optionally open a new terminal (this will start again WSL+Ubuntu) to get some information about the created file (size and number of saved files/ | ||
* < | * < | ||
Line 1041: | Line 1071: | ||
1.8G Feb 24 14:06 < | 1.8G Feb 24 14:06 < | ||
</ | </ | ||
- | |||
- | ==== Restoring a WSL backup ==== | ||
- | |||
- | FIXME Read [[https:// | ||
- | |||
- | FIXME Check if [[https:// | ||
- | |||
- | This assumes that you have followed the steps above to create a full backup of your Linux distribution in a '' | ||
- | * '' | ||
- | * Note: found a page mentioning that you should be in a terminal with admin rights when using '' | ||
- | * Can we use the same ''< | ||
- | * If we use a new distribution name, it will probably not appear anymore in the Microsoft Store and will not be updated. Is this a problem? | ||
- | * It seems we can use ''< | ||
- | * Can we install out of the current user's Windows folder? | ||
- | * Can we install out of '' | ||
- | * Can we restore (//clone//) a backed up Linux distribution on another Windows 10 computer for another user? | ||
- | * if the default user (and its password) has to be changed, you probably have to follow the steps to [[https:// | ||
- | |||
- | |||
- | ===== Advanced usage ===== | ||
- | |||
- | ==== Creating a backup of a Linux installation ==== | ||
- | |||
==== Restoring or relocating a Linux installation ==== | ==== Restoring or relocating a Linux installation ==== |
other/win10wsl.txt · Last modified: 2023/12/06 14:24 by jypeter