I have installed Ubuntu on a 32GB USB and set it up like I want, Installing some programs and removing others. I have added custom wallpaper and splash screen.
How can I duplicate my modified OS and GMail it using Google Drive, (10GB limit), to friends and family for Christmas?
It should be able to run on any modern x86-64 computer that meets Ubuntu hardware specifications. It should be uninstallable using Rufus, Etcher, mkusb and Gnome-Disks. I would also like to be able to install it from a USB stick.
I have heard of and tried Remastersys, ISORespin, Ubuntu Customization Kit and Systemback, but now these all seem to be abandoned now.
Sometimes I work in VirtualBox and would like to be able to distribute the OS's I create there also.
Duplicating a Ubuntu System for Distribution
1) Create Image file from existing operating system:
Boot Live Ubuntu USB and insert Full install, (or Persistent), USB to be copied.
Create an image file of the Full install USB, (or Persistent USB), using Gnome-Disks.
2) Truncate image for distribution, remove unwanted space from end of image file.
Example: Removes NTFS Microsoft basic data partition from end of drive.
Input
Output
Input
3) Compress image for distribution:
For xz compression using 7Zip. Install 7Zip for Windows: https://www.7-zip.org/a/7z1900-x64.msi or for Ubuntu P7Zip Desktop from the Ubuntu store. Once 7Zip has been installed on Windows or Ubuntu, flashing tool should work without first decompressing xz file..
PKZip compression, may also be used but is not as tight.
4) Virtual Machine: Convert
.vdi
file to.img
file that can be flashed to bootable USB.Open VirtualBox
cd to folder that contains ubuntu.vdi and run:
VBoxManage clonemedium --format RAW ubuntu.vdi ubuntu.img
5) Install Image File to target drive
Caution: The target drive will be overwritten.
6) Create Installer Drive for Image File.
Use Etcher, Startup Disk Creator, dd, mkusb, etc to make Live USB.
From another Linux drive, convert new
writable
partition to NTFS partition using:ubuntu@ubuntu:~$ sudo mkfs.ntfs -f -L usbdata /dev/sdx3
Where sdx is the Live drive.
We have been updating a fork of Remastersys for several years now, called Wasta-Remastersys
Note that we removed the GUI for creating an ISO, but it can run in "dist" (don't save user settings, instead be ready for distributing to others) or "backup" mode (save your settings, etc). Also note that the ISO specification is limited to 4GB in size: if the resulting ISO is larger then there will be a failure.
We have added features from Pinguy Builder, etc. to make sure it runs in UEFI mode, can install broadcom drivers offline, etc.
Good luck! It has served us well over the years.