KC7MM Wiki

Amateur Radio with KC7MM

User Tools

Site Tools


linuxusernet:inside_linux:how_to_install

A Look Inside Linux series

A series of short topics on how Linux works and how to make it work the way you want it to, which I present during the weekly sessions of the Linux User Net. The target audience is Hams who are new to Linux and want to know more about it, as well as experienced Linux users who can learn more about their chosen operating system. These are my notes for the presentations. (Russ, KC7MM)

6. How do I install Linux?

Unfortunately, it's hard to buy a computer that has Linux pre-installed. So, to get your own Linux box, you likely will have to install the OS yourself.

Happily, that's not a big deal. Installing a modern Linux distribution generally is a straightforward process, requiring only some general computer knowledge.

It depends...

The installation procedure depends on the system you want to have.

The Web is awash with HOWTO articles that detail the installation of particular distros, and I won't repeat them here. Rather, I'll look at the general installation process in order to get you started in the right direction.

How the system is to be used

Today I'll cover the two types of system you're likely to use: desktop and server.

  • A desktop system has a graphical user interface, which the user controls either locally with keyboard and mouse, or remotely via remote-control software. Examples: Linux Mint, MX Linux.
  • A server system runs applications that are accessed remotely through a network, such as Web sites and mail servers. Administration also is done remotely, using either SSH (Secure SHell)or a Web interface.

Embedded Linux systems are a very specialized niche area that we might explore at another time.

The hardware platform

The installation procedure can vary depending on the hardware on which you want to install it. ( See here for definitions and more information.)

  • PC: either a conventional personal computer or a laptop, which has:
    • Intel architecture (AMD64 or x86)
    • A solid state drive (SSD) or hard disk drive (HDD) on which the OS is loaded.
  • SBC (Single Board Computer), which has all system components mounted directly on the mainboard. This includes the Raspberry Pi, along with many, many others. These systems:
    • Use mostly ARM architecture, with some Intel. Other RISC architectures may be used, as well.
    • Mainly use SD cards for the OS, though some have SATA ports.

The PC platform has fewer variants and thus is the simplest to use. Its hardware also is most likely to be supported by the Linux kernel and the community.

SBCs are trickier, owing to all the possible permutations. Hardware and software support can vary greatly, so care in selection is required. The Raspberry Pi, for example, is not necessarily the best SBC for any particular job, but its vast community support makes it highly versatile and easy to work with.

Choice of distribution

Every Linux distribution has its own installation method. That usually comes in the form of an installation program. These programs require varying degrees of technical knowledge on the part of the person running the installation.

  • They can be highly automated and thus easy to use (e.g., Linux Mint). Most decisions regarding which software is to be installed and how it is configured are made by the distro's developers.
  • They can work at a more granular level, leaving software decisions and configuration to the user. Here, the user needs to have greater technical knowledge in order to perform those tasks. Examples: Arch, Gentoo.

Installation procedures

Download the disk image (ISO)

Let's presume you have selected your hardware and a Linux distribution you want to run on it. The next step is to download the software for your distro.

The standard way of distributing Linux is to create a bootable disc image (ISO file) and make it available for download. The ISO contains all the software necessary for the target computer to boot and run Linux. From there, the user can either run applications or install the disto to a disc drive, depending on the distro selected.

So, go to your distro's download site, select the ISO for your computer's architecture (e.g., AMD64) and, if the distro has multiple variants, the variant that you want to use.

Copy to a bootable medium

Having downloaded the image, the next step is to put it on a medium from which the target computer can boot it. The options are:

Since this is a system image, the normal file copy operation won't work. Instead, the ISO must be placed on the boot medium exactly as it is structured in the image file, bit by bit. There are special tools for this for Linux, Windows, and OSX. (My Linux Mint system comes with a “USB Image Writer” utility that I use for this.) The Linux command line dd utility also can be used.

Boot the image

Once you have prepared the boot medium, the next step is to insert it into the appropriate input device on the target system (optical drive or USB or SD card slot) and turn on the power.

The computer should detect the ISO and boot from it. (If the system already has an OS installed, you might have to use the system setup utility to change the boot order so the new Linux image will be detected first.)

After booting

Once the boot process is complete, the user has a working Linux system. In most cases, that system will be one of these:

  • A program that installs the distro on a disc drive.
  • A desktop system that runs off the boot medium and gives the option of installing on a disc drive.
  • A complete, working system that runs only from the boot medium – usually an SD card.

Let's look at each one in turn.

Installation program

The purpose here is to install the distro on a fixed drive (HDD, SSD). At minimum, the user is required to select a drive or partition for the install, plus language, keyboard layout, time zone, and to create a default user. Once configured, the program does the rest. When completed, removed the boot medium and reboot the computer.

This is the method of choice for most server installations.

Some installers, such as Debian's, give the user a choice of system type to be installed, (e.g., server or desktop) and possibly specific applications or application types as well.

Live desktop

Desktop-only distributions generally boot into a live desktop session, allowing the user to run it without making a disc drive installation. Log in as the default user (check the distro's documentation for this), and you're good to go. This is a good way to test the distro's compatibility with the machine's hardware.

Most such distros also offer to install themselves on a disc drive. (This often appears as a desktop icon.) Choosing that option launches an installation program, as above.

SBC without fixed drives

Many single board computers have no fixed drives, instead running their OS off of a removable boot medium, such as an SD card. With these, the installation is complete once it's booted up, although some configuration is likely to be required.

Conclusion

We've seen that, although the task of installing Linux on a computer can have many variations in detail, there is a general procedure that is common to all installations:

  1. Download a Linux image
  2. Burn it to a boot device
  3. Boot the target computer from the boot device
  4. Use the system as it is, or install on a fixed drive

There is a Step Zero: get the specific details of installing any Linux distribution by checking its documentation and following the installation instructions you find there.

Return to series index

linuxusernet/inside_linux/how_to_install.txt · Last modified: 2022/02/15 21:53 by KC7MM