SlideShare ist ein Scribd-Unternehmen logo
1 von 20
Downloaden Sie, um offline zu lesen
PhDLinux: a Linux crash course for PhD Students



  Davide Eynard            David Laniado
  eynard@elet.polimi.it    david.laniado@elet.polimi.it
2

Table of contents

    Introduction
    Which distro?
    Linux basics
    Our first installation
    And now?
    Conclusions




                Davide Eynard – David Laniado
        DEI
3

Richard Stallman and the Free Software
                                        1983: GNU project (GNU's Not Unix)
                                        1985: Free Software Foundation
                                          Free as in freedom
                                                as in “free speech”,
                                                not “free beer”
                                             0. Freedom to run the program for
                                                any purpose.
                                             1. Freedom to study and modify the
                                                program.
                                             2. Freedom to copy the program so
                                                you can help your neighbor.
                                             3. Freedom to improve the program,
                                                and release your improvements to
                                                the public, so that the whole
                                                community benefits.

                                        1989: General Public License (GPL)
                                          copyleft -> to protect sw freedom

             Davide Eynard – David Laniado
       DEI
4

 Linus Torvalds and the Linux kernel
1991: “Just for fun”, Linus Torvalds,
  a finnish young student, decides
  to develop the linux kernel

Hello everybody out there
  using minix -
I'm doing a (free)
  operating system (just a
  hobby, won't be big and
  professional like gnu)
  for 386(486) AT clones.

Linus shares his code on the internet: hundreds
   of users-developers begin to collaborate
1992: Linux under the GNU GPL licence
1994: release 1.0, 500.000 users


                  Davide Eynard – David Laniado
           DEI
5

The Cathedral and the Bazaar
•   “experts”                               •   “users-developers”
•   hierarchy                               •   decentralization
•   isolation                               •   collaboration
                                            •   sharing
                                            •   natural selection of ideas




                Davide Eynard – David Laniado
         DEI
6

Linux distros




                Davide Eynard – David Laniado
       DEI
7

Some Linux basics

There are some concepts you should be aware of, even before your
  very first installation:

    filesystem and devices
    the shell
    apps and packages




               Davide Eynard – David Laniado
        DEI
8

Filesystem and devices

    Devices: everything's a file
       • Hard disks: hda, hdb, sda1, ...
       • Network cards: eth0, wlan1, ...
       • Other devices: usbdev, stdin, null, ...




    Filesystem structure




    Linux as a multiuser system: permissions and sudo


                Davide Eynard – David Laniado
        DEI
9

The Linux shell

    the login
    help!
       • man
       • try to write ”commandname ­­help”
    main file commands
       • ls, cd, cp, mv, rm, mkdir, rmdir, touch
    view/edit
       • cat, more, less, vi, grep
    processes
       • top, ps, kill
    archive
       • tar, gzip, bzip




                 Davide Eynard – David Laniado
        DEI
10

Applications and packages

    applications are packaged, and (almost) every distro has its own
     package format
       • ours is .deb
    different tools are used to manage packages
       • shell is power, learn apt-get, dselect or aptitude
    apt-get
       •     apt-cache search name
       •     apt-get install name
       •     apt-get remove name
       •     apt-get update
       •     apt-get dist-upgrade




                   Davide Eynard – David Laniado
           DEI
11

Ubuntu installation




             Davide Eynard – David Laniado
       DEI
12

... and now?

Once the system is installed, you can:
    see what's inside it
    configure your apps
    install new software


Need help?
    Ubuntu Guide
    Ubuntu Forums
    Windows replacements




                Davide Eynard – David Laniado
         DEI
13

Software configuration – old skool




             Davide Eynard – David Laniado
       DEI
14

Software configuration – new skool




             Davide Eynard – David Laniado
       DEI
15

Software installation




    Add/Remove apps




    Synaptics




              Davide Eynard – David Laniado
       DEI
16

Synaptics: add repositories

    choose “partner” repository
    add: deb http://packages.medibuntu.org/ hardy free non-free
    see also: http://www.medibuntu.org/




              Davide Eynard – David Laniado
       DEI
17

Software installation

    Internet software
       • Thunderbird, Opera, Azureus, Amule
       • GFTP, XChat, Skype
    Write papers
       • LaTeX and Kyle
    Scientific software
       • Abaqus, Labview, Matlab, MSC Patran for Linux
       • Scilab, GNUplot
    Development
       • Eclipse
    ... add your software here
       • Still need windows apps? Try Wine!




               Davide Eynard – David Laniado
        DEI
18

Matlab installation

or: here's how things work here ;-)

     get ISO at http://cdserver.cia.polimi.it/iso/matlab/unix


     the file is a multipart RAR archive: uncompress it with
        unrar x Matlab_2007b_linux_mac_solaris_nov2007_3001.rar.part1.exe

     once you have the ISO, you can burn it or mount it on your
      current filesystem
        mkdir tmp
        sudo mount -o loop Matlab_2007b_linux_mac_solaris_nov2007_3001.iso tmp/

     for the license file, remember to use the very last version!
        (it has been sent to us by email recently)




                  Davide Eynard – David Laniado
         DEI
19

So, now?

Gaining a full knowledge of Linux in a couple of hours is pretty difficult.
We hope that now, at least:

     you have an idea about what Linux is
     you have some curiosity towards it
     you are able to get started with an easy distro
     you know there's other people here at DEI using it




... why don't we network and share info and help about Linux?




                 Davide Eynard – David Laniado
         DEI
20

Conclusions




              Questions? ;­)




              Davide Eynard – David Laniado
      DEI

