ONE HOUR Linux SESSIONS: 2014-2017
sessions in chronological order going back to 2014
---> various ebooks and video series by john
Simply Linux: Basics Linux Tackles Microsoft Using BASH on Windows 10
Practical Suggestions for Microsoft Windows
 Full Size Jeep Buyer's Guide
the art of Linux sys admin
the Art of Linux SysAdmin
john's publications (click on cover for further info)

2018


JohnMeister.com      Today's Date: 



Session #117 - January 19, 2018 - FRIDAY - BASH command precedence
Clay will be presenting material on command precedence and useful HTML features as demonstrated in his page:
https://yourunclemike.github.io/bash/which-craft.html
There are two major lessons in Clay's presentation: 1) path considerations, special characters, built-ins, commands and aliases. see prior material at: bashrc-n-history-details.html see prior material at: basic-setup-for-BASH.html see example .bashrc file: bashrc-basic.html 2) practical use of HTML features, e.g. code for buttons used to hide material until expanded.




Session #116 - January 12, 2018 - FRIDAY - using command line tools to build a web page
############################################### 
1)  FILES TO MERGE INTO PARALLEL COLUMNS: used excel to create list  
      (moved columns in excel), copy/paste
 
    http://johnmeister.com/bible/ReadInOneYear/one-year-plan.txt
  - Added leading zeros so all numbers were 3 digits for sorting, underscores for spaces.
  - Global replace in vi "touch" at the front of the line, save and: sh ./listofnames
   created empty files, ls > Daily-Passages.html, edited and:
 
    http://johnmeister.com/bible/ReadInOneYear/Daily-Passages.html

Took the list and extracted only the chapters using cut to get the ranges needed.
   ls Day_212_Jul_07_31_Isaiah_57-59.html | cut -c 25-29  
        # tested placement of verses... off by 1
   ls Day_212_Jul_07_31_Isaiah_57-59.html | cut -c 26-30
   ls | cut -c 26-30 > create-files.sh 
        #  then I took the list of 365 days and created the list of chapters
--> echo Day_212_Jul_07_31_Isaiah_57-59.html | cut -c 26-30
57-59       #  so, VS="57-59" and would be created for each section. 
############################################### 
2)  created copies: kjv, nas, greek 
   cp gnt.txt g$VS.txt ; cp KJVb.txt k$VS.txt; cp NAS-NT.txt n$VS.txt 
############################################### 
3) vi - edit out all but chapters for reading: 
    vi file, /Mark 15, k, 1G, /Mark 17,dG,:wn... last,:wq
############################################### 
3) check lines on all three files (using cat and wc -l)
cat g$VS.txt | wc -l ; cat k$VS.txt | wc -l ; cat n$VS.txt | wc -l
####  time saver:  cat g*.txt | wc -l ; cat k*.txt | wc -l ; cat n*.txt | wc -l
############################################### 
4) copy empty file from web directory  (would do this as the last step in the script)
   DAY1 would be file in edit, DAYN is the next day.
############################################### 
5) paste tags and text together into file
  paste -d '\n' tags1.txt k$VS.txt tags2.txt n$VS.txt tags3.txt g$VS.txt tags4.txt > $DAY1
#### manual / time saver mode (grabbed from history, command line complete of Day...): 
#  paste -d '\n' tags1.txt k*.txt tags2.txt n*.txt tags3.txt g*.txt tags4.txt \
#                    > Day_294_Oct_10_21_Luke_1-2.html
############################################### 
6) vi $DAY1 - deleted empty rows at end;  :r FILE-BASE.txt ; type day and verses; save
############################################### 
7) scp file to server and mv to web directory
############################################### 
8) repeat for all 365 days: 1,189 chapters; 31,102 verses and 781,621 words (YMMV)

