How to install Neofetch on Linux

LinuxLinuxBeginner
Practice Now

Introduction

Neofetch is a powerful command-line tool that provides a concise and visually appealing display of various system details, including the operating system, kernel version, CPU, memory, and more. This tutorial will guide you through the process of installing and configuring Neofetch on your Linux system, as well as customizing its output to suit your needs.


Skills Graph

%%%%{init: {'theme':'neutral'}}%%%% flowchart RL linux(("`Linux`")) -.-> linux/FileandDirectoryManagementGroup(["`File and Directory Management`"]) linux(("`Linux`")) -.-> linux/BasicFileOperationsGroup(["`Basic File Operations`"]) linux(("`Linux`")) -.-> linux/RemoteAccessandNetworkingGroup(["`Remote Access and Networking`"]) linux(("`Linux`")) -.-> linux/VersionControlandTextEditorsGroup(["`Version Control and Text Editors`"]) linux(("`Linux`")) -.-> linux/SystemInformationandMonitoringGroup(["`System Information and Monitoring`"]) linux(("`Linux`")) -.-> linux/UserandGroupManagementGroup(["`User and Group Management`"]) linux(("`Linux`")) -.-> linux/PackagesandSoftwaresGroup(["`Packages and Softwares`"]) linux/FileandDirectoryManagementGroup -.-> linux/mkdir("`Directory Creating`") linux/BasicFileOperationsGroup -.-> linux/cp("`File Copying`") linux/BasicFileOperationsGroup -.-> linux/chmod("`Permission Modifying`") linux/RemoteAccessandNetworkingGroup -.-> linux/ssh("`Secure Connecting`") linux/VersionControlandTextEditorsGroup -.-> linux/vim("`Text Editing`") linux/SystemInformationandMonitoringGroup -.-> linux/uname("`System Information Displaying`") linux/SystemInformationandMonitoringGroup -.-> linux/hostname("`Hostname Managing`") linux/UserandGroupManagementGroup -.-> linux/export("`Variable Exporting`") linux/PackagesandSoftwaresGroup -.-> linux/software("`Linux Software`") subgraph Lab Skills linux/mkdir -.-> lab-420114{{"`How to install Neofetch on Linux`"}} linux/cp -.-> lab-420114{{"`How to install Neofetch on Linux`"}} linux/chmod -.-> lab-420114{{"`How to install Neofetch on Linux`"}} linux/ssh -.-> lab-420114{{"`How to install Neofetch on Linux`"}} linux/vim -.-> lab-420114{{"`How to install Neofetch on Linux`"}} linux/uname -.-> lab-420114{{"`How to install Neofetch on Linux`"}} linux/hostname -.-> lab-420114{{"`How to install Neofetch on Linux`"}} linux/export -.-> lab-420114{{"`How to install Neofetch on Linux`"}} linux/software -.-> lab-420114{{"`How to install Neofetch on Linux`"}} end

Understanding Neofetch

Neofetch is a command-line system information tool for Linux and other Unix-like operating systems. It provides a concise and visually appealing display of various system details, including the operating system, kernel version, CPU, memory, and more.

One of the primary use cases for Neofetch is to quickly gather and display system information. This can be particularly useful for troubleshooting, system monitoring, or simply satisfying one's curiosity about the hardware and software configuration of a Linux machine.

To demonstrate the capabilities of Neofetch, let's run the command on an Ubuntu 22.04 system:

neofetch

This will output a comprehensive report of the system's details, including:

  • Operating system and distribution
  • Kernel version
  • CPU model and architecture
  • Memory usage
  • Disk storage
  • Graphics card
  • Desktop environment
  • Terminal emulator
  • Shell
  • and more
graph TD A[Neofetch] --> B[System Information] B --> C[Operating System] B --> D[Hardware Details] B --> E[Software Configuration]

The information provided by Neofetch can be particularly useful for developers, system administrators, and enthusiasts who need to quickly assess the hardware and software configuration of a Linux system. By understanding the capabilities and limitations of the underlying system, users can make informed decisions about software deployment, hardware upgrades, or troubleshooting.

Installing and Configuring Neofetch

To use Neofetch, you first need to install it on your Linux system. The installation process varies depending on your distribution, but the general steps are similar.

On Ubuntu 22.04, you can install Neofetch using the following command:

sudo apt-get update
sudo apt-get install neofetch

Once Neofetch is installed, you can run the command to display the system information:

neofetch

This will provide a detailed report of your system's hardware and software configuration.

To customize the output of Neofetch, you can edit the configuration file located at ~/.config/neofetch/config.conf. This file contains various settings that allow you to modify the information displayed, the layout, and the visual appearance of the Neofetch output.

For example, you can change the display order of the system information, enable or disable certain modules, and even add custom text or ASCII art to the output. Here's an example of how to modify the configuration file:

## Disable the CPU model
print_cpu="off"

## Enable the GPU model
print_gpu="on"

## Change the display order
print_order="title os host kernel uptime memory gpu disk battery"

After making the desired changes, save the configuration file, and the next time you run neofetch, the output will reflect your customizations.

graph TD A[Install Neofetch] --> B[Ubuntu 22.04] B --> C[apt-get update] B --> D[apt-get install neofetch] A --> E[Configure Neofetch] E --> F[~/.config/neofetch/config.conf] F --> G[Customize Output]

By understanding how to install and configure Neofetch, you can tailor the system information display to your specific needs, making it a valuable tool for system administrators, developers, and Linux enthusiasts.

Customizing Neofetch Output

One of the key features of Neofetch is its ability to be highly customized to suit your preferences. The configuration file located at ~/.config/neofetch/config.conf provides a wide range of options to tailor the system information display.

Let's explore some of the common customization options:

Modifying the Display Order

You can rearrange the order in which system information is displayed by modifying the print_order variable in the configuration file. For example, to display the operating system, kernel version, and memory usage first, you can use the following configuration:

print_order="os kernel memory"

Enabling/Disabling Modules

Neofetch offers a variety of modules that can be enabled or disabled based on your needs. For instance, if you don't want to display the CPU model, you can set the print_cpu variable to "off":

print_cpu="off"

Similarly, you can enable or disable the display of other system components, such as the GPU, disk usage, and battery information.

Customizing ASCII Art

Neofetch can display ASCII art representations of various operating systems and logos. You can choose from a wide range of pre-defined ASCII art or even create your own custom ASCII art to be displayed alongside the system information.

To use a custom ASCII art, you can add the following configuration:

ascii_distro="path/to/your/custom/ascii/art.txt"

Replace "path/to/your/custom/ascii/art.txt" with the actual path to your custom ASCII art file.

graph TD A[Customize Neofetch Output] --> B[Modify Display Order] A --> C[Enable/Disable Modules] A --> D[Customize ASCII Art] B --> E[print_order] C --> F[print_cpu="off"] D --> G[ascii_distro="path/to/your/custom/ascii/art.txt"]

By leveraging these customization options, you can tailor the Neofetch output to your specific needs, making it a more valuable tool for system analysis, monitoring, and presentation.

Summary

In this tutorial, you have learned how to install and configure Neofetch, a system information tool for Linux and other Unix-like operating systems. You've explored the capabilities of Neofetch, including its ability to display detailed hardware and software information about your system. By understanding and customizing Neofetch, you can quickly gather and analyze system details, which can be particularly useful for troubleshooting, system monitoring, or simply satisfying your curiosity about your Linux machine.

Other Linux Tutorials you may like