How do I do a minimal install without an internet connection?

31,489

Solution 1

Install minimal Ubuntu from Ubuntu Server 12.10 USB/DVD

You can achieve a 12.10 minimal (no GUI) install via the Ubuntu Server installer image downloadable from the Ubuntu Server page or the alternative downloads page.

The minimal install option has been made available via different modes as detailed on the following screen shots.

  • Opt to install a minimal system

Choose minimal system installation mode Press F4, and you will be able to choose minimal system installation mode.

  • Skip or choose manual package selection

Skip this step without selecting anything Going further, you will eventually be asked if you want to install more packages on top of the minimal system. If you want a pure command-line system, skip the step without choosing anything. Or you can select the last "Manual package selection" option to preemptively select any packages you were planning to install to build your custom environment.

Manual package selection using Aptitude Upon choosing manual package selection, you will be greeted by a standard interactive instance of Aptitude if you chose manual package selection. If you're unfamilar with operating Aptitude, refer to this guide to navigate and select packages. Do note that the selection of packages you will find are only those available on your installation media; an internet connection will be needed to install anything else at install time.


Server Minimal vs Minimal CD

While the minimal system installed using the Ubuntu Server image is undoubtedly a genuine minimal system as known and loved by minimalist lovers, there is a slight differences in the package package selection compared to the Minimal CD. In fact, Minimal CD pulls in 7 extra packages during installation, which I (@Oxwivi) personally deem them to be all but redundant. But for the information freaks (like myself) who will have nagging doubts if the details are not known, the seven in question are: daemon, dictionaries-common, discover, discover-data, language-pack-gnome-en, language-pack-gnome-en-base, libdiscover2, mpt-status, wamerican and wbritish.

Using the Lubuntu Alternate Installer, as this answer originally suggested, also worked and resulted in the same package list as installing Ubuntu Server. To use the Lubuntu Alternate Installer, minimal system mode must be chosen the same way as Ubuntu Server by pressing F4.

Solution 2

Sadly it's gone:

The alternate installer, required when users want to configure cryptsetup, Logical Volume Manager (LVM) or software-based RAID arrays during installation, may disappear from Ubuntu as early as version 12.10. The idea is mooted in a proposal put forward by Steve Langasek, Engineering Manager at Canonical's Ubuntu Foundation.

According to Langasek, dropping the alternate installer image would represent a step towards reducing the number of Ubuntu installation images. The guided partitioner in ubiquity – the installer from the desktop live images – now contains extensions to set up cryptsetup for encrypting whole disks and to manage disks using logical volume manager. Both functions should, according to Langasek, also be available with manual partitioning soon. The changes are planned for Ubuntu 12.10, which is currently under development and due to be released in October.

The ability to set up software-based RAID arrays using mdadm will not, however, be finished in time and ubiquity is unlikely to support this before Ubuntu 13.04. Langasek nevertheless proposes dropping the alternate installer in 12.10. Users who want to use RAID can continue to use Ubuntu 12.04 or, alternatively, install 12.10 as normal, set up a software-based RAID array manually and migrate their data to it. The decision will only affect Ubuntu proper – Ubuntu variants such as Kubuntu will continue to offer the option of creating images using the alternate installer, which will continue to use a Debian installer-based installation program.

Source

Solution 3

I think that for your minimal command line requirement, Ubuntu Core would suffice.

Ubuntu Core is a minimal rootfs for use in the creation of custom images for specific needs. Ubuntu Core strives to create a suitable minimal environment for use in Board Support Packages, constrained or integrated environments, or as the basis for application demonstration images. It is available for the i386, amd64, and arm architectures.

Ubuntu Core delivers a functional user-space environment, with full support for installation of additional software from the Ubuntu repositories, through the use of the apt-get command. —

Wiki

Download: From here

Solution 4

Edit:

As stated here, this will not work because Ubiquity ignores some preseed components, like tasksel because "(...) they do not fit with Ubiquity's mode of operation".


I'm assuming what you are asking is a way to install the Ubuntu Desktop without the "desktop".

If you are using a USB device to install Ubuntu you can try to change the file pressed/ubuntu.seed present in your USB disk, replacing

tasksel tasksel/first   multiselect ubuntu-desktop

with

tasksel tasksel/first   multiselect standard

I haven't tested it, but it should create a basic Ubuntu installation without the "desktop".

Also, i've read somewhere that the only differences between Ubuntu Desktop and Ubuntu Server are at the kernel used and the IO scheduler (if someone could prove or deny this would be nice). If this is true you can just use a Ubuntu Server CD and after the installation install the "desktop" kernel and alter the IO scheduler.

Solution 5

This answer is more for the admin user, wanting to create an install CD. If you are just a desktop user and want to install Ubuntu this is probably overkill.

Check out Debian Live (Yes for Ubuntu!). Afaik. Ubuntu provides the live-build package (or similiar) from the Debian project which can also create Ubuntu live CDs. You can include an installer and packages with this CD. The entire process of building the live system is quite easy.

Create a directory "live", then cd live, Create a directry auto and a file "auto/config" with exec permissions. The file should look like this:

lb config noauto \
     --apt-source-archives false \
     --architectures i386 \
     --binary-images iso-hybrid \
     --debian-installer live \
     --debian-installer-distribution quantal \
     --debian-installer-gui true \
     --distribution quantal \
     --mode ubuntu \
     --system live \
     --win32-loader true \
     --package-lists ubuntu-cloud-desktop \
     "${@}"

