Author Topic: cubietruck login ascii art  (Read 4983 times)

Offline uwe

  • Newbie
  • *
  • Posts: 25
  • Karma: +6/-0
    • View Profile
cubietruck login ascii art
« on: December 20, 2013, 10:12:17 am »
Just for fun:

#cat .bash_profile
Quote
let upSeconds="$(/usr/bin/cut -d. -f1 /proc/uptime)"
let secs=$((${upSeconds}%60))
let mins=$((${upSeconds}/60%60))
let hours=$((${upSeconds}/3600%24))
let days=$((${upSeconds}/86400))
UPTIME=`printf "%d days, %02dh%02dm%02ds" "$days" "$hours" "$mins" "$secs"`

# get the load averages
read one five fifteen rest < /proc/loadavg

echo "$(tput setaf 2)
            ___.   .__
  ____  __ _\_ |__ |__| ____
_/ ___\|  |  \ __ \|  |/ __ \
\  \___|  |  / \_\ \  \  ___/       `date +"%A, %e %B %Y, %r"`
 \___  >____/|___  /__|\___  >      `uname -srmo`
     \/          \/        \/       $(tput setaf 1)
  __                        __      Uptime.............: ${UPTIME}
_/  |________ __ __   ____ |  | __  Memory.............: `free -m |grep Mem | awk '{print $2 " MB total / " $3 " MB used / " $4 " MB free" }'`
\   __\_  __ \  |  \_/ ___\|  |/ /  Load Averages......: ${one}, ${five}, ${fifteen} (1, 5, 15 min)
 |  |  |  | \/  |  /\  \___|    <   Running Processes..: `ps ax | wc -l | tr -d " "`
 |__|  |__|  |____/  \___  >__|_ \  IP Addresses.......: `/sbin/ifconfig eth0 | /bin/grep "inet addr" | /usr/bin/cut -d ":" -f 2 | /usr/bin/cut -d " " -f 1`
                         \/     \/  Data Share.........: `df -h /dev/sda1 | grep sda | awk '{ print $2 " total / " $3 " used / " $4 " free" }'`
$(tput sgr0)"

#


Offline Dylantje

  • Newbie
  • *
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Re: cubietruck login ascii art
« Reply #1 on: July 26, 2015, 11:50:59 am »
Looks great.
Love this...

Is there a way that al the lines are good.
Now there a few lines that go true the logo.. :-(