TranslateProject/sources/tech/20210901 Getting ready for Fedora Linux.md
DarkSun bd5cd00c99 选题[tech]: 20210901 Getting ready for Fedora Linux
sources/tech/20210901 Getting ready for Fedora Linux.md
2021-09-02 05:03:16 +08:00

12 KiB
Raw Blame History

Getting ready for Fedora Linux

Photo by Jacques Bopp on Unsplash

Introduction

Why does Linux remain vastly invisible to ordinary folks who make general use of computers? This article steps through the process to move to Fedora Linux Workstation for non-Linux users. It also describes features of the GUI (Graphic User Interface) and CLI (Command Line Interface) for the newcomer. This is a quick introduction, not an in-depth course.

Installation and configuration are straightforward

Supposedly, a bootable USB drive is the most baffling experience of starting Linux for a beginner. In all fairness, installation with Fedora Media Writer and Anaconda is intuitive.

Step-by-step installation process
  1. Make a Fedora USB stick: 5 to 7 minutes depending on USB speed
  2. Understand disk partitions and Linux file systems
  3. Boot from a USB device
  4. Install with the Fedora installer, Anaconda: 15 to 20 minutes
  5. Software updates: 5 minutes

Following this procedure, it is easy to help family and friends install Fedora Linux.

Package management and configuration

Instead of configuring the OS manually, adding tools and applications you need, you may choose a functional bundle from Fedora Labs for a specific use case. Design Suite, Scientific, Python Classroom, and more, are available. Plus, all processes are complete without the command line.

Connecting devices and services
  • Add a USB printer: Fedora Linux detects most printers in a few seconds. Some may require the drivers.
  • Configure a USB keyboard: Refer to simple work-around for a mechanical keyboard.
  • Sync with Google Drive: Add an account either after installation, or at any time afterward.

Desktop customization is easy

The default GNOME desktop is decent and free from distractions.

A shortlist to highlight desktop benefits:

  • Simplicity: Clean design, fluid and elegant application grid.
  • Reduced user effort: No alerts for paid services or long list of user consent.
  • Accommodating software: GNOME requires little specialist knowledge or technical ability.
  • Neat layout of system Settings: Larger icons and a better layout.

The image below shows the applications and desktops currently available. Get here by selecting “Activities” and then the “Show Applications” icon at the bottom of the screen at the far right. There you will find LibreOffice for your document, spreadsheet, and presentation creation. Also available is Firefox for your web browsing. More applications are added using the Software icon (second from right at the bottom of the screen).

GNOME desktop

Enable touchpad click (tapping)

A change for touchpad settings is required for laptop users.

  1. Go to Activies > Show Applications > Settings > Mouse & Touchpad > Touchpad
  2. Change the default behavior of touchpad settings (double click) to tap-to-click (single tap) using the built-in touchpad
  3. Select Tap to Click
Add user accounts using the users settings tool

During installation, you set up your first login account. For training or demo purposes, it is common to create a new user account.

  1. Add users: Go to Settings > Users > Unlock > Authentication> Add user
  2. Click at the top of the screen at the far right and then navigate to Power Off / Log out, and Select Switch User to relogin as the new user.

Fedora Linux is beginner-friendly

Yes, Fedora Linux caters to a broader selection of users. Since that is the case, why not dip into the shallow end of the Fedora community?

  • Fedora Docs: Clarity of self-help content is outstanding.
  • Ask Fedora: Get help for anything about Fedora Linux.
  • Magazine: Useful tips and user story are engaging. Make a suggestion to write about.
  • Nest with Fedora: Warm welcome virtually from Fedora Linux community.
  • Release parties.

Command line interface is powerful

The command line is a way of giving instructions to a computer (shell) using a terminal. To be fair, the real power behind Fedora Linux is the Bash shell that empowers users to be problem solvers. The good news is that the text-based command is universally compatible across different versions of Linux. The Bash shell comes with the Fedora Linux, so there is no need to install it.

The following will give you a feeling for the command line. However, you can accomplish many if not all day-to-day tasks without using the command line.

How to use commands?

Access the command line by selecting “Activities” and then the “Show Applications” icon at the bottom of the screen at the far right. Select Terminal.

