Setting up The Odin Project (TOP) development environment using Windows Subsystem for Linux (WSL)

Поделиться
HTML-код
  • Опубликовано: 26 окт 2024

Комментарии • 99

  • @limhimontoya
    @limhimontoya Год назад +7

    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. 🙏🏽🙏🏽💛💛🙏🏽🙏🏽

  • @CallMeUG
    @CallMeUG Год назад +5

    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 🙏🏻

    • @adjeteysowah3895
      @adjeteysowah3895 8 месяцев назад +1

      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.

  • @El.Snotrocket
    @El.Snotrocket Месяц назад +2

    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.

    • @Astrotase
      @Astrotase Месяц назад +2

      We are starting at the same time

  • @ruthadelokun857
    @ruthadelokun857 2 года назад +9

    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.

    • @tonyjohnson5521
      @tonyjohnson5521  2 года назад +3

      Thank you, Ruth. I'm glad it was useful for you.

  • @NIk0Lais
    @NIk0Lais Месяц назад

    You make a great teacher, sir! Few remain these days

  • @stef8776
    @stef8776 Год назад +2

    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!

  • @codejkc2514
    @codejkc2514 2 года назад +3

    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.

    • @tonyjohnson5521
      @tonyjohnson5521  2 года назад

      Thanks @Codejkc. I appreciate your comments.

  • @sheldonwest6075
    @sheldonwest6075 Год назад +2

    Thank you so much for this tutorial. It was structured very well and straight forwards!

  • @ldahmy
    @ldahmy 2 года назад +1

    This is great help Tony. Many thanks for this. It would be awesome if you could go through more of the oden project curriculum.

    • @tonyjohnson5521
      @tonyjohnson5521  2 года назад +2

      Thank you, I'm very glad it was helpful. I'm considering to do some more TOP subjects.

  • @xBounce3x
    @xBounce3x Год назад +1

    Thanks for the help with WSL, appreciate you!

  • @rfmmike6096
    @rfmmike6096 2 года назад +1

    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.

    • @tonyjohnson5521
      @tonyjohnson5521  2 года назад +4

      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.

  • @chitts6027
    @chitts6027 2 года назад

    Thank you! I am a CS student and could not for life of me find a video that explained the setup process this clearly.

    • @tonyjohnson5521
      @tonyjohnson5521  2 года назад

      Thanks, Chance. That's great to hear. Good luck with your CS studies.

  • @ronbh8186
    @ronbh8186 2 года назад

    Thank you so much. Appreciate the the pace at which you explained everything. Looking forward to more videos!

    • @tonyjohnson5521
      @tonyjohnson5521  2 года назад

      You're welcome, Ripon. I'm glad it was useful.

  • @keenb641
    @keenb641 2 года назад

    I enjoyed your video, and would encourage you to make more. Clear, concise and easily followed

    • @tonyjohnson5521
      @tonyjohnson5521  2 года назад

      Thank you, I appreciate your comments. I do have some more planned.

  • @tolgaozmacun893
    @tolgaozmacun893 Год назад

    Great explanation with all the details needed and works like a charm. Thank you so much.

    • @tonyjohnson5521
      @tonyjohnson5521  Год назад

      Thank you, I appreciate your feedback. Good luck with TOP.

  • @omkarnaik2258
    @omkarnaik2258 Год назад +1

    Thanks Tony. Appreciate your help💯.

  • @ЛюбомирЛюбомиров-п7ш

    Great video! Thanks for the clear and in-depth explanation on setting everything up!

  • @feridebonu6415
    @feridebonu6415 10 месяцев назад +1

    Just a little update. Now the TOP supports WSL!

    • @tonyjohnson5521
      @tonyjohnson5521  10 месяцев назад +1

      Excellent! Thanks for that update. It was only a matter of time.

  • @cinnamunbun
    @cinnamunbun Год назад

    Thank you so much for this tutorial
    It's so clear and easy to follow.

  • @sasikumar24691
    @sasikumar24691 Год назад +1

    Can anyone recently tried it out i am getting problem

  • @silvo9460
    @silvo9460 2 года назад +1

    Thank you so much Tony, your a life saver.

    • @tonyjohnson5521
      @tonyjohnson5521  2 года назад

      Thanks Silvo. Good luck with The Odin Project.

  • @joeytran4086
    @joeytran4086 7 месяцев назад

    Thank you so much. Helped me alot!

  • @leonardosales526
    @leonardosales526 2 года назад +1

    Excelent! Im doing the oding project course with wsl. Suscribed.

    • @tonyjohnson5521
      @tonyjohnson5521  2 года назад +1

      Thanks, Leonardo. Good luck with the course.

  • @joshhernandez506
    @joshhernandez506 Год назад

    thank you so much for such an easy to follow along video I just subscribed

    • @tonyjohnson5521
      @tonyjohnson5521  Год назад

      Hey Josh. Thanks for subbing, and glad you liked the content.

    • @joshhernandez506
      @joshhernandez506 Год назад

      @@tonyjohnson5521 Question will I be able to complete the entire Odin course using this method ?

  • @lawrenegummy4736
    @lawrenegummy4736 2 года назад

    Thanks Tony, this has been infinitely helpful.

    • @tonyjohnson5521
      @tonyjohnson5521  2 года назад

      Thanks for watching, Lawrene. I'm very glad it was useful.

  • @MK472009
    @MK472009 9 месяцев назад

    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.

  • @youtubejproasters1224
    @youtubejproasters1224 Год назад +1

    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!

    • @tonyjohnson5521
      @tonyjohnson5521  Год назад +1

      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

    • @youtubejproasters1224
      @youtubejproasters1224 Год назад +1

      @@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.

    • @tonyjohnson5521
      @tonyjohnson5521  Год назад +1

      @@youtubejproasters1224 Excellent! Can never have too many skills.

  • @nuranranawaka1451
    @nuranranawaka1451 11 месяцев назад

    Thanks a lot. you deserve more subs

    • @tonyjohnson5521
      @tonyjohnson5521  11 месяцев назад +1

      Thanks for your comment and I'm glad it helped.

  • @SirMika9
    @SirMika9 Год назад

    That's a very helpfull and well made video. Thank you a lot ;)

  • @sahilchoudhary1252
    @sahilchoudhary1252 Год назад +1

    Thank you!!!

  • @kiddindomitable
    @kiddindomitable Год назад

    thank you Mr. Johnson 🙏🙏

  • @myst.youtube
    @myst.youtube Год назад +1

    thankyou so much

  • @chrisdaykin3899
    @chrisdaykin3899 2 года назад

    Thanks for the video, I'm just starting out and this seems like the best option - hopefully it will work with windows 10

    • @tonyjohnson5521
      @tonyjohnson5521  2 года назад

      Thanks, Chris. Shouldn't be any issues with Windows 10.

    • @chrisdaykin3899
      @chrisdaykin3899 2 года назад +1

      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!

    • @tonyjohnson5521
      @tonyjohnson5521  2 года назад

      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

  • @viccky5100
    @viccky5100 2 года назад

    Hey Tony I'm can't able to install git it showing error: retrieving gpg key time out. What to do

    • @tonyjohnson5521
      @tonyjohnson5521  2 года назад

      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.

  • @Seekingtruth-mx3ur
    @Seekingtruth-mx3ur Год назад +2

    Virtual box is a pain in the ass. I'm going to give this a try.

    • @tonyjohnson5521
      @tonyjohnson5521  Год назад +1

      It's a different way of thinking. Good luck and hopefully it can work for you.

    • @Seekingtruth-mx3ur
      @Seekingtruth-mx3ur Год назад

      @@tonyjohnson5521 thanks

    • @Seekingtruth-mx3ur
      @Seekingtruth-mx3ur Год назад

      @PlayStation Japan hell yeah so far it did. More smooth than virtual box.

  • @xdrakx298
    @xdrakx298 2 года назад

    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.

    • @xdrakx298
      @xdrakx298 2 года назад

      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

    • @tonyjohnson5521
      @tonyjohnson5521  2 года назад +2

      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 ;)

  • @williammorris7053
    @williammorris7053 Год назад

    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.

    • @tonyjohnson5521
      @tonyjohnson5521  Год назад

      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.

  • @xdrakx298
    @xdrakx298 2 года назад

    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.

    • @tonyjohnson5521
      @tonyjohnson5521  2 года назад +1

      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.

    • @xdrakx298
      @xdrakx298 2 года назад +1

      @@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. 😁

    • @tonyjohnson5521
      @tonyjohnson5521  2 года назад +1

      @@xdrakx298 good find. Thanks for reporting back on this.

  • @complexlity
    @complexlity 2 года назад

    notepad.exe and explorer.exe commands do not work on mine. It says command not found

    • @tonyjohnson5521
      @tonyjohnson5521  2 года назад

      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.

  • @isabellaisy5427
    @isabellaisy5427 2 года назад

    Is there a way to remove the Windows Subsystem for Linux ?

    • @tonyjohnson5521
      @tonyjohnson5521  2 года назад

      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.

  • @Alex-rw9yj
    @Alex-rw9yj 2 года назад

    Life saver!

  • @romokuku
    @romokuku 2 года назад

    👍👍👍

  • @GG_Yung
    @GG_Yung 2 года назад

    It works for win11 or it's just for win10?

    • @tonyjohnson5521
      @tonyjohnson5521  2 года назад

      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

    • @GG_Yung
      @GG_Yung 2 года назад

      @@tonyjohnson5521 Thanks Tony

  • @Seekingtruth-mx3ur
    @Seekingtruth-mx3ur Год назад

    44:14 Bookmarked

  • @roymustang7031
    @roymustang7031 Год назад

    35:34

  • @neil9151
    @neil9151 2 года назад

    timestamp for my self 38:13

  • @billywapp2201
    @billywapp2201 2 года назад +1

    Thank you!