yuk7 / container-systemd-init-tool Goto Github PK
View Code? Open in Web Editor NEWa toolkit to virtually start and interop Systemd as PID1 for Linux Containers
License: MIT License
a toolkit to virtually start and interop Systemd as PID1 for Linux Containers
License: MIT License
I was able to get xfce4 full de on wsl. But trying the same thing on wsl2 gives error. Tried with VcxSrv and RDP but in vain. Systemd , dbus all seem to be running fine . Any help is appreciated
How to uninstall with all files?
Are you planning to add an Arch image to the microsoft store?
https://devblogs.microsoft.com/commandline/memory-reclaim-in-the-windows-subsystem-for-linux-2/
" Memory Reclamation for WSL 2 "
It doesn't work on my machine,but ubuntu20.04 can...
Why can't I open Archwsl2 after installing libffi, System failure caused by libffi software
pacman -S libffi
[ Process exited with code 9 ]
Hi @yuk7,
today i realize that you rename the repo from Arch Linux centric to systemd centric.
What does that mean for ArchWSL2? Did you end supporting/creating versions for WSL2?
Steps to reproduce:
PS C:\Arch> .\Arch.exe get --default-uid
1000
[zmezei@jane ~]$ id
uid=1000(zmezei) gid=1000(zmezei) groups=1000(zmezei)
[zmezei@jane ~]$ id zmezei
uid=1000(zmezei) gid=1000(zmezei) groups=1000(zmezei),998(wheel),1001(tfenv)
[zmezei@jane ~]$ ls -l /var/lib/tfenv/versions -d
drwxrwxr-x 3 root tfenv 4096 Jun 7 21:49 /var/lib/tfenv/versions
[zmezei@jane ~]$ touch /var/lib/tfenv/versions/testfile
touch: cannot touch '/var/lib/tfenv/versions/testfile': Permission denied
[zmezei@jane ~]$ sudo su -l zmezei
[zmezei@jane ~]$ id
uid=1000(zmezei) gid=1000(zmezei) groups=1000(zmezei),998(wheel),1001(tfenv)
[zmezei@jane ~]$ id zmezei
uid=1000(zmezei) gid=1000(zmezei) groups=1000(zmezei),998(wheel),1001(tfenv)
[zmezei@jane ~]$ touch /var/lib/tfenv/versions/testfile
[zmezei@jane ~]$
I guess this is caused by the method you use nsenter here:
https://github.com/yuk7/ArchWSL2/blob/master/src/isocon_sh.sh#L17
According to nsenter's man page:
--preserve-credentials
Don't modify UID and GID when enter user namespace. The default is to drops supplementary groups and sets GID and UID to 0.
So it drops supplementary groups by default, and I guess it happens here as well.
Do we still need fakeroot-tcp, we can just replace it with normal tcp in WSL2
/mnt/wsl
directory that mounted for Docker Desktop WSL Integration only have directory structure and does not have content. Some other distro (I have checked Ubuntu and Alpine) have contents for Docker Desktop WSL Integration.
du -sh /mnt/wsl
and ls -lR /mnt/wsl
output of ArchWSL2 and Ubuntu:
https://gist.github.com/0xBADDCAFE/b0568f2ffd97a8b3d6c9b9dd7019737e
Just updated windows to give ArchWSL2 a go and i'm running into this issue through everything i'm trying to do, Any ideas?
==> Making package: oh-my-zsh-git r5620.31eca46ee-1 (Mon 13 Jul 2020 01:08:35 AM BST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
chmod: changing permissions of '/mnt/c/Users/KristiaN/BUILDS/oh-my-zsh-git/src': Operation not permitted
==> ERROR: An unknown error has occurred. Exiting...
User defined signal 1
[v@V-PC oh-my-zsh-git]$```
In the latest version 20060800, when setting default-uid to 1000 or set default-user to normal account, can't login system.
I made an app manifest for archwsl2, yourself or anyone else may find it very useful! Feel free to take a peek at it!
https://github.com/devlexanderxyz/scoop-bucket
I am using ArchWSL on WSL2 as development platform, running Docker and even Linux GUI applications, with excellent performance and no issue whatsoever.
Could you spend a few words on why is this needed and what benefits it brings compared to ArchWSL?
Hi, is update process similiar to ArchWSL? I tried that, but had to manually replace files changed in last release. As I couldn't find any info on it, i thought that some sort of wiki/faq would be very useful.
running the installation with WSL2, gives
Installing...
ERROR:Installation Failed!
HRESULT:0x80070002
Press any key to continue..
running installation with WSL1 runs fine!
not untill i run it...
----- ERROR -----
This distribution only works with WSL2.
This is running in WSL1 mode now.
Please use WSL2 mode.
i have tried upgrading it...
The system cannot find the file specified.
I
Can you please create appx version for wsl2 version where systemd works in it
also can you explain advantage of appx version over zip version ??
3rd party AUR package is critical for the system. This is not good, too easy to destroy the system.
I suggest to just explicitly copy daemonize
binary to boot scripts folder. And edit the script in a such way https://github.com/HanabishiRecca/ArchWSL2/commit/52b64eb272cde0a32265aba57c30aa2f080c9212
Noticed some warnings while installing MinGW on ArchWSL2.
Also tested with ArchWSL but the install completes without any warnings there.
# pacman -S mingw-w64-gcc
resolving dependencies...
looking for conflicting packages...
Packages (6) libmpc-1.1.0-2 mingw-w64-binutils-2.35-1 mingw-w64-crt-7.0.0-1 mingw-w64-headers-7.0.0-1 mingw-w64-winpthreads-7.0.0-1
mingw-w64-gcc-10.2.0-1
Total Installed Size: 1175.17 MiB
:: Proceed with installation? [Y/n]
(6/6) checking keys in keyring [###################################################] 100%
(6/6) checking package integrity [###################################################] 100%
(6/6) loading package files [###################################################] 100%
(6/6) checking for file conflicts [###################################################] 100%
(6/6) checking available disk space [###################################################] 100%
:: Processing package changes...
(1/6) installing libmpc [###################################################] 100%
(2/6) installing mingw-w64-crt [###################################################] 100%
(3/6) installing mingw-w64-binutils [###################################################] 100%
warning: warning given when extracting /usr/i686-w64-mingw32/bin/ar (Can't create '/usr/i686-w64-mingw32/bin/ar')
warning: warning given when extracting /usr/i686-w64-mingw32/bin/as (Can't create '/usr/i686-w64-mingw32/bin/as')
warning: warning given when extracting /usr/i686-w64-mingw32/bin/dlltool (Can't create '/usr/i686-w64-mingw32/bin/dlltool')
warning: warning given when extracting /usr/i686-w64-mingw32/bin/ld (Can't create '/usr/i686-w64-mingw32/bin/ld')
warning: warning given when extracting /usr/i686-w64-mingw32/bin/ld.bfd (Can't create '/usr/i686-w64-mingw32/bin/ld.bfd')
warning: warning given when extracting /usr/i686-w64-mingw32/bin/nm (Can't create '/usr/i686-w64-mingw32/bin/nm')
warning: warning given when extracting /usr/i686-w64-mingw32/bin/objcopy (Can't create '/usr/i686-w64-mingw32/bin/objcopy')
warning: warning given when extracting /usr/i686-w64-mingw32/bin/objdump (Can't create '/usr/i686-w64-mingw32/bin/objdump')
warning: warning given when extracting /usr/i686-w64-mingw32/bin/ranlib (Can't create '/usr/i686-w64-mingw32/bin/ranlib')
warning: warning given when extracting /usr/i686-w64-mingw32/bin/readelf (Can't create '/usr/i686-w64-mingw32/bin/readelf')
warning: warning given when extracting /usr/i686-w64-mingw32/bin/strip (Can't create '/usr/i686-w64-mingw32/bin/strip')
warning: warning given when extracting /usr/x86_64-w64-mingw32/bin/ar (Can't create '/usr/x86_64-w64-mingw32/bin/ar')
warning: warning given when extracting /usr/x86_64-w64-mingw32/bin/as (Can't create '/usr/x86_64-w64-mingw32/bin/as')
warning: warning given when extracting /usr/x86_64-w64-mingw32/bin/dlltool (Can't create '/usr/x86_64-w64-mingw32/bin/dlltool')
warning: warning given when extracting /usr/x86_64-w64-mingw32/bin/ld (Can't create '/usr/x86_64-w64-mingw32/bin/ld')
warning: warning given when extracting /usr/x86_64-w64-mingw32/bin/ld.bfd (Can't create '/usr/x86_64-w64-mingw32/bin/ld.bfd')
warning: warning given when extracting /usr/x86_64-w64-mingw32/bin/nm (Can't create '/usr/x86_64-w64-mingw32/bin/nm')
warning: warning given when extracting /usr/x86_64-w64-mingw32/bin/objcopy (Can't create '/usr/x86_64-w64-mingw32/bin/objcopy')
warning: warning given when extracting /usr/x86_64-w64-mingw32/bin/objdump (Can't create '/usr/x86_64-w64-mingw32/bin/objdump')
warning: warning given when extracting /usr/x86_64-w64-mingw32/bin/ranlib (Can't create '/usr/x86_64-w64-mingw32/bin/ranlib')
warning: warning given when extracting /usr/x86_64-w64-mingw32/bin/readelf (Can't create '/usr/x86_64-w64-mingw32/bin/readelf')
warning: warning given when extracting /usr/x86_64-w64-mingw32/bin/strip (Can't create '/usr/x86_64-w64-mingw32/bin/strip')
(4/6) installing mingw-w64-winpthreads [###################################################] 100%
(5/6) installing mingw-w64-headers [###################################################] 100%
(6/6) installing mingw-w64-gcc [###################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
I update the Arch2.exe to [ALPHA] 20062900 and restart Arch2 throuth wsl --shutdown
and re-open the windows terminal
when I run df -h
it reports
df: /proc/sys/fs/binfmt_misc: Too many levels of symbolic links
I'm getting an error after installing and trying to launch ArchWSL2. I have done both a normal install using Arch2.exe as well as side loading into the appx version. I get the same error on both.
I'm on a fresh windows install and the original ArchWSL runs just fine.
Arch2.exe
sleep: cannot read realtime clock: Invalid argument
sleep: cannot read realtime clock: Invalid argument
nsenter: cannot open /proc/16/ns/cgroup: No such file or directory
I apologize for how stupidly small this is, and I'd PR it if the source containing that were here.
After install the exe, and set it wsl version to 2, it report
nsenter: cannot open /proc/12/ns/cgroup: No such file or directory
Im a bit newbie here but is there a way to upgrade without installing everything again? Since there is a new release now, and I just finished installing everything a few hours ago
nsenter: cannot open /proc/14/ns/time: No such file or directory
I keep getting this, and the arch doesn't even start.
I've enjoyed using WSL for a while.I really want to know if this can be used as a daily development system, because I am more concerned about stability,Looking forward to your reply.
Is this normal? I would expect to find stuff inside /usr/bin
.
Moreover this creates problems with cmake
and CMAKE_ROOT
, since /usr/.bin
is in the PATH
before /usr/bin
and cmake
results moved in another directory.
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.