SlideShare a Scribd company logo
1 of 37
Download to read offline
Linux
Key Notes

๎€Š   Introduction to Open Source.
๎€Š   What is Linux.
๎€Š   Linux Distros.
๎€Š   Which is Suitable for Me.
๎€Š   Linux Installation Process.
๎€Š   How to Use Linux.
๎€Š   Installing Useful Software.
๎€Š   Linux Shells (Advanced).
Open Source

๎€Š   Is a development methodology.
๎€Š   Means that people can share their programs
    source code with every one for free.
๎€Š   This type of software is available under terms of
    licenses such as GPL, LGPL, AGPL, ISC, MIT.
๎€Š   Each license puts some rules for the method of
    using their code.
๎€Š   Most famous one is the GPL license used with
    Linux.
Open Source & Linux

๎€Š   Unix was the Major used OS in most
    universities.
๎€Š   Unix started asking students to pay money for
    the usage and development of the system.
๎€Š   A professor developed Minix in order to replace
    Unix, which was used by Linus Torvalds.
๎€Š   Linus started to develop the Linux Kernel.
๎€Š   In the same time Ritchard Stallman started to
    develop GNU and constructed Free Software
    Foundation.
What is Linux?

๎€Š   Linux is a free open source operating system
    kernel built by a student to replace UNIX.
๎€Š   Linux is the system kernel where GNU is the
    tools that system use to operate.
๎€Š   It was developed in early 1990s but still
    developed until now.
๎€Š   Is the first choice for enterprise world and
    geeks.
๎€Š   Linux can run on many platforms(i386, x86/64,
    PPC, Amiga, SPARC, PS3, Super computers).
GNU/Linux Architecture

๎€Š   Linux has a monolithic kernel.
๎€Š   GNU/Linux uses the structure of layered model.


         Process                                             File
                      Networking Kernel Peripherals
         control                                            System



               Unix Shells                     Unix Tools


                     X Server (X window system)
Linux Window Managers.

๎€Š   Window managers is a graphical software used
    to ease the use of the system.
๎€Š   Linux has many window managers (KDE,
    Gnome, xpde, xfce, fluxbox, twm, NextStep,....).
Screen shots for WMs

๎€Š
Linux Distros.

๎€Š   As Linux is open source so any one can
    develop his own version.
๎€Š   Linux distros varies in DWM, Applications
    provided with each.
๎€Š   Market imposed on us some distros as
    standard (Redhat, Debian, Slackware).
๎€Š   Most of current distros are based on
    Debian(Ubuntu) or Redhat (Fedora).
Fedora Desktop
Ubuntu Desktop
Which is Suitable for Me?

๎€Š   Redhat is good for enterprise work.
๎€Š   Debian is good for professional end-users.
๎€Š   Fedora is good for personal use and developing
๎€Š   Opensuse is good for training usage
๎€Š   Mandriva is very good for non technical user.
๎€Š   Slackware is intended for Advanced
    professional users.
๎€Š   Ubuntu is suitable for ALL !!!
Why Ubuntu?

๎€Š   Ubuntu is a free Linux distros
๎€Š   Ubuntu is based on Debian which is reliable
    and stable.
๎€Š   Ubuntu is the distribution with the biggest
    software repositories.
๎€Š   Ubuntu has a good hardware support for most
    available companies.
๎€Š   Ubuntu have a lot of variants (Kubuntu,
    Xubuntu, Edubuntu, Goubuntu, MIDI Ubuntu).
Ubuntu is Widely Used
Installing Ubuntu

๎€Š   Ubuntu comes on a live CD.
๎€Š   Live CD means that you can use the system
    from CD with out installing (boot only).
๎€Š   The system installation is as easy as installing
    a program (Only double click on icon).
๎€Š   The installation process is very fast and easy
    (faster and easier than installing windows).
๎€Š   Let's see how ???!!
First Welcome Screen
Choose your Language.
Choose your Location
Choose Keyboard Layout
Prepare Disk Space
Who are you?
Import Windowsยฎ Settings
Booting After Installition
Login Screen
Using Linux

๎€Š   Linux desktop is very easy to use like windows.
๎€Š   There are some important elements on desktop
    ๎€Š   Computer Disks: Places โ†’ Computer.
    ๎€Š   Home Directory : Places โ†’ Home Folder.
    ๎€Š   Configurations : System โ†’ Preferences.
    ๎€Š   Administration : System โ†’ Administration.
    ๎€Š   All Programs : Applications โ†’ Choose Category.
