From 874513c6b729b2264b15cadb2862054a4db79f9f Mon Sep 17 00:00:00 2001 From: Marcos Vallim Date: Wed, 26 Jun 2019 14:26:09 -0300 Subject: [PATCH] Initial documentation --- README.md | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 91 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fad5734..10732fa 100644 --- a/README.md +++ b/README.md @@ -1 +1,91 @@ -# live-custom-ubuntu-from-scratch \ No newline at end of file +# Live custom Ubuntu from scratch + +## Prerequisites (GNU/Linux Debian/Ubuntu) + +Install applications we need to build the environment. + +``` +sudo apt-get install \ + debootstrap \ + squashfs-tools \ + genisoimage \ + syslinux \ + isolinux +``` + +``` +mkdir $HOME/live-ubuntu-from-scratch +``` + +## Bootstrap and Configure Ubuntu + +``` +sudo debootstrap \ + --arch=amd64 \ + --variant=minbase \ + bionic \ + $HOME/live-ubuntu-from-scratch/chroot \ + http://us.archive.ubuntu.com/ubuntu/ +``` + +``` +sudo mount --bind /dev $HOME/live-ubuntu-from-scratch/chroot/dev + +sudo mount --bind /run $HOME/live-ubuntu-from-scratch/chroot/run +``` + +``` +sudo chroot $HOME/live-ubuntu-from-scratch/chroot +``` + +``` +mount none -t proc /proc + +mount none -t sysfs /sys + +mount none -t devpts /dev/pts + +export HOME=/root + +export LC_ALL=C +``` + +## Set a custom hostname + +``` +echo "ubuntu-live" > /etc/hostname +``` + +``` +apt-get update + +apt-get install -y dbus + +dbus-uuidgen > /var/lib/dbus/machine-id + +dpkg-divert --local --rename --add /sbin/initctl + +ln -s /bin/true /sbin/initctl +``` + +## Upgrade packages if you want: + +``` +apt-get -y upgrade +``` + +## Install packages needed for Live System + +``` +apt-get install -y ubuntu-standard casper lupin-casper + +apt-get install -y laptop-detect os-prober + +apt-get install -y linux-generic +``` + +## Graphical installer + +``` +apt-get install ubiquity-frontend-gtk +``` \ No newline at end of file