Understand the shell prompt

The standard shell prompt looks like this:

[hank@fedora_test ~]$

The shell prompt waits for a command.

It shows the name of the user (hank), the computer being used (fedora_test), and the current working directory within the filesystem (~, meaning the users home directory). The last character of the prompt, $, indicates that this is a normal users prompt.

Enter commands

What common tasks should a beginner try out with command lines?

  • Command line information is available from the Fedora Magazine and other sites.
  • Use ls and cd to list and navigate your file system.
  • Make new directories (folders) with mkdir.
  • Delete files with rm.
  • Use lsblk command to display partition details.

How to deal with the error messages

  • Be attentive to error messages in the terminal. Common errors are missing arguments, typo of file name.
  • Pause to think about why that happened.
  • Figure out the correct syntax using the man command. For example: man ls displays the manual page for the ls command.

Perform administration tasks using sudo

When a user executes commands for installation, removal, or change of software, the sudo command allows users to gain administrative or root access. The actions that required sudo command are often called the administrative tasks. Sudo stands for SuperUser DO. The syntax for the sudo command is as follows:

sudo [COMMAND]
  1. Replace COMMAND with the command to run as the root user.
  2. Enter password

What are the most used sudo commands to start with?

  • List privileges
sudo -l
  • Install a package
sudo dnf install [package name]
  • Update a package
sudo dnf update [package name]
  • List all packages
sudo dnf grouplist [package name]
  • Manage disk partitions
sudo fdisk -l

Built-in text editor is light and efficient

Nano is the default command-line-based text editor for Fedora Linux. vi is another one often used on Fedora Linux. Both are light and fast. Which to us is a personal choice, really. Nano and vi remain essential tools for editing config files and writing scripts. Generally, Nano is much simpler to work with than vi but vi can be more powerful when you get used to it.

What does a beginner benefit from a text editor?
  • Learn fundamentals of computing

Linux offers a vast range of customization options and monitoring. Shell scripts make it possible to add new functionality and the editor is used to create the scripts.

  • Build cool things for home automation

Raspberry Pi is a testing ground to build awesome projects for homes. Fedora can be installed on Raspberry Pi. Schools use the tiny microcomputer for IT training and experiment. Instead of a visual editor, it is easier to use a light and simple Nano editor to write files.

  • Test proof of concept with the public cloud services

Most of the public cloud suppliers offer free sandbox account to spin up a virtual machine or configure the network. Cloud servers run Linux OS, so editing configuration files require a text editor. Without installing additional software, it is easy to invoke Nano on a remote server.

How to use Nano text editor

Type nano and file name after the shell prompt $ and press Enter.

[hank@fedora_test ~]$ nano [filename]

Note that many of the most used commands are displayed at the bottom of the nano screen. The symbol ^ in Nano means to press the Ctrl key.

  • Use the arrow keys on the keyboard to move up and down, left and right.
  • Edit file.
  • Get built-in help by pressing ^G
  • Exit by entering ^X and Y to save your file and return to the shell prompt.
Examples of file extensions used for configuration or shell scripts
  • .cfg: User-configurable files in the /etc directory.
  • .yaml: A popular type of configuration file with cross-language data portability.
  • .json: JSON is a lightweight & open standard format for storing and transporting data.
  • .sh: A shell script used universally for Unix/Linux systems.

Above all, this is not a comprehensive guide on Nano or vi. Yet, adventurous learners should be aware of text editors for their next step in becoming accomplished in Fedora Linux.

Conclusion

Does Fedora Workstation simplify the user experience of a beginner with Linux? Yes, absolutely. It is entirely possible to create a desktop quickly and get the job done without installing additional software or extensions.

Taking it to the next level, how to get more people into Fedora Linux?

  • Make Fedora Linux device available at home. A repurposed computer with the above guide is a starting point.
  • Demonstrate cool things with Fedora Linux.
  • Share power user tips with shell scripts.
  • Get involved with Open Source Software community such as the Fedora project.

via: https://fedoramagazine.org/getting-ready-for-fedora-linux/

作者:Hanku Lee 选题:lujun9972 译者:译者ID 校对:校对者ID

本文由 LCTT 原创编译,Linux中国 荣誉推出