badgumby / arch-wsl Goto Github PK
View Code? Open in Web Editor NEWBasic instructions for bootstrapping ArchLinux as a new distribution on Windows Subsystem for Linux versions 1 and 2.
Basic instructions for bootstrapping ArchLinux as a new distribution on Windows Subsystem for Linux versions 1 and 2.
I came across this guide of yours while searching for how to enable systemd
in WSL2. I've been using the system for a long time, but have been struggling with enabling or bypassing it. Fortunately, your tips here have rekindled my confidence in keeping Arch on WSL 2 as my primary distro.
After repeatedly following the README, it still didn't work, so I went to the WSL.dev you referred to and found two small errors in what you gave following vim /etc/profile.d/00-wsl2-systemd.sh
Line 4, /lib/ systemd/systemd
-> /lib/systemd/systemd
Line 5, basic. target$
-> basic.target$
Fixing them, I rebooted the Arch on WSL 2 and succeed to enable systemd, checking by the command systemctl
.
Thanks for your guide again! It really helped me a lot.
Lines 172 to 177 in 36d4f69
the spaces between /lib/ systemd/systemd
and =basic. target$'
should be removed
and in
exec sudo /usr/bin/nsenter -t $SYSTEMD_PID -a su - $LOGNAME
should be
exec sudo /usr/bin/nsenter -t $SYSTEMD_PID -m -p su - $LOGNAME
because something is changed in util-linux. if not you hit DamionGans/ubuntu-wsl2-systemd-script#36
greetings
Systemd can now run on WSL out of the box. No need for daemonize.
https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/
Simply add this setting to /etc/wsl.conf:
[boot]
systemd=true
export DiSPLAY=:0
should be export DISPLAY=:0
.
https://github.com/badgumby/arch-wsl#configure-the-arch-linux-wsl-install-for-systemd
Removing /etc/profile.d/00-wsl2-systemd.sh solves the problem.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.