SlideShare a Scribd company logo
Practical Introduction to Linux
Zeeshan Rizvi
@zeerizvi
Standard Disclaimers …
All images are sourced from creative commons
Penguin / Tux are owned by respective copyright owners ..
This information is not intended to be comprehensive at all . Instead ‘practical’
What we want to cover …
# What is Linux ?
- Significance, Distributions ..
# Core concepts
- Applications, File Structures …
# Hands On
POP QUIZ !!
Why are you here ?
By the end of this session though
..
Linux
Operating System is the software that runs all your applications and manages
hardware resources.
Linux is an Open Source server/desktop operating system similar to Unix, Mac
OS and Windows.
Why is Linux so important ?
KVM, HyperV, ESX
HW Virtualization OS Virtualization
Linux
Orchestration / Automation :
CMP’s / Openstack
Containers, Docker
Orchestration / Automation :
Mesos , Kubernetes
Web
Apps
LAMP
eCommerce
CRM
Big Data
Analytics
IoT
Mobile
Data
Visualization
NFV
Linux Powers the cloud
http://www.linuxfoundation.org/publications/linux-foundation/linux-end-user-trends-
report-2014 ( Most Recent One)
Linux : Major Distributions
Red Hat
RH Enterprise Linux : Red Hat’s official enterprise commercial distribution.
Opensource but charges for support.
Ubuntu
Popular open source Linux distribution based off Debian project
Commercially supported by Canonical
SuSe:
Another (mostly popular in Europe) open source Linux distribution based off
Debian project . Commercial support available.
Linux: Distribution Landscape
(major ones)
Way more in a nice tree format at :
https://en.wikipedia.org/wiki/List_of_Linux_distributions
By way of usage:
http://distrowatch.com
How you use Linux ?
Multiple ways but here are more plausible ones : [disclaimers :]
Method Advantage
Wipe clean an old machine and install a Linux distro on entire
system
Best performance , dedicated hardware and disk space
Dual boot windows and Linux Best performance , less storage
Install a VM manager like VMware Player/Workstation or
Virtual Box and run a VM.
Ok performance for simulation not for heavy duty stuff. Limited
storage space
Hands On Time
Steps ..
Download Virtual Box
http://download.virtualbox.org/virtualbox/5.0.16/VirtualBox-5.0.16-105871-Win.exe
Download Centos 7 minimal 64 bit
http://buildlogs.centos.org/rolling/7/isos/x86_64/CentOS-7-x86_64-Minimal.iso
Download PuTTY/SSH
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Create a VM within VirtualBox with 1 vcpu , 1 GB RAM , 1GB HDD and make sure
in the network tab NIC is ‘bridged adapter’ instead of NAT.
Mount Centos ISO and install VM , Step through installation , use ‘root/redsand123’ and
‘bigd/redsands123’ as username/password for root and a regular user
Launch putty and using the IP address login to VM using root user/password settings ,
check IP address by issuing ‘ip a’ command . Launch Putty from your desktop and ssh
into VM using the IP from your desktop. Login via Putty using your regular username.
POP QUIZ !!
Do you know what’s
oing on here ?
If you are still awake though ..
Local VM Access Vs. AWS access
Your machine/laptop
Centos
VM
Putty
SSH
Your machine/laptop
Putty
AWS
Centos
VM
SSH
Files System Hierarchy
~C: Drive
~Home
directories for
non root
~Program
files
~DLL’s
Basics of ‘using’ linux
shells: Sh, Bash ( /bin/bash)
Help: man ( man <command_name> , e.g. man ls will display
manual or help for command ‘ls’
Environment variables : set e.g. executing set will display all path
variables
Reading info: echo e.g. echo $SHELL will display just one
environment variable called SHELL .
Navigating your way around
cd : Change directory , default change to user’s default directory
cd /tmp for changing to /tmp directory
ls : list current directory contents
ls –halt for human readable and time sorted output
pwd: present working directory
who: Who’s logged in / w: all the user’s logged in and via which terminal . Good to check who’s
mucking around on your VM’s ;-)
whoami: check current user’s id
clear: Clear the current terminal screen contents
history: show command line history
mount : Mount a directory that can be an iso file or virtual image .
e.g.mount /tmp/centos-7-min.iso /media [i.e. mount <source> <dest> ]
df : Report file system usage . E.g. df –ah [ [display file system info in human readable format ]
Practice Session
Run amok the Cheat Sheet
And if you got too much time then
Quick Ref doc ..
Words About Editors
Practical ….
Nano, SublimeText , Vi /Vim ..All about personal preference and comfort level . Remember
freedom to choose
Preparing for Hadoop/Cloudera Class Installs
Follow the steps in the installation doc by copying pasting commands one by one …
Alternatively , create a base line development environment by copying following code from
my github .. Consider this to be your SOE
https://github.com/rizviz/devbaseline
How : From your VM’s command line
1. curl https://raw.githubusercontent.com/rizviz/devbaseline/master/baseline_sys.sh >
baseline_sys.sh
2. chmod a+x baseline_sys.sh
3. ./baseline_sys.sh
Take Aways …Next Steps
1. Explore DevOps
2. Make code versioning a habit ; explore cvs , github etc
3. Practice makes it perfect
4. Linux is a means to an end …
Questions & Comments

More Related Content

What's hot

PCI Pass-through - FreeBSD VM on Hyper-V (MeetBSD California 2016)
PCI Pass-through - FreeBSD VM on Hyper-V (MeetBSD California 2016)PCI Pass-through - FreeBSD VM on Hyper-V (MeetBSD California 2016)
PCI Pass-through - FreeBSD VM on Hyper-V (MeetBSD California 2016)
iXsystems
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
Kevin Littlejohn
 
Proxmox for DevOps
Proxmox for DevOpsProxmox for DevOps
Proxmox for DevOps
Jorge Moratilla Porras
 
SELF 2014: PBI v10: Application Management Made Easy
SELF 2014: PBI v10: Application Management Made EasySELF 2014: PBI v10: Application Management Made Easy
SELF 2014: PBI v10: Application Management Made Easy
Ken Moore
 
Proxmox ve-datasheet
Proxmox ve-datasheetProxmox ve-datasheet
Proxmox ve-datasheet
Miguel Angel
 
Docker security 101 (CfgMgmtCamp 2019)
Docker security 101 (CfgMgmtCamp 2019)Docker security 101 (CfgMgmtCamp 2019)
Docker security 101 (CfgMgmtCamp 2019)
Frank Louwers
 
BSDCan2013
BSDCan2013BSDCan2013
BSDCan2013
krispcbsd
 
Open ZFS Keynote (public)
Open ZFS Keynote (public)Open ZFS Keynote (public)
Open ZFS Keynote (public)
Dustin Kirkland
 
vbsd2013
vbsd2013vbsd2013
vbsd2013
krispcbsd
 
Docker from scratch
Docker from scratchDocker from scratch
Docker from scratch
Michał Wójtowicz
 
Archlinux dev environment
Archlinux dev environmentArchlinux dev environment
Archlinux dev environment
Luke Luo
 
Installing OpenSim (Diva Distro) to Create Your Own Private Sim Sandbox
Installing OpenSim (Diva Distro) to Create Your Own Private Sim SandboxInstalling OpenSim (Diva Distro) to Create Your Own Private Sim Sandbox
Installing OpenSim (Diva Distro) to Create Your Own Private Sim Sandbox
Fleep Tuque
 
Virtual Box Presentation
Virtual Box Presentation Virtual Box Presentation
Virtual Box Presentation
Pete DuMelle
 
Docker techzone
Docker techzoneDocker techzone
Docker techzone
Bjørn Nordlund
 
BSD for Linux Users
BSD for Linux UsersBSD for Linux Users
BSD for Linux Users
Dru Lavigne
 
LXC, Docker, security: is it safe to run applications in Linux Containers?
LXC, Docker, security: is it safe to run applications in Linux Containers?LXC, Docker, security: is it safe to run applications in Linux Containers?
LXC, Docker, security: is it safe to run applications in Linux Containers?
Jérôme Petazzoni
 
SELF 2010: BSD For Linux Users
SELF 2010: BSD For Linux UsersSELF 2010: BSD For Linux Users
SELF 2010: BSD For Linux Users
Dru Lavigne
 
eurobsd2013
eurobsd2013eurobsd2013
eurobsd2013
krispcbsd
 

What's hot (20)

PCI Pass-through - FreeBSD VM on Hyper-V (MeetBSD California 2016)
PCI Pass-through - FreeBSD VM on Hyper-V (MeetBSD California 2016)PCI Pass-through - FreeBSD VM on Hyper-V (MeetBSD California 2016)
PCI Pass-through - FreeBSD VM on Hyper-V (MeetBSD California 2016)
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
 
Scale2013
Scale2013Scale2013
Scale2013
 
Proxmox for DevOps
Proxmox for DevOpsProxmox for DevOps
Proxmox for DevOps
 
SELF 2014: PBI v10: Application Management Made Easy
SELF 2014: PBI v10: Application Management Made EasySELF 2014: PBI v10: Application Management Made Easy
SELF 2014: PBI v10: Application Management Made Easy
 
Proxmox ve-datasheet
Proxmox ve-datasheetProxmox ve-datasheet
Proxmox ve-datasheet
 
Docker security 101 (CfgMgmtCamp 2019)
Docker security 101 (CfgMgmtCamp 2019)Docker security 101 (CfgMgmtCamp 2019)
Docker security 101 (CfgMgmtCamp 2019)
 
Sweden11
Sweden11Sweden11
Sweden11
 
BSDCan2013
BSDCan2013BSDCan2013
BSDCan2013
 
Open ZFS Keynote (public)
Open ZFS Keynote (public)Open ZFS Keynote (public)
Open ZFS Keynote (public)
 
vbsd2013
vbsd2013vbsd2013
vbsd2013
 
Docker from scratch
Docker from scratchDocker from scratch
Docker from scratch
 
Archlinux dev environment
Archlinux dev environmentArchlinux dev environment
Archlinux dev environment
 
Installing OpenSim (Diva Distro) to Create Your Own Private Sim Sandbox
Installing OpenSim (Diva Distro) to Create Your Own Private Sim SandboxInstalling OpenSim (Diva Distro) to Create Your Own Private Sim Sandbox
Installing OpenSim (Diva Distro) to Create Your Own Private Sim Sandbox
 
Virtual Box Presentation
Virtual Box Presentation Virtual Box Presentation
Virtual Box Presentation
 
Docker techzone
Docker techzoneDocker techzone
Docker techzone
 
BSD for Linux Users
BSD for Linux UsersBSD for Linux Users
BSD for Linux Users
 
LXC, Docker, security: is it safe to run applications in Linux Containers?
LXC, Docker, security: is it safe to run applications in Linux Containers?LXC, Docker, security: is it safe to run applications in Linux Containers?
LXC, Docker, security: is it safe to run applications in Linux Containers?
 
SELF 2010: BSD For Linux Users
SELF 2010: BSD For Linux UsersSELF 2010: BSD For Linux Users
SELF 2010: BSD For Linux Users
 
eurobsd2013
eurobsd2013eurobsd2013
eurobsd2013
 

Similar to Practical Introduction To Linux

Why everyone is excited about Docker (and you should too...) - Carlo Bonamic...
Why everyone is excited about Docker (and you should too...) -  Carlo Bonamic...Why everyone is excited about Docker (and you should too...) -  Carlo Bonamic...
Why everyone is excited about Docker (and you should too...) - Carlo Bonamic...
Codemotion
 
codemotion-docker-2014
codemotion-docker-2014codemotion-docker-2014
codemotion-docker-2014
Carlo Bonamico
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-adminbadamisri
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-admin
badamisri
 
Open Source Virtualization Hacks
Open Source Virtualization HacksOpen Source Virtualization Hacks
Open Source Virtualization HacksNiel Bornstein
 
Docker - Demo on PHP Application deployment
Docker - Demo on PHP Application deployment Docker - Demo on PHP Application deployment
Docker - Demo on PHP Application deployment
Arun prasath
 
CEHv10 M0 Introduction.pptx
CEHv10 M0 Introduction.pptxCEHv10 M0 Introduction.pptx
CEHv10 M0 Introduction.pptx
YasserOuda2
 
Lessons Learned Building a Container App Library
Lessons Learned Building a Container App LibraryLessons Learned Building a Container App Library
Lessons Learned Building a Container App Library
Adnan Abdulhussein
 
Agile Brown Bag - Vagrant & Docker: Introduction
Agile Brown Bag - Vagrant & Docker: IntroductionAgile Brown Bag - Vagrant & Docker: Introduction
Agile Brown Bag - Vagrant & Docker: Introduction
Agile Partner S.A.
 
Scaleable PHP Applications in Kubernetes
Scaleable PHP Applications in KubernetesScaleable PHP Applications in Kubernetes
Scaleable PHP Applications in Kubernetes
Robert Lemke
 
Open stack implementation
Open stack implementation Open stack implementation
Open stack implementation
Soumyajit Basu
 
Containerization is more than the new Virtualization: enabling separation of ...
Containerization is more than the new Virtualization: enabling separation of ...Containerization is more than the new Virtualization: enabling separation of ...
Containerization is more than the new Virtualization: enabling separation of ...
Jérôme Petazzoni
 
Docker-v3.pdf
Docker-v3.pdfDocker-v3.pdf
Docker-v3.pdf
Bruno Cornec
 
OSSNA18: Xen Beginners Training
OSSNA18: Xen Beginners Training OSSNA18: Xen Beginners Training
OSSNA18: Xen Beginners Training
The Linux Foundation
 
Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)
Ata Rehman
 