Weitere ähnliche Inhalte

Was ist angesagt?

ICT for People's Organizations
ICT for People's OrganizationsICT for People's Organizations
ICT for People's Organizations
intal
 
Presentation1 linux os
Presentation1 linux osPresentation1 linux os
Presentation1 linux os
joycoronado
 
Introduction to FOSS
Introduction to FOSSIntroduction to FOSS
Introduction to FOSS
mgamal87
 

Was ist angesagt? (20)

The linux-guide
The linux-guideThe linux-guide
The linux-guide
 
ICT for People's Organizations
ICT for People's OrganizationsICT for People's Organizations
ICT for People's Organizations
 
Module 01 Introduction to Linux
Module 01 Introduction to LinuxModule 01 Introduction to Linux
Module 01 Introduction to Linux
 
windows.pptx
windows.pptxwindows.pptx
windows.pptx
 
Introduction to fedora 20cat
Introduction to fedora   20catIntroduction to fedora   20cat
Introduction to fedora 20cat
 
Intro to open_source
Intro to open_sourceIntro to open_source
Intro to open_source
 
Why linux is better than windows
Why linux is better than windowsWhy linux is better than windows
Why linux is better than windows
 
Intro to operating_system
Intro to operating_systemIntro to operating_system
Intro to operating_system
 
kali linux.pptx
kali linux.pptxkali linux.pptx
kali linux.pptx
 
Desktop Adapted For Dad
Desktop Adapted For DadDesktop Adapted For Dad
Desktop Adapted For Dad
 
Fedora (the Distro and the Community)
Fedora (the Distro and the Community)Fedora (the Distro and the Community)
Fedora (the Distro and the Community)
 
2nd
2nd2nd
2nd
 
Fedora Linux
Fedora LinuxFedora Linux
Fedora Linux
 
Introduction To Opensource And GNU/Linux
Introduction To Opensource And GNU/LinuxIntroduction To Opensource And GNU/Linux
Introduction To Opensource And GNU/Linux
 
Presentation1 linux os
Presentation1 linux osPresentation1 linux os
Presentation1 linux os
 
Presentation1 linux os
Presentation1 linux osPresentation1 linux os
Presentation1 linux os
 
Presentation1 linux os(2)
Presentation1 linux os(2)Presentation1 linux os(2)
Presentation1 linux os(2)
 
Introduction to FOSS
Introduction to FOSSIntroduction to FOSS
Introduction to FOSS
 
Fedora17 presentation
Fedora17 presentationFedora17 presentation
Fedora17 presentation
 
Linux Community
Linux CommunityLinux Community
Linux Community
 

Ähnlich wie PhDLinux: A Linux Crash Course for PhD Students

Be free be linux v1.4
Be free be linux v1.4Be free be linux v1.4
Be free be linux v1.4
aboelnour
 

Ähnlich wie PhDLinux: A Linux Crash Course for PhD Students (20)

Linux
LinuxLinux
Linux
 
