Posted in

Linux 安装指南:选择最佳平台_AI阅读总结 — 包阅AI

包阅导读总结

1. 关键词:Linux、Installation、Hardware、Virtualization、Containers

2. 总结:

本文探讨了在追求职业发展、编程或技术认证时,安装 Linux 的多种选择,包括硬件平台、特定硬件、虚拟化、容器等,强调实践经验重要,指出虚拟化通常更经济便捷。

3. 主要内容:

– Linux 安装平台选择

– 硬件平台

– 裸机安装:在无操作系统或应用的计算机上安装

– 硬件要求:Linux 硬件要求灵活,不同发行版要求各异

– 选择特定硬件:有兼容 Linux 的硬件可选

– 虚拟化

– 概念:通过软件在现有系统上创建虚拟机

– 示例:在苹果笔记本上安装虚拟机用于学习

– 对比裸机:各有优缺点

– 软件选项:多种选择,有收费和免费开源

– 树莓派

– 小型单板计算机,可安装特定 Linux 发行版

– 容器

– 较新的虚拟化形式,更适用于应用环境

– 总结

– 学习新操作系统需实践,可通过物理安装或虚拟机,虚拟化更优,建议从常见发行版开始。

思维导图:

文章地址:https://thenewstack.io/linux-choose-an-installation-platform/

文章来源:thenewstack.io

作者:Damon M. Garn

发布时间:2024/7/19 15:55

语言:英文

总字数:1679字

预计阅读时间:7分钟

评分:86分

标签:Linux,安装,虚拟化,裸机,树莓派


以下为原文内容

本内容来源于用户推荐转载,旨在分享知识与观点,如有侵权请联系删除 联系邮箱 media@ilingban.com

You’ve chosen a Linux distribution and are ready to begin the installation process, but you need to figure out your hardware options. Do you have to go buy a new computer? Can you use an older system? What about this virtualization thing? Are containers a choice?

This article doesn’t provide technical configurations. Instead, it discusses installation options for experimenting with Linux as you pursue career development, programming, or technical certifications. It offers ideas about what hardware is necessary and how to use your existing resources. I also cover this information with an eye toward not spending too much money on the solution.

The related articles in the series discuss choosing one or more distributions and the actual installation process.

Use a Hardware Platform

The term “bare metal” refers to a computer’s hardware without an operating system or applications (though firmware is usually in place). A computer typically has four major subsystems: processor, memory, storage, and networking. On bare metal hardware, these components are installed and ready, but no software exists to utilize them.

Installing Linux on a bare metal device means installing it on a computer with no other operating system or applications you intend to retain. This could be a new computer you’ve just assembled or an older device whose OS, applications, and data you intend to overwrite.

Linux is very flexible when it comes to hardware requirements. Most Linux distributions can get by on much smaller quantities of RAM and hard disk space than the Windows and macOS operating systems. Some distributions are even specialized to run well on much older hardware platforms. Because so many distributions exist and their functionality varies widely, it’s difficult to pin down a specific set of minimum and recommended hardware requirements. It’s best to check these recommendations on a per-distribution basis.

Here are a few sample recommendations:

Those are pretty light requirements for today’s systems. You may find that an older computer gathering dust in your closet or basement will work very well for Linux, even if it no longer works effectively with other operating systems.

Choose Linux-Specific Hardware

If you choose to buy hardware, be sure to look for Linux-compatible systems. For example, Ubuntu certifies specific hardware for use with its distribution. Some major manufacturers, such as Dell, offer Linux as a preinstalled operating system choice on some systems.

Other vendors specialize in nothing but Linux. Consider System76‘s line of laptops, workstations, minis, and servers using their own Pop!_OS or Ubuntu 22.04 LTS. Tuxedo Computers also offers Linux-specific computers with Tuxedo OS Linux and Ubuntu. Many additional choices exist.

However, Linux has a very robust set of drivers and is compatible with most of today’s standard and modern hardware. I wouldn’t hesitate to put the OS on nearly any computer I might come across.

What Is Virtualization?

Virtualization software takes a very different approach from bare metal installations. This solution begins with a bare metal hardware device and an existing operating system, like Linux, Windows, or macOS. You’ll install virtualization software on the computer the same way you would a web browser or PDF reader. This software allows you to create virtual computers upon which you can install various operating systems, including Linux.

The virtualization software divides your computer’s process, memory, storage, and network capabilities into “virtual machines” and allows an operating system to be installed on them.

Virtualization is a weird concept. Let’s break it down by examining the two words “virtual machine.” The word “virtual” means pretend or simulated. In this case, the processor, memory, storage, and networking capabilities are being simulated. The word “machine” indicates they are simulated as if they were a real computer. In essence, you’re creating a pretend computer within the software of your regular computer and operating system.

Figure 1: Processor and memory specifications for an Ubuntu 22.04 VM running in the Parallels virtualization software.

