新拍攝 是一個簡單的跨平台 shell 腳本,它掃描系統信息並將其顯示在終端中,例如輸出旁邊的 ASCII 圖像。顯示的部分信息如下:

  1. 操作系統
  2. 內核版本
  3. 外殼類型
  4. 已安裝包數
  5. 系統正常運行時間
  6. 屏幕分辨率
  7. 中央處理器信息
  8. GPU 細節
  9. 主題詳情
  10. 內存容量

Neofetch 支持 Linux、Unix、iOS 和 Windows 操作系統。 讓我們看看如何在 Ubuntu、Debian 和 Arch Linux 等各種 Linux 發行版上安裝 Neofetch。

如何在 Ubuntu 上安裝 Neofetch

Neofetch 可在以下 URL 獲得: Ubuntu 默認存儲庫..先更新系統。

$ sudo apt update

然後使用apt命令安裝neofetch。

$ sudo apt install neofetch

這是安裝的 Neofetch 版本 7.0.0 在我的 Ubuntu 20.04 系統上。

要從 PPA 安裝 Neofetch,它在 Ubuntu 18.04 / 20.04 和 Mint19 上仍然可用,首先添加第三方 Neofetch 存儲庫,如下所示:

add-apt-repository ppa:dawidd0811/neofetch

輸出

CLI script to show your system's info and display an image using w3m.
More info: https://launchpad.net/~dawidd0811/+archive/ubuntu/neofetch
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmpipjmo2cm/secring.gpg' created
gpg: keyring `/tmp/tmpipjmo2cm/pubring.gpg' created
gpg: requesting key 4221BA96 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpipjmo2cm/trustdb.gpg: trustdb created
gpg: key 4221BA96: public key "Launchpad PPA for dawidd6" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK

更新源列表

apt-get update

最後,安裝neofetch

 apt-get install neofetch

運行neofetch命令顯示系統信息

neofetch

輸出

如何在 Debian 上安裝 Neofetch

要在 Debian 9 上安裝 Neofetch,首先如圖所示添加第三方 Neofetch 存儲庫。

echo "deb https://dl.bintray.com/dawidd6/neofetch jessie main" | sudo tee -a /etc/apt/sources.list

然後使用如下所示的命令附加 Neofetch 密鑰

curl -L "https://bintray.com/user/downloadSubjectPublicKey?username=bintray" -o Release-neofetch.key && sudo apt-key add Release-neofetch.key && rm Release-neofetch.key

使用以下命令更新系統以更新源列表

apt-get update

最後,安裝 Neofetch

apt-get install neofetch

啟動 Neofetch

neofetch

輸出

如何安裝 Neofetch

如何在 Arch Linux 上安裝 Neofetch

要在 Arch Linux 上安裝 Neofetch,您可以使用 yaourt、packer 或 pacman 包管理器安裝 Neofetch。

使用 pacman,輸入:

pacman -S neofetch

使用 Yaourt 執行以下操作:

yaourt -S neofetch-git

yaourt -S neofetch

此命令克隆 neofetch git 存儲庫並 mkepkg
使用打包程序運行

packer -S neofetch

packer -S neofetch-git

啟動 neofetch 運行

neofetch

輸出

如何安裝 Neofetch

如果要捕獲 neofetch 輸出的屏幕截圖並將其保存到所需位置,請使用: 陰囊 工具。

在 Ubuntu、Mint 和 Debian 上,您可以運行和安裝

apt -get install scrot

在 Arch Linux 上,這可以通過運行來實現

pacman -S scrot

在下面的示例中,輸出的屏幕截圖保存在 /home/pictures 路徑中。

neofetch --scrot /home/pictures

  • 如何在 Ubuntu 18.04 上安裝和使用 YouTube-DL
  • LF-全功能Linux終端管理器
  • Termtosvg – Linux 上記錄終端會話的工具

Neofetch 是一個簡單的工具,您可以使用它以簡單方便的方式顯示有關係統的基本信息。請試一試!