Yup this worked great.
Follow the directions for making EFI enabled minimal ubuntu https://onetransistor.blogspot.nl/2015/12/install-ubuntu-minimal-cd-uefi-enabled.html.
To make a bootable UEFI stick with minimal install image
-
Take a usb stick. With gparted make it gpt, create a 100mb fat16 partition. Download refind flash zip and unzip it to this partition. https://sourceforge.net/projects/refind/files/0.10.8/
-
Make at least a 1gb partition ext4. Copy the efi minimal folder you made above. You can delete the grub folder in boot/ and any other grub stuff.
Boot efi in a new machine (might have to enter machine setup and choose the stick from “boot override” or set it as the first to boot.
Now you can install minimal on your machine. Make your install drive gpt. If you choose the no bootable option it won’t install/ boot via grub and you can use refind instead. In that case you do pretty much the same thing as on the stick (make the 100mb uefi esp bootable partition but copy the contents of the bin zip file from refind). You’ll have to get efibootmgr going and add refind in that boot partition to the list. WHen you boot refind will come up and list your minimal install and then boot it automatically by default if it is the only one.
Nice thing about about that setup is you can easily make your machine multi boot by just adding other efi distros as their own partition. Refind will find and list all bootable OS partitions.
Once the minimal is running you can then do as you please. I installed the ssh server (during the install) and then followed what @steven did in his link above and that worked out great. Ran startx, then installed firefox from the beta ppa at launchpad. Downloaded nomachine from their website. Exited the gui, then used dpkg to install it from the command line and it works great. From the command line on the minimal box I can launch a nomachine remote session from another box and get a GUI on the minimal headless if I need/want it
I’d recommend installing gparted and gnome-disk-utility packages for easier management of your machine’s drives. I’d also recommend using qt5-fsarchiver (dieter baum has a ppa for that)
So at this point I have 2.7GB install! on a 4gb partition. Sweet. No need to fall back to multi-user and thus my issue that prompted this post is gone and betteI have a minimal machine with just enough desktop support for gui remote session. I’m much happier!
That’s small enough to make create a partition image with gnome disk and xz it for moving to any machine or giving to a friend. Personally I use qt5-fsarchiver as it makes a smaller image especially if you have a large partition with very small install on it and can do that on a mounted root partition even. dd is not good in that regard.
If someone can offer up a “free” place to put such an image (and all the download bandwidth) I’d upload my image as it is now. That would help with everyone’s DRY.