{"id":970,"date":"2016-04-19T14:08:31","date_gmt":"2016-04-19T18:08:31","guid":{"rendered":"http:\/\/www.helmers.com\/?p=970"},"modified":"2016-04-20T10:16:26","modified_gmt":"2016-04-20T14:16:26","slug":"fooled-by-a-forgotten-screenshot","status":"publish","type":"post","link":"http:\/\/www.helmers.com\/?p=970","title":{"rendered":"Fooled by a forgotten screenshot!"},"content":{"rendered":"<h1 style=\"text-align: center;\"><span style=\"color: #0000ff;\">Some Linux installation setup gotchas that got me<\/span><\/h1>\n<h2 style=\"text-align: center;\"><span style=\"color: #008000;\">notes by Carl Helmers, April 19, 2016<i><b> <\/b><\/i><\/span><\/h2>\n<p style=\"text-align: center;\"><span style=\"color: #00ffff;\">( copy edited and slightly tweaked April 20, 2016 )<\/span><\/p>\n<p align=\"center\"><span style=\"color: #ff0000;\"><span style=\"font-family: Liberation Serif,serif;\"><span style=\"font-size: small;\"><i><b>Cc \u00a9 2016 Carl Helmers &#8212; all rights reserved<\/b><\/i><\/span><\/span><\/span><\/p>\n<h1 style=\"text-align: center;\"><\/h1>\n<h1 style=\"text-align: center;\"><span style=\"color: #0000ff;\">B a c k g r o u n d<\/span><\/h1>\n<p>Along about April 15, 2016 or so, I seemed to be having some initialization problems with my secondary weather \/ time display \/\u00a0 current events display computer <span style=\"color: #ff0000;\">Zeus<\/span>, driving the upper of my two stacked LCD displays.\u00a0 <span style=\"color: #ff0000;\">Zeus<\/span> is an HP Pavilion <span style=\"color: #ff0000;\">p8620t<\/span> &#8220;Core Quad&#8221; Intel PC with a 2.66Ghz clock. I purchased <span style=\"color: #ff0000;\">Zeus<\/span> in December 2009 (a year before I ditched my last ancient XP computer , replaced with a much faster <span style=\"color: #ff0000;\">Thor<\/span>, my current main AMD hex core computer.)<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>In addition to its real time weather radar, real time clock display and current weekday MarketWatch Financial DJIA &amp; NASDAQ real time display functions,\u00a0 I use Zeus as my experimental Linux computer when I want to try out some Linux distribution.\u00a0 During experimental installations I temporarily\u00a0 forgo use of my standard displays on the upper LCD until I have set them up again after a new installation.<\/p>\n<h1 style=\"text-align: center;\"><\/h1>\n<p>&nbsp;<\/p>\n<h1 style=\"text-align: center;\"><span style=\"color: #0000ff;\">T r y i n g\u00a0\u00a0 K o r o r a\u00a0\u00a0 A g a i n\u00a0<\/span><\/h1>\n<p>In March 2016 I decided to try the latest <span style=\"color: #0000ff;\">Korora 23<\/span> version of <span style=\"color: #0000ff;\">Fedora 23<\/span>. \u00a0 After most of a day saving select files then installing <span style=\"color: #0000ff;\">Korora 23<\/span>,\u00a0 I started installing the latest version of my Perl event epoch logging programs.\u00a0 This process requires superuser BASH <span style=\"color: #ff0000;\">mkdir<\/span> creation of my special <strong><span style=\"color: #ff6600;\">\/home\/LL\/<\/span> <\/strong>directories with my <strong><span style=\"color: #0000ff;\">Carl<\/span><\/strong> group and user name fields as well as universal <strong><span style=\"color: #0000ff;\">rwx<\/span>\u00a0<\/strong> permissions:<\/p>\n<p style=\"padding-left: 30px;\"><strong><span style=\"color: #008000;\">\/home\/LL\/B\/\u00a0<\/span><\/strong> for the output of my <strong><span style=\"color: #0000ff;\">\/home\/LL\/get-last-shutdown<\/span><\/strong> shell piped <span style=\"color: #0000ff;\">(<\/span> <span style=\"color: #0000ff;\"><strong>| &gt;<\/strong>)<\/span> to <strong><span style=\"color: #ff6600;\">&#8230;\/B\/last-shutdown-at-boot\/<\/span><\/strong><\/p>\n<p style=\"padding-left: 30px;\"><strong><span style=\"color: #008000;\">\/home\/LL\/P\/<\/span><\/strong>\u00a0 for Perl programs and one or two BASH shells that I have written,<\/p>\n<p style=\"padding-left: 30px;\"><strong><span style=\"color: #008000;\">\/home\/LL\/H\/<\/span><\/strong> for various history files created in the course of the initial boot process.<\/p>\n<p>I\u00a0 pipe the BASH <strong><span style=\"color: #ff6600;\">date<\/span><\/strong> command into the file <span style=\"color: #008000;\"><strong>\/home\/LL\/H\/date-of-boot<\/strong><span style=\"color: #000000;\"> as my first BASH command after the end of the bootstrap process.\u00a0\u00a0 This is specified by my<\/span> <span style=\"color: #0000ff;\"><strong>crontab@boot<\/strong><\/span><span style=\"color: #000000;\"> line calling my custom shell<span style=\"color: #000080;\"><strong><span style=\"color: #0000ff;\"> \/home\/LL\/CH-ZeusCboot<\/span>\u00a0<\/strong><\/span> (for my &#8220;<span style=\"color: #ff6600;\">Zeus<\/span>&#8221; computer.) \u00a0 In my <span style=\"color: #000080;\"><strong><span style=\"color: #0000ff;\">CH-ZeusCboot<\/span> <\/strong><\/span>BASH shell\u00a0 the first command executed (absolutely minimal delay) is the BASH\u00a0 <\/span><span style=\"color: #0000ff;\"><strong>date<\/strong><\/span><\/span> command directed to the intermediate file <span style=\"color: #008000;\"><strong>\/home\/LL\/H\/date-of-boot<\/strong><\/span>. This gives me a good approximation to the actual boot epoch (date and time) as a standard date command output.<\/p>\n<p>At\u00a0 an unknown and irrelevant delay time later in the <span style=\"color: #008000;\"><strong>CH-ZeusCboot<\/strong><\/span> shell, I <span style=\"color: #0000ff;\"><strong>cat<\/strong><\/span> the file <span style=\"color: #0000ff;\"><strong>\/home\/LL\/H\/date-of-boot<\/strong><\/span><span style=\"color: #000000;\"> i<\/span>nto the pipe into my Perl<span style=\"color: #0000ff;\"> <strong>\/home\/LL\/P\/form-history-date.pl<\/strong> <\/span>program in order to get\u00a0 an\u00a0 &#8220;epoch&#8221; format date string for use in my history logs.\u00a0 My &#8220;epoch&#8221; format date is a more natural readable format of date as opposed to the &#8220;format of convenience&#8221; used by the first Unix coders that resulted in the date command&#8217;s output format.\u00a0\u00a0 tAs an example the epoch of my login on an April 2016 morning is:\u00a0 <strong><span style=\"color: #ff0000;\">Tue Apr 19, 2016 @ 06:40:48 EDT<\/span><\/strong> created by\u00a0<span style=\"color: #0000ff;\"><strong>cat<\/strong><\/span> piping the Linux date format <span style=\"color: #008000;\"><strong>\/home\/LL\/H\/login-date<\/strong><\/span> ( <span style=\"color: #ff00ff;\">Tue Apr 19 06:40:48 EDT 2016<\/span> ) into a pipe into my <span style=\"color: #0000ff;\"><strong>form-history-date.pl<\/strong><\/span>\u00a0 then into the file\u00a0 <strong><span style=\"color: #008000;\">\/home\/LL\/H\/epoch-of-login<\/span><\/strong>.\u00a0 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 &#8221; @&#8221; before the HH:MM:SS format 24-hour astronomical time field used by Linux.\u00a0 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.<\/p>\n<h1 style=\"text-align: center;\"><\/h1>\n<h1 style=\"text-align: center; padding-left: 90px;\"><\/h1>\n<h1 style=\"text-align: center; padding-left: 90px;\"><span style=\"color: #0000ff;\">D e f a u l t\u00a0\u00a0 F i r e f o x<\/span><\/h1>\n<h1 style=\"text-align: center; padding-left: 90px;\"><span style=\"color: #0000ff;\">W i n d o w s<\/span><\/h1>\n<p>Fine and dandy.\u00a0\u00a0 As part of this very manual configuration process, I create my default (at normal shutdown) Firefox windows pointing at various on line nuggets:<\/p>\n<p style=\"padding-left: 30px;\"><span style=\"color: #ff0000;\">http:\/\/www.wunderground.com<\/span> for ten frames of recent real time weather radar with lightning display graphics<\/p>\n<p style=\"padding-left: 90px; text-align: center;\">( NOTE: <span style=\"color: #ff0000;\">wunderground.com<\/span> this still requires some daily manual setup of the radar animation parameters. )<\/p>\n<p style=\"padding-left: 30px;\"><span style=\"color: #ff0000;\">http:\/\/www.time.gov <span style=\"color: #000000;\">for <\/span><\/span>current local real time in 24 hour astronomical notation<\/p>\n<p style=\"padding-left: 180px; text-align: left;\">( NOTE: <span style=\"color: #ff0000;\">www.time.gov<\/span><span style=\"color: #000000;\"> still requires daily manual checking of a &#8220;bullet&#8221; for 24-hour time )<\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"color: #ff0000;\"><span style=\"color: #000000;\"><span style=\"color: #ff0000;\">http:\/\/bigcharts.marketwatch.com\/&#8230;<span style=\"color: #000000;\"> for DJIA and NASDAQ <\/span><\/span>stock market charts when markets are open. <\/span><\/span><\/p>\n<h1 style=\"text-align: center; padding-left: 90px;\"><\/h1>\n<h1 style=\"text-align: center; padding-left: 90px;\"><\/h1>\n<h1 style=\"text-align: center; padding-left: 90px;\"><\/h1>\n<h1 style=\"text-align: center; padding-left: 90px;\"><span style=\"color: #0000ff;\">R e s i d u e\u00a0\u00a0 of\u00a0\u00a0\u00a0 B A S H i n g<\/span><\/h1>\n<h1 style=\"text-align: center; padding-left: 90px;\"><span style=\"color: #0000ff;\">S o m e\u00a0\u00a0 D e t a i l s<\/span><\/h1>\n<h1 style=\"text-align: center; padding-left: 90px;\"><span style=\"color: #0000ff;\">\u00a0\u00a0 T o g e t h e r\u00a0 :<\/span><\/h1>\n<p><span style=\"color: #ff0000;\"><span style=\"color: #000000;\">W<\/span><\/span>hile creating my non standard directories, as well as developing some further &#8220;<strong><span style=\"color: #0000ff;\">.pl<\/span><\/strong>&#8221; <strong><span style=\"color: #0000ff;\">perl<\/span><\/strong> programs I had to make the new program files executable &#8212; whether the files were simple shell script text files or<strong><span style=\"color: #0000ff;\"> .pl perl<\/span><\/strong> programs.<\/p>\n<p>Out of bad non-GUI habits command line habits I used a BASH shell window rather than the<strong><span style=\"color: #0000ff;\"> GUI file properties window<\/span><\/strong> to mark the new program files as &#8220;<strong><span style=\"color: #0000ff;\">executable<\/span><\/strong>&#8221; so I could run them.\u00a0\u00a0 After I had a shell window activated for other purposes,\u00a0 for some reason I used the <span style=\"color: #0000ff;\">screenshot<\/span> GUI tool.\u00a0 I inadvertently left it in the default <span style=\"color: #800080;\">&#8220;grab the whole screen&#8221;<span style=\"color: #000000;\"> mode while taking my screenshot.\u00a0 Well the whole screen includes my usual desktop background as well as my terminal window and Firefox browser windows.<br \/>\n<\/span><\/span><\/p>\n<p><span style=\"color: #800080;\"><span style=\"color: #000000;\">Remember,\u00a0 a screenshot of a terminal window looks just like an active working terminal window.\u00a0\u00a0 The <strong><span style=\"color: #0000ff;\">&#8230;\/Pictures\/ <\/span><\/strong>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.\u00a0 Now I know why I ended up with a &#8220;frozen&#8221; terminal window that just would not close when I clicked its &#8220;X&#8221; dot in the upper right corner!<br \/>\n<\/span><\/span><\/p>\n<p><span style=\"color: #800080;\"><span style=\"color: #000000;\">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.\u00a0 Picking the correct image I solved my problem.\u00a0 So now I know yet another potential gotcha of the occasional installation of a Linux, an act that I do not do every day!\u00a0\u00a0 Some details are worth cluttering into one&#8217;s memory rather than being tossed over the transom when using the system normally for weeks or months after the last installation!<br \/>\n<\/span><\/span><\/p>\n<p>Not bad for a morning&#8217;s writing about my latest finds. \u00a0\u00a0 &#8230;Carl Helmers<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some Linux installation setup gotchas that got me notes by Carl Helmers, April 19, 2016 ( copy edited and slightly tweaked April 20, 2016 ) Cc \u00a9 2016 Carl Helmers &#8212; all rights reserved B a c k g r o u n d Along about April 15, 2016 or so, I seemed to be [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45,43],"tags":[],"class_list":["post-970","post","type-post","status-publish","format-standard","hentry","category-development-of-my-wp-site","category-ongoing-linux-voyages"],"_links":{"self":[{"href":"http:\/\/www.helmers.com\/index.php?rest_route=\/wp\/v2\/posts\/970","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.helmers.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.helmers.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.helmers.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.helmers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=970"}],"version-history":[{"count":6,"href":"http:\/\/www.helmers.com\/index.php?rest_route=\/wp\/v2\/posts\/970\/revisions"}],"predecessor-version":[{"id":977,"href":"http:\/\/www.helmers.com\/index.php?rest_route=\/wp\/v2\/posts\/970\/revisions\/977"}],"wp:attachment":[{"href":"http:\/\/www.helmers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=970"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.helmers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=970"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.helmers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}