debootstrap | Bootstrap a basic Debian system
kandi X-RAY | debootstrap Summary
kandi X-RAY | debootstrap Summary
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
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of debootstrap
debootstrap Key Features
debootstrap Examples and Code Snippets
Community Discussions
Trending Discussions on debootstrap
QUESTION
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:31I 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 !
QUESTION
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:
- Are there any other useful (better) tools that I have not mentioned that could solve my problem?
- Are there any useful guides for the software I have mentioned that could solve my problem?
ANSWER
Answered 2021-May-07 at 13:54In case somebody is facing the same problem. I solved it using Docker container with separate SSH server and all required software installed on it.
QUESTION
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:08It 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
QUESTION
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:04This 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.
QUESTION
I have list of packages like this (it's bigger than this):
...ANSWER
Answered 2020-Nov-03 at 23:13try this regex :
QUESTION
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:08bash(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:
QUESTION
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:33By 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:
QUESTION
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:20You must allow anybody to start X11:
QUESTION
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:36OK, I think I figured it out.
It works when I select stretch
as Debian version in debootstrap
command.
QUESTION
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:28If 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.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install debootstrap
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page