Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Oct 16 14:30
    mralusw commented #146
  • Oct 16 14:29
    mralusw commented #146
  • Oct 16 14:29
    mralusw commented #146
  • Oct 16 13:50
    mralusw commented #146
  • Oct 16 13:49
    mralusw commented #146
  • Oct 15 13:38
    oxr463 unlabeled #236
  • Oct 15 00:49
    kodieross2150 closed #236
  • Oct 15 00:49
    issue-label-bot[bot] commented #236
  • Oct 15 00:49
    issue-label-bot[bot] labeled #236
  • Oct 15 00:49
    kodieross2150 opened #236
  • Sep 15 21:20
    GTRI-nathan commented #190
  • Sep 10 01:45
    seisdr commented #235
  • Sep 10 01:44
    oxr463 commented #235
  • Sep 09 18:42
    seisdr commented #235
  • Sep 09 18:42
    seisdr commented #235
  • Sep 09 18:38
    oxr463 labeled #235
  • Sep 09 18:38
    oxr463 labeled #235
  • Sep 09 18:38
    oxr463 commented #235
  • Sep 09 16:22
    issue-label-bot[bot] commented #235
  • Sep 09 16:22
    issue-label-bot[bot] labeled #235
matrixbot
@matrixbot
PureTryOut Ah ok cool. Well, I'm seeing if I can replace my current schroot setup with proot instead, but even the most basic proot command errors out. proot -R /path/to/chroot makes it try to execute /usr/bin/sh which obviously doesn't exist as it should be /bin/sh instead
matrixbot
@matrixbot
Lucas Ramage What host/guest distribution?
Lucas Ramage Also, did you try -S instead?
PureTryOut -S doesn't change much. I'm using Alpine Linux as the host, Ubuntu 20.04 as the guest
matrixbot
@matrixbot
PureTryOut There are more warnings and errors though
⟩ proot -S /srv/chroot/ubuntu/
proot error: execve("/usr/bin/sh"): Bad address
proot info: possible causes:
  * the program is a script but its interpreter (eg. /bin/sh) was not found;
  * the program is an ELF but its interpreter (eg. ld-linux.so) was not found;
  * the program is a foreign binary but qemu was not specified;
  * qemu does not work correctly (if specified);
  * the loader was not found or doesn't work.
fatal error: see `proot --help`.
proot warning: ptrace(PEEKDATA): Function not implemented
proot error: can't chmod '/tmp/proot-21644-hEObId': Bad address
Lucas Ramage Try proot -S /srv/chroot/ubuntu /bin/bash
PureTryOut Tried that before with -R, didn't help. Right now:
⟩ proot -S /srv/chroot/ubuntu/ /bin/bash
proot error: execve("/usr/bin/bash"): Bad address
proot info: possible causes:
  * the program is a script but its interpreter (eg. /bin/sh) was not found;
  * the program is an ELF but its interpreter (eg. ld-linux.so) was not found;
  * the program is a foreign binary but qemu was not specified;
  * qemu does not work correctly (if specified);
  * the loader was not found or doesn't work.
