Skip to content
← Back to Community
Chroot Linux
Profile icon
programmeruser

Basically a chrooted Alpine Linux system that streams stdout/stderr/stdin through a websocket
Another version I created can be found here but it's currently not working due to some library problems
TODO: make the prompt $ work and attach a pty instead of streaming stdout/stderr/stdin, migrate the proot installation to nix

Voters
Profile icon
mollomm1
Profile icon
FlaminHotValdez
Profile icon
MarcusWeinberger
Profile icon
PixiGem
Profile icon
EpicGamer007
Profile icon
Highwayman
Profile icon
CSharpIsGud
Profile icon
cuber1515
Profile icon
ch1ck3n
Profile icon
maxina
Comments
hotnewtop
Profile icon
Coder100

cool

Profile icon
programmeruser
Profile icon
DynamicSquid
Profile icon
ch1ck3n
Profile icon
cuber1515
Profile icon
Whippingdot
Profile icon
QuickV
Profile icon
MarcusWeinberger

I found one issue, programs requiring access to /dev don't work, you should bind replit's /dev to the prooted /dev (use -b /dev:/sessions/${id}/dev)

Profile icon
programmeruser
Profile icon
programmeruser

@MarcusWeinberger doesn't work... hmm

Profile icon
MarcusWeinberger

@programmeruser what did you try doing? it worked for me, i modified your repl a little to remove the web aspect: https://replit.com/@MarcusWeinberger/alpine

Profile icon
programmeruser

@MarcusWeinberger oops, I used -b /dev:/sessions/${id}/dev instead of -b /dev:/dev

Profile icon
programmeruser

@MarcusWeinberger it works, that is, unless you don't want people printing messages to the console...

Profile icon
MarcusWeinberger

@programmeruser whoops, that was my bad actually, I messed up the command syntax when I recommended it to you

Profile icon
CSharpIsGud

Now this is cool, might try to do something neat with this later

Profile icon
programmeruser
Profile icon
programmeruser

@CSharpIsGud what exactly are you planning to do?

Profile icon
CSharpIsGud

@programmeruser idk I was thinking of getting a package manager running on it, but nix exists so now I don't know of many real reasons to do it.
Besides sandboxing there aren't really many very good uses of chroot.

Profile icon
programmeruser

@CSharpIsGud apk is already available because it's Alpine Linux

Profile icon
wispkoe

This is a work of art

Profile icon
Whippingdot

So I am going to be the first to make a comment out of the normal - I think I have seen this on your about page...have I? If not - what is this? Like a terminal or...I haven't really learned what a chrooted Alpine Linux system is yet.

Profile icon
programmeruser
Profile icon
Whippingdot

Welp see you in one year after reading all of those wiki articles. @programmeruser

Profile icon
cuber1515