Try installing only the core part of Ubuntu

This article is the 22nd day article of "Linux Advent Calendar 2019".

About the minimum environment of Ubuntu

When you install Ubuntu, everything comes with it. Not to mention the desktop environment,

etc… This time, I will install __Ubuntu core part __ in VirtualBox without installing all of them.

What to prepare

Install immediately

1. Download

  1. Access the Download Page.
  2. Click [Go to jp.ubuntu.com download page].
  3. As you scroll, you will see [Other download methods], so click on it.
  4. Click the version you like from [Network installer].
  1. You will be given a choice of architecture, so choose the one that suits your environment.
  1. Some files and folders will appear, but click [mini.iso] to download

The mini.iso of this Ubuntu 18.04 LTS (i836) is [here](http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/installer-i386/current/images/netboot/mini. iso)

From the setup of VirtualBox, there is no time to write everything, so I will write the part that seems to be important.

2. VirtualBox setup

Name and operating system

The name is a virtual machine name, so you can use it as you like, but it won't work unless you specify the type and version properly.

item name Choices
type Linux
version Ubuntu (64-bit)

fig1.png

Memory size / hard disk

The minimum installation startup conditions like this one are not officially stated. There is Ubuntu Server in a similar environment, so if you follow the startup conditions of it, there is almost no problem. By the way, the startup conditions for Ubuntu Server 18.04 LTS are as follows.

CPU memory Disk space
1GHz or higher (64bit) 1GB or more 5GB or more

CPU and memory from this site. The disk space is the number that I installed once and thought "I need this much".

Insert installation disc

Put the mini.iso you downloaded earlier in a virtual optical drive.

  1. Click [Settings].
  2. Click Storage.
  3. Click the part marked "Empty", click the disk mark on the right end, and click [Select Virtual Optical Disc File]. fig2.png
  1. Click OK.

3. Installation

Keyboard settings

  1. You will be asked if you want the keyboard layout to be detected automatically, but select . fig3.png
  2. You will be asked about the country of the keyboard, so select [Japanese]. fig4.png
  1. You will be asked for the keyboard layout, so select [Japanese]. fig5.png

Disk partitioning

  1. The selection here can be [Guide-Use the entire disk]. fig6.png
  1. You will be asked to select the disk to partition, but only the virtual hard disk created with VirtualBox will appear, so select it. fig7.png
  2. When the disk write confirmation is displayed, select to start the installation of the base system. fig8.png

Software selection

The heart of this article. You will be asked what other software to install. If you select without selecting anything here, Ubuntu with only the core part will be completed. fig9.png

Installing the GRUB bootloader on your hard disk

You will be asked if you want to install the GRUB bootloader, select . If you do not install this, you will not be able to start even if you install it. fig10.png

Installation complete

Last setting.

  1. You will be asked if you want to set the system time to UTC, so if you are not particular about the system time, is fine. fig11.png

  2. Since the installation is complete, it is said that the installation disk is removed, so remove it from the VirtualBox settings. fig12.png

  1. Click [Settings].
  2. Click Storage.
  3. Click the part labeled "mini.iso", click the disk mark on the far right, and click [Remove Disk from Virtual Drive].

Finally, select and reboot to complete the installation. I'm tired.

Finally start

When the installation is complete, remove the disk and select to reboot and launch the installed Ubuntu. fig13.png When this screen appears, enter the user name set during installation. fig14.png Then the password. fig15.png Login completed. Various things will come out, but only this first time.

Troubleshooting after installation

1. Problem with "\ * ERROR \ * Failed to send log" at startup

Perhaps when you start using it with the default settings, you'll see something like this when you log in. fig16.png There is no problem in operating it, but it feels uncomfortable.

Solution

Shut down Ubuntu once.

  1. Open [Settings].
  2. Set the "Graphic Controller" in the display to [VBox SVGA]. fig17.png

After setting

fig13.png No complaints.

2. Problem with "◆"

When I'm using it, the letters become "◆" and I don't know what it is.

fig18.png Well, like this.

Solution

  1. Open .bashrc in your home directory with nano or something.

    nano ~/.bashrc
    
  2. Add the following to the end and save.

    #Fix diamond character.
    case $TERM in
    linux) LANG=C ;;
    *)     LANG=ja_JP.UTF-8;;
    esac
    
  1. Reflect .bashrc.

    source ~/.bashrc
    

After setting

fig19.png It's good.

By the way, if you set the language to English at the time of installation, you will not encounter this. Even if you install it in Japanese, the CUI is in English anyway, so you may proceed with the installation in English.

Summary

As a result of installing in variable size vdi format, the capacity of the virtual hard disk is less than 3.5GB. It was a great installation method for me, who hates eating a lot of space. By the way, when I hit df -BM on Ubuntu, it was supposed to use about 2.5GB.

I think this is enough for people who install Ubuntu but only use the terminal. At least I'm satisfied with this.

[^ 1]: When "64bit Intel / AMD (x86_64)" is installed, [loop phenomenon occurs] during the installation process when Japanese is selected in the language selection (https://forums.ubuntulinux. jp / viewtopic.php? id = 20057).

Recommended Posts

Try installing only the core part of Ubuntu
Get only the address part of NIC (eth0)
Change the background of Ubuntu (GNOME)
Notes on installing Ubuntu 18.04 on the XPS 15 7590
[Note] Let's try to predict the amount of electricity used! (Part 1)
The story of adding MeCab to ubuntu 16.04
Implement part of the process in C ++
The result of installing python in Anaconda
[Python] Try pydash of the Python version of lodash
Understand the "temporary" part of UNIX / Linux
Try to react only the carbon at the end of the chain with SMARTS
Use Pillow to make the image transparent and overlay only part of it
[Verification] Try to align the point cloud with the optimization function of pytorch Part 1
[Python] Read the source code of Bottle Part 2
Try the python version of emacs-org parser orgparse
Try the Pepper NAOqi OS 2.5.5 SLAM feature ~ Part 2
Use the latest version of PyCharm on Ubuntu
Try using the Python web framework Tornado Part 1
Try singular value decomposition of the daimyo matrix
[Python] Read the source code of Bottle Part 1
Try the free version of Progate [Python I]
This is the only basic review of Python ~ 1 ~
This is the only basic review of Python ~ 2 ~
Try using the collections module (ChainMap) of python3
Extract only complete from the result of Trinity
This is the only basic review of Python ~ 3 ~
General description of the CPUFreq core and CPUFreq notifiers
At the time of python update on ubuntu
Change the resolution of Ubuntu running on VirtualBox
Try using the Python web framework Tornado Part 2
Try Katsuhiro Morishita / Aso_Sea_Clouds_Pridiction Memo-Excluding the learning part-
Try to simulate the movement of the solar system
Try using the DropBox Core API in Python
[Python + OpenCV] Whiten the transparent part of the image
[Django] Let's try to clarify the part of Django that was somehow through in the test
Try installing Polynote
[Ruby] How to replace only a part of the string matched by the regular expression?
Try installing chainer-gogh
Install the latest version of CMake on Ubuntu 18.04.4 LTS
Explanation of the concept of regression analysis using python Part 2
Cut a part of the string using a Python slice
The process of installing Atom and getting Python running
Try to solve the problems / problems of "Matrix Programmer" (Chapter 1)
Try to visualize the room with Raspberry Pi, part 1
Try to estimate the number of likes on Twitter
Try to get the contents of Word with Golang
Explanation of the concept of regression analysis using Python Part 1
Tweet the probability of precipitation as part of the function of the bot
I tried to erase the negative part of Meros
#We will automate the data aggregation of PES! part1