Skip to main content

Posts

Showing posts from February, 2014

Text based spinner / countdown-timer

I've always wondered how installation scripts created spinners, and counters, etc..  So, I played around and come up with this #!/bin/bash TIMER=60 DIVISOR=1 COUNTER=${TIMER} C=0 while [ $COUNTER -gt 0 ] do     case "$(($C % 4))" in         0) char="/"         ;;         1) char="-"         ;;         2) char="\\"         ;;         3) char="|"         ;;     esac   echo -ne "${char}  -- ${COUNTER} \r"   COUNTER=$[$COUNTER-$DIVISOR]   C=$[$C+1]   sleep $DIVISOR done echo -ne '\n'

Installing Flash on RHEL

I created this post for someone that is new to Red Hat that asked about installing the Flash plugin.  The Flash plugin is actually a really good example to learn with (in my opinion).  It is available from Red Hat as well as Adobe.  And may cause a problem for you when you attempt to do updates. Which is the first lesson: you have to be selective what non-Red Hat REPOs you add to your system.  I have not encountered an issue with package incompatibilities in quite some time using on Red Hat REPOs.  I cannot say the same about some of the 3rd-party REPOs out there. NOTE: I am going to intentionally break my system, then correct it. Add Adobe's REPO [jradtke@apoc ~]$ wget http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm --2014-02-09 10:29:46--  http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm Resolving linuxdownload.adobe.com... 192.150.16.37 Connecting to linuxdownload.adobe.com|192.150.16.37|:80... conn