如何在Ubuntu/debian/mint和archlinux中安装neofetch

时间:2020-03-05 15:32:30  来源:igfitidea点击:

NeoFetch是一个跨平台,简单的shell脚本,用于扫描系统的信息,并将其与ASCII镜像或者输出旁边的任何所需镜像一起显示。

NeoFetch支持Linux,UNIX,iOS和Windows操作系统。

如何在Ubuntu安装NeoFetch

要在Ubuntu 18.04和Mint 19中安装NeoFetch,请先添加第三方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 http://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 Package Manager来安装NeoFetch。

使用Yaourt运行步

yaourt -S neofetch-git

或者

yaourt -S neofetch

此命令将克隆NeoFetch Git存储库并使用"mkepkg"upmy使用packer运行构建包

packer -S neofetch

或者

packer -S neofetch-git

启动Neofetch Run

neofetch

如果要捕获NeoFetch输出的屏幕截图并将其保存到首选位置,请使用"遮盖"工具。

在Ubuntu,Mint和Debian中,我们可以通过运行安装它

apt -get install scrot

在Arch Linux中,这可以通过运行来实现

pacman -S scrot

在下面的示例中,输出的屏幕截图已保存在/主页/图片路径中

neofetch --scrot /home/pictures