########################################## script for part of the process: ########################################## #!/bin/bash ############# DAY1="Day_293_Oct_10_20_Mark_15-16.html" ; VS="15-16" DAYN="Day_294_Oct_10_21_Luke_1-2.html" ############# cp gnt.txt g$VS.txt ; cp KJVb.txt k$VS.txt; cp NAS-NT.txt n$VS.txt vi ?$VS.txt cat g$VS.txt | wc -l ; cat k$VS.txt | wc -l ; cat n$VS.txt | wc -l read # safety net - edit files in a different shell - hit enter when ready #### THE MAIN COURSE: tags have html formatting including colors paste -d '\n' tags1.txt k$VS.txt tags2.txt n$VS.txt tags3.txt g$VS.txt tags4.txt > $DAY1 ########### cat FILE-BASE.txt >> $DAY1 # I found that trimming the file of empty lines first was better vi $DAY1 ; ls -al ; echo $DAY scp $DAY1 server:/home/luser/website/ReadInOneYear/ mv $DAY1 ../ReadInOneYear/ mv ?$VS.txt hold-tmp # a safety net - just in case... (used it once so far) ############# echo "next day" cp ../10_Oct/$DAYN . # cp ../07_Jul/Day_191_Jul_07_10_Ecclesiastes_1-4.html . # manual steps for smaller sections echo "next $DAYN" ; echo "====================" ###################################################### could queue up more day # DAY1="Day_286_Oct_10_13_Mark_1-3.html" ; VS="1-3" # DAYN="Day_287_Oct_10_14_Mark_4-5.html" ######################################################



2017 - click for all sessions


Session #115 - December 15, 2017 - FRIDAY - using find and perl
note on html: color for cell above is "ivory" (rrggbb), font color is "black"
(red, green, and blue): colors between 0 and 255 (hex values= ff). 255,0,0 = red ; 0,255,0 = green ; 0,0,255 = blue
(can use names too...)

NOTE: LAST SESSION OF 2017
http://johnmeister.com/linux/Intro-to-Linux/OLDER-NOTES/One-Hour-Linux-Sessions-2014-2017.html

using find and perl to update HTML pages for URL correction and consolidation of domains

http://johnmeister.com/linux/SysAdmin/Using-find-n-perl-to-manage-URLs.html
also: time, grep, col, and Apache: /etc/apache2/errors.conf and creating a missing.html page

Session #114 - December 8, 2017 - FRIDAY - Oracle VirtualBox and LVM
note on html: color for cell above is "yellow" (rrggbb), font color is "black"
(red, green, and blue): colors between 0 and 255 (hex values= ff). 255,0,0 = red ; 0,255,0 = green ; 0,0,255 = blue
(can use names too...)


Expanding the capactity of a dynamic vdi disk in Oracle's VirtualBox

Built a default Linux 64bit VM with Centos, however, needed more space, 
   had to increase the capacity from the default of 8GB to about 14GB. 
https://www.virtualbox.org/

http://johnmeister.com/linux/SysAdmin/Virtualization/VM_setup_SuSE_13.2/ALL.html
  
Steps to increase capacity of a vdi drive in VirtualBox 
        (Linux or MacOSx host) at the COMMAND LINE:

-->sudo VBoxManage modifyhd /home/luser/VirtualBox_VMs/Centos-Lab/Centos_Lab.vdi --resize 14480
 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

Once that was done, checked settings in VirtualBox;  
        was good... but local drive in VM still not expanded.

FROM INSIDE THE VM, at the command line:  
    pvs ; pvdisplay ; vgs ; vgdisplay; lvs ; lvdisplay  
        # displays system values
    fdisk /dev/sda      
        #  create a partition in the "expanded" virtual drive
        p, n, p, 3, t, 82e, w
    pvcreate /dev/sda3    ; pvs; vgs    
        # create the physical volume, check it
   vgextend centos_centos7-vm /dev/sda3  
        # extend the existing volume group into the expande physical drive
   vgs ; pvscan ; lvdisplay ; df -h; vgdisplay
   lvextend /dev/mapper/centos_centos7--vm-root /dev/sda3 
        # extend the logical volume into the expanded volume group
   df -h . ; vgs ; lvs 
   resize2fs /dev/mapper/centos_centos7--vm-root  
       ## FAILURE - bug in RH LVM and/or XFS  (should have extended the file system)
## FAILURE - bug in RH LVM and/or XFS
--> resize2fs /dev/centos_centos7-vm/root   (FAILURE IN RH-type system and xfs)
resize2fs 1.42.9 (28-Dec-2013)
resize2fs: Bad magic number in super-block while trying to open /dev/centos_centos7-vm/root
Couldn't find valid filesystem superblock.

FIX:
--> xfs_growfs  /dev/centos_centos7-vm/root

http://johnmeister.com/linux/FileSystems/ADD-6GB-to-vdi-CentOS-VM.html

process:  Order of precendence and logic:   - PHYSICAL   - VOLUME  - LOGICAL 
PHYSICAL VOLUME(s): pvs; pvdisplay; pvresize
VOLUME GROUP(s): vgs; vgdisplay; vgextend        Add physical volumes to a volume group
LOGICAL VOLUME(s): lvs ; lvdisplay; lvextend        Add space to a logical volume

        http://johnmeister.com/linux/FileSystems/setup-LVM.html

        http://johnmeister.com/linux/FileSystems/lvm-commands.html


