Some Linux installation setup gotchas that got me
notes by Carl Helmers, April 19, 2016
( copy edited and slightly tweaked April 20, 2016 )
Cc © 2016 Carl Helmers — all rights reserved
B a c k g r o u n d
Along about April 15, 2016 or so, I seemed to be having some initialization problems with my secondary weather / time display / current events display computer Zeus, driving the upper of my two stacked LCD displays. Zeus is an HP Pavilion p8620t “Core Quad” Intel PC with a 2.66Ghz clock. I purchased Zeus in December 2009 (a year before I ditched my last ancient XP computer , replaced with a much faster Thor, my current main AMD hex core computer.)
In addition to its real time weather radar, real time clock display and current weekday MarketWatch Financial DJIA & NASDAQ real time display functions, I use Zeus as my experimental Linux computer when I want to try out some Linux distribution. During experimental installations I temporarily forgo use of my standard displays on the upper LCD until I have set them up again after a new installation.
T r y i n g K o r o r a A g a i n
In March 2016 I decided to try the latest Korora 23 version of Fedora 23. After most of a day saving select files then installing Korora 23, I started installing the latest version of my Perl event epoch logging programs. This process requires superuser BASH mkdir creation of my special /home/LL/ directories with my Carl group and user name fields as well as universal rwx permissions:
/home/LL/B/ for the output of my /home/LL/get-last-shutdown shell piped ( | >) to …/B/last-shutdown-at-boot/
/home/LL/P/ for Perl programs and one or two BASH shells that I have written,
/home/LL/H/ for various history files created in the course of the initial boot process.
I pipe the BASH date command into the file /home/LL/H/date-of-boot as my first BASH command after the end of the bootstrap process. This is specified by my crontab@boot line calling my custom shell /home/LL/CH-ZeusCboot (for my “Zeus” computer.) In my CH-ZeusCboot BASH shell the first command executed (absolutely minimal delay) is the BASH date command directed to the intermediate file /home/LL/H/date-of-boot. This gives me a good approximation to the actual boot epoch (date and time) as a standard date command output.
At an unknown and irrelevant delay time later in the CH-ZeusCboot shell, I cat the file /home/LL/H/date-of-boot into the pipe into my Perl /home/LL/P/form-history-date.pl program in order to get an “epoch” format date string for use in my history logs. My “epoch” format date is a more natural readable format of date as opposed to the “format of convenience” used by the first Unix coders that resulted in the date command’s output format. tAs an example the epoch of my login on an April 2016 morning is: Tue Apr 19, 2016 @ 06:40:48 EDT created by cat piping the Linux date format /home/LL/H/login-date ( Tue Apr 19 06:40:48 EDT 2016 ) into a pipe into my form-history-date.pl then into the file /home/LL/H/epoch-of-login. The main difference is that I move the year to its proper position in an American English expression of a date following the day of the month and I add the characters ” @” before the HH:MM:SS format 24-hour astronomical time field used by Linux. Of course I use the effective time zone 3-digit abbreviation for Eastern Daylight time based on my New York location and the current day within the year.
D e f a u l t F i r e f o x
W i n d o w s
Fine and dandy. As part of this very manual configuration process, I create my default (at normal shutdown) Firefox windows pointing at various on line nuggets:
http://www.wunderground.com for ten frames of recent real time weather radar with lightning display graphics
( NOTE: wunderground.com this still requires some daily manual setup of the radar animation parameters. )
http://www.time.gov for current local real time in 24 hour astronomical notation
( NOTE: www.time.gov still requires daily manual checking of a “bullet” for 24-hour time )
http://bigcharts.marketwatch.com/… for DJIA and NASDAQ stock market charts when markets are open.
R e s i d u e of B A S H i n g
S o m e D e t a i l s
T o g e t h e r :
While creating my non standard directories, as well as developing some further “.pl” perl programs I had to make the new program files executable — whether the files were simple shell script text files or .pl perl programs.
Out of bad non-GUI habits command line habits I used a BASH shell window rather than the GUI file properties window to mark the new program files as “executable” so I could run them. After I had a shell window activated for other purposes, for some reason I used the screenshot GUI tool. I inadvertently left it in the default “grab the whole screen” mode while taking my screenshot. Well the whole screen includes my usual desktop background as well as my terminal window and Firefox browser windows.
Remember, a screenshot of a terminal window looks just like an active working terminal window. The …/Pictures/ directory happens to be the default directory from which to select desktop backgrounds as well as the default destination directory for the Screenshot application. Compound that with my inadvertent selection of the abnormal screenshot as my desktop background when I was configuring Korora 23 Cinnamon in Zeus. Now I know why I ended up with a “frozen” terminal window that just would not close when I clicked its “X” dot in the upper right corner!
By going back to preferences I found that my options included my intended custom desktop background for the Korora 23 distribution without the terminal window image, as well as the inadvertent potential wallpaper image of my screenshot with the BASH GUI window and similarly frozen images of my weather and time windows. Picking the correct image I solved my problem. So now I know yet another potential gotcha of the occasional installation of a Linux, an act that I do not do every day! Some details are worth cluttering into one’s memory rather than being tossed over the transom when using the system normally for weeks or months after the last installation!
Not bad for a morning’s writing about my latest finds. …Carl Helmers