Linux Operating System (Presented in ICS Course at United International Unive...
Linux Operating System (Presented in ICS Course at United International Unive...Linux Operating System (Presented in ICS Course at United International Unive...
Linux Operating System (Presented in ICS Course at United International Unive...
 
Linux
LinuxLinux
Linux
 
Be Free Be Linux
Be Free Be LinuxBe Free Be Linux
Be Free Be Linux
 
Linux
LinuxLinux
Linux
 
Linux
Linux Linux
Linux
 
Intro to linux
Intro to linuxIntro to linux
Intro to linux
 
Linux Beginner Guide 2014
Linux Beginner Guide 2014Linux Beginner Guide 2014
Linux Beginner Guide 2014
 
welcome to linux
welcome to linuxwelcome to linux
welcome to linux
 
Linux
LinuxLinux
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
 
Debian Linux Overview
Debian Linux OverviewDebian Linux Overview
Debian Linux Overview
 
Free Libre Open Source Software - Business Aspects of Software Industry
Free Libre Open Source Software - Business Aspects of Software IndustryFree Libre Open Source Software - Business Aspects of Software Industry
Free Libre Open Source Software - Business Aspects of Software Industry
 
Linux
LinuxLinux
Linux
 
Linux for everyone
Linux for everyoneLinux for everyone
Linux for everyone
 
Part 1 of 'Introduction to Linux for bioinformatics': Introduction
Part 1 of 'Introduction to Linux for bioinformatics': IntroductionPart 1 of 'Introduction to Linux for bioinformatics': Introduction
Part 1 of 'Introduction to Linux for bioinformatics': Introduction
 
Be free be linux v1.4
Be free be linux v1.4Be free be linux v1.4
Be free be linux v1.4
 
Linux
LinuxLinux
Linux
 
1 the linux-guide
1 the linux-guide1 the linux-guide
1 the linux-guide
 
Iniciación a linux
Iniciación a linuxIniciación a linux
Iniciación a linux
 

Mehr von Davide Eynard

Research on collaborative information sharing systems
Research on collaborative information sharing systemsResearch on collaborative information sharing systems
Research on collaborative information sharing systems
Davide Eynard
 

Mehr von Davide Eynard (15)

Building Compatible Bases on Graphs, Images, and Manifolds
Building Compatible Bases on Graphs, Images, and ManifoldsBuilding Compatible Bases on Graphs, Images, and Manifolds
Building Compatible Bases on Graphs, Images, and Manifolds
 
Laplacian Colormaps: a framework for structure-preserving color transformations
Laplacian Colormaps: a framework for structure-preserving color transformationsLaplacian Colormaps: a framework for structure-preserving color transformations
Laplacian Colormaps: a framework for structure-preserving color transformations
 
Notes on Spectral Clustering
Notes on Spectral ClusteringNotes on Spectral Clustering
Notes on Spectral Clustering
 
An integrated approach to discover tag semantics
An integrated approach to discover tag semanticsAn integrated approach to discover tag semantics
An integrated approach to discover tag semantics
 
SAnno: a unifying framework for semantic annotation
SAnno: a unifying framework for semantic annotationSAnno: a unifying framework for semantic annotation
SAnno: a unifying framework for semantic annotation
 
A Virtuous Cycle of Semantics and Participation
A Virtuous Cycle of Semantics and ParticipationA Virtuous Cycle of Semantics and Participation
A Virtuous Cycle of Semantics and Participation
 
Talk Hpl
Talk HplTalk Hpl
Talk Hpl
 
ReSearch - Searching for Researchers
ReSearch - Searching for ResearchersReSearch - Searching for Researchers
ReSearch - Searching for Researchers
 
Exploiting user gratification for collaborative semantic annotation
Exploiting user gratification for collaborative semantic annotationExploiting user gratification for collaborative semantic annotation
Exploiting user gratification for collaborative semantic annotation
 
Performance Attacks on Intrusion Detection Systems
Performance Attacks on Intrusion Detection SystemsPerformance Attacks on Intrusion Detection Systems
Performance Attacks on Intrusion Detection Systems
 
Cracking Codes With Genetic Algorithms
Cracking Codes With Genetic AlgorithmsCracking Codes With Genetic Algorithms
Cracking Codes With Genetic Algorithms
 
Rewire the Net
Rewire the NetRewire the Net
Rewire the Net
 
Fast algorithms for large scale genome alignment and comparison
Fast algorithms for large scale genome alignment and comparisonFast algorithms for large scale genome alignment and comparison
Fast algorithms for large scale genome alignment and comparison
 
Unambiguous Recognizable Two-dimensional Languages
Unambiguous Recognizable Two-dimensional LanguagesUnambiguous Recognizable Two-dimensional Languages
Unambiguous Recognizable Two-dimensional Languages
 
Research on collaborative information sharing systems
Research on collaborative information sharing systemsResearch on collaborative information sharing systems
Research on collaborative information sharing systems
 

Kürzlich hochgeladen

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
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
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
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
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
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...
 
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...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
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
 
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
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
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
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
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...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
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
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
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
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 

PhDLinux: A Linux Crash Course for PhD Students

  • 1. PhDLinux: a Linux crash course for PhD Students Davide Eynard David Laniado eynard@elet.polimi.it david.laniado@elet.polimi.it
  • 2. 2 Table of contents  Introduction  Which distro?  Linux basics  Our first installation  And now?  Conclusions Davide Eynard – David Laniado DEI
  • 3. 3 Richard Stallman and the Free Software 1983: GNU project (GNU's Not Unix) 1985: Free Software Foundation Free as in freedom as in “free speech”, not “free beer” 0. Freedom to run the program for any purpose. 1. Freedom to study and modify the program. 2. Freedom to copy the program so you can help your neighbor. 3. Freedom to improve the program, and release your improvements to the public, so that the whole community benefits. 1989: General Public License (GPL) copyleft -> to protect sw freedom Davide Eynard – David Laniado DEI
  • 4. 4 Linus Torvalds and the Linux kernel 1991: “Just for fun”, Linus Torvalds, a finnish young student, decides to develop the linux kernel Hello everybody out there using minix - I'm doing a (free) operating system (just a hobby, won't be big and professional like gnu) for 386(486) AT clones. Linus shares his code on the internet: hundreds of users-developers begin to collaborate 1992: Linux under the GNU GPL licence 1994: release 1.0, 500.000 users Davide Eynard – David Laniado DEI
  • 5. 5 The Cathedral and the Bazaar • “experts” • “users-developers” • hierarchy • decentralization • isolation • collaboration • sharing • natural selection of ideas Davide Eynard – David Laniado DEI
  • 6. 6 Linux distros Davide Eynard – David Laniado DEI
  • 7. 7 Some Linux basics There are some concepts you should be aware of, even before your very first installation:  filesystem and devices  the shell  apps and packages Davide Eynard – David Laniado DEI
  • 8. 8 Filesystem and devices  Devices: everything's a file • Hard disks: hda, hdb, sda1, ... • Network cards: eth0, wlan1, ... • Other devices: usbdev, stdin, null, ...  Filesystem structure  Linux as a multiuser system: permissions and sudo Davide Eynard – David Laniado DEI
  • 9. 9 The Linux shell  the login  help! • man • try to write ”commandname ­­help”  main file commands • ls, cd, cp, mv, rm, mkdir, rmdir, touch  view/edit • cat, more, less, vi, grep  processes • top, ps, kill  archive • tar, gzip, bzip Davide Eynard – David Laniado DEI
  • 10. 10 Applications and packages  applications are packaged, and (almost) every distro has its own package format • ours is .deb  different tools are used to manage packages • shell is power, learn apt-get, dselect or aptitude  apt-get • apt-cache search name • apt-get install name • apt-get remove name • apt-get update • apt-get dist-upgrade Davide Eynard – David Laniado DEI
  • 11. 11 Ubuntu installation Davide Eynard – David Laniado DEI
  • 12. 12 ... and now? Once the system is installed, you can:  see what's inside it  configure your apps  install new software Need help?  Ubuntu Guide  Ubuntu Forums  Windows replacements Davide Eynard – David Laniado DEI
  • 13. 13 Software configuration – old skool Davide Eynard – David Laniado DEI
  • 14. 14 Software configuration – new skool Davide Eynard – David Laniado DEI
  • 15. 15 Software installation  Add/Remove apps  Synaptics Davide Eynard – David Laniado DEI
  • 16. 16 Synaptics: add repositories  choose “partner” repository  add: deb http://packages.medibuntu.org/ hardy free non-free  see also: http://www.medibuntu.org/ Davide Eynard – David Laniado DEI
  • 17. 17 Software installation  Internet software • Thunderbird, Opera, Azureus, Amule • GFTP, XChat, Skype  Write papers • LaTeX and Kyle  Scientific software • Abaqus, Labview, Matlab, MSC Patran for Linux • Scilab, GNUplot  Development • Eclipse  ... add your software here • Still need windows apps? Try Wine! Davide Eynard – David Laniado DEI
  • 18. 18 Matlab installation or: here's how things work here ;-)  get ISO at http://cdserver.cia.polimi.it/iso/matlab/unix  the file is a multipart RAR archive: uncompress it with unrar x Matlab_2007b_linux_mac_solaris_nov2007_3001.rar.part1.exe  once you have the ISO, you can burn it or mount it on your current filesystem mkdir tmp sudo mount -o loop Matlab_2007b_linux_mac_solaris_nov2007_3001.iso tmp/  for the license file, remember to use the very last version! (it has been sent to us by email recently) Davide Eynard – David Laniado DEI
  • 19. 19 So, now? Gaining a full knowledge of Linux in a couple of hours is pretty difficult. We hope that now, at least:  you have an idea about what Linux is  you have some curiosity towards it  you are able to get started with an easy distro  you know there's other people here at DEI using it ... why don't we network and share info and help about Linux? Davide Eynard – David Laniado DEI
  • 20. 20 Conclusions Questions? ;­) Davide Eynard – David Laniado DEI