SlideShare una empresa de Scribd logo
1 de 21
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

Más contenido relacionado

La actualidad más candente

La actualidad más candente (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 a Practical Introduction To Linux

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 Hacks
Niel Bornstein
 
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
 

Similar a 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
 
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...
 

Último

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Último (20)

Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 

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

Notas del editor

  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.