๎€Š   Note that all this menus are found under
    Gnome only KDE is different.
Using Linux (File System)

๎€Š   Linux uses EXT2, EXT3 file systems and a
    swap partition to use as virtual memory.
๎€Š   Linux can mount FAT16/32 , NTFS , HFS
    Drives where windows can't mount EXT drive.
๎€Š   Under File system there are some Directories:
    ๎€Š   /bin: contains UNIX tools and executable Shell tools
    ๎€Š   /boot: file needed to boot the system.
    ๎€Š   /etc: system configuration files.
    ๎€Š   /lib : system and applications libraries.
    ๎€Š   /media: mounted drives.
Installing Useful Software

๎€Š   Most of applications available for Linux are free
    and open source so it's easy to get.
๎€Š   Linux has repositories for programs (search &
    get).
๎€Š   Each Linux distribution has a software called
    package manager.
๎€Š   The two most famous packages formats are:
    .deb for Debian based system , .rpm for Redhat
    based systems.
How to Install Applications?

๎€Š   From Application menu go to Add/Remove.....
    ๎€Š   In the windows opened write program name or
        description in the search field.
    ๎€Š   choose your preferred programs.
    ๎€Š   Click โ€œApplyโ€ and wait for download and instillation.
    ๎€Š   Now the program is installed and ready to use.
๎€Š   To install application from shell.
    ๎€Š   sudo apt-get install packageName
    ๎€Š   Then wait for download and installation.
Windows Emulation

๎€Š   WINE is a windows emulator which is able to
    run windows software under Linux.
๎€Š   Wine can be downloaded via Add/Remove..
๎€Š   WINE can emulate windows (2.0, 3.0, 95, 98,
    NT, 2000, XP, Server 2003, Vista, Server 2008)
๎€Š   Wine Doors is a program that downloads some
    libraries for WINE to be compatible with most
    windows Apps.
๎€Š   Wine needs (MFC , VC++ runtime, VB runtime,
    IE6 libs, DX9c libs, .....).
Programming on Linux.

๎€Š   Linux has dozens of programming languages.
๎€Š   GNU Compilers Collection has compilers for:
    ๎€Š   Ada, C/C++, Fortran and Java.
๎€Š   The Linux kernel is compiled using GCC.
๎€Š   Perl, Python are installed on most distros.
๎€Š   Sun's JDK, JVM can be installed on Linux.
๎€Š   A lot of IDEs are available for Linux(Eclipse,
    Netbeans, Mono, KDevelop, Omnis Studio)
Installing Java & Netbeans

๎€Š   To install Sun Java write this commands:
    ๎€Š   sudo apt-get install sun-java6-jre
    ๎€Š   sudo apt-get install sun-java6-bin
    ๎€Š   sudo apt-get install sun-java6-jdk
    ๎€Š   sudo apt-get install sun-java6-plugin
๎€Š   To install Netbeans download the Linux file
    then:
    ๎€Š   Double click the Icon and continue the setup.
    ๎€Š   ./netbeans6.x --javahome:JavaDirectoryPath
Installing MySQL & Oracle

๎€Š   MySQL server must be installed using package
    manager:
    ๎€Š   sudo apt-get install mysql-server-5.0
    ๎€Š   Query browser and other tools can be downloaded via
        Add/Remove from Applications menu.
๎€Š   Download the Oracle deb package from Oracle
    website then:
    ๎€Š   Double click on the icon.
    ๎€Š   Click on install package button and wait for setup to
        finish.
    ๎€Š   Go to /etc/init.d then write โ€œchmod +x oracle-xeโ€
    ๎€Š   Then start script as root โ€œsudo ./oracle-xeโ€
Linux Shells (UNIX shells)

๎€Š   Linux uses shells to interact with user in CLI
    mode (good for servers and administrators).
๎€Š   Shells can be accessed by GUI users via
    terminals.
๎€Š   Linux shell is similar to UNIX shell but with
    some additional commands.
๎€Š   Most popular Linux shell is Bash.
๎€Š   Bash supports scripts with a wide range of
    commands.
Linux Shell Commands