Making Clouds: Turning OpenNebula into a Product
Making Clouds: Turning OpenNebula into a ProductMaking Clouds: Turning OpenNebula into a Product
Making Clouds: Turning OpenNebula into a Product
NETWAYS
 
OpenNebulaConf 2013 - Making Clouds: Turning OpenNebula into a Product by Car...
OpenNebulaConf 2013 - Making Clouds: Turning OpenNebula into a Product by Car...OpenNebulaConf 2013 - Making Clouds: Turning OpenNebula into a Product by Car...
OpenNebulaConf 2013 - Making Clouds: Turning OpenNebula into a Product by Car...
OpenNebula Project
 
Making clouds: turning opennebula into a product
Making clouds: turning opennebula into a productMaking clouds: turning opennebula into a product
Making clouds: turning opennebula into a product
Carlo Daffara
 

Similar to Practical Introduction To Linux (20)

Why everyone is excited about Docker (and you should too...) - Carlo Bonamic...
Why everyone is excited about Docker (and you should too...) -  Carlo Bonamic...Why everyone is excited about Docker (and you should too...) -  Carlo Bonamic...
Why everyone is excited about Docker (and you should too...) - Carlo Bonamic...
 
Linux
Linux Linux
Linux
 
codemotion-docker-2014
codemotion-docker-2014codemotion-docker-2014
codemotion-docker-2014
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-admin
 