fatal error: see `proot --help`.
proot warning: ptrace(PEEKDATA): Function not implemented
proot error: can't chmod '/tmp/proot-22000-fhIpMD': Bad address
PureTryOut Why does it keep appending /usr to it?
Lucas Ramage That is odd
Lucas Ramage Is this the alpine package?
matrixbot
@matrixbot
PureTryOut Yes
matrixbot
@matrixbot
Lucas Ramage Might be a bug
Lucas Ramage This is the latest static binary
PureTryOut That one works fine yes
PureTryOut So I guess we need a new release 😛
matrixbot
@matrixbot
PureTryOut Awesome! The main reason I wanted to switch from schroot was failing to get PulseAudio working, which works out of the box with proot!
I'll just use the static binary till a new package version hits the repos, thanks for your help!
matrixbot
@matrixbot
Lucas Ramage Awesome
Lucas Ramage I'll file a bug to get the Alpine package bumped
Aman Gupta Karmani
@tmm1
How can I build a 32bit static proot on x86_64?
I tried CFLAGS=-m32 but it's still trying to build the 64bit loader
Aman Gupta Karmani
@tmm1
Okay CC="gcc -m32" worked
matrixbot
@matrixbot
Lucas Ramage You can also try CFLAGS="${CFLAGS} -m32" make -e
Lucas Ramage 32bit is somewhat untested currently
p
@hackintosh5_gitlab
I'm trying to make a runc-like containment thing with proot (in C). The goal is that people can run Docker images in Termux (I know, bad idea :). Has anyone tried this before? I think I can manage it but I don't want to reinvent the wheel.
Lucas Ramage
@oxr463
I think that's a great idea!
Check PR 204 on GitHub
Once it is merged, it will allow for exactly that
But it needs some work
p
@hackintosh5_gitlab
That's pretty cool, will check later. Tomorrow I'll make a PR which makes it possible to link proot directly into another program, but I'm having some problems with loader. I think I can crack it myself though
matrixbot
@matrixbot
Lucas Ramage Oh neat
p
@hackintosh5_gitlab
ok, so my code builds, but it segfaults on proot/src/path/binding:128. I have no idea why - it works fine in proot normally. I guess that I've missed some initialisation thats normally done in cli/, but idk what
p
@hackintosh5_gitlab
ok, turns out i had to call initialize_bindings just before calling launch_process. some docs on that might be nice
p
@hackintosh5_gitlab
yay, it works!
p
@hackintosh5_gitlab
what'd be really cool is a https://godoc.org/github.com/opencontainers/runc/libcontainer implementation based on proot
but i dont think i'm good enough at go to do that
jakalx
@jakalx
Hi! I'm currently analyzing a failing assertion in compare_paths2 and stumbled upon these two lines in join_paths: https://github.com/proot-me/proot/blob/f0e3bfc5e621838d1ae4dce85e5fb2407a72cf11/src/path/path.c#L82
shouldn't the second strcat be at length + 1?
jakalx
@jakalx
ah, my bad, strcat takes care of that
matrixbot
@matrixbot
Lucas Ramage Might be a good chance to write a test ;)
Bart Ribbers
@PureTryOut
Hey guys, I'm trying to get a chroot up and running with Steam to play games on an environment where Steam normally doesn't run (Musl libc). I can run Steam fine with the usual chroot /var/chroot /usr/games/steam (it's a Debian chroot) and it'll launch. However with proot it just crashes right after verifying the installation.
Does anyone have any experience with running Steam in a proot?
Bart Ribbers
@PureTryOut
Oh also, what is the Matrix address for this room?
1 reply
matrixbot
@matrixbot
PureTryOut I'm joined via Matrix now so I'll see any response
Lucas Ramage Oh that is an interesting use case for sure
Lucas Ramage I don't think I've seen it used that way before
Lucas Ramage Do you have any logs?
matrixbot
@matrixbot
PureTryOut Not much sadly.
> ./proot -S /var/chroot -b /games-nvme:/games-nvme -b /games-sata:/games-sata /usr/games/steam
Running Steam on debian 10 64-bit
STEAM_RUNTIME is enabled automatically
Pins potentially out-of-date, rebuilding...
Steam client's requirements are satisfied
/home/bart/.steam/debian-installation/ubuntu12_32/steam -nominidumps -nobreakpad
WARNING: setlocale('en_US.UTF-8') failed, using locale: 'C'. International characters may not work.
[2020-10-09 08:07:46] Startup - updater built Oct  7 2020 06:15:36
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[2020-10-09 08:07:47] Failed to load cached hosts file (File 'update_hosts_cached.vdf' not found), using defaults
[2020-10-09 08:07:47] Using the following download hosts for Public, Realm steamglobal
[2020-10-09 08:07:47] 1. http://client-download.steampowered.com, /client/, Realm 'steamglobal', weight was 100, source = 'baked in'
[2020-10-09 08:07:47] 2. http://media.steampowered.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
[2020-10-09 08:07:47] Checking for update on startup
[2020-10-09 08:07:47] Checking for available updates...
[2020-10-09 08:07:47] Downloading manifest: client-download.steampowered.com/client/steam_client_ubuntu12
[2020-10-09 08:07:47] Download skipped: /client/steam_client_ubuntu12 version 1602115886, installed version 1602115886, downloaded version 0
[2020-10-09 08:07:47] Nothing to do
[2020-10-09 08:07:47] Verifying installation...
[2020-10-09 08:07:47] Performing checksum verification of executable files
[2020-10-09 08:07:50] Verification complete
PureTryOut It doesn't even tell me it crashed, I only know that because starting it up the next time makes it say it didn't shutdown cleanly before
Lucas Ramage Some of these might be helpful