![]() ![]() The following command compresses the modified filesystem: When I was installing pacakges earlier in the process using apt-get, I forgot to also download the Arduino IDE and unpack it into the /opt directory of the chroot environment so I did it at this point instead: Sudo sed -i '/casper/d' extract-cd/casper/filesystem.manifest-desktop Sudo sed -i '/ubiquity/d' extract-cd/casper/filesystem.manifest-desktop Sudo cp extract-cd/casper/filesystem.manifest extract-cd/casper/filesystem.manifest-desktop ![]() Sudo chmod w extract-cd/casper/filesystem.manifestĬhroot edit dpkg-query -W -showformat='$\n' > extract-cd/casper/filesystem.manifest The following commands unmount the special filesystems and exit chroot. The following commands basically undo those commands above that I didn’t understand.ĭpkg-divert -rename -remove /sbin/initctl The required commands are included later in the process. Note: I intended to add the Arduino IDE to the chroot filesystem at this point, but I forgot so I had to add it in later. ![]() Now install whatever packages are to be added using apt-get.Īpt-get -y install inkscape octave geany hexedit mplayer ffmpeg blender python-scipy python-matplotlib python-serial obs-studio php texlive texstudio audacity xdotool pv gphoto2 exfat-utils The following command runs the timezone configuration. I actually don’t really understand what the following commands do, but I ran than because they were in the original instructions and everything worked out ok!ĭpkg-divert -local -rename -add /sbin/initctl Now, we chroot into the edit folder, mount some special filesystems, and set a couple of environment variables. Before chrooting into it, we copy some network configuration files into it and clone a couple of special directories as sub-directories of “edit”. The “edit” folder will be the root directory of the chroot environment. Sudo unsquashfs mnt/casper/filesystem.squashfs Sudo rsync -exclude=/casper/filesystem.squashfs -a mnt/ extract-cdĮxtract the SquashFS filesystem into the current directory, then rename the root folder as “edit”: Sudo mount -o loop mntĮxtract the contents of the installation CD from the downloaded iso image: Sudo apt install squashfs-tools genisoimage syslinux-utilsįirst, create a directory and download the original Xubuntu iso image into it:Ĭreate a sub-directory “mnt” and mount the downloaded iso image as a loopback filesystem. Preparing to Create the Custom Imageįirst, we install some required packages: That step wasn’t included in the article on the Ubuntu Community Image, but my image wouldn’t boot without it. Also, I added a step at the end to turn the iso file into a “hybrid” image. That article isn’t specific to this version of Xubuntu and it includes a lot of optional customisations that I didn’t use, so I wrote this post to capture the specific sequence of steps that produced my working image. The steps I followed are based on the “LiveCDCustomization” article on the Ubuntu Community Wiki. I called the modified image “TU Dubuntu” (after my university, TU Dublin), but it’s really just Xubuntu with some additional software packages installed that aren’t included in the default image. This post documents the steps I followed to create a customised version of the Xubuntu 19.04 live CD. ![]()
0 Comments
Leave a Reply. |