BEST Web Dev Setup? Windows & Linux at the same time (WSL)

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

Комментарии • 1,2 тыс.

  • @embeddedbastler6406
    @embeddedbastler6406 4 года назад +3241

    Now Windows can bluescreen itself and Linux at the same time!

    • @vabalokis
      @vabalokis 4 года назад +185

      prbbly had 1 bluescreen in last 10 years

    • @Fireship
      @Fireship  4 года назад +258

      FWIW Canonical helped develop WSL. It's a good thing for the Linux world, much easier for windows people to take advantage of it.

    • @binbashbuddy
      @binbashbuddy 4 года назад +47

      @@vabalokis -- They've updated the blue screen, it's now the stop working while I update and reboot screen

    • @ionitaa
      @ionitaa 4 года назад +119

      Last time I saw a bluescreen on Windows it was 2005... Last time Linux froze on me it was last week...

    • @MuhammadbinYusrat
      @MuhammadbinYusrat 4 года назад +75

      @@ionitaa probably because you didn't use Windows since 2005 and kept using Linux.

  • @RahulJoshi
    @RahulJoshi 4 года назад +809

    Legend has it that Steve Ballmer is still out there shouting "DEVELOPERS DEVELOPERS DEVELOPERS.... "

    • @andrewp6738
      @andrewp6738 4 года назад +8

      Holy shit, that’s THE Ballmer? Of Ballmer’s Peak fame?

    • @kid1412621
      @kid1412621 4 года назад +1

      Wanna watch the original video

    • @RahulJoshi
      @RahulJoshi 4 года назад +1

      @@andrewp6738 Haha, yes! Apparently he was having a "Peak" moment here too.

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

      Apparently jes passionate about developers

    • @rossgeography
      @rossgeography 3 года назад

      lolz

  • @grainfrizz
    @grainfrizz 4 года назад +111

    WSL2 is the best thing that happened in Windows since the end of clippy.

  • @Tiritto_
    @Tiritto_ 4 года назад +967

    So basically, Windows is being recommended because it has Linux xD

    • @amineabdz
      @amineabdz 4 года назад +15

      that's one way to look at it

    • @thelastmagethelastmage2084
      @thelastmagethelastmage2084 4 года назад +57

      It's a trap. Microsoft is in the "Embrace" phase. DO NOT use WSL.

    • @rand0mtv660
      @rand0mtv660 4 года назад +107

      @@thelastmagethelastmage2084 Someone is stuck in the 90s...

    • @michaelk.jensen1611
      @michaelk.jensen1611 4 года назад +30

      @@rand0mtv660 Well the comeback could be that some didnt learn their lessons. So keep on being skeptical to ensure that they actually will keep up their "good" ways. I think MS at least deserves to be viewed with a skeptical and wary mind even if they seemed to have turned a corner somewhat somewhere.

    • @rand0mtv660
      @rand0mtv660 4 года назад +4

      @@michaelk.jensen1611 but this could basically be said for any large company.. It's not like they work in our best interest lol

  • @nishatsayyed8326
    @nishatsayyed8326 4 года назад +416

    What about a "Docker in 100 seconds (and beyond)" ?

    • @Fireship
      @Fireship  4 года назад +117

      That will happen soon

    • @nishatsayyed8326
      @nishatsayyed8326 4 года назад +1

      @@Fireship thanks man. Really hoping to see it. Always wanted to use Docker for development, testing, production. But couldn't get started. Looking forward to your awesome video.

    • @SahilP2648
      @SahilP2648 4 года назад +15

      @@nishatsayyed8326 docker documentation is messy and probably the worst I have seen on any project ever. But in order to use it to its 90% potential, you literally need just 4-5 commands:
      docker images (displays all docker images with container id and image name)
      docker commit [CONTAINER_ID] [IMAGE_NAME] (use this in a separate terminal window, not the one you are using for docker images and use it when you are running the current docker container you want to save to an image (docker container is an instance of an image))
      docker rm -f image [IMAGE_NAME] (to remove a previously committed image that you don't want anymore)
      and finally
      docker run -it -v [VOLUME_DIRECTORY] -p [PORTA:PORTB] [IMAGE_NAME] (this command is used to run a docker container with the specified image name. -v is for mounting a local volume to docker container and -p is for mapping port if you want to use that port outside docker container)
      Hope it is straightforward enough for you

    • @nishatsayyed8326
      @nishatsayyed8326 4 года назад +4

      @@SahilP2648 thanks mate. Much better and very clear than the docker documentation. Never had a very serious need for Docker but it looks very elegant so I will try. Thanks again for awesome clarification.

    • @SahilP2648
      @SahilP2648 4 года назад +3

      @@nishatsayyed8326 no problem. Let me know if you have any doubts about it, but it is pretty straightforward once you know these commands.

  • @arividar
    @arividar 4 года назад +91

    Correction at 6:36: Adding nvm to in .zshrc plugins will not install nvm on your system. You still must install nvm through curl or some other way. The OMZ plugin only adds zsh command completion and other niceties. It can be inferred from this that oh-my-zsh is a package manager like apt-get, which it is not.

    • @JonaiLive
      @JonaiLive 4 года назад +6

      Thank you for this comment, was going crazy trying to figure it out.

    • @okie9025
      @okie9025 4 года назад +4

      What the fuck. Is this the lingo linux users have to deal with? Holy shit

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

      I just wasted a ton of time trying to figure out why nvm wasn't working. Thanks.

    • @guterflex7967
      @guterflex7967 4 года назад +3

      Really annoying that he didn't fix this mistake in the video. Also had to go through some repos and readme's on GitHub for solid 30 minutes to figure this out. I was about to comment this myself.

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

      git clone github.com/lukechilds/zsh-nvm ~/.oh-my-zsh/custom/plugins/zsh-nvm
      Then load as a plugin in your .zshrc: plugins+=(zsh-nvm)

  • @theBoomerDoomer
    @theBoomerDoomer 4 года назад +53

    This is a time I wish RUclips had a 'love' button... for work, I'm stuck in a company-issued Windows 10 laptop, and had to run a VM with Ubuntu 19.10, which was kind of okay but still just felt 'wrong'. Having just gotten the Windows 10 - 1909 update pushed to my laptop last week, I can finally install WSL! Very timely video release! Thank you!

  • @patricknelson
    @patricknelson 3 года назад +25

    Minor correction: WSL2 is faster in most ways over WSL1 except for the mounting of shared file systems (a common bottleneck in I/O heavy situation). The fix for that is to just store the files primarily in the Linux VM, but that’s also not always desirable, since you’ll need to use UNC style network paths (fretwork file shares) to directly access the files. Also, I prefer to store files directly on the host machine (not the VM, which I consider to be ephemeral and disposable).

  • @wepranaga
    @wepranaga 4 года назад +581

    installing zsh just for the theme
    10x developer 🤣

  • @Fireship
    @Fireship  4 года назад +150

    Maybe in a perfect world "Just use Linux", but if you need Windows then WSL is amazing! Oh, and Macs are pretty cool too! BEST is just an opinion.

    • @codenoob9325
      @codenoob9325 4 года назад +5

      But I saw a course on LinkedIn Learning. The instructor recommends to use Powershell in virtual machine.

    • @codenoob9325
      @codenoob9325 4 года назад

      Thanks. Your videos are precious. Glad I'm subscribed

    • @phemartin
      @phemartin 4 года назад

      Or just buy a mac instead! ;)

    • @EgiN281
      @EgiN281 4 года назад +1

      Really cool video, but how about macOS? Adobe works fine on it and its essentialy a linux.

    • @Fireship
      @Fireship  4 года назад +13

      @@EgiN281 Macs are a great option as well, but have other tradeoffs with price, performance, customization, etc. I use a Macbook when I travel.

  • @911madza
    @911madza 4 года назад +105

    DEVELOPERS, DEVELOPERS, DEVELOPERS...
    _*continues video narration in normal voice like nothing happened_

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

    I dont know why sometimes youtube recommendation sometimes works so bad, I've been trying for days to find a way to have linux on my windows machine and tried a hell lot of things like vm and dual boot when it is already there.
    Thanks man this is like a piece of cake as compared to vms and dual boot.

  • @ricko13
    @ricko13 2 года назад +13

    Developers 👏 developers 👏 developers 👏 developers 👏 developers 👏 developers 👏 developers 👏

    • @Dev-Siri
      @Dev-Siri 2 года назад +3

      Developers 👏 developers 👏 developers 👏 developers 👏 developers 👏 developers 👏 developers 👏

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

      Developers 👏 developers 👏 developers 👏 developers 👏 developers 👏 developers 👏 developers 👏

  • @nikolaipopovych3232
    @nikolaipopovych3232 3 года назад +1

    I am tired of tech videos with long intro! Finally video that is informative from the 1st sec. You speak fast and informative which is amazing in compare to other long tutorials with long introduction. This is the first time in my life when I slowed down speed to 0.75 in tutorial for few mins to be able not just listen but understand and remember. Brilliant!

  • @kalebercanbrack8857
    @kalebercanbrack8857 4 года назад +166

    It's been about a year since I tried WSL after primarily using Linux, and it felt extremely slow compared to just running Linux.

    • @Vhc706
      @Vhc706 4 года назад +14

      Kaleb Ercanbrack WSL2 is supposed to be faster

    • @wolvAUS
      @wolvAUS 4 года назад +74

      WSL2 is only 8 percent slower than native Linux. Superior option imo

    • @KB24DW8
      @KB24DW8 4 года назад +14

      @@wolvAUS yeah but it has serious memory leaks doe. Like it ends up sucking half of your ram

    • @not_proton
      @not_proton 4 года назад +56

      Actually, I would like to play games as well as make websites....
      So.... WSL for me

    • @stanleybowman-hood6194
      @stanleybowman-hood6194 4 года назад +1

      It would be as it’s not native Linux but wsl2 has a full Linux Kernal but I’ve never tested it myself but it’s good so windows users can take advantage of Linux tools

  • @xijnin
    @xijnin 7 месяцев назад +2

    Finally I can be a developer while having a social life

  • @alexisramis
    @alexisramis 4 года назад +41

    I've been using wsl since early 2017, a guide like this would be really useful for me 3 years ago, great job, btw I switch to vs code because of your videos, still getting used to the keybindings, but it's been almost seamless thanks to the sublime extensions. thanks for the videos, I've been learning a lot of useful things here.

  • @dazecm
    @dazecm 17 дней назад

    That integration of VS Code via the Remote extensions is all kinds of epic. Thanks for this video. It made setting up a WSL dev environment friction free for this web dev newcomer.

  • @soeed
    @soeed 4 года назад +52

    For those of us that can't "Just use linux" because of other work requirements, WSL looks awesome. It might be time to see if WSL2 can replace my Docker workflows. Thanks for the video Jeff.

    • @ablanchi
      @ablanchi 4 года назад +6

      I sympathize.
      I will open a windows VM in solidarity.

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

      Using just linux is simpler.

    • @okie9025
      @okie9025 4 года назад +12

      @@malipetek Did you not even read his comment? Linux can't do most things

    • @malipetek
      @malipetek 4 года назад

      @@okie9025 I used both and just using linux is still simpler than configuring WSL. I mean this is not a solution for those who cant "just use linux".

    • @okie9025
      @okie9025 4 года назад +12

      @@malipetek How is it not a solution? What does linux have that windows doesn't, except the commands, which can be installed manually anyway?

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

    This is my setup at work, a large company with super locked down Windows environments. It works well because I at least have root on the Linux side. Windows makes a decent desktop environment.

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

    This is amazing! I got WSL2 up and running, but didn't know what to do with it. This video really clears up a lot of doubts I had 🙏🏻

  • @julianstorm7722
    @julianstorm7722 4 года назад

    For anyone as noob as I am: Node will probably not work at at 6:03 in your zsh terminal. Remove any existing node/npm installation and install nvm which will keep your versions uptodate. For details check :
    docs.microsoft.com/en-us/windows/nodejs/setup-on-wsl2
    Your videos are a fusion of art / comedy / code. Thanks for being here.

  • @Francisco-Gutierrez
    @Francisco-Gutierrez 4 года назад +9

    The "Linux inside" logo never felt so real.

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

    Easily set-up my Windows Terminal with WSL thanks to this video. Amazing explanation!

  • @LiranPeleg
    @LiranPeleg 4 года назад +42

    That Steve Ballmer video will give u nightmares (...just saying)

    • @Fireship
      @Fireship  4 года назад +18

      I know, I watched it way to many times editing this video

    • @LiranPeleg
      @LiranPeleg 4 года назад

      Fireship lol

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

    I started using linux about a year ago and it's amazing I don't think I will ever go to windows again

  • @a.elbourki
    @a.elbourki 4 года назад +52

    I love WSL, being using it for more than a year as my main development environment and I'm super excited about WSL 2.

    • @ml_serenity
      @ml_serenity 4 года назад

      Just wondering, what are you using it exactly for? Except for terminal?

    • @simioni
      @simioni 4 года назад +6

      @@ml_serenity For everything. If you're doing backend dev, chances are you're deploying on Linux. So, coding in windows traditionally required running a Linux VM and some tool like vagrant to push your code to be run in the VM every time you save your file on windows. WSL just makes things much faster.

    • @ml_serenity
      @ml_serenity 4 года назад

      @@simioni not sure I understand why would you need to push it every time to Linux VM? Why not just run it in Windows using native tools there?

    • @simioni
      @simioni 4 года назад +6

      @@ml_serenity Because the environment is vastly different. Having something working on windows does not guarantee that it'll work on Linux. And bugs in stuff like this can be very hard to trace and fix. Ideally you'd work under the exact same distro as your server, with the exact same packages installed and configured in the exact same way (a clone of your server). After the introduction of Linux containers this became quite trivial to do, and today running code in a clone of your server is very common and saves a lot of headaches.

    • @ml_serenity
      @ml_serenity 4 года назад

      @@simioni Well, obviously you have to have some kind of staging pre-production environment that is very close to production to verify that everything is working correctly, but I don't really see why you would want to keep deploying to production-like environment in your dev after every single build... I can understand when someone is using windows-specific production environment and some legacy technologies such as ASP.NET, or ActiveX, MSMQ, domains, etc... but Linux server side tools are usually all available natively in Windows...

  • @aaaaaaaaaaaaaaaaa98
    @aaaaaaaaaaaaaaaaa98 3 года назад +1

    SAME WITH ME!!! now that I no longer dual boot makes everything easier!!!

  • @cahhaccahhac3934
    @cahhaccahhac3934 4 года назад +46

    By that logic macos is the best os for development, it's a unix like os like Linux and you can install many popular applications not available on Linux like Photoshop

    • @MuhammadbinYusrat
      @MuhammadbinYusrat 4 года назад +27

      Correct. But the problem is Apple's pricing and dated hardware.

    • @hanzofuma
      @hanzofuma 4 года назад

      That's why we have Wine and Lotirus

    • @moonythm
      @moonythm 4 года назад +5

      @@hanzofuma except when I run stuff in wine the perf is worse

    • @hanzofuma
      @hanzofuma 4 года назад

      @@moonythm yeah maybe they are trying to improve it.

    • @MuhammadbinYusrat
      @MuhammadbinYusrat 4 года назад

      @@moonythm Quite a few games work just fine.

  • @vycos-zen
    @vycos-zen 8 месяцев назад +1

    This is still a pretty relevant, and useful today, I mean the packages, and versions are outdated but the method is perfectly viable. Would be nice to see an up to date version of this. Keep creating content man! You are godsent :)

  • @opuu
    @opuu 3 года назад +3

    I did't know about this until today, finally I will switch from Ubuntu to Windows on my main machine :D

  • @richmindsetrohit7727
    @richmindsetrohit7727 3 года назад +1

    if someone is not able to run the train,do this 👇
    > sudo apt update
    > sudo apt upgrade
    now install sl
    > sudo apt install sl
    run train
    > sl

  • @bobkelso5681
    @bobkelso5681 4 года назад +36

    It looks like WSL is solving all of these problems that you would not had if you just directly use linux.

    • @bennihtm
      @bennihtm 4 года назад

      true!

    • @theclockworkcadaver7025
      @theclockworkcadaver7025 4 года назад +6

      It was only a matter of time before the Linux supremacists started swarming. As was mentioned in the video, there are some things you can do on Windows which you just can't do on Linux. This is clearly the best of both worlds, combining Linux's excellent command line and Windows's wealth of mainstream applications and ease of use.

    • @bobkelso5681
      @bobkelso5681 4 года назад

      @@theclockworkcadaver7025 Yes you are right. My comments was written for amusement and is not 100% correct. I know many people rely on windows-only tools anyway which makes it impossible to use linux. Then it might also make sense to use WSL (or use other tooling). For most cases I think the best approach is to use us a virtual machine for either linux or windows, depending on which you use more. And if you check how WSL is implemented, it is likely also just a linux VM which is deeply mounted to your file system.

  • @dazecm
    @dazecm 17 дней назад

    I used to leverage NVM for my node version management needs but since switching to the PNPM package manager, I now use its built-in node version management features. If you use PNPM but haven't discovered its node versioning ability yet, run pnpm env -help.

  • @88dejw
    @88dejw 4 года назад +4

    Great video and tutorial. I still keep W8.1 in dual-boot for my son to play Minecraft, but I'm doing webdev and backend dev (C#) fully on Linux mint for years. I have the same setup on Linux as shown in the video. Kudos for showing node installation via nvm it's much safer and convenient.

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

      ??? I know this is a year old comment, but Minecraft does and has run natively in Linux since pretty much the beginning? Free that poor HD of its windows shackles.

    • @normalperson-x7o
      @normalperson-x7o 2 года назад +1

      Minecraft runs on JVM, Linux supports Java.

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

    WSL in my opinion is the best thing microsoft has done in their history. I have a mid range laptop, i hate dual booting and I can't do something like running KVM with windows on linux because of my specs. Now windows gives me the option to setup a linux development environment without a big hassle, it feels surreal. Thanks a lot for this video it definitely helped me setting everything up for the first time.

  • @leonardoraele
    @leonardoraele 3 года назад +6

    This is crazy the amount of different things we have to learn nowadays.

  • @Nixon_Z
    @Nixon_Z 6 месяцев назад

    I use WSL every day for everything. This is my favorite video on yt.

  • @welltypedwitch
    @welltypedwitch 4 года назад +16

    9:41 Firefox can also block trackers, just like brave. The only difference I know is, that brave has an adblocker enabled by default. Overall Firefox is (at least for me) way more useful than any chromium based browser, since it just has more features! Not only for css, but it also displays json in a really useful way, unlike chromium, which just uses plain text.

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

      haha orange browser go brrrr

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

      I personally like the chrome dev tools alot more for js/ts debugging + for json formatting there are lightweight extentions that enable that.

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

      Mainly using FF myself and the dev tools is one big reason to keep me around. Design-wise and ergonomics-wise, I like it better than the Chrome dev tool. Layout aside, the color scheme of Chrome Dev Tool is a big meh for me... I tried a bunch of JSON-related extensions on Chrome and they are lacking in either aesthetics or functionality (no collapse all? seriously?).

    • @ml_serenity
      @ml_serenity 4 года назад

      Agree absolutely. Firefox is by far the best browser.

  • @raihan6050
    @raihan6050 3 года назад

    you really make my day easier. instead of switching back to back from windows to ubuntu, i can just go to windows terminal and then boom... it does all what i need from ubuntu. tysm :)

  • @averagedev7768
    @averagedev7768 3 года назад +3

    I installed wsl back in 2017 when it came out. It was so cool. At the time i used it for accessing servers ive been managing (still using ti for that). Having the alias command for bashrc in windows 10 was so darn good. I dont remember when but as soon as beta of windows terminal came out ive used that. Very nice tools. Best of both worlds. Stable programs on windows + bash terminal

    • @LuLeBe
      @LuLeBe 10 месяцев назад

      Yeah it's amazing, I use my PC for work, coding, video editing and games, and Windows+WSL is the most seamless way to do that. The only thing that's really cumbersome is using a GPU in WSL.

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

    I'm a programming rookie, but the more i think about it the more i think you don't need windows at all for development, unless you're a front end dev, it makes sense for using adobe xd and all those design related tools, otherwise it doesn't

  • @yosha2467
    @yosha2467 4 года назад +50

    Web developer: *has 8GB+ of RAM*
    Also web developer: "Zsh is bloat"

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

      Zsh is faster than Bash.
      Ohmyzsh is bloat

    • @JosueRodriguez08
      @JosueRodriguez08 3 года назад +8

      Having two shells for no reason is bloat

  • @down__lo7359
    @down__lo7359 3 года назад +1

    WSL is legit. I switched from macOS for it. Never looked back.

  • @RobertBrunhage
    @RobertBrunhage 4 года назад +11

    Was just reading in to this, super interesting!
    Using two drives for PopOS and Windows and I think I still prefer that. But this is definitely something I will test out!
    Thanks for the awesome content and keep the great work up!

    • @binbashbuddy
      @binbashbuddy 4 года назад +1

      I prefer to just install windows in virtual box. Incredibly rare that I open it but when I do I have a half hour or so free time while it installs updates, reboots, installs more updates, etc....

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

    My setups:
    Private: Windows 11 host (mostly for gaming), VMWare with Mint guest for my private projects.
    Work: Ubuntu host, VirtualBox with Windows 11 (for the work tools that don’t have a good Linux alternative).

  • @busyrand
    @busyrand 4 года назад +4

    Great video!... I've been using WSL2 for roughly a year now. The only thing I dislike is working with the LAMP stack, and using Git GUI tools have been troublesome because the project folders work best inside of the Linux distro itself.

  • @abaqueiro
    @abaqueiro 3 года назад +1

    Bash is not a programming language, is a SHELL command interpreter, it allows also to make .sh files to run a lot of commands in batch.

  • @qumber
    @qumber 2 года назад +16

    Love your content ❤️
    I instead use Windows in a VM on my Linux host machine, if I need to run Windows specific programs. But WSL is an awesome tool. I have helped my Windows loving colleagues numerous times with WSL so that they can work on projects running in Docker containers without leaving their favourite OS.

  • @souryavarenya
    @souryavarenya 4 года назад +1

    I am not a web dev but I have been using WSL2 on Windows 10 Insider Slow Ring (2004) for C++ development and I can attest to the quality of WSL2 integration with windows. I have generally had a bad time with native Ubuntu gnome on my laptop right from scaling issues to poor battery life and hot machine. WSL2 has changed my workflow drastically. VSCode WSL remote works really well with explorer support which is also very good. I occasionally use VcXsrv for X11 windows. Had some minor issues with finding kernel headers for C++ dev but web-devs have no excuse to not try it.

  • @georgegach723
    @georgegach723 4 года назад +41

    Embrace, Extend, Extinguish...

    • @Fireship
      @Fireship  4 года назад +14

      Good point. I don't think that's their strategy here, but maybe I'm naive.

    • @georgegach723
      @georgegach723 4 года назад +1

      @@Fireship I also hope MS did change but so far they're en route. They embraced Linux, extended the kernel and now slowly taking over the market segment who'd dual boot the ubuntu on their machines...

    • @FaFairuz8
      @FaFairuz8 4 года назад +3

      if it is good for extending open source community.. does it still matters?

    • @kuhluhOG
      @kuhluhOG 4 года назад +1

      @@georgegach723 well, they also have their own Linux distro (for Azure)
      also, at this point I don't think they actually still make a profit with Windows on Home users, but because most people want to use the same programs at work and at home, they can't really stop developing it because then they would lose their business customers in the long run

    • @diablo.the.cheater
      @diablo.the.cheater 4 года назад +1

      @@georgegach723 I mean does it even matter as long as linux is getting used? is not like distros are completly FOSS except a couple ones

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

    As a back end developer using Go, JetBrains GoLand and WSL2 is working so nice together on Windows.
    Yes, this is a game changer.

  • @seanc.5310
    @seanc.5310 4 года назад +9

    "One thing you'll need to install is sl to make a train roll through the command line" 😂 😂 I love it!

  • @jazun33
    @jazun33 4 года назад

    Honestly I rocked this for a long time. For some laptops linux just doesn't provide a good consumer OS experience. Things like graphics card switching or even simple stuff like going to sleep when you close the lid don't work right. But since these laptops ship with windows all that user-focused stuff is optimized, while the developer experience is not, like it is with linux. What made me finally switch to mac was wanting to branch out to iOS development. Otherwise I see no real reason from a software standpoint to switch from Windows + WSL at this point, especially after they finish up WSL2, which I've tested. It's blazing fast and an absolute joy to use.

  • @mrcrackerist
    @mrcrackerist 4 года назад +25

    windows in kvm with pci passthrough is still my way to fix it

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

    Developers!!! Developers!!! Developers!!! Developers!!! Developers!!! Developers!!! Developers!!! Developers!!! ✊

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

    Your videos are extremely helpful. I subscribed immediately. You are a remarkable teacher, especially once getting used to your presentation style. Thank you for the content, I look forward to more!

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

    Already using all of these, feeling like a 10x developer
    😎

  • @ggalindezb
    @ggalindezb 4 года назад +8

    I'm very glad that WSL exists, that opens a whole new array of hardware available for beginners and intermediate devs that have only ever coded on a Macbook. Apple having pretty much full control of the sole tool used by developers was bad news. This will probably make it much better.
    That being said, I still hate Windows, I'm never using it and I'd rather just run a native Linux. But hey, I'm grateful for the contribution. Very.

  • @kez99
    @kez99 4 года назад +1

    wsl got me into learning web dev. I feel so lucky with all these techs being available now.

  • @marble_wraith
    @marble_wraith 4 года назад +4

    I'd suggest getting powershell v7 and windows terminal first.
    Then install chocolatey and use that for installing; git, chrome / firefox and nodeJS.
    There are other helpful bits of software you can get through chocolatey for dev / productivity e.g. krita, inkscape, libreoffice, keepassXC, etc.
    Furthermore you can export your installed software list to an xml file. Handy if you need to clean install windows, though you'll need to back up the configs of said programs independently.

  • @AnantaAkash.Podder
    @AnantaAkash.Podder 9 месяцев назад

    By Far the Best Explanation for WSL in the world

  • @dream_emulator
    @dream_emulator 4 года назад +10

    Does kind of feel like a hacky attempt to become a Unix based OS that at the same time offers a wide variety of professional desktop applications.

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

      They've been committed to WSL for a while. I think this actually works

    • @StewartStewart
      @StewartStewart 4 года назад

      Agreed, but still less frustrating than MacOS

    • @gnack420
      @gnack420 4 года назад

      It's not "hacky" it's a standard feature that you can enable easily through the standard UI.

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

    WSL is the best thing that came out of Microsoft in a long time. Windows is finally complete.

  • @fabianmarcus
    @fabianmarcus 4 года назад +3

    I would like to see a tutorial how to create such great videos.

  • @feryardiant
    @feryardiant 4 года назад

    If you're using Win 10 Home and still want to use (or learn) Docker, You can use Chocolatey to install docker, docker-compose and docker-machine, and of course You have to use CLI to manage it.

  • @MrGVSV
    @MrGVSV 4 года назад +3

    Great video, but I am still not sure on the "why". What is the reason for wanting both Linux and Windows for webdev?

    • @okie9025
      @okie9025 4 года назад +7

      So you can brag about how you use linux, while in reality you do 90% of the work on windows.

    • @TimeoutMegagameplays
      @TimeoutMegagameplays 4 года назад +4

      Running docker, and running your server in the same enviroment you will deploy to will save you lots of stress

    • @TimeoutMegagameplays
      @TimeoutMegagameplays 4 года назад +1

      If you don't think you need it, you don't need it really, but when you do WSL looks promissing

    • @MrGVSV
      @MrGVSV 4 года назад

      Doodles oh that’s true. Aren’t most servers running Linux? I only briefly touched backend stuff and I vaguely remember a class talking about LAMP

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

      Because Windows is scared of losing that sweet sweet dev telemetry. Same reason they bought NPM and created VScode. Windows, NPM and VScode are all malware.

  • @rallisf1
    @rallisf1 4 года назад

    I have recently switched to Laragon which is completely portable and sync it with a cloud drive so no matter what my work is always available to me.

  • @Pogibakayo
    @Pogibakayo 4 года назад +6

    Great toolset. I’d also recommend Tmux tho

    • @jairomejia616
      @jairomejia616 3 года назад

      extremely useful. There is another open source project that calls tmate, which use tmux as a base to create shared ssh sessions. It is very useful when you need to work in the same server as your colleges and need to debug something.

  • @ritwikmath7937
    @ritwikmath7937 4 года назад +1

    1. In case after ubuntu install, powershell shows no distribution, click on launch in MS Store and wait for Ubuntu install.
    2. For installing 'sl' follow instructions on this link: zoomadmin.com/HowToInstall/UbuntuPackage/sl
    3. Install WSL extension for VS code first and then open bashrc file
    4. Exist and reload terminal is nvm command is not found. If fails again then install it using this script in github.com/nvm-sh/nvm
    5. Authorize github cli by openning the url shown in cli

  • @Rob-cq1nf
    @Rob-cq1nf 4 года назад +125

    Best Web Dev Setup? Just Linux!

    • @himanshutripathi7441
      @himanshutripathi7441 4 года назад +7

      ^^ and if in confusion which version to choose, just use ubuntu.

    • @matiasm.3124
      @matiasm.3124 4 года назад +4

      Yeah of course why you need windows for Dev? ... BTW Gentoo ftw...

    • @SergiuTalnaci
      @SergiuTalnaci 4 года назад +7

      @@matiasm.3124 Well some of us work with clients who still have plenty of code on the old .NET framework :). This is a godsend

    • @jakubwegrzyn3798
      @jakubwegrzyn3798 4 года назад +5

      Linux + Webstorm = best web dev setup

    • @anuragstutorials9484
      @anuragstutorials9484 4 года назад +14

      BTW I use arch

  • @pro4v
    @pro4v 4 года назад +1

    I have a dual boot setup on my desktop. I develop on Linux and play games on Windows!

  • @gnul
    @gnul 4 года назад +5

    WSL2 actually is virtualized, but in a good way - at least good for Windows and Microsoft.
    Just stick with GNU/Linux.
    I personally use Manjaro Linux KDE on my Workstation, Gnome on my Convertible Notebook.

    • @rajatsingh5714
      @rajatsingh5714 4 года назад

      No, it's not virtualization, it is an actual Linux kernel.

    • @gnul
      @gnul 4 года назад

      @@rajatsingh5714 Yes, it is an actual Linux Kernel, virtualized with MS' Hypervisor.

  • @DavidAlsh
    @DavidAlsh 4 года назад +1

    WSL is great and I can't wait for it to be better than working on MacOS. At the time of writing, it still isn't. For context, I have transitioned my entire workflow to Windows from MacOS to see how viable WSL makes Windows-based development. My hope is that WSL introduces competition to MacOS and helps drive the Linux community forward.
    It's been mostly great, but it definitely doesn't feel as seamless as developing natively on the machine.
    Only little issues like:
    - In WSL2 you can't access servers running on the host machine (useful for things like browser testing tools like puppeteer and cypress).
    - Files are deleted permanently when you delete them in your IDE
    - When you copy files in your IDE, write permission prevent you from editing those files and require you to restart your IDE
    It's coming along though and I will continue to use it. I can't wait to see it evolve and hopefully replace the NT kernel.. I mean wait what?

    • @LuLeBe
      @LuLeBe 10 месяцев назад

      I haven't had the file copy issue, not sure what you mean exactly. But for those testing tools, can't you just run them on WSL? It has GUI support etc. But yeah accessing servers the other way around works but this way it's difficult without some trickery.

  • @ashwinarora7561
    @ashwinarora7561 4 года назад +3

    Absolutely Lifechanging for devs like me using VM. Thanks.

    • @SahilP2648
      @SahilP2648 4 года назад

      Well I need the GUI to be working and not just the linux terminal. I am currently using Virtualbox and I have heard that using something like VNC from the WSL env is not suitable since WSL wasn't designed for host to guest and back socket mapping or something like that. Do you know any other alternative?

    • @ml_serenity
      @ml_serenity 4 года назад

      @@SahilP2648 Why do you need WSL or Linux for VNC? There are native windows VNC clients...

    • @SahilP2648
      @SahilP2648 4 года назад

      @@ml_serenity are you stupid? So I can VNC into Ubuntu obviously to use the GUI instead of doing it through VirtualBox which is laggy.

    • @ml_serenity
      @ml_serenity 4 года назад

      @@SahilP2648 you are clearly an idiot. You can VNC from Windows into anything including Ubuntu. You don't need VM or WSL for that.

  • @brambeer5591
    @brambeer5591 3 года назад +1

    Windows 11 will allow support for native Lunux GUI apps out of the box!

  • @JeSus-hl6zj
    @JeSus-hl6zj 4 года назад +3

    If someone's getting mvn not found then add this to you .zsh file:
    export NVM_DIR=~/.nvm
    [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
    Hope that's helpfull

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

    Okay like the content, but why is there someone snoring in the background for half the audio lol. Can only hear it with headphones

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

    You can now install Docker on non-pro Windows as well and let me tell you, just install wsl2(although you need to be an Insider user) it's just much better and works perfectly with Docker. One thing that I'm wondering is if Linux and Windows do share their ports or Linux just forwards them to windows side. I Mena if port 8080 is used in Windows, is it then used in WSL too?

    • @metaorior
      @metaorior 3 года назад

      They are 2 machines with 2 Ip address each

  • @jazun33
    @jazun33 4 года назад +1

    One big hang-up with web dev on Win + WSL is testing. To make 'ng test' work, for example, you have to point your CHROME environment variables to your windows installation of chrome. And I couldn't even get e2e tests working. If you'd like to make a follow up video about that on how to set that up, I'm sure it would be much appreciated. There's not a lot of information out there on how to set that stuff up.

  • @barungh
    @barungh 4 года назад +5

    I am pretty sure more than 50% likes on this video is for the way you configured other tools like shell, git etc. (rather than for Windows as best platform)

    • @Fireship
      @Fireship  4 года назад +1

      You're probably right

    • @okie9025
      @okie9025 4 года назад

      But Windows IS the best platform

  • @phucnguyen0110
    @phucnguyen0110 3 года назад

    Should update this one soon, since Microsoft updated the new way already with just a single command, plus they have WSL2g too.
    Please, Jeff!

  • @sanchitmishratechnogeek
    @sanchitmishratechnogeek 4 года назад +12

    3:56 someone snoring?

  • @wolfisraging
    @wolfisraging 4 года назад

    I'm glad someone made a video about this.

  • @etherweb6796
    @etherweb6796 4 года назад +16

    Forget Windows - Linux is the ultimate developer platform.

    • @etherweb6796
      @etherweb6796 4 года назад

      C# and mssql are available on Linux. Linux has support, and Windows performance is a joke under most circumstances

    • @etherweb6796
      @etherweb6796 4 года назад

      My dev environment on Linux runs on less than 1G of RAM (600mb of which is Chrome) - let's see you do that with WSL and Windows

    • @timothygibney159
      @timothygibney159 3 года назад

      Windows has office and hyper-v for full type 1 virtualization. Vms is on linux but it's not at the same level and guest support is spotty.

    • @timothygibney159
      @timothygibney159 3 года назад

      @@etherweb6796 if you use 1 gb or less you are not a real IT professional. Professional developers use a ton of virtual machines and visual studio not code for big projects if they develop code.

    • @etherweb6796
      @etherweb6796 3 года назад

      @@timothygibney159 When I was saying 1GB or less, I wasn't counting virtual machines, just desktop and code tools. Visual Studio proper is garbage - literally the only reason to use it is for some of the enterprise analytics tools that individual developers don't generally need day to day. I'll be sure to tell the 50+ developers I work with that we aren't professionals because we don't use visual studio or windows. Has to be the most laughable thing I've ever heard.

  • @silver7297
    @silver7297 3 года назад +1

    How have I not seen this video yet?!

  • @krawieck
    @krawieck 4 года назад +13

    3:30 real 10x developer would use neovim 😎

    • @nico1337
      @nico1337 4 года назад

      + Vundle + Some Plugins and it's perfect

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

      @@nico1337 I tried Vim with packages and syntax servers and stuff and is super slow.
      I can't even use Vim bindings in VSCode, that's how slow it is.
      The only place it works for me is IntelliJ, but it involves other bugs

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

      ​@@dennisbarzanoff9025 What do you mean with 'slow'? Are you not used to work with vim? I can tell you if you continue to use it it will get better and better and you'll get more productive. In your journey you may have to look up some stuff if you don't know how this works in vim

    • @blazefirer
      @blazefirer 4 года назад

      @@dennisbarzanoff9025 idk NeoVim with plugins works super fast for me and VScode is fine its just slow when doing vscode features not vim features

    • @HelloWorld-fg2nm
      @HelloWorld-fg2nm 4 года назад

      Literally no reason to use nvim anymore since vim 8 added async support.

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

    I've been using this for years now, and I love it. Should do an update dor windows 11 + windows terminal! there are a bunch of new stuff

  • @blink11101
    @blink11101 4 года назад +6

    the only reasons to use windows is if your company gives you a windows machine to develop on or if you want use steam lol

    • @okie9025
      @okie9025 4 года назад +1

      Linux sucks for everything except developing

    • @eric.m5790
      @eric.m5790 4 года назад +1

      if your company gives you a windows machine to develop on, You delete windows and install Linux And then run Windows in a virtual enviroment :D

    • @okie9025
      @okie9025 4 года назад +1

      @@eric.m5790 you mean the other way around?

    • @eric.m5790
      @eric.m5790 4 года назад

      @@okie9025 No i personally don't like windows from the time i starded using Linux 1 year ago. i would rather run it in VM than have it on my pc. its just a preference

    • @okie9025
      @okie9025 4 года назад +1

      @@birsp literally no games work on linux except for legacy. Try running doom eternal or emulating animal crossing on linux (pro tip: you can't)

  • @junaid.hassan
    @junaid.hassan 4 года назад +2

    This is the best tech video that I've watched in a while.

  • @ronniesunshine1163
    @ronniesunshine1163 4 года назад +3

    I develop on dual booted ubuntu because It gives me the freedom to install a ton of packages and random stuff that I will forget to delete. I don't want those files clogging up my windows install. Since ubuntu is dual booted, I could just delete those partitions and I have a mostly clean version of windows. Can I do the same thing with wsl? or is wsl just giving another way to interface with the windows OS and file system?

    • @ml_serenity
      @ml_serenity 4 года назад

      Why not just use VM for the purpose?

    • @ronniesunshine1163
      @ronniesunshine1163 4 года назад

      @@ml_serenity poor performance. I was using a vm for ubuntu for 4 months or so but it kept freezing even with the settings maxed.

    • @iamsantanubanerjee
      @iamsantanubanerjee 4 года назад

      I think you can do that just by deleting your distro.... Reinstalling will give you a fresh distro again, I guess.

  • @johnmytsu
    @johnmytsu 4 года назад +1

    If you just install Docker on Windows as it is and just set an alias in WSL to docker.exe, it works just fine. (WSL only adresses windows apps in bash if you call it fully, e.g. notepad.exe ~/.bashrc)

  • @ialimijororakotoniaina3274
    @ialimijororakotoniaina3274 4 года назад +3

    Nice one but I will just stay with my Ubuntu

  • @MrBledi
    @MrBledi 4 года назад +1

    Me too, I used to use dual boot for the same reason, but ultimately like a week ago removed windows because of the zero day bugs lately published

  • @jNayden
    @jNayden 4 года назад +8

    the WSL file system and I/O is so slow that is basically useless for development and building software on it.

    • @JeSus-hl6zj
      @JeSus-hl6zj 4 года назад +1

      Isn't that you computer?

    • @TheJustinist
      @TheJustinist 4 года назад +4

      WSL2 is way faster than WSL.

    • @KastanDay
      @KastanDay 4 года назад +1

      Idk not that bad, and fixed in wsl2. I/O is finally ~full speed, as if in native Linux.

    • @gerrywu
      @gerrywu 4 года назад

      Exactly what I was thinking, even with wsl2 you'll need to mount your source code on the right place to get the full benefit

  • @pinglocalhost
    @pinglocalhost 4 года назад +1

    These videos are so 🔥 to the point growing my brain 🧠 in a few minutes.

  • @adilzakarya
    @adilzakarya 4 года назад +3

    I'm in love with you videos

  • @nosknut
    @nosknut 4 года назад

    Fireship i actually went through the hassle of installing docker on windows home a couple days ago. You can do it you just have to enable CPU Virtualization in BIOS (Different brands call the setting different names) and make sure to enable WSL and Windows 10 Virtual Machine Platform

  • @ionk3588
    @ionk3588 4 года назад +5

    Now I need to uninstall ubuntu somehow, I'll find it eventually

    • @aeee32
      @aeee32 4 года назад +1

      LMFAO

    • @tomek.z
      @tomek.z 4 года назад +1

      To remove Ubuntu from WSL just run 'wsl --unregister Ubuntu'. More info docs.microsoft.com/en-us/windows/wsl/wsl-config

  • @maasnicolas
    @maasnicolas 4 года назад

    For those having issues trying to login with Github.
    1. You can't directly clone in the terminal, it does work in VS Code terminal
    2. If login fails follow these two steps: code.visualstudio.com/docs/remote/troubleshooting#_sharing-git-credentials-between-windows-and-wsl