home.social

#chroot — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #chroot, aggregated by home.social.

fetched live
  1. @felsqualle @kw217 In case you don't know the hack already: boot a rescue system, do a #chroot to your system and do a "grub2-mkconfig" then.

  2. @felsqualle @kw217 In case you don't know the hack already: boot a rescue system, do a #chroot to your system and do a "grub2-mkconfig then.

  3. Building pkgsrc with bob on NetBSD: if you get an error about X11R7, this is normal if you have a headless server without Xorg/X11.

    Comment out the following line in your configuration file: { action = "mount", fs = "null", dir = "/usr/X11R7", opts = "-o ro" },
    See https://github.com/jperkin/bob/blob/main/config/netbsd.lua#L152

    Of course if you need to build X11 apps, install X11 on your host and keep the line.

    #bob #pkgsrc #netbsd #chroot

  4. Building pkgsrc with bob on NetBSD: if you get an error about X11R7, this is normal if you have a headless server without Xorg/X11.

    Comment out the following line in your configuration file: { action = "mount", fs = "null", dir = "/usr/X11R7", opts = "-o ro" },
    See https://github.com/jperkin/bob/blob/main/config/netbsd.lua#L152

    Of course if you need to build X11 apps, install X11 on your host and keep the line.

    #bob #pkgsrc #netbsd #chroot

  5. Wrote a silly script to showcase how to use unshare + chroot/pivot_root in order to manually enter a / without needing privileges:

    gist.github.com/mid-kid/9293f4

    I rarely see anyone mention how this can be done without needing to reach for or systemd-nspawn, and I think it's important to see how you can leverage the primitives that drive container technology.

    The script can be simplified, but not without sacrificing correctness. I hope the comments help.

  6. Wrote a silly script to showcase how to use unshare + chroot/pivot_root in order to manually enter a #linux #chroot / #container without needing #root privileges:

    gist.github.com/mid-kid/9293f4

    I rarely see anyone mention how this can be done without needing to reach for #bubblewrap or systemd-nspawn, and I think it's important to see how you can leverage the primitives that drive container technology.

    The script can be simplified, but not without sacrificing correctness. I hope the comments help.

  7. Regex песочница

    В данной статье описывается процесс реализации песочницы для регулярных выражений с помощью платформы для контейнеризации Docker и утилит Linux. Цель - получить ограниченную среду, куда пользователь может подключиться по SSH и где у него будет минимум возможностей, чтобы он ничего не сломал, но мог свободно использовать регулярные выражения как со встроенными в среду txt заготовками, так и со своим произвольным пользовательским вводом.

    habr.com/ru/articles/1008668/

    #docker #bash #bashscripting #chroot #shell

  8. داشتم یکی از پروژه‌هامو تست می‌کردم
    ولی اجرای مستقیمش روی سیستم اصلی اصلاً حس خوبی نداشت، نمی‌خواستم سیستمم خراب بشه
    می‌خواستم روی یه OS جدا تستش کنم
    راه معمولش استفاده از #VM ـه
    ولی VM هم کلی فضا می‌خواد، هم دانلود و نصبش زمان‌بره
    بعد با خودم گفتم:
    مگه روی گوشی proot نداریم؟
    پس روی خود لینوکس چی؟
    اینجا بود که رفتم سراغ #chroot
    یه محیط جدا و سبک، بدون overhead
    پروژه رو داخلش تست کردم، بدون اینکه سیستم اصلی درگیر بشه
    نه VM ـه، نه اجرای مستقیم
    یه راه منطقی برای تست چیزای ریسکی
    #Linux #Sandbox

  9. Say hello to the new plugin: `Hop`. Thanks to the new #rust plugin-sdk we can code plugins in rust!

    This plugin will be the base of the CI/CD of GitRoot. It permit to execute process on the host server.

    This process could be executed in an oci container #podman or #docker

    But for now I want to try to exec in a #chroot jail. The approache is much more in the spirit of GitRoot (less ressource needed, more simple to use... or not will see...) even if I know oci container are mandatory.

    It will be the responsibility of the instance administrator to choose what strategy they want to offer to their users.

    #git #forge #cicd #rustlang

  10. Who is using chroot with php-fpm? Is it worth it?

  11. Who is using chroot with php-fpm? Is it worth it?

  12. За 20 минут со стаканом чая и составленным планом действий над статьями в большом блоге я успел обработать всего 3 статьи, одну из которых удалил. Медленно :(

    Обнаружил, что есть несколько статей, посвящённых сбору очень компактных #chroot'ов. Какую пользу из них вынести в 2025? За #docker образы так никто не дрочится. В чрутах никто не работает. Грохать жалко. Чувствую себя цифровым скопидомом.

  13. #Root-Zugriff für alle:

    #Kritische #Sudo-Lücke gefährdet unzählige #Linux-Systeme

    #Forscher haben eine gefährliche #Sicherheitslücke im #Kommandozeilentool #Sudo entdeckt. Angreifer können mit wenig Aufwand Root-Rechte erlangen.

    Die #Sicherheitslücke besteht laut Blogbeitrag der #Forscher seit der im Juni 2023 veröffentlichten #Sudo-Version 1.9.14 – und damit seit rund zwei Jahren. Ursache ist wohl ein Fehler in der #Chroot- #Implementierung.

    golem.de/news/root-zugriff-fue

  14. #Root-Zugriff für alle:

    #Kritische #Sudo-Lücke gefährdet unzählige #Linux-Systeme

    #Forscher haben eine gefährliche #Sicherheitslücke im #Kommandozeilentool #Sudo entdeckt. Angreifer können mit wenig Aufwand Root-Rechte erlangen.

    Die #Sicherheitslücke besteht laut Blogbeitrag der #Forscher seit der im Juni 2023 veröffentlichten #Sudo-Version 1.9.14 – und damit seit rund zwei Jahren. Ursache ist wohl ein Fehler in der #Chroot- #Implementierung.

    golem.de/news/root-zugriff-fue

  15. @nickbearded but to more productive topics - i like how you can get a couple accounts going; of course this can be extended to stuff like groupware or black box zimbra. will get the vpn sorted today and certs going for the r proxy - it works fine have used it a bunch #flavors of tls and ssl #etherpad #securedrop #chroot access

  16. @nickbearded but to more productive topics - i like how you can get a couple accounts going; of course this can be extended to stuff like groupware or black box zimbra. will get the vpn sorted today and certs going for the r proxy - it works fine have used it a bunch #flavors of tls and ssl #etherpad #securedrop #chroot access

  17. Happy to see things finally falling into place!
    SLiM is running smoothly on the live system, and BashCoreX (the GUI evolution of BashCore) is starting to take shape!

    I'm now installing the CLI toolset via apt inside the chroot.

    Next up: testing everything, then bringing in tools from GitHub, GitLab, and the rest of the wild.

    Let’s push it further! 🍻

    #BashCoreX #BashCore #Linux #MinimalistOS #Pentesting #XFCE #chroot

  18. Happy to see things finally falling into place!
    SLiM is running smoothly on the live system, and BashCoreX (the GUI evolution of BashCore) is starting to take shape!

    I'm now installing the CLI toolset via apt inside the chroot.

    Next up: testing everything, then bringing in tools from GitHub, GitLab, and the rest of the wild.

    Let’s push it further! 🍻

    #BashCoreX #BashCore #Linux #MinimalistOS #Pentesting #XFCE #chroot

  19. [Перевод] Восстанавливаем повреждённый Linux через chroot

    Доводилось ли вам раскупоривать системник с Linux, который не грузится ни в какую – даже после того, как вы убедились в корректности настроек BIOS и в том, что никаких серьёзных аппаратных ошибок в машине нет? Если да – то вам просто необходимо изучить chroot. Он станет для вас настоящей палочкой-выручалочкой. Например, мне пару недель назад удалось таким методом восстановить устройство Nanopore GridION , после того, как мне совершенно не помог официальный метод переустановки через .iso-файл образа . Поэтому я решил задокументировать проделанные шаги. Этот метод я нащупал только после того, как Linux более десяти лет был моей рабочей лошадкой (спасибо, Мэтт !). Поэтому у меня есть основания полагать, что этот метод очень полезен и заслуживает вашего внимания. Надеюсь, этим постом мне удастся помочь тем, кому не доставало такого рассказа.

    habr.com/ru/articles/899776/

    #Linux #chroot #загрузочный_носитель #восстановление_данных #командная_строка

  20. Ah, yes, the ever-elusive #chroot technique—a #magical #ritual for resurrecting your #Linux systems from the dead. 🙄 Apparently, it's the "Swiss army knife" for when you can't manage to stick an .iso file into the right slot. 🛠️ Everyone take notes, because clearly, after a decade of using Linux, discovering basic #troubleshooting methods is a revelation. 🚀
    livesys.se/posts/the-chroot-te #SwissArmyKnife #tech #tips #HackerNews #ngated

  21. Ah, yes, the ever-elusive #chroot technique—a #magical #ritual for resurrecting your #Linux systems from the dead. 🙄 Apparently, it's the "Swiss army knife" for when you can't manage to stick an .iso file into the right slot. 🛠️ Everyone take notes, because clearly, after a decade of using Linux, discovering basic #troubleshooting methods is a revelation. 🚀
    livesys.se/posts/the-chroot-te #SwissArmyKnife #tech #tips #HackerNews #ngated

  22. [Перевод] Что не так с chroot: почему для контейнеров используется именно pivot_root

    В этой статье рассматриваются различия между pivot_root и chroot в контексте безопасности контейнеров. Узнайте, почему Docker отказался от chroot в пользу pivot_roo t и как это решение улучшает защиту от потенциальных уязвимостей.

    habr.com/ru/companies/flant/ar

    #контейнеры #chroot #pivot_root #корневая_директория #dockerfs #root #linux #docker

  23. @jessew chaos is still alive, less active probably but today is one of its more active days

    and i know ari from #lounge:envs.net then we branched off into root (general room for her hs) and then i became mod because rare sane braincell, and then shit happened and now i have #chroot:envs.net which just kinda exists
  24. Does anybody actually know how to chroot into a Debian 12 install??
    The liveiso works with my graphics fine but the actual install has complaints with both amdgpu and nouveau, preventing me from even doing a tty as it gets hung up.
    All I want to do is chroot into my new Debian 12 install (has separate root as btrfs and home as you ext4) so I can ensure amdgpu and nvidia are installed.
    #debian #linux #chroot #sysadmin #techhelp #amd #nvidia