apt- get remove libreoffice-core libreoffice-common thunderbird -purge -yĪpt- get remove unity-lens-shopping unity-lens-applications -purge -y Simply uninstalling LibreOffice will free up 226 MB of disk space. For instance, you could remove LibreOffice, Firefox and Thunderbird.
Remove software that you don't need and that takes up lots of precious megabytes. You can get rid of this window by removing the ubiquity package.
Once booted, you will be given a choice to try or install Ubuntu.
You can install additional packages with apt-get as you would normally: apt- get update bashrc so that you get colors for ls and other default aliases like ll when you're in the shell. However, /etc/skel will be used as a template (or skeleton, hence skel) for the user so you can use it temporarily as $HOME. The user ubuntu that the Live CD session will use does not exist yet exist, neither does its home directory. You can change the hostname like this: echo 127.0.0.1 ubuntu > /etc/hosts echo ubuntu > /etc/hostname But when you boot into the Live CD the hostname will be ubuntu. When you change the root to the image filesystem you'll keep your hosts hostname. If you are also running Ubuntu on your host computer, you can fix that by copying the hosts sources.list to the image root before running uck-remaster-chroot-rootfs: sudo cp /etc/apt /sources.list ~/tmp /remaster-root/etc /apt/sources.list Only the Main and Restricted repositories are enabled by default for apt-get in the image.
On Windows, you can create a bootable USB with Rufus. You'll find your my.iso and its md5sum in ~/tmp/remaster-new-files/ if you used a relative path. Sudo uck-remaster- pack-iso my.iso -h -g -d "My Live Ubuntu" If your filesystem was about 4 GB in size then the compressed image could be about 1 GB.Īfter that, you can create an ISO image. This will take a few minutes and it will be faster if you have more cores available, so if you're doing this in a virtual machine, you should add more CPUs to it. When that's done, we need to pack it all up.įirst of all, pack the filesystem into one compressed SquashFS file. Now you can install packages with apt-get and perform all kinds of customizations. It will also mount /tmp and /var/apt/cache to ~/tmp so that you don't have to worry about cleaning up. You can do this with the following command. To install packages, restart services and test if your applications are working properly, you can change the root to the image filesystem. You can add, move and delete files from that directory. The size of the ~/tmp directory together with the unpacked ISO file will be 4.1 GB. When that's done, the root filesystem will be located in ~/tmp/remaster-root and take up 3.1 GB of disk space. By default, it's ~/tmp.Īll UCK tools require root privileges for mounting and unmounting. That is because all the files and directories are compressed into one large file rootfs.squashfs that we also need to unpack. What you'll find is a bunch of files for init and booting, but not the actual filesystem.
UCK has a very simple GUI wizard but it is very awkward to use, so we are going to use the command line tools to customize the image.Īn ISO image is like a tar archive so we need to extract it first. You can of course also use Kubuntu.įirst, let's install the required tools: sudo apt- get -y install uck syslinux If you later discover that you need to make additional customizations, you can also use your own ISO image that you customized previously. Its size is about 1 GB but you can reduce it by removing LibreOffice, Firefox and other applications. You can download it from the official Ubuntu website. We're going to use the official Ubuntu 14.04.3 LTS (Trusty Tahr) desktop installation ISO image ubuntu-14.04.3-desktop-amd64.iso.