Session #113 - December 1, 2017 - FRIDAY - RECAP of 3 years of Linux at lunch!
note on html: color for cell above is "fedcba" (rrggbb), font color is "black"
(red, green, and blue): colors between 0 and 255 (hex values= ff). 255,0,0 = red ; 0,255,0 = green ; 0,0,255 = blue
(can use names too...)


recap of 3 years worth of sessions

http://johnmeister.com/linux/Intro-to-Linux/session-list-2017.html

DETAILS 2014-2017 Linux sesssions

SESSION #2 - December 3, 2014 - SAW:"simple always works"

provided link to exercise #1,
discussed environment (.bashrc), path, chmod, discussed "SAW" -
SAW:"simple always works",
History files viewed with sort, uniq, and how to create notes for reference:
ls, sort, grep, uniq, wc -l
(after using a command, use history recall, add echo and quotes around it,
and then append to ~/bin/cool-commands.txt e.g.

echo "ls *.jpg > ALL.html ; \
perl -pi -e 's/(.*)/<img src="$1"><BR>$1<HR>/g' ALL.html ; \
perl -pi -e 's/<img src=""><BR><HR>//g' ALL.html ; \
cat ALL.html" >> ~/bin/cool-commands.txt

----------------------------------------------------------------------------
Links: http://johnmeister.com/linux/Intro-to-Linux/lab-exercise-1.html
(do this on your system, use "script exercise-1.raw",
when finished type exit, then cat exercise-1.raw | col -b > exercise-1.txt
# then edit in vi and save)
http://johnmeister.com/linux/Scripts/chksys.sh.html
(use the vi editor to create and run on your system)
http://johnmeister.com/linux/Scripts/man-page-create-textfiles.sh.txt
(mkdir and cd LAB, then create this script in vi and run)
http://johnmeister.com/linux/Commands/grep-awk-uniq.html
(the output of the script above is needed to use the commands,
YMMV, counts may be different)


SESSION #1 - November 26, 2014 - OVERVIEW

	 provided overview of Linux using the pdf: 
        http://johnmeister.com/linux/Overview/LinuxOverview.pdf  
	5 basic commands: man, ls (ls -al, ls -Al), cd, pwd, more 
	discussed .bashrc and showed a few script examples, talked about "script"
----------------------------------------------------------------------------
Links:	http://johnmeister.com/linux/Overview/LinuxOverview.pdf    
        (print out and use as a guide)
	http://johnmeister.com/linux/Intro-to-Linux/Special-Characters.pdf 
        (print out and keep as a guide)
	http://johnmeister.com/linux/Notes/bashrc-the-dotfile.html  
        (copy and build your own .basrhc for Cygwin or Linux)
	http://johnmeister.com/linux/Scripts/chksys.sh.html  
	http://johnmeister.com/linux/Intro-to-Linux/lab-exercise-1.html  
        (use the commands and the vi editor)


THE CORE MATERIAL:The power of the command line - Simply Linux: Basics will work our way through the Linux book (Simply Linux: Basics) under construction based on http://johnmeister.com/linux/Overview/ http://johnmeister.com/linux/Overview/LinuxOverview.pdf (print out and use as a guide) http://johnmeister.com/linux/Overview/Linux-PowerPoint-2004-overview.pdf http://johnmeister.com/linux/Notes/Real-world-Linux-Commands. http://johnmeister.com/linux/Intro-to-Linux/Special-Characters.pdf (print out and use as a guide) http://johnmeister.com/linux/Notes/bashrc-the-dotfile. (copy and build your own .basrhc for Cygwin or Linux)

ONE HOUR Linux SESSIONS



---> Major sections of JohnMeister.com - Linux, Jeep, Tech, Bible, Fotos:






---> The Bible

bottom line: Trust Jesus

You can Trust Jesus
because you can
trust the Bible
- details are analyzed to show the accuracy and logic of the Bible so that you can trust it.



Major Sections of the Bible
The Bible - 8 major sections OLD Testament: 23,145 vs 929 chapters 39 Books
NEW Testament: 7,957 vs 260 chapters 27 Books
Bible: 31,102 vs 1,189 chapters 66 Books Read the Bible in 1 year - 3 chapters a day John 1:1 In the beginning was the Word, and the Word was with God, and the Word was God.
2 He was in the beginning with God. 3 All things came into being through Him, and apart from Him nothing came into being that has come into being. (NASB: New American Standard Bible)
Luke 24:44-47 Now He said to them, "These are My words which I spoke to you while I was still with you, that all things which are written about Me in the Law of Moses and the Prophets and the Psalms must be fulfilled." 45 Then He opened their minds to understand the Scriptures, 46 and He said to them, "Thus it is written, that the Christ would suffer and rise again from the dead the third day, 47 and that repentance for forgiveness of sins would be proclaimed in His name to all the nations, beginning from Jerusalem. (NASB)
the Sections: Books in section: Selected verse from section:
1) THE LAW Genesis, Exodus, Leviticus, Numbers, Deuteronomy Exodus 3:14 God said to Moses, "I AM WHO I AM"; and He said, "Thus you shall say to the sons of Israel, 'I AM has sent me to you.'" (NASB)
2) HISTORY Joshua, Judges, Ruth, 1 Samuel, 2 Samuel,1 Kings, 2 Kings, 1 Chronicles, 2 Chronicles, Ezra, Nehemiah, Esther Nehemiah 1:7 We have acted very corruptly against You and have not kept the commandments, nor the statutes, nor the ordinances which You commanded Your servant Moses.(NASB)
3) WISDOM (Psalms) Job, Psalms, Proverbs, Ecclesiates, Song of Solomon Proverbs 3:13 How blessed is the man who finds wisdom And the man who gains understanding. (NASB)
4) PROPHETS Isaiah, Jeremiah, Lamentations, Ezekiel, Daniel, Hosea, Joel, Amos, Obadiah, Jonah, Micah, Nahum, Habakkuk, Zephaniah, Haggai, Zechariah, Malachi Daniel 10:14 Now I have come to give you an understanding of what will happen to your people in the latter days, for the vision pertains to the days yet future." (NASB)
5) GOSPELS Matthew, Mark, Luke, John, Acts John 8:58 Jesus said to them, "Truly, truly, I say to you, before Abraham was born, I am." (NASB)
6) PAUL Romans, First Corinthians, Second Corinthians, Galatians, Ephesians, Philippians, Colossians, First Thessalonians, Second Thessalonians, First Timothy, Second Timothy, Titus, Philemon 1 Timothy 2:7 For this I was appointed a preacher and an apostle (I am telling the truth, I am not lying) as a teacher of the Gentiles in faith and truth. (NASB)
7) LETTERS Hebrews, James, First Peter, Second Peter, First John, Second John, Third John, Jude Hebrews 1:1-2 God, after He spoke long ago to the fathers in the prophets in many portions and in many ways, 2 in these last days has spoken to us in His Son, whom He appointed heir of all things, through whom also He made the world. (NASB)
8) REVELATION Revelation Revelation 19:10b For the testimony of Jesus is the spirit of prophecy." (NASB)
---> Promises and Prophets

