ディストリビューションのロゴをアスキーアートで表示してくれる『screenFetch』

世の中には、Linuxのディストリビューションのロゴをアスキーアートで表示させる『screenFetch』というものがあるらしい。 今回は、そのコマンドのインストールと実行をしてみることにした。

1.インストール

以下のコマンドを実行することで、『screenFetch』をインストールできる。

bash
wget https://raw.githubusercontent.com/KittyKatt/screenFetch/master/screenfetch-dev sudo cp screenfetch-dev /usr/local/bin/screenfetch sudo chmod 755 /usr/local/bin/screenfetch

2.実行

さて、それでは実際に実行してみよう。

shell
test@Test-UbuntuOS004:~$ screenfetch ./+o+- test@Test-UbuntuOS004 yyyyy- -yyyyyy+ OS: Ubuntu 14.04 trusty ://+//////-yyyyyyo Kernel: x86_64 Linux 3.13.0-24-generic .++ .:/++++++/-.+sss/` Uptime: 3d 9h 15m .:++o: /++++++++/:--:/- Packages: 1930 o:+o+:++.`..```.-/oo+++++/ Shell: bash 4.3.8 .:+o:+o/. `+sssoo+/ CPU: Intel Xeon CPU E5-2620 0 @ 2GHz .++/+:+oo+o:` /sssooo. RAM: 262MB / 3953MB /+++//+:`oo+o /::--:. \+/+o+++`o++o ++////. .++.o+++oo+:` /dddhhh. .+.o+oo:. `oddhhhh+ \+.++o+o``-````.:ohdhhhhh+ `:o+++ `ohhhhhhhhyo++os: .o:`.syhhhhhhh/.oo++o` /osyyyyyyo++ooo+++/ ````` +oo+++o\: `oo++. test@Test-UbuntuOS004:~$

何も指定しなくても、自身のOSを自動識別してくれるようだ。 なお、「-D」オプションをつけることでOSを指定出来る。

以下にその一例を記載していく。 …ペンタックス君のAA、色ついてるとこんな感じなのね。

Arch Linux

shell
test@Test-UbuntuOS004:~$ screenfetch -D 'Arch Linux' [[ ! ]] /usr/local/bin/screenfetch: line 730: pacman: command not found -` .o+` test@Test-UbuntuOS004 `ooo/ OS: Arch Linux `+oooo: Kernel: x86_64 Linux 3.13.0-24-generic `+oooooo: Uptime: 3d 9h 59m -+oooooo+: Packages: 0 `/:-:++oooo+: Shell: bash 4.3.8 `/++++/+++++++: CPU: Intel Xeon CPU E5-2620 0 @ 2GHz `/++++++++++++++: RAM: 263MB / 3953MB `/+++ooooooooooooo/` ./ooosssso++osssssso+` .oossssso-````/ossssss+` -osssssso. :ssssssso. :osssssss/ osssso+++. /ossssssss/ +ssssooo/- `/ossssso+/:- -:/+osssso+- `+sso+:-` `.-/+oso: `++:. `-/+/ .` `/ test@Test-UbuntuOS004:~$

Linux Mint

shell
test@Test-UbuntuOS004:~$ screenfetch -D 'Mint' test@Test-UbuntuOS004 MMMMMMMMMMMMMMMMMMMMMMMMMmds+. OS: Mint MMm----::-://////////////oymNMd+` Kernel: x86_64 Linux 3.13.0-24-generic MMd /++ -sNMd: Uptime: 3d 10h 1m MMNso/` dMM `.::-. .-::.` .hMN: Packages: 1930 ddddMMh dMM :hNMNMNhNMNMNh: `NMm Shell: bash 4.3.8 NMm dMM .NMN/-+MMM+-/NMN` dMM CPU: Intel Xeon CPU E5-2620 0 @ 2GHz NMm dMM -MMm `MMM dMM. dMM RAM: 263MB / 3953MB NMm dMM -MMm `MMM dMM. dMM NMm dMM .mmd `mmm yMM. dMM NMm dMM` ..` ... ydm. dMM hMM- +MMd/-------...-:sdds dMM -NMm- :hNMNNNmdddddddddy/` dMM -dMNs-``-::::-------.`` dMM `/dMNmy+/:-------------:/yMMM ./ydNMMMMMMMMMMMMMMMMMMMMM \.MMMMMMMMMMMMMMMMMMM test@Test-UbuntuOS004:~$

