Difference between revisions of "Ubuntu Mini"

From Indie IT Wiki
imported>Plittlefield
 
(No difference)

Latest revision as of 12:22, 31 May 2016

Information

https://help.ubuntu.com/community/Installation/MinimalCD

Download

http://archive.ubuntu.com/ubuntu/dists/xenial/main/installer-amd64/current/images/netboot/mini.iso

Introduction

Trying to find the lowest possible disk usage for an Ubuntu Server installation, ready for a NAS.

Package Clean

Clean the apt cache, install some apps to clean other apps, remove the cleaning apps, then clean the apt cache again...

sudo apt-get autoremove && sudo apt-get clean all && sudo apt-get autoclean all
sudo apt-get localpurge
sudo apt-get install deborphan
sudo localepurge
sudo sudo deborphan --guess-all
sudo sudo deborphan --guess-all --all-packages
sudo apt-get purge installation-report
sudo apt-get purge usbutils
sudo apt-get purge pciutils
sudo apt-get purge localepurge
sudo apt-get purge deborphan
sudo apt-get autoremove && sudo apt-get clean all && sudo apt-get autoclean all

Now check what disk usage we are left with (down to 830Mb)...

sudo df -H -T -x devtmpfs -x tmpfs

Filesystem     Type  Size  Used Avail Use% Mounted on
/dev/sda1      ext4  7.8G  830M  6.6G  12% /

Where the space is being used...

sudo du -mcsh --exclude=/media --exclude=/mnt --exclude=/proc --exclude=/sys /* |sort -h
0	/dev
0	/initrd.img
0	/vmlinuz
4.0K	/lib64
4.0K	/opt
4.0K	/srv
8.0K	/media
8.0K	/mnt
16K	/lost+found
16K	/root
32K	/tmp
36K	/home
1.8M	/run
3.5M	/etc
5.2M	/sbin
9.6M	/bin
25M	/boot
114M	/lib
252M	/var
367M	/usr
776M	total

Thanks - https://help.ubuntu.com/community/Diet%20Ubuntu

Thanks - http://ubuntuforums.org/showthread.php?t=140920