1

Episode 128 – Happy Fathers Day!

Posted by Tony on June 15, 2014 in Show-mp3, Show-ogg |
Play

http://smlr.us

Downloads:

MP3 format (for Freedom Haters!)
OGG format (for Freedom Lovers!)
Total Running Time: 1:43:50

Un-edited Live session – http://youtu.be/ZROqdRCPc_c

Do you like our New intro?

View Results

Loading ... Loading ...

Contact Us:

show (at) smlr.us or the Contact us page

Summary

Kernel News: Mat
Time: 12:10
Distro Talk: Tony
Time: 16:50
Tech News:
Time: 49:10
Toolbox
Time: 58:20
Security Bit
Time: 1:11:15
Is it Alive? – Mary
Time: 1:11:30
Listener Feedback
Time: 1:15:00
Outtro Music
Time: 1:34:28


Intro:

Tony Bemus, Mat Enders, and Mary Tomich
Sound bites by Mike Tanner

Kernel News: Mat

Time: 12:10

mainline: 3.15 2014-06-08
longterm: 3.12.22 2014-06-11
longterm: 3.10.43 2014-06-11
longterm: 3.4.93 2014-06-11
longterm: 3.2.60 2014-06-09
longterm: 2.6.32.62 2014-05-19
linux-next: next-20140613 2014-06-13


Distro Talk: Tony

Time: 16:50

Distrowatch.com

  • 5-31 – Linux Mint 17
  • 6-1 – Salix 14.1 “MATE”
  • 6-1 – Linux Lite 2.0
  • 6-3 – Tango Studio 2.2
  • 6-3 – SparkyLinux 3.4 “LXDE”, “E18″, “Razor-qt”
  • 6-4 – Alpine Linux 3.0.0
  • 6-4 – DragonFly BSD 3.8.0
  • 6-6 – Robolinux 7.5.3
  • 6-8 – Superb Mini Server 2.0.7
  • 6-8 – LinuxBBQ Cream
  • 6-9 – Wifislax 4.9
  • 6-1 -
  • 6-1 -
  • 6-1 -
  • 6-1 -
  • 6-1 -
  • 6-1 -

Distro of the Week: Tony

  1. Bodhi – 1277
  2. Ubuntu – 1443
  3. LinuxBBQ – 1451
  4. Debian – 1473
  5. Mint – 2716

Tech News:

Time: 49:10

HP’s New OS

http://www.extremetech.com/extreme/184165-hp-bets-it-all-on-the-machine-a-new-computer-architecture-based-on-memristors-and-silicon-photonics

Dell’s reaction to HP’s new OS Statement

http://www.theregister.co.uk/2014/06/12/dell_hp_machine_os/

Tesla goes “open source”; releases patents

http://www.forbes.com/sites/briansolomon/2014/06/12/tesla-goes-open-source-elon-musk-releases-patents-to-good-faith-use/


The Toolbox

Time: 58:20

Custom bashrc

Todays tool tip is not really just a tool it is a way of life. Adding your own custom commands to your .bashrc, to make you make you more productive.

Now you may wonder why your .bashrc and one of the other login startup files. When your login starts bash it reads the startup files in this order /etc/profile, ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order. After the global one it only uses the first one it finds that exists and is readable. However when bash is started but it is not a login shell, i.e. when starting a terminal from a graphical environment then the .bashrc is read. So to avoid confusion I just put everything in my bashrc then add this to my .bash_profile:

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

I work for a web host in the monitoring department. I have to respond to quite a few high load alerts, which require me to analyze their traffic. I need to figure if it is legitimate, a ddos, a brute force on their backend, comment spam, or whatever. I have developed a number of scripts to help with this analysis. For a while I kept these in a text file and just pasted them in when I needed to run them. However when there got to be more than just a handful of theses it became to slow and awkward. What to do, the answer put them into your .bashrc as functions.

Distributing your .bashrc can be troublesome. If you only have a dozen or so machines you administer coping it around is workable. If you have any more than that you better have some sort of centralized configuration management, we use puppet. I just had to give my .bashrc to our puppet master and ask him to distribute it.

Now lets talk about different ways you can add your customizations. You can either make changes directly to your .bashrc or make a separate file or files, which you then source in your .bashrc. I prefer to add it directly to the .bashrc between two comments saying this is my stuff. There are two different ways to add a custom command, with an alias or a function.

An alias is written like this:

alias name=’ command with options’

And is only really good for simple command aliases like:

alias lda=’cat /proc/loadavg’

This will give you a very low resource intensive way of getting your current load average.

A function is written like this:

function_name ()
{
script to be run
}

This is great for both singal line simple things and multi line complex stuff like this:

mbfc ()
{
printf “\n\n”
read -ep “Hits Over: ” HO
printf “Time Frame Can Use A RegEx Like These:\n”
printf “2014:05:.. or 2014:0[4-5]:.. or 2014:0(4:[345][0-9]|5:(0[0-9]|10))\n”
read -ep “Time Frame: ” TF
printf “\n\nMagento Brute Force Possible Attackers Requires Investigation\n”
printf “Show Hits Over: $HO Time Frame For Hits: $TF\n”
printf “%-75s %-17s %-s\n” “Transfer Log” “IP Address” “Hits”
for x in $(grep frontName /home/*/*/html/app/etc/local.xml |
awk -F “[" '{print $3}' |
awk -F "]” ‘{print $1}’ |
uniq)
do
zgrep $x /home/*/var/*/logs/transfer.log |
grep $TF |
awk ‘{print $1}’ |
sort |
uniq -c |
awk -F “:” ‘{print $1, $2}’ |
sort -k1,1nr |
awk “\$1>$HO” |
awk ‘{printf “%-75s %-17s %-s\n”, $2, $3, $1}’
done
printf “\n\n”
}


The Security Bit

Time: 1:11:15
Youtube video of me giving my GPG talk at the June 10, 2014 MUG Meeting:
http://youtu.be/OoGfkSLOKkE


Is it Alive?

Time: 1:11:30


Listener Feedback:

show (at) smlr.us or 313-626-9140
Time: 1:15:00

save VI document as root after editing :w !sudo tee %


Outtro Music

Time: 1:34:28

Be Love by Kris Roche

This content is published under the Attribution-Noncommercial-Share Alike 3.0 Unported license.

1 Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Copyright © 2011-2014 Sunday Morning Linux Review All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.2.4.1, from BuyNowShop.com.