LMDE

shell
test@Test-UbuntuOS004:~$ screenfetch -D 'LMDE' `.-::---.. test@Test-UbuntuOS004 .:++++ooooosssoo:. OS: LMDE .+o++::. `.:oos+. Kernel: x86_64 Linux 3.13.0-24-generic :oo:.` -+oo: Uptime: 3d 10h 3m `+o/` .::::::-. .++-` Packages: 1930 `/s/ .yyyyyyyyyyo: +o-` Shell: bash 4.3.8 `so .ss ohyo` :s-: CPU: Intel Xeon CPU E5-2620 0 @ 2GHz `s/ .ss h m myy/ /s`` RAM: 263MB / 3953MB `s: `oo s m Myy+-o:` `oo :+sdoohyoydyso/. :o. .:////////++: `/++ -:::::- `++- `/+- .+/. .:+-. `--.`` test@Test-UbuntuOS004:~$

Ubuntu

shell
test@Test-UbuntuOS004:~$ screenfetch -D 'Ubuntu' ./+o+- test@Test-UbuntuOS004 yyyyy- -yyyyyy+ OS: Ubuntu ://+//////-yyyyyyo Kernel: x86_64 Linux 3.13.0-24-generic .++ .:/++++++/-.+sss/` Uptime: 3d 10h 7m .:++o: /++++++++/:--:/- Packages: 1930 o:+o+:++.`..```.-/oo+++++/ Shell: bash 4.3.8 .:+o:+o/. `+sssoo+/ CPU: Intel Xeon CPU E5-2620 0 @ 2GHz .++/+:+oo+o:` /sssooo. RAM: 263MB / 3953MB /+++//+:`oo+o /::--:. \+/+o+++`o++o ++////. .++.o+++oo+:` /dddhhh. .+.o+oo:. `oddhhhh+ \+.++o+o``-````.:ohdhhhhh+ `:o+++ `ohhhhhhhhyo++os: .o:`.syhhhhhhh/.oo++o` /osyyyyyyo++ooo+++/ ````` +oo+++o\: `oo++. test@Test-UbuntuOS004:~$

Debian

shell
test@Test-UbuntuOS004:~$ screenfetch -D 'Debian' _,met$$$$$gg. test@Test-UbuntuOS004 ,g$$$$$$$$$$$$$$$P. OS: Debian ,g$$P"" """Y$$.". Kernel: x86_64 Linux 3.13.0-24-generic ,$$P' `$$$. Uptime: 3d 10h 9m ',$$P ,ggs. `$$b: Packages: 1930 `d$$' ,$P"' . $$$ Shell: bash 4.3.8 $$P d$' , $$P CPU: Intel Xeon CPU E5-2620 0 @ 2GHz $$: $$. - ,d$$' RAM: 263MB / 3953MB $$\; Y$b._ _,d$P' Y$$. `.`"Y$$$$P"' `$$b "-.__ `Y$$ `Y$$. `$$b. `Y$$b. `"Y$b._ `"""" test@Test-UbuntuOS004:~$

Fedora

shell
test@Test-UbuntuOS004:~$ screenfetch -D 'Fedora' [[ ! ]] /usr/local/bin/screenfetch: line 735: rpm: command not found /:-------------:\ test@Test-UbuntuOS004 :-------------------:: OS: Fedora :-----------/shhOHbmp---:\ Kernel: x86_64 Linux 3.13.0-24-generic /-----------omMMMNNNMMD ---: Uptime: 3d 10h 11m :-----------sMMMMNMNMP ---: Packages: 0 :-----------:MMMdP----- --- Shell: bash 4.3.8 ,------------:MMMd------ ---: CPU: Intel Xeon CPU E5-2620 0 @ 2GHz :------------:MMMd----- .---: RAM: 264MB / 3953MB :---- oNMMMMMMMMMNho .----: :-- +shhhMMMmhhy++ .------ :- -----:MMMd--------------: :- ------/MMMd-------------; :- ..----/hMMMy------------: :-- :dMNdhhdNMMNo------------; :---:sdNMMMMNds:------------: :------:://:-------------:: :---------------------:// test@Test-UbuntuOS004:~$

