build with functional openbox GUI
This commit is contained in:
parent
69d05108d1
commit
08ad433c7c
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
chroot
|
||||
staging
|
||||
temp
|
||||
tmp
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
# LIVE_BOOT
|
||||
|
||||
A script to make custom Debian based distros. Based off work by Will Haley
|
||||
|
||||
A script to make custom Debian based distros. Based off work by Will Haley, see original tutorial here:
|
||||
https://www.willhaley.com/blog/custom-debian-live-environment/
|
||||
|
Binary file not shown.
38
make_iso.sh
38
make_iso.sh
@ -21,13 +21,13 @@ sudo apt-get install \
|
||||
# We will use stable for this distribution and amd64 for the architecture.
|
||||
sudo debootstrap \
|
||||
--arch=amd64 \
|
||||
--variant=minbase \
|
||||
--variant=buildd \
|
||||
stable \
|
||||
"${HOME}/LIVE_BOOT/chroot" \
|
||||
http://ftp.us.debian.org/debian/
|
||||
https://deb.debian.org/debian
|
||||
|
||||
# Set a custom hostname for your Debian environment.
|
||||
echo "debian-live" | sudo tee "${HOME}/LIVE_BOOT/chroot/etc/hostname"
|
||||
echo "custom-debian" | sudo tee "${HOME}/LIVE_BOOT/chroot/etc/hostname"
|
||||
|
||||
# Install a Linux kernel of your choosing.
|
||||
# The image linux-image-amd64 is chosen here.
|
||||
@ -45,13 +45,17 @@ EOF
|
||||
# Install programs of your choosing, and then run apt-get clean to save some space.
|
||||
# I use --no-install-recommends to avoid superfluous packages.
|
||||
# You should decide what you need for your environment.
|
||||
# Have to try using
|
||||
# kde-plasma-desktop openbox-kde-session
|
||||
# xfce4 xfce4-session xfce4-goodies
|
||||
# obconf lxappearance-obconf lxinput lxrandr lxde
|
||||
|
||||
sudo chroot "${HOME}/LIVE_BOOT/chroot" << EOF
|
||||
apt-get install -y --no-install-recommends \
|
||||
iwd \
|
||||
curl openssh-client \
|
||||
openbox xserver-xorg-core xserver-xorg xinit xterm \
|
||||
wget iputils-ping \
|
||||
wget iputils-ping obconf network-manager \
|
||||
nano
|
||||
EOF
|
||||
|
||||
@ -96,13 +100,13 @@ MENU COLOR msg07 37;40 #90ffffff #a0000000 std
|
||||
MENU COLOR tabmsg 31;40 #30ffffff #00000000 std
|
||||
|
||||
LABEL linux
|
||||
MENU LABEL Debian Live [BIOS/ISOLINUX]
|
||||
MENU LABEL Custom Debian [BIOS/ISOLINUX]
|
||||
MENU DEFAULT
|
||||
KERNEL /live/vmlinuz
|
||||
APPEND initrd=/live/initrd boot=live
|
||||
|
||||
LABEL linux
|
||||
MENU LABEL Debian Live [BIOS/ISOLINUX] (nomodeset)
|
||||
MENU LABEL Custom Debian [BIOS/ISOLINUX] (nomodeset)
|
||||
MENU DEFAULT
|
||||
KERNEL /live/vmlinuz
|
||||
APPEND initrd=/live/initrd boot=live nomodeset
|
||||
@ -125,13 +129,13 @@ set timeout=30
|
||||
|
||||
# If X has issues finding screens, experiment with/without nomodeset.
|
||||
|
||||
menuentry "Debian Live [EFI/GRUB]" {
|
||||
menuentry "Custom Debian [EFI/GRUB]" {
|
||||
search --no-floppy --set=root --label DEBLIVE
|
||||
linux ($root)/live/vmlinuz boot=live
|
||||
initrd ($root)/live/initrd
|
||||
}
|
||||
|
||||
menuentry "Debian Live [EFI/GRUB] (nomodeset)" {
|
||||
menuentry "Custom Debian [EFI/GRUB] (nomodeset)" {
|
||||
search --no-floppy --set=root --label DEBLIVE
|
||||
linux ($root)/live/vmlinuz boot=live nomodeset
|
||||
initrd ($root)/live/initrd
|
||||
@ -160,14 +164,14 @@ EOF
|
||||
|
||||
# Your LIVE_BOOT directory should now roughly look like this.
|
||||
|
||||
IVE_BOOT/chroot/*tons of chroot files*
|
||||
LIVE_BOOT/staging/live/initrd
|
||||
LIVE_BOOT/staging/live/vmlinuz
|
||||
LIVE_BOOT/staging/live/filesystem.squashfs
|
||||
LIVE_BOOT/staging/isolinux/isolinux.cfg
|
||||
LIVE_BOOT/staging/EFI/BOOT
|
||||
LIVE_BOOT/staging/boot/grub/grub.cfg
|
||||
LIVE_BOOT/staging/boot/grub/x86_64-efi
|
||||
# LIVE_BOOT/chroot/*tons of chroot files*
|
||||
# LIVE_BOOT/staging/live/initrd
|
||||
# LIVE_BOOT/staging/live/vmlinuz
|
||||
# LIVE_BOOT/staging/live/filesystem.squashfs
|
||||
# LIVE_BOOT/staging/isolinux/isolinux.cfg
|
||||
# LIVE_BOOT/staging/EFI/BOOT
|
||||
# LIVE_BOOT/staging/boot/grub/grub.cfg
|
||||
# LIVE_BOOT/staging/boot/grub/x86_64-efi
|
||||
|
||||
# Copy BIOS/legacy boot required files into our workspace.
|
||||
|
||||
@ -216,7 +220,7 @@ xorriso \
|
||||
-iso-level 3 \
|
||||
-o "${HOME}/LIVE_BOOT/debian-custom.iso" \
|
||||
-full-iso9660-filenames \
|
||||
-volid "DEBLIVE" \
|
||||
-volid "DEBCUSTOM" \
|
||||
--mbr-force-bootable -partition_offset 16 \
|
||||
-joliet -joliet-long -rational-rock \
|
||||
-isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin \
|
||||
|
Loading…
x
Reference in New Issue
Block a user