Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions chroot-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,43 @@ mount --bind /proc ./chroot/proc/
mount --bind /sys ./chroot/sys/
mount --bind /run ./chroot/run # for x11 mouse and keyboard functioning!
chroot ./chroot


# consider this :
sudo chroot ./chroot

# Here, your are in the chroot of your Debian liveCD
mount none -t proc /proc
mount none -t sysfs /sys
mount none -t devpts /dev/pts
export HOME=/root
export LC_ALL=C
export PS1="\e[01;31m(live):\W \$ \e[00m"

# Here the tweak scripts is done !
dhclient -v # establish the internet connection to this virtual environment.

apt-get install .......

umount /proc /sys /dev/pts
exit
# exit chroot
cd ..

# This is how it looks like to be live :
#
# (live):/ $ mount none -t proc /proc
# (live):/ $ mount none -t sysfs /sys
# (live):/ $ mount none -t devpts /dev/pts
# (live):/ $ export HOME=/root
# (live):/ $ export LC_ALL=C
# (live):/ $ export PS1="\e[01;31m(live):\W \$ \e[00m"
# (live):/ $
# (live):/ $ dhclient -v
# (live):/ $ sudo apt-get install qtcreator etc. to tweak your debian installation to your needs.
# (live):/ $
# (live):/ $
# (live):/ $ umount /proc /sys /dev/pts
# $ exit

# Reference : https://github.com/Oros42/CustomDebian