Opensuse

shell
test@Test-UbuntuOS004:~$ screenfetch -D 'Opensuse' [[ ! ]] /usr/local/bin/screenfetch: line 735: rpm: command not found .;ldkO0000Okdl;. test@Test-UbuntuOS004 .;d00xl:,'....';:ok00d;. OS: openSUSE .d00l' ,o00d. Kernel: x86_64 Linux 3.13.0-24-generic .d0Kd. :Okxol:;'. :O0d. Uptime: 3d 10h 12m 'OKKKK0kOKKKKKKKKKKOxo:' lKO' Packages: 0 ,0KKKKKKKKKKKKKKKK0d:,,,:dx: ;00, Shell: bash 4.3.8 .OKKKKKKKKKKKKKKKKk..oOkdl.'0k. cKO. CPU: Intel Xeon CPU E5-2620 0 @ 2GHz :KKKKKKKKKKKKKKKKK: kKx..od lKd .OK: RAM: 263MB / 3953MB dKKKKKKKKKKKOx0KKKd ;0KKKO, kKKc dKd dKKKKKKKKKKKK;.;oOKx,..'..;kKKK0. dKd :KKKKKKKKKKKK0o;...;cdxxOK0Oxc,. .0K: kKKKKKKKKKKKKKKK0xl;'......,cdo lKk '0KKKKKKKKKKKKKKKKKKKKK00KKOo; c00' .kKKKOxddxkOO00000Okxoc;'. .dKk. l0Ko. .c00l. .l0Kk:. .;xK0l. ,lkK0xl:;,,,,;:ldO0kl, .':ldxkkkkxdl:'. test@Test-UbuntuOS004:~$

Mandrake

shell
test@Test-UbuntuOS004:~$ screenfetch -D 'Mandrake' [[ ! ]] /usr/local/bin/screenfetch: line 735: rpm: command not found test@Test-UbuntuOS004 `` OS: Mandrake `-. Kernel: x86_64 Linux 3.13.0-24-generic ` .--- Uptime: 3d 10h 16m -/ -::--` Packages: 0 `++ `----...```-:::::. Shell: bash 4.3.8 `os. .::::::::::::::-``` ` ` CPU: Intel Xeon CPU E5-2620 0 @ 2GHz +s+ .::::::::::::::::---...--` RAM: 264MB / 3953MB -ss: `-::::::::::::::::-.``.`` /ss- .::::::::::::-.`` ` +ss: .::::::::::::- /sso .::::::-::::::- .sss/ -:::-.` .::::: /sss+. ..` `--` .::: -ossso+/:://+/-` .:` -/+ooo+/-. ` test@Test-UbuntuOS004:~$

Crunchbang

shell
test@Test-UbuntuOS004:~$ screenfetch -D 'Crunchbang' test@Test-UbuntuOS004 ??? ??? ??? OS: CrunchBang ??? ??? ??? Kernel: x86_64 Linux 3.13.0-24-generic ??? ??? ??? Uptime: 3d 10h 18m ??? ??? ??? Packages: 1930 ???????????????????????????? ??? Shell: bash 4.3.8 ???????????????????????????? ??? CPU: Intel Xeon CPU E5-2620 0 @ 2GHz ??? ??? ??? RAM: 264MB / 3953MB ??? ??? ??? ??? ??? ??? ??? ??? ??? ???????????????????????????? ??? ???????????????????????????? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? test@Test-UbuntuOS004:~$

Gentoo

