新取 是一個跨平台的簡單 shell 腳本,它掃描您的系統信息並將其顯示在終端中,並在輸出旁邊顯示一個 ASCII 圖像或任何所需的圖像。 顯示的一些信息包括:
- 操作系統
- 內核版本
- 外殼類型
- 安裝的軟件包數量
- 系統正常運行時間
- 屏幕分辨率
- CPU信息
- GPU細節
- 主題詳情
- 內存大小
Neofetch 支持 Linux、Unix、iOS 和 Windows 操作系統。 讓我們看看如何在各種 Linux 發行版中安裝 Neofetch,例如 Ubuntu、Debian 和 Arch Linux。
如何在 Ubuntu 中安裝 Neofetch
Neofetch 可在 Ubuntu 默認存儲庫. 首先更新您的系統。
$ sudo apt update
現在使用 apt 命令安裝 neofetch:
$ sudo apt install neofetch
這個安裝了 Neofetch 7.0.0 版本 在我的 Ubuntu 20.04 系統上。
要從 PPA 安裝 Neofetch,它仍然可用於 Ubuntu 18.04/20.04 和 Mint 19,首先添加第三方 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
輸出
如何在 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 輸出的屏幕截圖並將其保存到您的首選位置,請使用 陰囊 工具。
在 Ubuntu、Mint 和 Debian 中,您可以通過運行來安裝它
apt -get install scrot
在 Arch Linux 中,這可以通過運行來實現
pacman -S scrot
在裡面 example 下面,輸出的截圖已保存在 /home/pictures 路徑
neofetch --scrot /home/pictures
另請閱讀:
- 如何安裝和使用 YouTube-DL 在 Ubuntu 18.04 上
- LF – 功能豐富的 Linux 終端管理器
- Termtosvg – 在 Linux 中記錄終端會話的工具
Neofetch 是一個簡單的工具,您可以使用它以簡單方便的方式顯示系統的基本信息。 來試試吧!