How to install minimal image

goat1024

New member
Hi,

I want to install a minimal image without any GUI/x-server. I only need SSH.
I tried to reinstall the image from the 1st post by USB stick. You may select "minimal" in the graphical installer. However it stills installs a x-server.

How can I run a really minimal image?

Thanks!
goat.
 
Hi,

I want to install a minimal image without any GUI/x-server. I only need SSH.
I tried to reinstall the image from the 1st post by USB stick. You may select "minimal" in the graphical installer. However it stills installs a x-server.

How can I run a really minimal image?

Thanks!
goat.

If you first install the MINIX Ubuntu image you can then remove the desktop to give you a basic 'server' image. First I'd change GRUB_CMDLINE_LINUX_DEFAULT to "text" in /etc/default/grub and then run 'update-grub'. Next uninstall the desktop and dependent packages with 'apt purge ubuntu-desktop^'. Note the '^' to indicate the 'task' rather than 'package'. Then run 'apt autoremove' just to tidy up. All of this needs to be done with superuser privileges and if you prefer you could also do it by installing 'tasksel'. Afterwards you will then need to install the 'ssh' packages you need (and probably other packages as you'll have a very basc system).
 
If you first install the MINIX Ubuntu image you can then remove the desktop to give you a basic 'server' image. First I'd change GRUB_CMDLINE_LINUX_DEFAULT to "text" in /etc/default/grub and then run 'update-grub'. Next uninstall the desktop and dependent packages with 'apt purge ubuntu-desktop^'. Note the '^' to indicate the 'task' rather than 'package'. Then run 'apt autoremove' just to tidy up. All of this needs to be done with superuser privileges and if you prefer you could also do it by installing 'tasksel'. Afterwards you will then need to install the 'ssh' packages you need (and probably other packages as you'll have a very basc system).

Thank you very much linuxium (y)
I will try this!
 
I tried the following

Code:
sudo sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT="text"/' /etc/default/grub
sudo update-grub
sudo apt -y purge ubuntu-desktop^
sudo apt autoremove
sudo apt -y install ssh

Everything looks fine. But after the next reboot the system freezes before the login prompt. The graphic/resolution changes so that you can hardly read the output on the screen.
It seems that it has something to do with the filesystem :(
I will reinstall the image from USB.

IMG_20200328_214824.jpg
 
I tried the following

Everything looks fine. But after the next reboot the system freezes before the login prompt. The graphic/resolution changes so that you can hardly read the output on the screen.
It seems that it has something to do with the filesystem :(
I will reinstall the image from USB.

Before you reinstall, boot from your USB and mount the hard drive partition (of the device) on '/mnt' if not auto-mounted by default. Then run the command 'sudo blkid' and check that the UUID returned from the blkid command for the hard drive partition with your install minimal Ubuntu matches the UUID in the mounted '/mnt/etc/fstab'. If not, then edit and correct it in '/mnt/etc/fstab' and try rebooting.
 
FYI I tried this as a test and found I lost networking. I had to download the 'ifupdown' package (you can do this using the LiveUSB with 'sudo download ifupdown' and copying the resultant .deb to the mounted hard drive partition of the device) and then after rebooting install the .deb and manually start the networking service with 'sudo systemctl start networking'.
 
Thanks linuxium!
I already reinstalled and tried it a 2nd time. For some reason it worked now! I guess it's related to the updates I installed the first time.
 
Back
Top