GNU/Linux β€’ xterm-256color β€’ bash 151 views

GEMINI Since MX Linux (MX25) is based on Debian Stable, the most straightforward installation method for countryfetch is usually via a simple shell script provided by the developer, or by installing the Rust toolchain (Cargo) and installing it from there.

Countryfetch appears to have two main versions by different developers: one in Rust and one in Deno/TypeScript. I’ll provide the instructions for the popular Rust version first, as it offers a simple installer script. πŸš€ Method 1: Using the Installer Script (Rust Version)

The fastest way to install the Rust version of countryfetch is by using a dedicated installer script.

Open your terminal and execute the following command. This command uses curl to download the installer script and pipes it directly to sh to execute it:

Bash

curl –proto β€˜=https’ –tlsv1.2 -LsSf https://github.com/nik-rev/countryfetch/releases/latest/download/countryfetch-installer.sh | sh

The script will download and install the countryfetch executable to your system.

After installation, you can run the tool by simply typing: Bash

countryfetch

πŸ› οΈ Method 2: Using Cargo (Requires Rust Toolchain)

If you prefer to install packages using the Rust package manager (Cargo), you first need to ensure the Rust toolchain is installed on your MX25 system. Step 1: Install Rust and Cargo

You can typically install the Rust toolchain on Debian-based systems like MX Linux using the official rustup script.

Install the required dependencies for rustup:
Bash

sudo apt update sudo apt install curl build-essential

Install rustup: Bash

curl –proto β€˜=https’ –tlsv1.2 -sSf https://sh.rustup.rs | sh

Follow the on-screen instructions (usually selecting option 1, the default installation).

After the installation is complete, you need to load the environment variables to use cargo: Bash

source $HOME/.cargo/env

Step 2: Install countryfetch

Once Cargo is available, you can install countryfetch with a single command: Bash

cargo install countryfetch

This command will compile and install the countryfetch binary into your $HOME/.cargo/bin directory, which should already be in your system’s $PATH thanks to the rustup installation.

You can then run the tool: Bash

countryfetch

More recordings by gilhas

Browse all

curl wttr.in/TOWN 0:09

by gilhas

fastfetch 1:08

by gilhas