๎€Š   cp file1 file2 โ†’ copy file1 to file2
๎€Š   rm fileName โ†’ deletes the file.
๎€Š   mv file1 file2 โ†’ rename file1 or moves it to another
    location.
๎€Š   cd directoryName โ†’ change directory.
๎€Š   less fileName โ†’ view file content
๎€Š   clear โ†’ clear screen
๎€Š   man command โ†’ view command Manual.
๎€Š   find fileName โ†’ search for file.
Linux Shell Commands 2

๎€Š   ls โ†’ list files in current directory.
๎€Š   ps -u UserName โ†’ view all running process for userName.
๎€Š   kill PID โ†’ kill process with a specific ID.
๎€Š   su โ†’ change to root mode.
๎€Š   sudo โ€œcommandโ€ โ†’ execute command in root mode.
๎€Š   chmod +x โ€œfileโ€ โ†’ change file mode to executable.
๎€Š   ./script.xyz โ†’ execute script or file.
๎€Š   ifconfig โ†’ view your network interface configurations.
๎€Š   history โ†’ view history of command you entered.
๎€Š   reboot โ†’ restart system , halt โ†’ shutdown the system
Shell Configurations

๎€Š   The shell configurations file of the Bash shell is
    found under /home/UseName/.bashrc .
๎€Š   We can use this file to define new environment
    variables to the shell by adding the following
    line at the end of the file:
    ๎€Š   PATH=$PATH:/xx/yy/zz;
    ๎€Š   export PATH
๎€Š   .bash_history โ†’ contains your command history.
๎€Š
    .bash_logout โ†’ execute command when leaving shell.
Bye Bye



      Keep Using

More Related Content

What's hot

Unix Introduction
Unix IntroductionUnix Introduction
Unix Introduction
ananthimurugesan
ย 
Introduction to Linux OS
Introduction to Linux OSIntroduction to Linux OS
Introduction to Linux OS
Mohammed Safwat
ย 
Linux seminar
Linux seminarLinux seminar
Linux seminar
Buntha Chhay
ย 
01 t1 s2_linux_lesson1
01 t1 s2_linux_lesson101 t1 s2_linux_lesson1
01 t1 s2_linux_lesson1
Niit Care
ย 
Linux programming lecture_notes
Linux programming lecture_notesLinux programming lecture_notes
Linux programming lecture_notes
IMRAN KHAN
ย 

What's hot (20)

Unix ppt
Unix pptUnix ppt
Unix ppt
ย 
Unix Introduction
Unix IntroductionUnix Introduction
Unix Introduction
ย 
Introduction to Linux for Windows Users
Introduction to Linux for Windows UsersIntroduction to Linux for Windows Users
Introduction to Linux for Windows Users
ย 
Introduction to Linux OS
Introduction to Linux OSIntroduction to Linux OS
Introduction to Linux OS
ย 
Operating systems unix
Operating systems   unixOperating systems   unix
Operating systems unix
ย 
UNIX introduction
UNIX introductionUNIX introduction
UNIX introduction
ย 
Linux
Linux Linux
Linux
ย 
Linux introduction (eng)
Linux introduction (eng)Linux introduction (eng)
Linux introduction (eng)
ย 
Linux seminar
Linux seminarLinux seminar
Linux seminar
ย 
01 t1 s2_linux_lesson1
01 t1 s2_linux_lesson101 t1 s2_linux_lesson1
01 t1 s2_linux_lesson1
ย 
UNIX Operating System
UNIX Operating SystemUNIX Operating System
UNIX Operating System
ย 
Linux basics
Linux basicsLinux basics
Linux basics
ย 
Linux programming lecture_notes
Linux programming lecture_notesLinux programming lecture_notes
Linux programming lecture_notes
ย 
Introduction to linux ppt
Introduction to linux pptIntroduction to linux ppt
Introduction to linux ppt
ย 
Ppt af linux
Ppt af linuxPpt af linux
Ppt af linux
ย 
Ubuntu
UbuntuUbuntu
Ubuntu
ย 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linux
ย 
Linux Operating System
Linux Operating SystemLinux Operating System
Linux Operating System
ย 
Introduction to Linux_by_Amit & Jiban
Introduction to Linux_by_Amit & Jiban Introduction to Linux_by_Amit & Jiban
Introduction to Linux_by_Amit & Jiban
ย 
Linux
LinuxLinux
Linux
ย 

