debootstrap | Bootstrap a basic Debian system

 by   aburch Shell Version: Current License: No License

kandi X-RAY | debootstrap Summary

kandi X-RAY | debootstrap Summary

debootstrap is a Shell library. debootstrap has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

You can run debootstrap from its source tree without installing it. This can be useful if you want a quick way to make a Debian chroot on another system, or if you are testing modifications to debootstrap. First, get the source.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              debootstrap has a low active ecosystem.
              It has 6 star(s) with 3 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 1 open issues and 0 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of debootstrap is current.

            kandi-Quality Quality

              debootstrap has no bugs reported.

            kandi-Security Security

              debootstrap has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              debootstrap does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              debootstrap releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of debootstrap
            Get all kandi verified functions for this library.

            debootstrap Key Features

            No Key Features are available at this moment for debootstrap.

            debootstrap Examples and Code Snippets

            No Code Snippets are available at this moment for debootstrap.

            Community Discussions

            QUESTION

            openstack-octavia: failed to create amphora disk-image
            Asked 2021-May-10 at 18:31

            I configure openstack victoria multi-node on CentOS8. When I create amphora-disk-image (option -r rootpassword), I have an issue:

            ...

            ANSWER

            Answered 2021-May-10 at 18:31

            I successfully created amphora-image with my option. I don't know what cause that issue, I just boot all openstack-multi node and let octavia-disk-image-create running until done. Regards !

            Source https://stackoverflow.com/questions/67450359

            QUESTION

            Is there another way to restrict SSH user other than chroot jail?
            Asked 2021-May-07 at 13:54

            I need to create a safe environment for a foreign SSH user that has to have very restricted access to our server. That is:

            • can only execute commands that are allowed
            • can only use specific software that is allowed
            • must not be allowed to see/modify/remove folders and files outside of his/her root filesystem under any circumstances

            I have tried using chroot jail before using the jailkit tool for a smaller project that did not need as much customization and it worked fine, but this project is much bigger and requires a lot more customization in terms of allowed software and commands.

            The requirements for the safe environment are:

            • the ability to use basic commands such as ls, cd, grep etc.
            • the ability to run dotnet scripts
            • the ability to utilize running RabbitMQ broker (the broker is running OUTSIDE of the environment)
            • the ability to utilize running PostgreSQL database (the database is running OUTSIDE of the environment)

            I have heard about multistrap or debootstrap but I am not sure whether these are adequate tools for solving my problem.

            The servers are running on Debian OS v. 9 and 10. All the required software is installed in the root filesystem and is running fine. All I need is for the restricted user to be able to utilize it without being able to damage/corrupt the root filesystem.

            My questions are:

            1. Are there any other useful (better) tools that I have not mentioned that could solve my problem?
            2. Are there any useful guides for the software I have mentioned that could solve my problem?
            ...

            ANSWER

            Answered 2021-May-07 at 13:54

            In case somebody is facing the same problem. I solved it using Docker container with separate SSH server and all required software installed on it.

            Source https://stackoverflow.com/questions/67227346

            QUESTION

            Selenium docker crashes on Windows (unknown error: DevToolsActivePort file doesn't exist)
            Asked 2021-Apr-30 at 04:08

            Summary: works on the mac but not on windows. Please note: This is not a duplicate of other similar issues, I have researched this for more than a day on SO and elsewhere.

            I built a super simple script which executes 2 dockers containers: one with chrome browser, chromedriver and the other with the test. It runs fine on Linux, but when I launch the containers on Windows I'm getting;

            ...

            ANSWER

            Answered 2021-Apr-30 at 04:08

            It could be due to issues occurred when a windows update and docker image not updated accordingly. Try rolling back to a previous version can fix it.

            Further, try experimenting with different docker images like

            Source https://stackoverflow.com/questions/67294395

            QUESTION

            How to find the root device name of a debootstrap image
            Asked 2021-Mar-30 at 16:04

            I'm creating a ubuntu 20.04 QEMU image with debootstrap (debootstrap --arch amd64 focal .). However, when I tried to boot it with a compiled Linux kernel, it failed to boot:

            ...

            ANSWER

            Answered 2021-Mar-30 at 16:04

            This kind of "unable to mount root fs on unknown-block" error has several possible causes:

            • You asked the kernel to use the wrong device as the rootfs (or you didn't specify, and the built-in default is the wrong one)
            • You asked the kernel to use the right device as the rootfs, but the kernel doesn't have a device driver for it compiled in. (This might include more complicated cases like "the device is a PCI device and the kernel doesn't have the PCI controller driver compiled in.")
            • You asked the kernel to use the right device as the rootfs, and the kernel does have a driver for it, but it couldn't find the hardware, perhaps because the QEMU command line is incorrect

            An important clue in figuring out which is the problem is to look at the part of the kernel log just before the "Kernel panic" part of the log. The kernel should print a list of "available partitions", which are the devices that it has a driver for and which are present. If that list contains a plausible looking device name, as in your case (where "vda" is listed as provided by the "virtio_blk" driver) then you now know what the root device name should be, and all you need to do is fix the kernel command line, eg "root=vda". Note that this list is a list of available partitions, so if your disk image has multiple partitions they should show up in the list as "vda1", "vda2", etc. (In this case it looks like your image is a single filesystem, not a disk image with multiple partitions, so only "vda" is in the list.)

            If the kernel's list of available partitions doesn't include anything that looks like the disk you were expecting, then either the kernel is missing the driver, or the QEMU command line doesn't have the option to provide the device. This is a little harder to debug, but there may be useful information earlier in the kernel bootup log where the kernel probes for hardware -- for instance there should be logging when the PCI controller is probed. You can also of course double-check the config file for your kernel to see if the right CONFIG options are set.

            If you're using a standard distro kernel then these usually have all the usual devices built-in, and your first check should be your QEMU command line. If you built your own kernel from source, check your config, especially if you were trying to achieve a "minimal" kernel with only the desired drivers present.

            Source https://stackoverflow.com/questions/66854979

            QUESTION

            How to "extract" string before "-" but if the string itself can contain a "-"?
            Asked 2020-Nov-03 at 23:32

            I have list of packages like this (it's bigger than this):

            ...

            ANSWER

            Answered 2020-Nov-03 at 23:13

            QUESTION

            This magic line of Bash is indecipherable to me, can someone explain what it's doing?
            Asked 2020-Jan-20 at 13:37

            I found it on this thread: Best way to parse command line args in Bash?

            And I'm trying to use it in this code: https://github.com/flyingfishfuse/bash-scripts/blob/master/debootstrap-ubuntu-18-04.sh

            And this is the part I don't understand, specifically the third line.

            ...

            ANSWER

            Answered 2020-Jan-20 at 13:08

            bash(1) isn’t all that “magic,” though it certainly makes its users feel like wizards! The key to deciphering it is to know which manpages to look at. Or, if you are a language person (like me), to realize that bash is one little glue language; a bunch of other little languages are sprinkled on top of it in the form of little tools like grep(1), sed(1), awk(1), cut(1), etc.

            So, let’s dig in:

            Source https://stackoverflow.com/questions/59823729

            QUESTION

            default path in a singularity container
            Asked 2019-Nov-22 at 11:33

            I'm very new to the container space and after following some tutorials I'm trying to get my own singularity container up and running.

            My recipe is as follows:

            ...

            ANSWER

            Answered 2019-Nov-22 at 11:33

            By default, the PATH used in the container is the PATH of the environment you run it from. An easy way to ensure the path is what you want is set: PATH=/path/to/strelka/bin:$PATH under %environment.

            A simple definition file you can you to quickly play around with:

            Source https://stackoverflow.com/questions/58965875

            QUESTION

            Debootstrap script installs, but xorg only starts as root
            Asked 2019-Oct-30 at 09:46

            My Devuan debootstrap scripts work, but xorg only wants to start if I am the root user. You might have heard problems with xorg a million times, but I can't see what I am missing.

            The scripts are on gitlab.

            The user is part of the following groups: cdrom,console,floppy,sudo,audio,video,plugdev,netdev,tty,input

            The installed xserver packages are:
            xserver-xorg-video-dummy xserver-xorg-input-void xserver-xorg-core xserver-xorg-legacy xinit x11-xserver-utils xserver-xorg-video-intel xserver-xorg-video-nouveau xserver-xorg-input-evdev xserver-xorg-input-synaptics

            Run my scripts at your own risk. It is not complete yet and might break stuff.

            Script explanation:
            - The config script contains all the variables which you can set;
            - The install script runs debootstrap and mounts the folders;
            - The chroot script gets executed in the chroot;
            - The after-install script gets executed after the chroot script.

            Log:

            ...

            ANSWER

            Answered 2019-Oct-29 at 15:20

            You must allow anybody to start X11:

            Source https://stackoverflow.com/questions/58604262

            QUESTION

            Qemu Debian x86 on RaspberryPi
            Asked 2019-Sep-21 at 08:31

            I want to create i386 environment with QEMU and chroot on Raspberry Pi. I am using Raspberry Pi ver B, but I guess it should not matter much which version is used.

            So far I did:

            ...

            ANSWER

            Answered 2018-Aug-17 at 14:36

            OK, I think I figured it out.

            It works when I select stretch as Debian version in debootstrap command.

            Source https://stackoverflow.com/questions/51895452

            QUESTION

            Building singularity image: "Failure while installing base packages"
            Asked 2019-Jul-11 at 12:28

            When trying to build the Singularity image for this package: https://bitbucket.org/MAVERICLab/vcontact2.git

            I get:

            ...

            ANSWER

            Answered 2019-Jul-11 at 12:28

            If you're willing to modify the definition file and use a different bootstrap source, the following builds successfully on 18.04 LTS and should on 16.04 as well.

            Source https://stackoverflow.com/questions/56987531

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install debootstrap

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/aburch/debootstrap.git

          • CLI

            gh repo clone aburch/debootstrap

          • sshUrl

            git@github.com:aburch/debootstrap.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link