---> ebooks by john on Linux, Windows and Jeeps - support this website, consider one of these books

---> NAVIGATION
Simply Linux: Basics  Full Size Jeep Buyer's Guide Using BASH on Windows 10
Practical Suggestions for Microsoft Windows
Linux Tackles Microsoft
12 hour Video Course by john:
The Art of Linux System Administration
published by O'Reilly Media
Study Guide for the LPIC-2 Certification Exams
search for:
on the internet, or:
JohnMeister.com-fotos
LinuxMeister-Linux
BibleTech- Bible overview

an overview of mankind's history combined with Biblical history: "Promises and Prophets"

Wagoneers

FULL SIZE JEEPS

JeepMeister
"Jeep is America's
only real sports car."
-Enzo Ferrari


MeisterTech
Diesels +

One Page Overview of Linux Commands

click for an image of the 5 essential Linux commands

An Intro to Linux
AMSOIL product guide,
or, AMSOIL web, or 1-800-956-5695,
use customer #283461

Amsoil dealer since 1983
purchase AMSOIL in WA at:
- Midway Auto - SR9 Clearview/Snohomish
- Northland Diesel - Bellingham
- Grumpy's Gun Repair - Granite Falls

copyright john meister 2017
fotomeister - john meister © 2017 - this picture is one of my favorites; picture and memory...
it was taken after a storm in the Swiss mountains... in 1976.

(Canon FTb, 50mm f1.8, 400 ASA slide film)

JohnMeister.com Today's Date:



oreilly.com

lpi.org

12 hour Video Series developed and presented by john meister:

The Art of Linux System Administration

published by O'Reilly Media A Study Guide for the Linux Professional Institute LPIC-2 Certification Exams

see also ebooks by john linked above.