Viewers also liked (7)

Internet Marketing 1: Website Evaluation
Internet Marketing 1: Website EvaluationInternet Marketing 1: Website Evaluation
Internet Marketing 1: Website Evaluation
ย 
Engaging Audiences through Effective Collaboration, Presentation: October 26
Engaging Audiences through Effective Collaboration, Presentation: October 26Engaging Audiences through Effective Collaboration, Presentation: October 26
Engaging Audiences through Effective Collaboration, Presentation: October 26
ย 
Are You Talking to Me: Social Media
Are You Talking to Me: Social MediaAre You Talking to Me: Social Media
Are You Talking to Me: Social Media
ย 
Kartemquin Executive Summary Draft
Kartemquin Executive Summary DraftKartemquin Executive Summary Draft
Kartemquin Executive Summary Draft
ย 
Msp
MspMsp
Msp
ย 
I Phone Session Mufix
I Phone Session MufixI Phone Session Mufix
I Phone Session Mufix
ย 
Fotos robotica
Fotos roboticaFotos robotica
Fotos robotica
ย 

Similar to Linux

Before begining linux
Before begining linuxBefore begining linux
Before begining linux
Shiwang Kalkhanda
ย 
Linux nic training_intro_14_dec_09
Linux nic training_intro_14_dec_09Linux nic training_intro_14_dec_09
Linux nic training_intro_14_dec_09
Aravindan Arun
ย 
Foss Presentation
Foss PresentationFoss Presentation
Foss Presentation
Ahmed Mekkawy
ย 
exp_1_20bca1066 Internet.docx
exp_1_20bca1066 Internet.docxexp_1_20bca1066 Internet.docx
exp_1_20bca1066 Internet.docx
ApkaAmitbro
ย 
Introduction 2 linux ml
Introduction 2 linux mlIntroduction 2 linux ml
Introduction 2 linux ml
Murtala Lawal
ย 
exp_1_20bca1108(kashish_dixit.docx
exp_1_20bca1108(kashish_dixit.docxexp_1_20bca1108(kashish_dixit.docx
exp_1_20bca1108(kashish_dixit.docx
ApkaAmitbro
ย 
What is the linux
What is the linuxWhat is the linux
What is the linux
Suneel Dogra
ย 
OS Lab: Introduction to Linux
OS Lab: Introduction to LinuxOS Lab: Introduction to Linux
OS Lab: Introduction to Linux
Motaz Saad
ย 

Similar to Linux (20)

Intro to linux
Intro to linuxIntro to linux
Intro to linux
ย 
I Am Linux-Introductory Module on Linux
I Am Linux-Introductory Module on LinuxI Am Linux-Introductory Module on Linux
I Am Linux-Introductory Module on Linux
ย 
Programming and problem solving 3
Programming and problem solving 3Programming and problem solving 3
Programming and problem solving 3
ย 
3CS LSP UNIT 1-1.pdf
3CS LSP UNIT 1-1.pdf3CS LSP UNIT 1-1.pdf
3CS LSP UNIT 1-1.pdf
ย 
Before begining linux
Before begining linuxBefore begining linux
Before begining linux
ย 
Linux nic training_intro_14_dec_09
Linux nic training_intro_14_dec_09Linux nic training_intro_14_dec_09
Linux nic training_intro_14_dec_09
ย 
Unix Administration 1
Unix Administration 1Unix Administration 1
Unix Administration 1
ย 
Foss Presentation
Foss PresentationFoss Presentation
Foss Presentation
ย 
exp_1_20bca1066 Internet.docx
exp_1_20bca1066 Internet.docxexp_1_20bca1066 Internet.docx
exp_1_20bca1066 Internet.docx
ย 
Linux basic
Linux basicLinux basic
Linux basic
ย 
windows vs Linux
windows vs Linuxwindows vs Linux
windows vs Linux
ย 
Introduction 2 linux ml
Introduction 2 linux mlIntroduction 2 linux ml
Introduction 2 linux ml
ย 
Linux forensics
Linux forensicsLinux forensics
Linux forensics
ย 
exp_1_20bca1108(kashish_dixit.docx
exp_1_20bca1108(kashish_dixit.docxexp_1_20bca1108(kashish_dixit.docx
exp_1_20bca1108(kashish_dixit.docx
ย 
Linux basics
Linux basicsLinux basics
Linux basics
ย 
What is the linux
What is the linuxWhat is the linux
What is the linux
ย 
OS Lab: Introduction to Linux
OS Lab: Introduction to LinuxOS Lab: Introduction to Linux
OS Lab: Introduction to Linux
ย 
Linux basics
Linux basicsLinux basics
Linux basics
ย 
Linux opearting system ppt
Linux opearting system pptLinux opearting system ppt
Linux opearting system ppt
ย 
Intro tounix
Intro tounixIntro tounix
Intro tounix
ย 

More from SiliconExpert Technologies

More from SiliconExpert Technologies (20)

Game Programming By J2me
Game Programming By J2meGame Programming By J2me
Game Programming By J2me
ย 
Linux Administration
Linux AdministrationLinux Administration
Linux Administration
ย 
How To Get Your First Job
How To Get Your First  JobHow To Get Your First  Job
How To Get Your First Job
ย 
Joomla Presentations
Joomla PresentationsJoomla Presentations
Joomla Presentations
ย 
Mufix Network Programming Lecture
Mufix Network Programming LectureMufix Network Programming Lecture
Mufix Network Programming Lecture
ย 
Javafx Overview 90minutes
Javafx Overview 90minutesJavafx Overview 90minutes
Javafx Overview 90minutes
ย 
Javafx Overview 90minutes
Javafx Overview 90minutesJavafx Overview 90minutes
Javafx Overview 90minutes
ย 
Javafx Overview 90minutes
Javafx Overview 90minutesJavafx Overview 90minutes
Javafx Overview 90minutes
ย 
Javanowandfuture Chihuahua
Javanowandfuture ChihuahuaJavanowandfuture Chihuahua
Javanowandfuture Chihuahua
ย 
Google Summer of Code
Google Summer of CodeGoogle Summer of Code
Google Summer of Code
ย 
Web Fundamental
Web FundamentalWeb Fundamental
Web Fundamental
ย 
Joining Osum Community And ..
Joining Osum Community And ..Joining Osum Community And ..
Joining Osum Community And ..
ย 
Develop Your Skills With Osum
Develop Your Skills With OsumDevelop Your Skills With Osum
Develop Your Skills With Osum
ย 
Sfd Post Event Report
Sfd Post Event ReportSfd Post Event Report
Sfd Post Event Report
ย 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
ย 
Windows 7
Windows 7Windows 7
Windows 7
ย 
Networks Basics
Networks BasicsNetworks Basics
Networks Basics
ย 
Introduction To Programming (2009 2010)
Introduction To Programming (2009 2010)Introduction To Programming (2009 2010)
Introduction To Programming (2009 2010)
ย 
Web Intro
Web IntroWeb Intro
Web Intro
ย 
Desktop Intro
Desktop IntroDesktop Intro
Desktop Intro
ย 

Recently uploaded

Recently uploaded (20)

Navi Mumbai Call Girls ๐Ÿฅฐ 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls ๐Ÿฅฐ 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls ๐Ÿฅฐ 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls ๐Ÿฅฐ 8617370543 Service Offer VIP Hot Model
ย 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
ย 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
ย 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
ย 
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
ย 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
ย 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
ย 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 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
ย 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
ย 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
ย 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
ย 
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
ย 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
ย 
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
ย 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
ย 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
ย 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
ย 
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
ย 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
ย 

Linux

  • 2. Key Notes ๎€Š Introduction to Open Source. ๎€Š What is Linux. ๎€Š Linux Distros. ๎€Š Which is Suitable for Me. ๎€Š Linux Installation Process. ๎€Š How to Use Linux. ๎€Š Installing Useful Software. ๎€Š Linux Shells (Advanced).
  • 3. Open Source ๎€Š Is a development methodology. ๎€Š Means that people can share their programs source code with every one for free. ๎€Š This type of software is available under terms of licenses such as GPL, LGPL, AGPL, ISC, MIT. ๎€Š Each license puts some rules for the method of using their code. ๎€Š Most famous one is the GPL license used with Linux.
  • 4. Open Source & Linux ๎€Š Unix was the Major used OS in most universities. ๎€Š Unix started asking students to pay money for the usage and development of the system. ๎€Š A professor developed Minix in order to replace Unix, which was used by Linus Torvalds. ๎€Š Linus started to develop the Linux Kernel. ๎€Š In the same time Ritchard Stallman started to develop GNU and constructed Free Software Foundation.
  • 5. What is Linux? ๎€Š Linux is a free open source operating system kernel built by a student to replace UNIX. ๎€Š Linux is the system kernel where GNU is the tools that system use to operate. ๎€Š It was developed in early 1990s but still developed until now. ๎€Š Is the first choice for enterprise world and geeks. ๎€Š Linux can run on many platforms(i386, x86/64, PPC, Amiga, SPARC, PS3, Super computers).
  • 6. GNU/Linux Architecture ๎€Š Linux has a monolithic kernel. ๎€Š GNU/Linux uses the structure of layered model. Process File Networking Kernel Peripherals control System Unix Shells Unix Tools X Server (X window system)
  • 7. Linux Window Managers. ๎€Š Window managers is a graphical software used to ease the use of the system. ๎€Š Linux has many window managers (KDE, Gnome, xpde, xfce, fluxbox, twm, NextStep,....).
  • 8. Screen shots for WMs ๎€Š
  • 9. Linux Distros. ๎€Š As Linux is open source so any one can develop his own version. ๎€Š Linux distros varies in DWM, Applications provided with each. ๎€Š Market imposed on us some distros as standard (Redhat, Debian, Slackware). ๎€Š Most of current distros are based on Debian(Ubuntu) or Redhat (Fedora).
  • 12. Which is Suitable for Me? ๎€Š Redhat is good for enterprise work. ๎€Š Debian is good for professional end-users. ๎€Š Fedora is good for personal use and developing ๎€Š Opensuse is good for training usage ๎€Š Mandriva is very good for non technical user. ๎€Š Slackware is intended for Advanced professional users. ๎€Š Ubuntu is suitable for ALL !!!
  • 13. Why Ubuntu? ๎€Š Ubuntu is a free Linux distros ๎€Š Ubuntu is based on Debian which is reliable and stable. ๎€Š Ubuntu is the distribution with the biggest software repositories. ๎€Š Ubuntu has a good hardware support for most available companies. ๎€Š Ubuntu have a lot of variants (Kubuntu, Xubuntu, Edubuntu, Goubuntu, MIDI Ubuntu).
  • 15. Installing Ubuntu ๎€Š Ubuntu comes on a live CD. ๎€Š Live CD means that you can use the system from CD with out installing (boot only). ๎€Š The system installation is as easy as installing a program (Only double click on icon). ๎€Š The installation process is very fast and easy (faster and easier than installing windows). ๎€Š Let's see how ???!!
  • 25. Using Linux ๎€Š Linux desktop is very easy to use like windows. ๎€Š There are some important elements on desktop ๎€Š Computer Disks: Places โ†’ Computer. ๎€Š Home Directory : Places โ†’ Home Folder. ๎€Š Configurations : System โ†’ Preferences. ๎€Š Administration : System โ†’ Administration. ๎€Š All Programs : Applications โ†’ Choose Category. ๎€Š Note that all this menus are found under Gnome only KDE is different.
  • 26. Using Linux (File System) ๎€Š Linux uses EXT2, EXT3 file systems and a swap partition to use as virtual memory. ๎€Š Linux can mount FAT16/32 , NTFS , HFS Drives where windows can't mount EXT drive. ๎€Š Under File system there are some Directories: ๎€Š /bin: contains UNIX tools and executable Shell tools ๎€Š /boot: file needed to boot the system. ๎€Š /etc: system configuration files. ๎€Š /lib : system and applications libraries. ๎€Š /media: mounted drives.
  • 27. Installing Useful Software ๎€Š Most of applications available for Linux are free and open source so it's easy to get. ๎€Š Linux has repositories for programs (search & get). ๎€Š Each Linux distribution has a software called package manager. ๎€Š The two most famous packages formats are: .deb for Debian based system , .rpm for Redhat based systems.
  • 28. How to Install Applications? ๎€Š From Application menu go to Add/Remove..... ๎€Š In the windows opened write program name or description in the search field. ๎€Š choose your preferred programs. ๎€Š Click โ€œApplyโ€ and wait for download and instillation. ๎€Š Now the program is installed and ready to use. ๎€Š To install application from shell. ๎€Š sudo apt-get install packageName ๎€Š Then wait for download and installation.
  • 29. Windows Emulation ๎€Š WINE is a windows emulator which is able to run windows software under Linux. ๎€Š Wine can be downloaded via Add/Remove.. ๎€Š WINE can emulate windows (2.0, 3.0, 95, 98, NT, 2000, XP, Server 2003, Vista, Server 2008) ๎€Š Wine Doors is a program that downloads some libraries for WINE to be compatible with most windows Apps. ๎€Š Wine needs (MFC , VC++ runtime, VB runtime, IE6 libs, DX9c libs, .....).
  • 30. Programming on Linux. ๎€Š Linux has dozens of programming languages. ๎€Š GNU Compilers Collection has compilers for: ๎€Š Ada, C/C++, Fortran and Java. ๎€Š The Linux kernel is compiled using GCC. ๎€Š Perl, Python are installed on most distros. ๎€Š Sun's JDK, JVM can be installed on Linux. ๎€Š A lot of IDEs are available for Linux(Eclipse, Netbeans, Mono, KDevelop, Omnis Studio)
  • 31. Installing Java & Netbeans ๎€Š To install Sun Java write this commands: ๎€Š sudo apt-get install sun-java6-jre ๎€Š sudo apt-get install sun-java6-bin ๎€Š sudo apt-get install sun-java6-jdk ๎€Š sudo apt-get install sun-java6-plugin ๎€Š To install Netbeans download the Linux file then: ๎€Š Double click the Icon and continue the setup. ๎€Š ./netbeans6.x --javahome:JavaDirectoryPath
  • 32. Installing MySQL & Oracle ๎€Š MySQL server must be installed using package manager: ๎€Š sudo apt-get install mysql-server-5.0 ๎€Š Query browser and other tools can be downloaded via Add/Remove from Applications menu. ๎€Š Download the Oracle deb package from Oracle website then: ๎€Š Double click on the icon. ๎€Š Click on install package button and wait for setup to finish. ๎€Š Go to /etc/init.d then write โ€œchmod +x oracle-xeโ€ ๎€Š Then start script as root โ€œsudo ./oracle-xeโ€
  • 33. Linux Shells (UNIX shells) ๎€Š Linux uses shells to interact with user in CLI mode (good for servers and administrators). ๎€Š Shells can be accessed by GUI users via terminals. ๎€Š Linux shell is similar to UNIX shell but with some additional commands. ๎€Š Most popular Linux shell is Bash. ๎€Š Bash supports scripts with a wide range of commands.
  • 34. Linux Shell Commands ๎€Š cp file1 file2 โ†’ copy file1 to file2 ๎€Š rm fileName โ†’ deletes the file. ๎€Š mv file1 file2 โ†’ rename file1 or moves it to another location. ๎€Š cd directoryName โ†’ change directory. ๎€Š less fileName โ†’ view file content ๎€Š clear โ†’ clear screen ๎€Š man command โ†’ view command Manual. ๎€Š find fileName โ†’ search for file.
  • 35. Linux Shell Commands 2 ๎€Š ls โ†’ list files in current directory. ๎€Š ps -u UserName โ†’ view all running process for userName. ๎€Š kill PID โ†’ kill process with a specific ID. ๎€Š su โ†’ change to root mode. ๎€Š sudo โ€œcommandโ€ โ†’ execute command in root mode. ๎€Š chmod +x โ€œfileโ€ โ†’ change file mode to executable. ๎€Š ./script.xyz โ†’ execute script or file. ๎€Š ifconfig โ†’ view your network interface configurations. ๎€Š history โ†’ view history of command you entered. ๎€Š reboot โ†’ restart system , halt โ†’ shutdown the system
  • 36. Shell Configurations ๎€Š The shell configurations file of the Bash shell is found under /home/UseName/.bashrc . ๎€Š We can use this file to define new environment variables to the shell by adding the following line at the end of the file: ๎€Š PATH=$PATH:/xx/yy/zz; ๎€Š export PATH ๎€Š .bash_history โ†’ contains your command history. ๎€Š .bash_logout โ†’ execute command when leaving shell.
  • 37. Bye Bye Keep Using