Coder Social home page Coder Social logo

container-systemd-init-tool's Introduction

yuk7

Hi there 👋

I'm yuk7.

  • 🔭 I’m currently working on Smartphone Apps project
  • 🌱 I’m currently learning Kotlin, Swift, Go, Kubernetes.
  • 💬 Ask me about anything!
  • 😄 Pronouns: she/her/hers
  • 📫 How to reach me: e-mail / Keybase / Telegram
  • ⚡ Fun fact: I'm a full-time daydreamer, programming for fun.

GitHub User's stars GitHub Sponsors

OS:ArchLinux OS:Windows11 OS:Android13 IDE:VSCode IDE:IDEA DE:KDE

email keybase telegram paypal Gist.GitHub:yuk7 gitee csdn

container-systemd-init-tool's People

Contributors

slkun avatar yuk7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

container-systemd-init-tool's Issues

future of ArchWSL2

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?

Cannot run distibution

nsenter: cannot open /proc/14/ns/time: No such file or directory

I keep getting this, and the arch doesn't even start.

chmod: changing permissions of '/mnt': Operation not permitted

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]$```

Supplementary groups don't get added when starting a new session

Steps to reproduce:

  • WIN: install this on Windows 10 2004 on WSL2
  • WIN: start a session
  • LIN: set up sudoers to allow all for %wheel without a password
  • LIN: set up a new user (zmezei)
  • LIN: add the user to some supplementary groups (wheel and tfenv)
  • LIN: logout
  • WIN: change the default startup user to the new user, result:
PS C:\Arch> .\Arch.exe get --default-uid
1000
  • WIN start a new session
  • LIN: experience some strange behavior:
[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
  • LIN: "login" as the user:
[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.

Process exited with code 9

Why can't I open Archwsl2 after installing libffi, System failure caused by libffi software

pacman -S libffi

[ Process exited with code 9 ]

Is it suitable for daily development

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.

There's a /usr/.bin folder created

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.

Realtime Clock Error

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

Update process question and concise wiki request

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.

Fakeroot-tcp

Do we still need fakeroot-tcp, we can just replace it with normal tcp in WSL2

Cannot run Arch with or without WSL1/2

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

Is there a way to upgrade the distro?

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

Can't create '/usr/i686-w64-mingw32/bin/...' when installing mingw-w64-binutils.

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...

Abnormal CPU usage?

I no running other process, but vmmem cpu usage 30%.
Is this caused by systemd?

TIM截图20200611110143
TIM截图20200611110219

can't open Arch2

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

Why is this needed?

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?

df report error after update to [ALPHA] 20062900

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.