Linux Conf Admin
Linux Conf AdminLinux Conf Admin
Linux Conf Admin
 
Linux conf-admin
Linux conf-adminLinux conf-admin
Linux conf-admin
 
Open Source Virtualization Hacks
Open Source Virtualization HacksOpen Source Virtualization Hacks
Open Source Virtualization Hacks
 
Docker - Demo on PHP Application deployment
Docker - Demo on PHP Application deployment Docker - Demo on PHP Application deployment
Docker - Demo on PHP Application deployment
 
CEHv10 M0 Introduction.pptx
CEHv10 M0 Introduction.pptxCEHv10 M0 Introduction.pptx
CEHv10 M0 Introduction.pptx
 
Lessons Learned Building a Container App Library
Lessons Learned Building a Container App LibraryLessons Learned Building a Container App Library
Lessons Learned Building a Container App Library
 
Agile Brown Bag - Vagrant & Docker: Introduction
Agile Brown Bag - Vagrant & Docker: IntroductionAgile Brown Bag - Vagrant & Docker: Introduction
Agile Brown Bag - Vagrant & Docker: Introduction
 
Scaleable PHP Applications in Kubernetes
Scaleable PHP Applications in KubernetesScaleable PHP Applications in Kubernetes
Scaleable PHP Applications in Kubernetes
 
