8/25/2023 0 Comments Ubuntu install tar xz![]() To set up user account with the CentOS distribution we just imported, first open PowerShell and boot into CentOS, using the command: wsl -d CentOS You can set up your own user account, but note that the set up process will vary slightly based on each different Linux distribution. Use the command wsl -l -v to check which distributions you have installed.įinally, use the command wsl -d CentOS to run your newly imported CentOS Linux distribution.Īdd WSL specific components like a default userīy default when using -import, you are always started as the root user. wsl -import CentOS E:\wslDistroStorage\CentOS. Use the command wsl -import to import the tar file. ![]() Open PowerShell and ensure that you have a folder created where you'd like the distribution to be stored. To import the CentOS distribution tar file into WSL: ![]() Once you have a tar file ready, you can import it using the command: wsl -import. This process exports the CentOS tar file from the Docker container so that we can now import it for use locally with WSL. Grab the CentOS container ID using grep and awk: dockerContainerID=$(docker container ls -a | grep -i centos | awk '')Įxport the container ID to a tar file on your mounted c-drive: docker export $dockerContainerID > /mnt/c/temp/centos.tar Run the CentOS container inside Docker: docker run -t centos bash ls / Start the Docker service: sudo service docker start Open the command line (Bash) for a Linux distribution that you've already installed from the Microsoft Store (Ubuntu in this example). You must have Docker Desktop for Windows installed with the WSL 2 engine enabled and integration checked See the Docker Desktop license agreement for updates on the terms of use.You must have WSL enabled with a Linux distribution installed running WSL 2.In this example, we'll use Docker inside of a WSL distribution to obtain the tar file for CentOS. The example below will show this process using the CentOS container. Find a Linux distribution container and export an instance as a tar file.You can find an example for Alpine in the "Mini Root Filesystem" section of the Alpine Linux downloads site. You can obtain a tar file in a variety of ways, two of which include: Obtain a tar file for the distributionįirst you'll need to obtain a tar file that contains all the Linux binaries for the distribution. This process can be applied to import any Linux distribution. This article shows how to import the Linux distribution, CentOS, for use with WSL by obtaining its tar file using a Docker container. You will probably also need to install the build-essential package to get a compiler and associated commands.You can use any Linux distribution inside of the Windows Subsystem for Linux (WSL), even if it is not available in the Microsoft Store, by importing it with a tar file. libogg & libvorbis if you want to read Ogg Vorbis files.ffmpeg, libmad, faad2 if you want to read MPEG 4 / DivX files ,.a52dec if you want to be able to decode the AC3 (i.e.libdvdplay if you want to have DVD menu navigation ,.libdvdcss if you want to be able to read encrypted DVDs ,.To compile vlc, you need at least the following libraries installed: Because you are installing as root, this is why you must know that the source of the file is trustworthy. This will compile the VLC source code, and then install it into your system. This will expand the contents of the file to a folder. This is not good practice unless you know the implications of installing software this way, and trust the source of the file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |