there’s little benefit installing applications with native Windows editions such as Firefox, VLC, or GIMP.some offer Linux features - such as file dialogs - that could confuse Windows users.not all graphical apps will work as expected.You can launch Linux apps from the Start menu, pin them to the task bar, and use features such as cut and paste across applications. WSL2 allows you to run graphical X11 and Wayland Linux applications directly on Windows. Presuming all has gone well, you can delete the backup file ( D:\backup\ubuntu.tar). Save ( Ctrl O) and exit ( Ctrl X), then restart the distro in a Powershell terminal with: wsl -terminate Here, is the username you defined during installation.įor other distros that aren’t the WSL2 default, define a user by logging on to the distro and creating/editing /etc/wsl.conf: touch /etc/wsl.confĪdd the following lines to the file: default = To revert to your own account, enter the following command: ubuntu config -default-user Verify the WSL distro has been successfully created by entering wsl -list and launching Ubuntu from the Start menu or Windows Terminal.Īt this point, Ubuntu will use root as the default user. Wsl -import Another D: \wsl \ D: \backup \ubuntu.tar For example: wsl -import Clone01 D: \wsl \ D: \backup \ubuntu.tar You can make any number of named clones from the same back-up. Wsl -import Ubuntu D: \wsl \ D: \backup \ubuntu.tar Import the backup into a new WSL2 distro at another location, such as D:\wsl: mkdir D: \wsl Unregister that distro to remove it from the C: drive: wsl -unregister UbuntuĮnter wsl -list to verify the distro has been removed. Wsl -export Ubuntu D: \backup \ubuntu.tar tar file - such as D:\backup\ubuntu.tar: mkdir D: \backup In a Windows Powershell terminal ( not the Ubuntu terminal), enter wsl -list to view your Linux distributions, then export one by name to a backup. The following instructions presume you’re moving the Ubuntu Linux distro to D:\wsl. Use the same image to create multiple Linux installations (which can be useful if you need different applications and setups for different projects - although Docker may be more practical) Move it to another drive to free up space on C:, or Linux disk images are installed on your C: drive. WINDOWS 11 INSTALL WINDOWS TERMINAL UPDATETo check for new updates run: sudo apt update The list of available updates is more than a week old. Usage of /: 1.6% of 250.98GB Users logged in: 0 System information as of Tue Aug 16 10:19: Linux will eventually be ready and your terminal will show content similar to: Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.10.102.1-microsoft-standard-WSL2 x86_64 ) WINDOWS 11 INSTALL WINDOWS TERMINAL PASSWORDThese are the credentials for Linux administration: they’re completely separate from your Windows username and password (although choosing the same ones may be practical). You’ll be prompted to enter a username and password. You’ll need to launch the Linux distro again to continue with the installation. WINDOWS 11 INSTALL WINDOWS TERMINAL DOWNLOADCopy the link into your browser then download and install the update. Note: you may see a message in the terminal about a kernel update. The installation process will complete the first time you run the WSL2 Linux OS. WINDOWS 11 INSTALL WINDOWS TERMINAL SOFTWAREThird-party terminal software such as Cmder, ConEmu, or Hyper can be used by creating profiles which launch %windir%\system32\bash.exe ~. Powershell - enter wsl or bash at the prompt.Both the Windows and macOS editions use Linux below the surface and the Windows edition of Docker Desktop requires WSL2.Ī new Linux ( Ubuntu) option/icon will now be available in: It’s another topic to learn and Docker itself runs natively on Linux. Run web applications in Docker containers. Sharing files between systems can be awkward. This requires considerable OS resources and reasonable IT knowledge. Run a Linux virtual machine (VM) using Hyper-V, VirtualBox, Parallels, WMware, or Vagrant. Switching between systems can be cumbersome. Use two PCs or dual boot on a single device. Some developers use Linux as their primary desktop OS, but that may not be viable if you require non-Linux software such as Microsoft or Adobe products. They’re often slower and you may encounter subtle differences which will not become apparent until you deploy. Some of these dependencies may be available on Windows and macOS, but installing and maintaining identical versions is difficult.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |