I spent hours trying to get the VirtualBox to work on my Windows PC, and I kept running into the same error over and over again. The virtual machine would not run. So I decided to give WSL a try, and found this excellent video. Thank you for the detailed guide and help. Now I can continue on my TOP journey. May good things find you. 🙏🏽🙏🏽💛💛🙏🏽🙏🏽
Just to add to this, the error message you got in the beginning. It's because you didn't enable "Windows Subsystem for Linux" in your control panel before installing WSL on your command line. To do that, Go to your control panel on windows and search for "Turn Windows Features on or off", scroll all the way down and enable "Windows Subsystem for Linux". I use a windows PC and still got the same error you got when installing, and immediately I enabled WSL it worked. Thank you for this video sir, you're a legend 🙏🏻
Thank you! I started Odin and set up VirtualBox, set everything up and got to the HTML section but was so annoyed with how slow it was, then tried VMWare which was slightly better but still annoying. WSL seems to be working much better so far and thank you for throwing this tutorial up as it is great to be able to use Windows natively as this is so much faster.
Many thanks, Tony. This came at the right time. I spent several months trying to install WSL on windows when it was originally released. It was a pain in the neck. So this video came spot on and especially filling a gap in the ODIN project for window users.
I took an unstructured data modelling course in graduate school where we had to use Ubuntu and it was the most painful/ boring experience I could remember. Decided that this year I will brush up on my programming and dive into Web Dev/Game dev. Thank you for making this topic much more bearable and interesting!
Just wanted to show my appreciation on the work that you are doing here. Really great video. Like others have mentioned, I believe some would be interested with you going through the TOP curriculum.
Thanks for the video Tony, currently a high school senior who will be a Computer Engineering major next fall semester. I've been trying to get a headstart on TOP and was stuck on how to download the virtual box since I'm on windows 11 but this video helped a lot.
Thanks, Mike. I think there was some compatibility issues with Windows 11 as a host for VirtualBox (that may have been fixed now). There is the Hyper-V option as well if you want to do the full graphical Linux install. Windows 11 also supports running graphical Linux apps fairly easily with WSL2. You can check that in the official Microsoft doco. Good luck with your Comp Eng major.
Windows keep losing after I installed WSL, apparently it is quiet a common problem due to remote desktop. I tried all the suggested solutions online but non worked. Might try install WSL1 instead. My PC is too old to have VMs install and losing resources.
Hello, i am a windows user, is it neccessarily the linux environment for completing odin project? Or we can deal for our assignments in windows ?? Really good job btw, very useful video in general! i didnt know this existed!
Hi, thanks for the comment. If you know what you're doing, then it is absolutely possible to complete the assignments using apps on Windows... after all, it's just about learning how to develop stuff for the web. If you know how to install and config stuff on Windows and would consider yourself a "power user" then it should be no problem. TOP only recommends using a UNIX-flavoured environment because they believe that to provide the best workflow (and I agree). They also don't want to have to support multiple different types of installations. If you do use the Windows native apps, you'll be on your own if you run into difficulties. However, give it a go if you feel confident. Here's an article (2016) by one of TOP Team on this subject: medium.com/@codyloyd/why-cant-i-use-windows-for-the-odin-project-bf20a4bb135f
@@tonyjohnson5521 alright, i decided to go with full on Linux for TOP, as I never used , it should be a good chance to acquire new skills. I am using a virtual machine box and installed xubuntu there to work , so far doing good ! Thanks a lot , have a good day sir.
I successfully completed me installations today - just a.couple of minor issues I was able to Google solutions for - love the way Linux integrates with windows - thank you again!
Great. I agree... I think it's good to have Linux workflow opportunities more seamlessly integrated. You should also check Windows Terminal if you haven't already - docs.microsoft.com/en-us/windows/terminal/install
The error reports a "time out" issue. You're best to Google around for info about this. It could be related to network connectivity, key server congestion, or other delaying factors. Sorry, there's nothing specific I could really suggest here.
Hi Tony, Thanks for all the tips here, I just have one question about the Ubuntu installation, can I change my entire WSL distro from C:/... ? My C: is almost full now and I want to change everything installed using another partition. And I changed my default user using this in the PowerShell "Ubuntu config --default-user " (Using the user that we create when we 1st opened Ubuntu), and now when I open the Ubuntu it only shows me "$". Is that normal? Sorry about those simple questions, I'm a complete noob atm on Linux and I want to know why some things work in this or that way, not only use the tool and that's it. Curiosity is always ON. (Another thing now using my user, is that colors for example when we create a folder and type "ls" are not colored in the terminal (Folder name is not "blue" anymore), I need to install something or import something to my terminal to show the information like the root default? Thanks for your attention.
I did something here with my WSL distro installation but I don't know if this is the correct way to, after reading a lot of stuff on forums, google I found one guide like this > We need to create the folder in the partition we want to install, for example D:/WSL, than inside this folder on PowerShell we type this, "wsl --list --all" to now what distros are installed, then "wsl --export Ubuntu ubuntu.tar", than following the steps the next one is "wsl --unregister Ubuntu". So After the registry cancellation, we need to type this "wsl --import Ubuntu Ubuntu ubuntu.tar", and finally "wsl -d Ubuntu". Now I see inside my other partition/WSL/Ubuntu folder a single file name with the name "ext4". The question is that "ext4" the "main directory" of my WSL Ubuntu distro now? Even opening my Ubuntu through the Windows APPs. Or I need to open PS, go to the D:/WSL/Ubuntu folder and type "wsl -d Ubuntu"? Thanks again
Hey Drak, thanks for watching. I'm glad you're experimenting but doing some advanced stuff like installing/moving WSL distros around might leave your Ubuntu system in a broken state. If you follow some of the online tutorials through carefully it will probably be fine. I can't comment (or recommend) too much about moving your Ubuntu to a different partition because I haven't done that. I recreated setting the --default-user to the user first created and it does just show the $ after the prompt. If you look carefully, the complete prompt should be: user@machine:~$ However, my terminal colours remained as they should so I do not know why yours would have changed. At this point, terminal types and colours are outside the scope of WSL and are part of the configurations for your linux user. I suggest that if the colours are an issue for you then you can research the subject "linux terminal colors" and that should be a good start ;)
Great walk-thru, thank you so much! Process worked like a breeze and I'm relieved to have this option instead of using Virtualbox for TOP. I also am stunned to see the integration between WSL and Windows because I thought they would be isolated one to another; so this is also far superior to partitioning Windows to install Linux.
Thanks for your comments, William. IMO it's just going to get better especially with the integrations for WSL2 in Win11. This link may be of interest to you: learn.microsoft.com/en-us/windows/wsl/tutorials/gui-apps This will open up a whole new frontier of workflow possibilities. Running Linux GUI apps on WSL2 with Win11 seems to be very integrated, but it's also available with later versions of Win10 with a bit of extra config. There's a discussion and some pointers about this in another comment thread for this video.
Is it possible to run GUI APPs using WSL on Windows 10? I saw a video where the guy open gedit or gimp and extend the program in Windows. I read something and this is only possible in Windows 11, but Its possible to set up this on a Windows 10 machine? (I tried Windows 11 but my computer is not ready for that system, no driver support atm, so I had to come back to Windows 10). If it is possible can you show me how? Recommend me an article, video, or something. I saw some people using Xming but I want to know if It's possible to run "natively" like in Windows 11. Everything here is up to date, WSL and Ubuntu. Thanks for your attention.
Yes, it's possible. WSL2 and Win11 is the easiest option: docs.microsoft.com/en-us/windows/wsl/tutorials/gui-apps For WSL1 and Win10 the setup is a *lot* more complicated and advanced. You can search for this information, and here is an example to see if it is something that you want to attempt: techcommunity.microsoft.com/t5/windows-dev-appconsult/running-wsl-gui-apps-on-windows-10/ba-p/1493242 This is just a quick example I grabbed from Google. There may be better information and guides if you search for them.
@@tonyjohnson5521 I don´t know why we can´t run natively GUI APPs using Windows 10 anymore (I'm using Windows 10 (21H2 - 19044.1889), but now I found a solution with an application on the MS Store. The application name is GWSL and runs as an xServer, very simple to use for new users like me (Just install it and click on GWSL on system tray > GWSL Distro Tools then Auto-Export Display/Audio, restart Ubuntu or any other Distro installed and that's it) Maybe if someone reaches your video here and wants to use WSLg like me on Windows 10, this can help. 😁
Thanks for watching. Without much context, it is difficult to pinpoint too precisely but "command not found" may indicate a path issue. My recommendation is to search for something like "WSL path to windows not found" and see if any of the resources there can help.
Hi Isabella. If you just wish to uninstall a Linux distribution but keep the underlying WSL infrastructure so that you can still install and use other distributions, the command is "wsl --unregister distroName" where distroName is the name of the Linux distribution you want to remove (probably Ubuntu if you have just followed my video). If you wish to disable the entire WSL system, then you are best to search for "windows uninstall wsl" and follow any of the guides that you find depending on your particular versions of Windows and WSL.
WSL works on both Win 10 and 11. However, there is better support for running Linux GUI apps as part of an integrated Windows desktop using Win11 and WSL2. This may be useful for you: docs.microsoft.com/en-us/windows/wsl/tutorials/gui-apps
I spent hours trying to get the VirtualBox to work on my Windows PC, and I kept running into the same error over and over again. The virtual machine would not run.
So I decided to give WSL a try, and found this excellent video. Thank you for the detailed guide and help. Now I can continue on my TOP journey.
May good things find you. 🙏🏽🙏🏽💛💛🙏🏽🙏🏽
Thanks for watching... enjoy the TOP journey
Just to add to this, the error message you got in the beginning. It's because you didn't enable "Windows Subsystem for Linux" in your control panel before installing WSL on your command line. To do that, Go to your control panel on windows and search for "Turn Windows Features on or off", scroll all the way down and enable "Windows Subsystem for Linux". I use a windows PC and still got the same error you got when installing, and immediately I enabled WSL it worked. Thank you for this video sir, you're a legend 🙏🏻
Thanks a lot for that. It helped but I had to check this option too "windows hypervisor platform" also before I got the issue solved.
Thank you! I started Odin and set up VirtualBox, set everything up and got to the HTML section but was so annoyed with how slow it was, then tried VMWare which was slightly better but still annoying. WSL seems to be working much better so far and thank you for throwing this tutorial up as it is great to be able to use Windows natively as this is so much faster.
We are starting at the same time
Many thanks, Tony. This came at the right time. I spent several months trying to install WSL on windows when it was originally released. It was a pain in the neck. So this video came spot on and especially filling a gap in the ODIN project for window users.
Thank you, Ruth. I'm glad it was useful for you.
You make a great teacher, sir! Few remain these days
I took an unstructured data modelling course in graduate school where we had to use Ubuntu and it was the most painful/ boring experience I could remember. Decided that this year I will brush up on my programming and dive into Web Dev/Game dev. Thank you for making this topic much more bearable and interesting!
Thanks, Stef. Good luck with the brushing up.
Just wanted to show my appreciation on the work that you are doing here. Really great video. Like others have mentioned, I believe some would be interested with you going through the TOP curriculum.
Thanks @Codejkc. I appreciate your comments.
Thank you so much for this tutorial. It was structured very well and straight forwards!
Thanks for your comment, Sheldon.
This is great help Tony. Many thanks for this. It would be awesome if you could go through more of the oden project curriculum.
Thank you, I'm very glad it was helpful. I'm considering to do some more TOP subjects.
Thanks for the help with WSL, appreciate you!
Thank you for watching
Thanks for the video Tony, currently a high school senior who will be a Computer Engineering major next fall semester. I've been trying to get a headstart on TOP and was stuck on how to download the virtual box since I'm on windows 11 but this video helped a lot.
Thanks, Mike. I think there was some compatibility issues with Windows 11 as a host for VirtualBox (that may have been fixed now). There is the Hyper-V option as well if you want to do the full graphical Linux install. Windows 11 also supports running graphical Linux apps fairly easily with WSL2. You can check that in the official Microsoft doco. Good luck with your Comp Eng major.
Thank you! I am a CS student and could not for life of me find a video that explained the setup process this clearly.
Thanks, Chance. That's great to hear. Good luck with your CS studies.
Thank you so much. Appreciate the the pace at which you explained everything. Looking forward to more videos!
You're welcome, Ripon. I'm glad it was useful.
I enjoyed your video, and would encourage you to make more. Clear, concise and easily followed
Thank you, I appreciate your comments. I do have some more planned.
Great explanation with all the details needed and works like a charm. Thank you so much.
Thank you, I appreciate your feedback. Good luck with TOP.
Thanks Tony. Appreciate your help💯.
Thank you and good luck on your TOP journey.
Great video! Thanks for the clear and in-depth explanation on setting everything up!
Thank you, and I'm glad it was helpful.
Just a little update. Now the TOP supports WSL!
Excellent! Thanks for that update. It was only a matter of time.
Thank you so much for this tutorial
It's so clear and easy to follow.
Thank you, @cinnamunbun
Can anyone recently tried it out i am getting problem
Thank you so much Tony, your a life saver.
Thanks Silvo. Good luck with The Odin Project.
Thank you so much. Helped me alot!
You're welcome.
Excelent! Im doing the oding project course with wsl. Suscribed.
Thanks, Leonardo. Good luck with the course.
thank you so much for such an easy to follow along video I just subscribed
Hey Josh. Thanks for subbing, and glad you liked the content.
@@tonyjohnson5521 Question will I be able to complete the entire Odin course using this method ?
Thanks Tony, this has been infinitely helpful.
Thanks for watching, Lawrene. I'm very glad it was useful.
Windows keep losing after I installed WSL, apparently it is quiet a common problem due to remote desktop. I tried all the suggested solutions online but non worked. Might try install WSL1 instead. My PC is too old to have VMs install and losing resources.
Hello, i am a windows user, is it neccessarily the linux environment for completing odin project? Or we can deal for our assignments in windows ?? Really good job btw, very useful video in general! i didnt know this existed!
Hi, thanks for the comment. If you know what you're doing, then it is absolutely possible to complete the assignments using apps on Windows... after all, it's just about learning how to develop stuff for the web. If you know how to install and config stuff on Windows and would consider yourself a "power user" then it should be no problem. TOP only recommends using a UNIX-flavoured environment because they believe that to provide the best workflow (and I agree). They also don't want to have to support multiple different types of installations. If you do use the Windows native apps, you'll be on your own if you run into difficulties. However, give it a go if you feel confident. Here's an article (2016) by one of TOP Team on this subject: medium.com/@codyloyd/why-cant-i-use-windows-for-the-odin-project-bf20a4bb135f
@@tonyjohnson5521 alright, i decided to go with full on Linux for TOP, as I never used , it should be a good chance to acquire new skills. I am using a virtual machine box and installed xubuntu there to work , so far doing good ! Thanks a lot , have a good day sir.
@@youtubejproasters1224 Excellent! Can never have too many skills.
Thanks a lot. you deserve more subs
Thanks for your comment and I'm glad it helped.
That's a very helpfull and well made video. Thank you a lot ;)
Thank you!!!
You're welcome!
thank you Mr. Johnson 🙏🙏
thankyou so much
You're welcome. Thanks for watching.
Thanks for the video, I'm just starting out and this seems like the best option - hopefully it will work with windows 10
Thanks, Chris. Shouldn't be any issues with Windows 10.
I successfully completed me installations today - just a.couple of minor issues I was able to Google solutions for - love the way Linux integrates with windows - thank you again!
Great. I agree... I think it's good to have Linux workflow opportunities more seamlessly integrated. You should also check Windows Terminal if you haven't already - docs.microsoft.com/en-us/windows/terminal/install
Hey Tony I'm can't able to install git it showing error: retrieving gpg key time out. What to do
The error reports a "time out" issue. You're best to Google around for info about this. It could be related to network connectivity, key server congestion, or other delaying factors. Sorry, there's nothing specific I could really suggest here.
Virtual box is a pain in the ass. I'm going to give this a try.
It's a different way of thinking. Good luck and hopefully it can work for you.
@@tonyjohnson5521 thanks
@PlayStation Japan hell yeah so far it did. More smooth than virtual box.
Hi Tony, Thanks for all the tips here, I just have one question about the Ubuntu installation, can I change my entire WSL distro from C:/... ? My C: is almost full now and I want to change everything installed using another partition. And I changed my default user using this in the PowerShell "Ubuntu config --default-user " (Using the user that we create when we 1st opened Ubuntu), and now when I open the Ubuntu it only shows me "$". Is that normal? Sorry about those simple questions, I'm a complete noob atm on Linux and I want to know why some things work in this or that way, not only use the tool and that's it. Curiosity is always ON. (Another thing now using my user, is that colors for example when we create a folder and type "ls" are not colored in the terminal (Folder name is not "blue" anymore), I need to install something or import something to my terminal to show the information like the root default? Thanks for your attention.
I did something here with my WSL distro installation but I don't know if this is the correct way to, after reading a lot of stuff on forums, google I found one guide like this > We need to create the folder in the partition we want to install, for example D:/WSL, than inside this folder on PowerShell we type this, "wsl --list --all" to now what distros are installed, then "wsl --export Ubuntu ubuntu.tar", than following the steps the next one is "wsl --unregister Ubuntu". So After the registry cancellation, we need to type this "wsl --import Ubuntu Ubuntu ubuntu.tar", and finally "wsl -d Ubuntu". Now I see inside my other partition/WSL/Ubuntu folder a single file name with the name "ext4". The question is that "ext4" the "main directory" of my WSL Ubuntu distro now? Even opening my Ubuntu through the Windows APPs. Or I need to open PS, go to the D:/WSL/Ubuntu folder and type "wsl -d Ubuntu"? Thanks again
Hey Drak, thanks for watching. I'm glad you're experimenting but doing some advanced stuff like installing/moving WSL distros around might leave your Ubuntu system in a broken state. If you follow some of the online tutorials through carefully it will probably be fine. I can't comment (or recommend) too much about moving your Ubuntu to a different partition because I haven't done that.
I recreated setting the --default-user to the user first created and it does just show the $ after the prompt. If you look carefully, the complete prompt should be: user@machine:~$
However, my terminal colours remained as they should so I do not know why yours would have changed. At this point, terminal types and colours are outside the scope of WSL and are part of the configurations for your linux user. I suggest that if the colours are an issue for you then you can research the subject "linux terminal colors" and that should be a good start ;)
Great walk-thru, thank you so much! Process worked like a breeze and I'm relieved to have this option instead of using Virtualbox for TOP. I also am stunned to see the integration between WSL and Windows because I thought they would be isolated one to another; so this is also far superior to partitioning Windows to install Linux.
Thanks for your comments, William. IMO it's just going to get better especially with the integrations for WSL2 in Win11. This link may be of interest to you: learn.microsoft.com/en-us/windows/wsl/tutorials/gui-apps This will open up a whole new frontier of workflow possibilities. Running Linux GUI apps on WSL2 with Win11 seems to be very integrated, but it's also available with later versions of Win10 with a bit of extra config. There's a discussion and some pointers about this in another comment thread for this video.
Is it possible to run GUI APPs using WSL on Windows 10? I saw a video where the guy open gedit or gimp and extend the program in Windows. I read something and this is only possible in Windows 11, but Its possible to set up this on a Windows 10 machine? (I tried Windows 11 but my computer is not ready for that system, no driver support atm, so I had to come back to Windows 10). If it is possible can you show me how? Recommend me an article, video, or something. I saw some people using Xming but I want to know if It's possible to run "natively" like in Windows 11. Everything here is up to date, WSL and Ubuntu. Thanks for your attention.
Yes, it's possible. WSL2 and Win11 is the easiest option: docs.microsoft.com/en-us/windows/wsl/tutorials/gui-apps
For WSL1 and Win10 the setup is a *lot* more complicated and advanced. You can search for this information, and here is an example to see if it is something that you want to attempt: techcommunity.microsoft.com/t5/windows-dev-appconsult/running-wsl-gui-apps-on-windows-10/ba-p/1493242 This is just a quick example I grabbed from Google. There may be better information and guides if you search for them.
@@tonyjohnson5521 I don´t know why we can´t run natively GUI APPs using Windows 10 anymore (I'm using Windows 10 (21H2 - 19044.1889), but now I found a solution with an application on the MS Store. The application name is GWSL and runs as an xServer, very simple to use for new users like me (Just install it and click on GWSL on system tray > GWSL Distro Tools then Auto-Export Display/Audio, restart Ubuntu or any other Distro installed and that's it) Maybe if someone reaches your video here and wants to use WSLg like me on Windows 10, this can help. 😁
@@xdrakx298 good find. Thanks for reporting back on this.
notepad.exe and explorer.exe commands do not work on mine. It says command not found
Thanks for watching. Without much context, it is difficult to pinpoint too precisely but "command not found" may indicate a path issue. My recommendation is to search for something like "WSL path to windows not found" and see if any of the resources there can help.
Is there a way to remove the Windows Subsystem for Linux ?
Hi Isabella. If you just wish to uninstall a Linux distribution but keep the underlying WSL infrastructure so that you can still install and use other distributions, the command is "wsl --unregister distroName" where distroName is the name of the Linux distribution you want to remove (probably Ubuntu if you have just followed my video). If you wish to disable the entire WSL system, then you are best to search for "windows uninstall wsl" and follow any of the guides that you find depending on your particular versions of Windows and WSL.
Life saver!
Excellent!
👍👍👍
It works for win11 or it's just for win10?
WSL works on both Win 10 and 11. However, there is better support for running Linux GUI apps as part of an integrated Windows desktop using Win11 and WSL2. This may be useful for you: docs.microsoft.com/en-us/windows/wsl/tutorials/gui-apps
@@tonyjohnson5521 Thanks Tony
44:14 Bookmarked
35:34
timestamp for my self 38:13
Thank you!