See the manual here: http://live.debian.net/manual/html/live-manual.en.html

Then run lb config and sudo lb build. Voila, there you get an image for CDs or USB sticks with a complete installer.

Share:
31,489

Related videos on Youtube

Oxwivi
Author by

Oxwivi

Updated on September 18, 2022

Comments

  • Oxwivi
    Oxwivi almost 2 years

    Now that various Ubuntu ISOs has been folded into the regular desktop ISO, how do I install the minimal version which featured in the erstwhile alternate and the minimal ISO?

    Minimal CD

    Regarding minimal CD, it can install minimal Ubuntu but requires net connection to download even the basic that basic set of Ubuntu packages. And therein lies the problem: I don't have a LAN connection I can use and, even if text-based installers did support wireless connections (they don't, IME), my wireless hardware is a little too new and requires manually compiling and installing drivers.

    If you do have net connection and want to install minimal Ubuntu, Minimal CD is the way to go.

  • Oxwivi
    Oxwivi over 11 years
    I know the alternate installer is gone, but are the features I seek are gone as well?
  • SirCharlo
    SirCharlo over 11 years
    Well, what's your goal exactly?
  • SirCharlo
    SirCharlo over 11 years
    Perhaps you mean the server version of Ubuntu?
  • Paul Woitaschek
    Paul Woitaschek over 11 years
    That doesnt solve his problem. Why should that be worth to mention?
  • Oxwivi
    Oxwivi over 11 years
    I know about Ubuntu Core. But you do realize this is anything but an installer, right? Though I suppose I am going to go for this if I can't have any proper installers.
  • Oxwivi
    Oxwivi over 11 years
    Please refer to the comments on question. The minimal in minimal CD is referring to the size of the ISO, not what it will install. I can select the minimal set of packages to install, but it will need an internet connection which I cannot provide at install time.
  • Oxwivi
    Oxwivi over 11 years
    This does not solve the solution indeed. If you're not going to answer the question, it's better to post a comment. And yes, I do know Lubuntu; I even had a minimal install Lubuntu. Even with the limited set of preinstalled apps, there are quite a few I don't use. Every byte mattered in the system with 4 GB HDD-though that's not the system in question this time.
  • Stephen Hofmeyr
    Stephen Hofmeyr over 11 years
    Sorry guys, i shall place these as comments in future. I knew that it didn't specifically answer your question but could have been a step towards the solution, and hopefully this community could have built off it. but i see your point. Thanks.
  • Oxwivi
    Oxwivi over 11 years
    Looking at it from the perspective of a user who does not have a detailed knowledge of Ubuntu Core or how Linux systems work, this solution would be anything but an answer. Ubuntu Core carries a minimal system minus the crucial piece: the kernel. It is meant for devices like in-car systems where very specialized set-ups is required. After installing Ubuntu Core (which is essentially copying an entire root directory), you won't be able to use it. You'd need to chroot into Ubuntu Core, install the necessary kernel and related packages and then get the desired command line system.
  • Oxwivi
    Oxwivi over 11 years
    No, if, by the end of bounty, I do not get a better answer, I will choose this and edit it with the necessary info on getting Ubuntu Core running as a minimal command line system.
  • Oxwivi
    Oxwivi over 11 years
    @EliahKagan I'm not sure about the specifics, but as far as I know Ubuntu Server had some modification in-kernel and other packages. It looks like it has changed since; can you link to relevant documentation articles?
  • Oxwivi
    Oxwivi over 11 years
    I think you are missing the whole point of a minimal install.
  • Oxwivi
    Oxwivi over 11 years
    Are you absolutely sure that it's that easy? Cause if it is, it'd be absolutely awesome. Damn if only I could use a virtual system to try.
  • Eliah Kagan
    Eliah Kagan over 11 years
    @Oxwivi For information about how the server and desktop versions have the same kernel since 12.04, see this section of the Server FAQ (list item 3), and also this kernel-team mailing list message.
  • Oxwivi
    Oxwivi over 11 years
    Refer to this comment on the answer @fossfreedom provided; this doesn't work. :(
  • geethujoseph
    geethujoseph over 11 years
    It seems that Ubiquity ignores those intructions. Sorry
  • EvoandroidEvo
    EvoandroidEvo over 11 years
    you can do a minimal install with the full alternative iso you chose it before you start to install and theres still no need for an internet connection like i said i did this before on my computer
  • Oxwivi
    Oxwivi over 11 years
    Oh, I thought you've seen the Alternative Downloads page you linked before posting an answer. Please read this answer. There is no Alternate CDs starting from Ubuntu 12.10.
  • Oxwivi
    Oxwivi over 11 years
    Forget after, 12.10 itself has no alternative installers other than the Ubuntu Server flavor.
  • EvoandroidEvo
    EvoandroidEvo over 11 years
    there are alternative installers for 12.10 but its network so yea i see that now
  • Oxwivi
    Oxwivi almost 10 years
    Hey, this does not apply as of 14.04; requires Internet connection even after choosing minimal. Any thoughts?
  • Oxwivi
    Oxwivi almost 10 years
    Scratch that. For some reason, it didn't ask me for internet connection last time I tried. But every other time since 14.04's release it wouldn't let me do anything without. I don't get it.
  • krlmlr
    krlmlr over 9 years
    Excellent write-up! -- The links to the seven extra packages are now out of date.