Nabend,
da ich schon seit ewigen Zeiten auf der Suche nach einem anständigen ASCII-Logo für ArchLinux war, aber bis jetzt keines finden konnte, habe ich ein eigenes gemacht.
Das Ergebnis ist im Anhang zu sehen.
Ich bin dabei wie folgt vorgegangen:
1. Das SW-Logo von archlinux.org besorgt und mittels GIMP zu jpg konvertiert
2. In KolourPaint den kleinen Schriftzug und die "TM"s entfernt
3. Ein ASCII-Bild erzeugen lassen:
jp2a --background=light -b --term-fit --chars=" ...archlinux,.;:'" archlinux-official-black.jpg >> logo.txt
jp2a ist ein Programm, das aus JPG ASCII-Arts erzeugt und ist im AUR zu finden.
4. Das ganze in ein Skript verpackt, welches ein bisschen nachcoloriert und automatisch Systeminformationen hinzufügt.
Hier nun das erwähnte Skript:
#!/bin/bash
# Specify the output file
logofile="logo.txt"
# Some information about your system
hsname=`uname -n`
KERNEL=`uname -r`
ARCH=`uname -m`
CPU=`uname -p`
# Colorcodes packed into handy variables - adjust to your will
W="\033[01;37m"
B="\033[01;34m"
R="\033[01;31m"
G="\033[00;37m"
# The concrete logo, modify as you wish.
# You probably have to add/remove some whitespaces at the end of each line
# since they are satically inserted.
clear > $logofile
echo -e "$W+------------------------------------------------------------------------------------------------------------------------------+" >> $logofile
echo -e "$W| $W |" >> $logofile
echo -e "$W| $R WELCOME TO $hsname $W |" >> $logofile
echo -e "$W| $B rl $W |" >> $logofile
echo -e "$W| $B .;'l $W |" >> $logofile
echo -e "$W| $B .,'':c $W |" >> $logofile
echo -e "$W| $B .u'''';a$W .aca $B aa ... $W|" >> $logofile
echo -e "$W| $B .u'''''';a$W r''n $B xi .c. $W|" >> $logofile
echo -e "$W| $B .llu:''''':c$W anuxxxuh. hinahnnc.rlinilc. r':irhllca. $B xi . .. .rcra. .. .. .. $W|" >> $logofile
echo -e "$W| $B .x'';,;''''':r$W n,xuux:':a .'':;,ui;'':..:'.ar'.:;,ux:';c $B xi .;. uxnihchn,r .:r ,h cxr .iu. $W|" >> $logofile
echo -e "$W| $B .x'''''''''''':r$W rn,;::.;''l .''n. r'';c. .a. r''x. a''u $B xi .:. ux. hx .:r ,h .unrxi. $W|" >> $logofile
echo -e "$W| $B .,'''''''''''''':c$W a:';icci:''l .''c l''n r''n .''u $B xi .;. un cx .:r ,h .x'i $W|" >> $logofile
echo -e "$W| $B .,''''''';;:'''''':l$W c'',. ..''l .''c .:':l. .ca r''n .:'u $B ui .;. un c, .:c .;h .uuaui. $W|" >> $logofile
echo -e "$W| $B ..''''''xa. .i:''''''l$W .i;':;;:.,:l .''c ax:':;;:'.ar''n .:'u $B ui .;. un c, .x,r..aln;h c,c hxa $W|" >> $logofile
echo -e "$W| $B r;''''''x. h'''''''i.$W .achca.cr. rra. .achhc.. .hr. .hc. $B a. .r. a. .r .rliila.c..c. .c. $W|" >> $logofile
echo -e "$W| $B h:'''''''r .;'''';,xi. $W |" >> $logofile
echo -e "$W| $B l:''''''''c .;'''''';nr. $W |" >> $logofile
echo -e "$W| $B.n'''';xihr.. .aciu.:''',. $R KERNEL $W= $KERNEL $W|" >> $logofile
echo -e "$W| $B.x:,nc. .rix:.a $R CPU $W= $CPU $W|" >> $logofile
echo -e "$W| $B.hc. .rl. $R ARCH $W= $ARCH $W|" >> $logofile
echo -e "$W| $W |" >> $logofile
echo -e "$W| $W |" >> $logofile
echo -e "$W+------------------------------------------------------------------------------------------------------------------------------+" >> $logofile
echo -e "$G" >> $logofile
Im Moment werden die Whitespaces am Ende der Zeile noch nicht dynamisch aufgefüllt, wenn jemand mit etwas mehr Bash-Kentnissen sich da ran setzen möchte: Nur zu 😉
Ich hoffe jemand findet es nützlich, ansonsten sorry für die Bandbreitenverschwendung 😉
MfG,
Vrob