Open stack implementation
Open stack implementation Open stack implementation
Open stack implementation
 
Containerization is more than the new Virtualization: enabling separation of ...
Containerization is more than the new Virtualization: enabling separation of ...Containerization is more than the new Virtualization: enabling separation of ...
Containerization is more than the new Virtualization: enabling separation of ...
 
Docker-v3.pdf
Docker-v3.pdfDocker-v3.pdf
Docker-v3.pdf
 
OSSNA18: Xen Beginners Training
OSSNA18: Xen Beginners Training OSSNA18: Xen Beginners Training
OSSNA18: Xen Beginners Training
 
Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)
 
Making Clouds: Turning OpenNebula into a Product
Making Clouds: Turning OpenNebula into a ProductMaking Clouds: Turning OpenNebula into a Product
Making Clouds: Turning OpenNebula into a Product
 
OpenNebulaConf 2013 - Making Clouds: Turning OpenNebula into a Product by Car...
OpenNebulaConf 2013 - Making Clouds: Turning OpenNebula into a Product by Car...OpenNebulaConf 2013 - Making Clouds: Turning OpenNebula into a Product by Car...
OpenNebulaConf 2013 - Making Clouds: Turning OpenNebula into a Product by Car...
 
Making clouds: turning opennebula into a product
Making clouds: turning opennebula into a productMaking clouds: turning opennebula into a product
Making clouds: turning opennebula into a product
 

