How to set up and use Chroot on OpenBSD

Sdílet
Vložit
  • čas přidán 20. 06. 2024
  • In this video, I cover A to Z set up of #chroot on #openbsd including X11 forwarding.
    🔗 eradman.com/posts/chroot-build...
    🔗 www.tubsta.com/2020/01/creati...
    00:00 Introduction
    01:50 Setting up chroot
    06:30 Test chroot
    8:24 X11 forwarding on chroot
    9:40 0ad demo
  • Věda a technologie

Komentáře • 6

  • @chidaruma_
    @chidaruma_ Před měsícem

    Great video, thanks.

  • @mahmoudsuze
    @mahmoudsuze Před 2 měsíci

    Is it possible to install nvidia

    • @TheOpenBSDguy
      @TheOpenBSDguy  Před 2 měsíci +1

      Unfortunately not. OpenBSD doesn't have support for Nvidia cards

  • @Andrath
    @Andrath Před 2 měsíci

    Isn't it a bit wasteful to copy the entire base set into a folder just to run one application? Also, doing MAKEDEV in a user controlled directory seems unsafe. Can't you just copy some bits from your system into the chroot, and then use ldd to see what libraries the chroot needs, and then just use that? Basically craft a chroot jail for the application instead of a complete system?

    • @TheOpenBSDguy
      @TheOpenBSDguy  Před 2 měsíci +2

      Depends on how you see it. On the one hand, it's a waste of disk space copying the whole base to create a chroot, especially if the application is small. On the other hand, setting up a chroot with a whole system could save some troubleshooting time in case of complex applications. For me, it's mainly to have something similar to a VMM (but lightweight).
      On running MAKEDEV in user space, I don't know about the implications. Is there any resource I can read more about it?
      Theoretically speaking, the ldd approach should work. That's the standard approach in Linux. Though, I haven't tried it yet on OpenBSD. It's on my todo list.

    • @chidaruma_
      @chidaruma_ Před měsícem

      Yeah, you can copy only what you need based on ldd.