r/CPAPSupport • u/dang71 • Mar 12 '26
Running Linux inside Windows with WSL (for flashing)
Hey guys!
I was curious to try running Linux directly inside Windows because I had read that it was possible using WSL (Windows Subsystem for Linux), but I had never actually tested it myself. I can now confirm that it works very well. The process was fairly straightforward:
- First, I enabled virtualization in the BIOS.
- Then I opened PowerShell as administrator and ran "wsl --install", which automatically installed WSL2 and Ubuntu as the default Linux distribution.
- After rebooting, I launched Ubuntu, which opens just like a terminal inside Windows, created a Linux username and password, and updated the environment (some commands here).
- From there, I installed the usual Linux tools (telnet, openocd, etc.)
- Windows and Linux integrate nicely through the \\wsl.localhost\Ubuntu path, which makes it easy to share files between the two environments. (this alone, its major for me)
Overall the whole process only took a few minutes and provides a fully functional Linux terminal running directly inside Windows, without needing a separate Linux machine. If anything, the setup felt simplerand required less messing around with the setup (I was using a Raspberry Pi
Just for reference, yes I was able to flash the AS10 using this method :) And I use Windows 11.
If there’s interest, I could put together a short, more technical and detailed guide to help :)
3
u/electrosoma 19d ago
Thanks for the guide. Did you put together a more technical guide? I got stuck early on after the WSL install. I installed WSL and OpenOCD. You mention having to update the environment. I'm not sure how to do that. What other tools should I install before going ahead with Airbreak? Do I need to install a file browser? I tried installing something called Nautilus but it doesn't appear to let me look at the hard drive. It tells me I'm not authorised.
I'm very much new to Linux really. I've dabbled over the years but always ended up in frustration with the cryptic messages in the console and never knowing how to fix things! I did briefly study Unix at university but that was thirty years ago! I have a Pi4 as well which I've played around with a bit over the years.
Thanks.
2
u/RippingLegos__ ModTeam Jul 11 '26
Dang, you are back and had a wonderful adventure? :)
2
u/empeka Mar 12 '26
My wsl quality of life improvements:
usbattach.sh - automatically attach previously shared st-link device (usbipd)
run-ocd.sh - attach st-link if not attached and start openocd with proper config
2
u/kevpatts Mar 12 '26
Why is this in this subreddit?
3
u/RippingLegos__ ModTeam Mar 12 '26
Dang, great work, and yes please write up the guide!
3
u/HaloLASO Mar 13 '26
Whenever I compiled the firmware my terminal always opened with WSL2 running as one of the steps. I never once had to boot into Linux since I only use Windows 11
3
u/swagpresident1337 Mar 17 '26
Damn I just see this now, spend the whole yesterday basically getting tothat point as well. And also thought about writing a guide, because all other guides just assume you know how to use Linux basically. Which baiscally no one does outside the IT bubble.
2
u/rpnfan Mar 12 '26
Yes, that would be great of course!
1
u/AutoModerator Mar 12 '26
Hey there r/CPAPsupport member. Welcome to the community!
Whether you're just starting CPAP therapy, troubleshooting issues, or helping a loved one, you've come to the right place. We're here to support you through every leak, pressure tweak, and victory nap.
If you'd like advice, please include your machine model, mask type, pressure settings, and OSCAR or SleepHQ data if possible.
Helpful Resources: https://www.reddit.com/r/CPAPSupport/comments/1jxk1r4/getting_started_with_analyzing_your_cpap_data_a/
You're not alone — and you're among friends. Sleep well and breathe easy.
— Your r/CPAPSupport team
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.