shell
test@Test-UbuntuOS004:~$ screenfetch -D 'Gentoo' [[ ! ]] ls: cannot access /var/db/pkg/*/*: No such file or directory -/oyddmdhs+:. test@Test-UbuntuOS004 -odNMMMMMMMMNNmhy+-` OS: Gentoo -yNMMMMMMMMMMMNNNmmdhy+- Kernel: x86_64 Linux 3.13.0-24-generic `omMMMMMMMMMMMMNmdmmmmddhhy/` Uptime: 3d 10h 20m omMMMMMMMMMMMNhhyyyohmdddhhhdo` Packages: 0 .ydMMMMMMMMMMdhs++so/smdddhhhhdm+` Shell: bash 4.3.8 oyhdmNMMMMMMMNdyooydmddddhhhhyhNd. CPU: Intel Xeon CPU E5-2620 0 @ 2GHz :oyhhdNNMMMMMMMNNNmmdddhhhhhyymMh RAM: 264MB / 3953MB .:+sydNMMMMMNNNmmmdddhhhhhhmMmy /mMMMMMMNNNmmmdddhhhhhmMNhs: `oNMMMMMMMNNNmmmddddhhdmMNhs+` `sNMMMMMMMMNNNmmmdddddmNMmhs/. /NMMMMMMMMNNNNmmmdddmNMNdso:` +MMMMMMMNNNNNmmmmdmNMNdso/- MNNNNNNNmmmmmNNMmhs+/-` /hMMNNNNNNNNMNdhs++/-` `/ohdmmddhys+++/:.` `-//////:--. test@Test-UbuntuOS004:~$

Red Hat Linux

shell
test@Test-UbuntuOS004:~$ screenfetch -D 'Red Hat Linux' [[ ! ]] /usr/local/bin/screenfetch: line 735: rpm: command not found test@Test-UbuntuOS004 `.-..........` OS: Red Hat Enterprise Linux `////////::.`-/. Kernel: x86_64 Linux 3.13.0-24-generic -: ....-////////. Uptime: 3d 10h 21m //:-::///////////` Packages: 0 `--::: `-://////////////: Shell: bash 4.3.8 //////- ``.-:///////// .` CPU: Intel Xeon CPU E5-2620 0 @ 2GHz `://////:-.` :///////::///:` RAM: 264MB / 3953MB .-/////////:---/////////////: .-://////////////////////. yMN+`.-::///////////////-` .-`:NMMNMs` `..-------..` MN+/mMMMMMhoooyysshsss MMM MMMMMMMMMMMMMMyyddMMM+ MMMM MMMMMMMMMMMMMNdyNMMh` hyhMMM MMMMMMMMMMMMMMMMyoNNNMMM+. MMMMMMMM MMNMMMNNMMMMMNM+ mhsMNyyyyMNMMMMsMM test@Test-UbuntuOS004:~$

CentOS

shell
test@Test-UbuntuOS004:~$ screenfetch -D 'CentOS' [[ ! ]] /usr/local/bin/screenfetch: line 735: rpm: command not found .. test@Test-UbuntuOS004 .PLTJ. OS: CentOS <><><><> Kernel: x86_64 Linux 3.13.0-24-generic KKSSV' 4KKK LJ KKKL.'VSSKK Uptime: 3d 10h 23m KKV' 4KKKKK LJ KKKKAL 'VKK Packages: 0 V' ' 'VKKKK LJ KKKKV' ' 'V Shell: bash 4.3.8 .4MA.' 'VKK LJ KKV' '.4Mb. CPU: Intel Xeon CPU E5-2620 0 @ 2GHz . KKKKKA.' 'V LJ V' '.4KKKKK . RAM: 264MB / 3953MB .4D KKKKKKKA.'' LJ ''.4KKKKKKK FA. <QDD ++++++++++++ ++++++++++++ GFD> 'VD KKKKKKKK'.. LJ ..'KKKKKKKK FV ' VKKKKK'. .4 LJ K. .'KKKKKV ' 'VK'. .4KK LJ KKA. .'KV' A. . .4KKKK LJ KKKKA. . .4 KKA. 'KKKKK LJ KKKKK' .4KK KKSSA. VKKK LJ KKKV .4SSKK <><><><> 'MKKM' '' test@Test-UbuntuOS004:~$

ペンタックス君

shell
test@Test-UbuntuOS004:~$ screenfetch -D 'pentax' test@Test-UbuntuOS004 OS: pentax Kernel: x86_64 Linux 3.13.0-24-generic ##### Uptime: 3d 10h 25m ####### Packages: Unknown ##O#O## Shell: bash 4.3.8 ####### CPU: Intel Xeon CPU E5-2620 0 @ 2GHz ########### RAM: 263MB / 3953MB ############# ############### ################ ################# ##################### ##################### ################# test@Test-UbuntuOS004:~$

FreeBSD

shell
test@Test-UbuntuOS004:~$ screenfetch -D 'FreeBSD' [[ ! ]] sysctl: cannot stat /proc/sys/kern/boottime: No such file or directory [[ ! ]] /usr/local/bin/screenfetch: line 697: 1404518964 - : syntax error: operand expected (error token is "- ") test@Test-UbuntuOS004 ``` ` OS: FreeBSD ` `.....---.......--.``` -/ Kernel: x86_64 Linux 3.13.0-24-generic +o .--` /y:` +. Uptime: yo`:. :o `+- Packages: y/ -/` -o/ Shell: .- ::/sy+:. CPU: / `-- / GPU: `: :` RAM: `: :` / / .- -. -- -. `:` `:` .-- `--. .---.....----. test@Test-UbuntuOS004:~$

NetBSD

shell
test@Test-UbuntuOS004:~$ screenfetch -D 'NetBSD' [[ ! ]] /usr/local/bin/screenfetch: line 955: 939656 [[ ! ]] 0 / 1024: syntax error in expression (error token is "0 / 1024") __,gnnnOCCCCCOObaau,_ test@Test-UbuntuOS004 _._ __,gnnCCCCCCCCOPF"'' OS: NetBSD (N\\XCbngg,._____.,gnnndCCCCCCCCCCCCF"___,,,,___ Kernel: x86_64 Linux 3.13.0-24-generic \N\\XCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCOOOOPYvv. Uptime: 3d 10h 30m \N\\XCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCPF"'' Packages: Unknown \N\\XCCCCCCCCCCCCCCCCCCCCCCCCCOF"' Shell: bash 4.3.8 \N\\XCCCCCCCCCCCCCCCCCCCCOF"' CPU: Intel Xeon CPU E5-2620 0 @ 2GHz \N\\XCCCCCCCCCCCCCCCPF"' RAM: \N\\"PCOCCCOCCFP"" \N\ \N\ \N\ \NN\ \NN\ \NNA. \NNA, \NNN, \NNN\ \NNN\ \NNNA test@Test-UbuntuOS004:~$

OpenBSD

shell
test@Test-UbuntuOS004:~$ screenfetch -D 'OpenBSD' (_) | . . |L /| . _ test@Test-UbuntuOS004 _ . |\ _| \--+._/| . (_) OS: OpenBSD / ||\| Y J ) / |/| ./ Kernel: x86_64 Linux 3.13.0-24-generic J |)'( | ` F`.'/ _ Uptime: -<| F __ .-< (_) Packages: | / .-'. `. /-. L___ Shell: J \ < \ | | O\|.-' _ CPU: _J \ .- \/ O | | \ |F (_) GPU: '-F -<_. \ .-' `-' L__ RAM: __J _ _. >-' )._. |-' `-|.' /_. \_| F /.- . _.< /' /.' .' `\ /L /' |/ _.-'-\ /'J ___.---'\| |\ .--' V | `. ` |/`. `-. `._) / .-.\ \ ( `\ `.\ test@Test-UbuntuOS004:~$

Mac OS X

shell
test@Test-UbuntuOS004:~$ screenfetch -D 'Mac OS X' [[ ! ]] sysctl: cannot stat /proc/sys/kern/boottime: No such file or directory [[ ! ]] /usr/local/bin/screenfetch: line 692: 1404519401-: syntax error: operand expected (error token is "-") /usr/local/bin/screenfetch: line 3219: ioreg: command not found /usr/local/bin/screenfetch: line 3220: sw_vers: command not found /usr/local/bin/screenfetch: line 3221: sw_vers: command not found -/+:. test@Test-UbuntuOS004 :++++. OS: bit Mac OS X /+++/. Kernel: x86_64 Linux 3.13.0-24-generic .:-::- .+/:-``.::- Uptime: .:/++++++/::::/++++++/:` Packages: .:///////////////////////:` Shell: ////////////////////////` Resolution: -+++++++++++++++++++++++` DE: /++++++++++++++++++++++/ WM: /sssssssssssssssssssssss. WM Theme: :ssssssssssssssssssssssss- CPU: osssssssssssssssssssssssso/` GPU: `syyyyyyyyyyyyyyyyyyyyyyyy+` RAM: `ossssssssssssssssssssss/ :ooooooooooooooooooo+. `:+oo+/:-..-:/+o+/- test@Test-UbuntuOS004:~$

その他Cygwinにも対応している等、非常に面白い代物になっている。 今度、/etc/motdと連携とかさせられないか検証してみよう。