Recently uploaded

Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
Fwdays
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
CatarinaPereira64715
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 

Recently uploaded (20)

Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 

Practical Introduction To Linux

  • 1. Practical Introduction to Linux Zeeshan Rizvi @zeerizvi
  • 2. Standard Disclaimers … All images are sourced from creative commons Penguin / Tux are owned by respective copyright owners .. This information is not intended to be comprehensive at all . Instead ‘practical’
  • 3. What we want to cover … # What is Linux ? - Significance, Distributions .. # Core concepts - Applications, File Structures … # Hands On
  • 4. POP QUIZ !! Why are you here ? By the end of this session though ..
  • 5. Linux Operating System is the software that runs all your applications and manages hardware resources. Linux is an Open Source server/desktop operating system similar to Unix, Mac OS and Windows. Why is Linux so important ?
  • 6. KVM, HyperV, ESX HW Virtualization OS Virtualization Linux Orchestration / Automation : CMP’s / Openstack Containers, Docker Orchestration / Automation : Mesos , Kubernetes Web Apps LAMP eCommerce CRM Big Data Analytics IoT Mobile Data Visualization NFV
  • 7. Linux Powers the cloud http://www.linuxfoundation.org/publications/linux-foundation/linux-end-user-trends- report-2014 ( Most Recent One)
  • 8. Linux : Major Distributions Red Hat RH Enterprise Linux : Red Hat’s official enterprise commercial distribution. Opensource but charges for support. Ubuntu Popular open source Linux distribution based off Debian project Commercially supported by Canonical SuSe: Another (mostly popular in Europe) open source Linux distribution based off Debian project . Commercial support available.
  • 9. Linux: Distribution Landscape (major ones) Way more in a nice tree format at : https://en.wikipedia.org/wiki/List_of_Linux_distributions By way of usage: http://distrowatch.com
  • 10. How you use Linux ? Multiple ways but here are more plausible ones : [disclaimers :] Method Advantage Wipe clean an old machine and install a Linux distro on entire system Best performance , dedicated hardware and disk space Dual boot windows and Linux Best performance , less storage Install a VM manager like VMware Player/Workstation or Virtual Box and run a VM. Ok performance for simulation not for heavy duty stuff. Limited storage space
  • 12. Steps .. Download Virtual Box http://download.virtualbox.org/virtualbox/5.0.16/VirtualBox-5.0.16-105871-Win.exe Download Centos 7 minimal 64 bit http://buildlogs.centos.org/rolling/7/isos/x86_64/CentOS-7-x86_64-Minimal.iso Download PuTTY/SSH http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Create a VM within VirtualBox with 1 vcpu , 1 GB RAM , 1GB HDD and make sure in the network tab NIC is ‘bridged adapter’ instead of NAT. Mount Centos ISO and install VM , Step through installation , use ‘root/redsand123’ and ‘bigd/redsands123’ as username/password for root and a regular user Launch putty and using the IP address login to VM using root user/password settings , check IP address by issuing ‘ip a’ command . Launch Putty from your desktop and ssh into VM using the IP from your desktop. Login via Putty using your regular username.
  • 13. POP QUIZ !! Do you know what’s oing on here ? If you are still awake though ..
  • 14. Local VM Access Vs. AWS access Your machine/laptop Centos VM Putty SSH Your machine/laptop Putty AWS Centos VM SSH
  • 15. Files System Hierarchy ~C: Drive ~Home directories for non root ~Program files ~DLL’s
  • 16. Basics of ‘using’ linux shells: Sh, Bash ( /bin/bash) Help: man ( man <command_name> , e.g. man ls will display manual or help for command ‘ls’ Environment variables : set e.g. executing set will display all path variables Reading info: echo e.g. echo $SHELL will display just one environment variable called SHELL .
  • 17. Navigating your way around cd : Change directory , default change to user’s default directory cd /tmp for changing to /tmp directory ls : list current directory contents ls –halt for human readable and time sorted output pwd: present working directory who: Who’s logged in / w: all the user’s logged in and via which terminal . Good to check who’s mucking around on your VM’s ;-) whoami: check current user’s id clear: Clear the current terminal screen contents history: show command line history mount : Mount a directory that can be an iso file or virtual image . e.g.mount /tmp/centos-7-min.iso /media [i.e. mount <source> <dest> ] df : Report file system usage . E.g. df –ah [ [display file system info in human readable format ]
  • 18. Practice Session Run amok the Cheat Sheet And if you got too much time then Quick Ref doc ..
  • 19. Words About Editors Practical …. Nano, SublimeText , Vi /Vim ..All about personal preference and comfort level . Remember freedom to choose
  • 20. Preparing for Hadoop/Cloudera Class Installs Follow the steps in the installation doc by copying pasting commands one by one … Alternatively , create a base line development environment by copying following code from my github .. Consider this to be your SOE https://github.com/rizviz/devbaseline How : From your VM’s command line 1. curl https://raw.githubusercontent.com/rizviz/devbaseline/master/baseline_sys.sh > baseline_sys.sh 2. chmod a+x baseline_sys.sh 3. ./baseline_sys.sh
  • 21. Take Aways …Next Steps 1. Explore DevOps 2. Make code versioning a habit ; explore cvs , github etc 3. Practice makes it perfect 4. Linux is a means to an end … Questions & Comments

Editor's Notes

  1. What’s the difference between a chef’s knife , an all purpose knife and a swiss army knife . Each have their own utility but linux gives you more choices and thus more freedom to do whatever you want
  2. CentOS Community Enterprise OS, goal is to be compatible with its upstream source, Red Hat Enterprise Linux (RHEL) In 2014, Red Hat announced sponsorship Fedora developed by the community project, Fedora-Project, owned by Red Hat
  3. CentOS Community Enterprise OS, goal is to be compatible with its upstream source, Red Hat Enterprise Linux (RHEL) In 2014, Red Hat announced sponsorship Fedora developed by the community project, Fedora-Project, owned by Red Hat Red Hat RH Enterprise Linux : Red Hat’s official enterprise commercial distribution. Opensource but charges for support. Ubuntu Popular open source Linux distribution based off Debian project Commercially supported by Canonical SuSe: Another (mostly popular in Europe) open source Linux distribution based off Debian project . Commercial support available.
  4. Bridged adapter wll require VM to get an IP from the actual DNS .. Students can then ping each other’s VM’s and be able to log in for group exercises.