Because this virtual machine looks and acts like a real computer, you can install an operating system on it so you can use it the same way you would any other computer.

Virtualization Example

Consider the following example: Suppose I have an Apple MacBook Pro laptop. This physical device includes an installation of the Apple Sonoma macOS. I can use this laptop and the programs installed on it to write documents, explore the web, manage email, and edit images. In other words, this is a basic day-to-day use computer.

But what if I decide to learn some Python programming? I could do that using macOS with no problem, but it might be useful to isolate my programming experiments so that if something goes wrong, I don’t blow up the computer I use for business. I could install virtualization software like Parallels on my Mac and then create a virtual machine that borrows processor, memory, storage, and networking from my physical computer. I’d then install the Fedora Linux distribution on that virtual machine. Fedora will treat this VM as if it were a real computer. I could then add any Python tools and resources to the Fedora VM and use it to work on my programming projects.

Figure 2: Parallels virtualization application on a MacBook Pro with an Ubuntu VM running.

Compare Bare Metal and Virtualization

The bare metal and virtualization approaches each have advantages, though I will say virtualization is really a very robust solution.

Advantages of bare metal:

Disadvantages of bare metal:

  • More expensive
  • Space
  • Power consumption
  • Cooling
  • Noise

Advantages of virtualization:

  • Cost savings
  • Space, cooling, and noise reduction
  • Use one computer for many operating systems

Disadvantages of virtualization:

  • Includes a learning curve, though basic deployments are straightforward
  • Software may be expensive
  • Can put a strain on the host computer’s resources

Most of today’s computers are plenty powerful to run the host operating system and at least a couple of VMs simultaneously. That’s enough to experiment with a few different Linux distributions to find the one you like. I regularly run Fedora and Ubuntu Linux VMs at the same time on my Mac laptop with no performance hit, and I wouldn’t hesitate to run two or three more VMs concurrently. Powerful servers may host many production VMs simultaneously.

Virtualization Software Options

You have many options for virtualization software. The two main limitations are compatibility with your host OS (Windows, macOS, or Linux) and cost. The following list shows the most common choices.

  • VMware Workstation Pro: Runs Windows and Linux VMs on Windows and Linux host systems. VMware offers a few different purchase options, but Workstation Pro is $199.
  • Parallels: Runs Windows and Linux VMs on Apple macOS host systems. Parallels offers a Standard or Pro subscription. The Pro subscription starts at $95.99/year.
  • Microsoft Hyper-V: If you have Windows 11, you can add Microsoft’s Hyper-V virtualization software to run Windows and Linux VMs. Hyper-V itself does not have a cost, but you must have a licensed copy of Windows 11 Pro or Enterprise.
  • Oracle VirtualBox: VirtualBox runs on Windows, Linux, and macOS hosts and supports Windows and Linux VMs. It’s free and open-source. VirtualBox is a robust option and a great choice for most users.
  • Gnome Boxes: Boxes runs on Linux hosts and supports various Linux and Windows operating systems. It’s a free and open-source product for Linux systems.

Note that pricing and specification information is current at the time of writing.

Figure 3: The Parallels Control Center shows two installed VMs.

Consider a Raspberry Pi

Another interesting option is the Raspberry Pi platform. A Raspberry Pi is a small single-board computer with a remarkable amount of power in a very small package. You can install a Raspberry Pi-specific Linux distribution on it to run many applications, use Internet of Things utilities, or stream multimedia. These devices are small, flexible, and very affordable. They were originally designed to get kids interested in programming and computing. Ubuntu even has a Pi version of its distribution.

Raspberry Pi can be a great option for those looking to break into Linux.

Figure 4: A Raspberry Pi 3 version B computer.

What About Containers?

Containers are a newer form of virtualization that receives a lot of attention today. You may wonder about using Linux in a container to learn the operating system. It’s certainly possible, but the process is more convoluted than a traditional virtual machine and not as easy to work with.

As with virtual machines, containers require host software (a container engine) running on your regular computer. However, containers are really meant to be computing environments for applications rather than for the OS layer.

While I strongly recommend learning all you can about containers, I think you’ll find there are more effective ways of working with the Linux OS than containerizing it.

Wrap Up

The most essential part of learning a new operating system is hands-on experience. If you’re ready to work with Linux daily, you’ll need a way to practice commands, install software, configure security, etc. You can gain this experience by installing Linux on a physical computer system or creating virtual machines on your existing computer. Both options have advantages, but virtualization is usually cheaper and easier. Furthermore, you’ll need familiarity with virtualization anyway if you work in the IT industry. Finally, virtual machines make it much easier to experiment with the many available Linux distributions. I suggest starting with Ubuntu, Fedora, Rocky, or Mint.

YOUTUBE.COM/THENEWSTACK

Tech moves fast, don’t miss an episode. Subscribe to our YouTubechannel to stream all our podcasts, interviews, demos, and more.

GroupCreated with Sketch.