You are not logged in.
Hey guys,
I just installed the Windows Subsystem for Linux by following this guide. I'll summarize the steps here:
Open Powershell as admin
Run
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Reboot
Next, go into the Windows Store and search for Debian. There's a package you can install. Note that this requires you be on Windows build 16215 or later. If you're on earlier Windows, you should upgrade, because managing these distros through lxrun could become a bit murky moving forward.
Install Debian from the Windows Store and launch it. It'll create a basic installation, ask you for a username and password.
I found that I had a perfectly boring and basic Debian Stretch running sort of "native" on Windows at this point. Cool! I usually use my Windows laptop for work and gaming, but like using linux for programming and putzing around, so for me, this was an ideal scenario. That said, the basic Debian (9.3, stretch) that ships has no real utility. We have to get it up to snuff, first.
sudo apt update -y
sudo apt upgrade -y
sudo apt dist-upgrade -y
sudo apt install aptitude
sudo aptitude install ~pstandard ~prequired ~pimportant -F%
Now exit with 'exit' and relaunch by using the Debian icon in your Start menu. Let's bunsen-ify it with the helium-netinstall dev script.
Log back in, and as your regular user
wget https://github.com/bunsenlabs/bunsen-netinstall/archive/helium-dev.tar.gz
tar xzvf helium-dev.tar.gz
cd bunsen-netinstall-helium-dev
./install
Now, obviously this isn't going to work for us out of the box. We need to install a package 'xrdp' and pipe everything through a virtual remote desktop. Instead of rebooting when the script asks for a reboot, let's install xrdp, and enable it for future logins.
sudo apt install xrdp
sudo service dbus start
sudo service xrdp start
I noticed a strange thing - my user didn't have what I'd expect in ~/.config - running the following one time manually should fix that:
/usr/lib/bunsen/configs/bl-user-setup
Now, exit out completely and reboot. Launch Remote Desktop in Windows and connect to 127.0.0.1 and authenticate with the user you made in Debian.
If you can't connect directly to 127.0.0.1 with Remote Desktop, it's likely that xrdp didn't survive the reboot. Just run the following and then retry your Remote Desktop connection:
sudo service dbus start
sudo service xrdp start
I notice that WSL doesn't play nicely with systemd, hence why we're doing everything through legacy debian init scripts. *shrug*. Enjoy!
Offline
Awesome! I've been wanting to do this since I heard about it. I'm glad you were able to get it running. So it's basically running as a docker container, correct?
Offline
This is awesome, thanks cloverskull!
I noticed a strange thing - my user didn't have what I'd expect in ~/.config - running the following one time manually should fix that:
/usr/lib/bunsen/configs/bl-user-setup
We need LightDM to set the desktop up, you can get the same effect without a display manager by adding a file at /etc/profile.d/bunsen.sh with this content:
#!/bin/sh
if [ ! -f "${HOME}/.config/bunsen/bl-setup" ]; then
/usr/lib/bunsen/configs/bl-user-setup
fi
And then make it executable:
sudo chmod +x /etc/profile.d/bunsen.sh
That will auto-configure the desktop for any new users
Bug report for this issue here:
Offline
Ah, nice one @HOAS. You can see I haven't been paying attention to the command line boot thread
@tknomanzr I'm not really sure if it's similar to a docker container. I actually have no idea how this WSL thing works.
Offline
similar to a docker container
Very much so, yes — the Windows kernel provides interfaces for the Linux programs to use (but not all Linux syscalls are available).
Offline
This is super cool. I had played around with using Debian/WSL with xMing and then installing the BunsenLabs repos on top if it but this XRDP solution looks a lot cleaner. Do you think it would be possible to get BunsenLabs included in the Windows App Store at some point?
Offline
Do you think it would be possible to get BunsenLabs included in the Windows App Store at some point?
That sounds sufficiently perverse that I may take an interest (once the Helium release is out, ofc).
Offline
I'd be reluctant to offer a ton of support, though...WSL seems relatively hacked together.
Offline
^ They'll love me then
Offline
That sounds sufficiently perverse that I may take an interest
Offline
^ It's funny 'cos it's true...
Offline
Damn...that sure looks cool, and I just might futz with WSL/BunsenLabs on my Win10 partition. Thanks Cloverskull for the how-to. I believe future WSL updates will allow us to pretty much allow a full blown Linux experience under WSL.
Real Men Use Linux
Offline