I’m considering installing Linux on my laptop but I’m unsure if I should start with a virtual machine first. My main use cases are gaming and coding, so I want to make sure it’s the right fit.

What are the pros and cons of using Linux for someone like me? Would starting with VirtualBox be a good idea before going all in?

  • slazer2au@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    ·
    26 days ago

    If you are running windows non home edition enable the Hyper-V features and fire up a VM.

    I was think about WSL but that may not work in this case.

    • Moonguide@lemmy.ml
      link
      fedilink
      arrow-up
      4
      ·
      26 days ago

      Shit. What if you are running the home edition? I’ve been thinking about switching as well, but I don’t have a background in coding and I’d have to run a dedicated ssd with windows just for my work programs (design related) or migrate to FOSS completely.

      • slazer2au@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        26 days ago

        I don’t think wsl will work as it doesn’t provide a desktop experience. But as wsl is supported on home editions by the look of it.

  • mybuttnolie@sopuli.xyz
    link
    fedilink
    arrow-up
    2
    arrow-down
    2
    ·
    26 days ago

    If your hardware is supported and you find a distro that plays well with it, there are no cons

  • it_depends_man@lemmy.world
    link
    fedilink
    arrow-up
    37
    ·
    26 days ago

    The question is mostly about what kind of gaming.

    Most single player experiences are no longer a problem because of steam proton, but multiplayer anti cheat and other AAA DRM is sometimes a windows only thing.

    Coding is just superior on linux. It’s the platform built by coders to make their own life easier for 30 years.

    You should dual boot, try it out for a few games and see how the dev process translates and get your feet wet.

    Setting up a VM is probably a lot more effort than just installing it.

    • Batman@lemm.eeOP
      link
      fedilink
      arrow-up
      5
      ·
      26 days ago

      You mean getting a dual boot is easier and less time consuming than setting up a VM?

      IDK much about these. Probably I’ll binge linux vids on YT for a while to get more info. After reading this comment section, i feel like i should try it because coding is just better in linux and i usually play single player offline games so even gaming would be fine there

      • UnculturedSwine@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        5
        ·
        26 days ago

        Dual booting is easy to do if you have a spare hard drive. Even just installing linux to a flash drive can at least give you a good idea of how it will run though it might be a bit slow. I wouldn’t recommend partitioning your hard drive to dual boot off of it for beginners though. You’ll risk data loss.

      • wuphysics87@lemmy.ml
        link
        fedilink
        arrow-up
        4
        ·
        26 days ago

        You’ll find a little RTFM (read the friendly manual) much more time/result effective than watching videos. Want to go backward and forward to find an exact piece of information? Get precisely what the original developer meant? Ask for help on a forum? RTFM. RTFM. RTFM.

        It may seem slower initially. It’s a skill to develop. For me, it typically means 5 things (in order, where applicable).

        tldr <command>. This you need to install. IIRC on Arch it’s tealdeer. This gives you common examples of the command. Common commands will have an entry, but it’s hit or miss for more obscure ones. It’s crowd sourced so contribute when you can!

        -h or --help This gives you usage, subcommands, flags, and options. It is exhaustive for common commands, but less common ones will not always give you the usage for everything or you need to do <command> -h or --help <subcommand> And sometimes a command only has -h or --help. If one doesn’t work, try the other

        man <command> If a command has a man page, it is tue “single source of truth” (quotes because that not what ssot actually is but it is a good descriptor) man pages are exhaustive. They have everything a program can do. If you want a deep dive for fun or need to find something very specific, it is almost always there. I suggest if you want to get good at Linux RTFM often

        Arch Wiki. It’s the wikipedia of Arch. User maintained and to the point. Again, reading is a skill. Learning to use the Arch Wiki effectively takes time, but it is well worth it. It is most useful if you run Arch (I can’t think of a time it references a package manager other than pacman). Following the pages in the wiki is almost exclusively why I use Arch Linux, btw. And don’t let people scare you away from it. They are arrogant pricks. Most aren’t. If you don’t want to do a custom install of Arch, it’s as easy as using the arch install TUI. And if you have issues, because you run into problems use the wiki!

        Web search. You probably have this one down, but a few suggestions. Don’t ask a question. (Unless you know you are specifically searching for that question) your query should only contain the words for what it is you are searching for. And make things singular not plural. Singular is inclusive of plural. The other way around isn’t true. When you want to search a particular site, include that in your query string. Last. Don’t use google. They want to show you ads, and I’ve recently seen they don’t care about quality (anymore or potentially ever) The first result, which is typically what people go to, is almost always the one with the most ads. I suggest Duck Duck Go (opinions will vary) for the specific reason you can use what they call bangs to search on a particular site and go directly to the first (non ad optimized…yet) search result as am example !w cats takes you directly to the cats page on wikipedia. !aw virtual box. Arch wiki virtual box.

        I would suggest (and typically do) use those in order repeating websearch (I’ve probably done this for up to an hour at least a few times this week) before I do the next 2. Write a forum post. Now you are getting to the point that if you can’t find the answer, it probably doesn’t exist. Again their are strategies and in this case, ettiquette you need to follow. You’ll annoy or even piss people off if you don’t. READ THE RULES OF THE FORUM. When you explain the problem, not what you are doing to do to solve it. There might be another way to solve it. Then explain what you have tried in terms of what you have read and tried so far.

        Then and only then watch a video.

      • KubeRoot@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        2
        ·
        25 days ago

        Dual booting is problematic, as mentioned you’re messing with your partitions and could mess up your windows partition, but also windows can, unprompted, mess up your Linux bootloader. As long as you’re careful with partitions and know how to fix your bootloader from a live image, there’s no real issue, but it’s worth keeping in mind.

        By the way, I recommend rEFInd for the bootloader when dual booting, it doesn’t require configuration and will detect bootable systems automatically.

        A VM sounds like a good idea to try a few things out, but do keep in mind performance can suffer, and you might especially run into issues with things like GPU virtualization. If you want to properly verify if things work and work well enough, you’ll want to test them from a live system.

        As a final note, you can give your VM access to your SSD/HDD - if you set that up properly, you can install and boot your Linux install inside a VM, and later switch to booting it natively. You still have the risk of messing up your partitions in that case, but it can be nice so you can look things up on your host system while setting up Linux in a VM.

  • Moonguide@lemmy.ml
    link
    fedilink
    arrow-up
    8
    ·
    26 days ago

    One of my buds is a programmer and runs linux and windows on his machine. At this point he’s pretty adroit at fixing any issues on linux, but he has faced limitations before.

    Regarding work, being on linux apparently was a big plus when he got hired, and works exclusively on linux due to its stability.

    Regarding gaming, many games we play apparently run better on linux (inc. ArmA Reforger and some others, I forget), but some will just not run at all (anything with a kernel anticheat), and his mic sounds like utter shit on discord due to missing drivers or something.

    I do remember there was a site where you could check how well a game ran on linux, but I forget. You might be able to check if the games you got run on steam deck, since they are linux based.

      • Moonguide@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        26 days ago

        Might’ve been, but I don’t remember it being so red. I’m on mobile right now though, and my PC browser loads everything in dark mode, maybe the colors were affected.

        In any case, the site my buddy showed me ranked games according to performance just like that one so that one would still be useful.

      • BlueSquid0741@lemmy.sdf.org
        link
        fedilink
        arrow-up
        2
        ·
        26 days ago

        There’s a blast from the past. But WineHQ was never a good or reliable database for this purpose, you were always better off just trying the software and moving to a native alternative if it didn’t work than lean on this for decent information.

    • Feyd@programming.dev
      link
      fedilink
      arrow-up
      6
      ·
      26 days ago

      I had mic quality issues in discord for a while and it turned out it was discord’s echo/noise cancelation misbehaving. Turned it off and started using https://github.com/noisetorch/NoiseTorch instead. It’s actually way better at noise cancelation anyway.

      Not that that’s necessarily what’s happening with your friend but thought I’d throw it out in case it is

    • verdigris@lemmy.ml
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      26 days ago

      There’s a 100% chance that his mic issues are not driver related, but instead are Discord’s fault. They are classically awful at providing feature parity for Linux.

      Have him fiddle with the audio settings, it’s probably either the echo cancellation or noise reduction. As another commenter mentioned there are third party solutions for both.

    • J4g2F@lemmy.ml
      link
      fedilink
      English
      arrow-up
      10
      ·
      edit-2
      26 days ago

      I do remember there was a site where you could check how well a game ran on linux

      You probably remembering protondb.com. You can check how good your games run your games with proton (valve’s windows compatibel layer based on wine and dxvk). You can use proton with any games also outside of steam. For example with heroic launcher with epic and gog games.

  • ColdWater@lemmy.ca
    link
    fedilink
    arrow-up
    5
    ·
    26 days ago

    For gaming as long as it’s doesn’t shipped with malware AC you can play it just fine, idk for coding I never written a single line of code ever since I switched to Linux 2 years ago but I heard from most professional coder said Linux is perfect for coding (maybe not if you code softwares for windows).

  • inzen@lemm.ee
    link
    fedilink
    arrow-up
    2
    ·
    23 days ago

    Background: I used linux for work in a vm for 6 years, (coding). Most of my life I have been using windows at home, since Win 3.11. For the last year and a half I have been full time linux user, Gaming and all. It is hard to tell what the pros and cons will be for you personally. My reccomendation:

    • have some(a lot) spare time
    • make sure you don’t need your laptop for anything critical while experimenting
    • make sure you have a way back to a known working config e.g. windows installer on usb
    • have your data backed up somewhere, not on the laptop.
    • Just install a more polular distro and try it, go in deep google/ai chat yourself trough the issues
    • then decide if you want to go back to windows
  • SpaceNoodle@lemmy.world
    link
    fedilink
    arrow-up
    19
    arrow-down
    1
    ·
    26 days ago

    Coding is absolutely miserable on Windows compared to Linux. I’ve been developing almost exclusively in Linux for the past twenty years. Nothing beats the command line for getting shit done; a split screen between a terminal and Sublime Text is my go-to setup.

      • SpaceNoodle@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        26 days ago

        A screenshot would add nothing. Terminal on the left side, Sublime Text on the right. Learn how to use git and gdb from the command line.

  • ocean@lemmy.selfhostcat.com
    link
    fedilink
    English
    arrow-up
    7
    ·
    26 days ago

    I would backup everything you need from your current laptop including game save files then just install Linux.

    As everyone will say everywhere, if you play a game with anti cheat it won’t work so then you shouldn’t change it. You can search this on protondb.

    I love Linux gaming but some lack of certain games really bums me out.

    • verdigris@lemmy.ml
      link
      fedilink
      arrow-up
      10
      ·
      edit-2
      26 days ago

      To be clear, the vast majority of “games with anti-cheat” work perfectly well on Linux. It’s just the ones where developers have chosen to either explicitly block Linux (e.g. Fortnite) or to use invasive rootkit anti-cheat (e.g. Riot games, FACEIT, etc.) which wouldn’t be allowed to work on Linux anyway because it’s a really stupid idea to let random gaming companies have access to your ring 0.

  • ReakDuck@lemmy.ml
    cake
    link
    fedilink
    arrow-up
    21
    ·
    26 days ago

    If you code, its nearly always better on Linux. Except you code especially for Windows only.

  • stealth_cookies@lemmy.ca
    link
    fedilink
    arrow-up
    8
    ·
    26 days ago

    I recommend dual booting, not a VM. It is easy enough to choose which OS to boot into if you need to go back to Windows, while being enough friction that you don’t immediately fallback to going into Windows every time you don’t know how to do something in Linux.

    I don’t code, but from the gaming standpoint, things are pretty decent on Linux these days. I’ve been on Linux full time on my laptop for well over a year now, and 6+ months on my main desktop now and find very few reasons to boot into Windows. I think I booted into Windows last weekend for the first time in at least 2 months because I had to upgrade the FW on a device that only had a Windows tool. Otherwise I do have a windows VM on a server that I use relatively frequently, because the state of 3D CAD software on Linux is horrible.

    • mic_check_one_two@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      26 days ago

      I actually recommend against dual booting, because Windows is not a friendly neighbor. It has a bad habit of fucking with boot loaders and insisting that it be the first priority every time it updates.

      • stealth_cookies@lemmy.ca
        link
        fedilink
        arrow-up
        1
        ·
        25 days ago

        Yeah, that is the downside of dual booting, you are almost certainly going to end up learning how to chroot to fix the bootloader at some point. But dealing with a VM, especially if you want to pass a GPU also has its own difficulties.

      • pineapple@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        25 days ago

        Do these issues go away if you have a two separate physical disks for each install?

  • cmrss2@aussie.zone
    link
    fedilink
    arrow-up
    4
    ·
    26 days ago

    I have a very similar use case to you, and when I built my PC I just never installed Windows on it. Linux is a great development environment (imo strictly superior to Windows but ymmv), and gaming is almost flawless with Proton. Only problems with that has been from the immature RX 9070 XT drivers, so not too bad.

    Depending on what you program with I’d highly recommend exclusively using a Linux VM for it. Then you can fully switch once you’re comfortable working out the kinks.

  • Dima@feddit.uk
    link
    fedilink
    arrow-up
    2
    ·
    26 days ago

    A VM would be a good way to try out different distros & desktop environments, and to get some familiarity with Linux. For actually gaming I would install the OS on bare metal (you could dual boot if you wanted to keep windows installed as a backup).

  • mlody@szmer.info
    link
    fedilink
    English
    arrow-up
    2
    ·
    26 days ago

    If you are not going to install a non-beginner system like Arch or Gentoo then you should try a virtual machine first. Otherwise, it may come in handy if you want to choose a system with a desktop environment that suits you, because changing after installing a system for a novice user can be hard without avoiding problems.

    In fact, on a virtual machine like Virtual Box you won’t experience the problems you will encounter on real hardware (driver problem, etc.). It’s better to test liveiso with Ventoy instead.

  • hansolo@lemm.ee
    link
    fedilink
    English
    arrow-up
    3
    ·
    26 days ago

    You can always do a dual boot. I’ve had a dual boot Linux Mint and Win 11 for maybe 18 months and I’m finally getting around to purging Windows out for good. The Mint installer sets it all up shockingly easily. I ended up so rarely using Windows that at this point I would rather have the space back.

    Admittedly, I do very little coding or gaming, so YMMV, but I’m also basically trashing PS Elements and MS Office Home because I know GIMP and LibreOffice do the job anyway. It was that $250 that kept me holding on for this long.

    • PotatoesFall@discuss.tchncs.de
      link
      fedilink
      arrow-up
      4
      arrow-down
      2
      ·
      26 days ago

      warning: Mint is not a great choice for gaming, basically unusable out of the box and no better after following tutorials for optimization. Not to mention no Wayland support.

      PopOS worked fine out of the box. Bazzite also works great.

      • hansolo@lemm.ee
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        26 days ago

        You should explain that to the few Steam games I have that work just fine on Mint, right out of the box.

        It’s hit or miss and depends on the game, and OP didn’t really give us much detail. There’s just no absolutes is ultimately the lesson to learn, which is why a dual boot option might suit them best.

  • shapesandstuff@feddit.org
    link
    fedilink
    arrow-up
    5
    ·
    26 days ago

    I used to run Mint and Win7 parallel in uni (gosh, a decade ago?) since we were working with ruby - at the time basically impossible to run and dev under windows.
    In matters of development there are almost only advantages, depending on your target platform of course. Bash is great, tools and packages are usually easier to setup than on windows.
    For gaming my only linux experience is the Steamdeck. I’ve ran a bunch of non-steam games and Proton (the bridge for windows games under Linux) does all the heavy lifting for you. I only had issues with the Riot launcher, which tended to break when detecting a new update.