Part 5 of "Introduction to Linux for Bioinformatics": Working the command line's text tools
Part 1 of 'Introduction to Linux for bioinformatics': Introduction
-
Upload
joachim-jacob -
Category
Science
-
view
254 -
download
2
description
Transcript of Part 1 of 'Introduction to Linux for bioinformatics': Introduction
![Page 1: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/1.jpg)
This presentation is available under the Creative Commons Attribution-ShareAlike 3.0 Unported License. Please refer to http://www.bits.vib.be/ if you use this presentation or parts hereof.
Introduction to Linux for bioinformatics
Getting Linux
Joachim Jacob5 and 12 May 2014
![Page 2: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/2.jpg)
22 of 38
Mixing exercises and theory
This training will introduce you to Linux in a broad range of concepts.
● Exercises● Graphical >>> command line● Terminology
![Page 3: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/3.jpg)
33 of 38
Linux ...
Can somebody tell me what they think about when hearing 'Linux' ?
![Page 4: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/4.jpg)
44 of 38
A bunch of hardware: a computer!
![Page 5: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/5.jpg)
55 of 38
They use different signals to communicate
Hallo
BonjourOla
Hello
Ni Hao
Buenos dias
Guten tag
![Page 6: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/6.jpg)
66 of 38
An operating system translates
![Page 7: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/7.jpg)
77 of 38
An operating system translates
![Page 8: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/8.jpg)
88 of 38
An OS is stored on the hard disk
Oempf
![Page 9: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/9.jpg)
99 of 38
Linux drives the computer hardware
Get me that file!
OK
The linux kernel
![Page 10: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/10.jpg)
1010 of 38
Linux drives the computer hardware
Get me that file!
OK
The linux kernel
![Page 11: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/11.jpg)
1111 of 38
Linux drives the computer hardware
Get me that file!
OK
The linux kernel
Here you are:
Thank you
![Page 12: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/12.jpg)
1212 of 38
Who's asking? GNU!
Get me that file!
OK
The linux kernel
Here you are:
Thank you
The operatingsystem
GNU
Provides thelow levelcommandsto commu-nicate withthe hardwarethrough Linux
![Page 13: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/13.jpg)
1313 of 38
There's a lot of chatter
The linux kernel
The operatingsystem
GNU
What's in that directory?('ls' in GNU language)
3 files: reads.fastq,pe_aln.sam, README
Show me the content of that file reads.fastq
(e.g. 'head')
I read:>HS:0012541 ATCGAATATACGATG...
![Page 14: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/14.jpg)
1414 of 38
GNU/Linux goes along very well
The linux kernel
The operatingsystem
GNU
While the linux kernel takes care of managing the computer resources (CPU, disks, file system, RAM, networkcards, …), GNU provides the means of commu- nication with the linux kernel through the well-known commands and programs (bash, ls, mkdir,...).
GNU is usually the first layer of user interaction.
http://www.gnu.org/software/
![Page 15: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/15.jpg)
1515 of 38
But who cares?
The linux kernel
The operatingsystem
GNUGNU/Linux
The goal of linux is to be as invisible as possible, doing the heavy lifting on the background.
This GNU/Linux operating system is a solid core for a lot of computers and devices.
Other OSes: Windows, Mac OS x, Solaris, ….http://coe.uncc.edu/mosaic/mosaic-linux/linux-basics/linux-kernel.html
https://www.dlitz.net/go/sticker/linuxstk800.jpg
![Page 16: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/16.jpg)
1616 of 38
Why Linux?
![Page 17: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/17.jpg)
1717 of 38
Why Linux?
● Stable● Safe● Adjustable
![Page 18: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/18.jpg)
1818 of 38
Why Linux?
● Open source: the kernel code is viewable by anyone.● Open development: anybody can propose enhancements /change it to their needs.● Free-to-use: anybody can use the kernel to drive their own computer or device (always interesting in academics: a lot of development here)
● Stable: it is one of the most stable OS you can find.* since so many people use the linux kernel for their projects, and because of the many eyes watching it, debugging happens at an astonishing rate.** all this is protected (to remain open) by powerful licenses such as GPL, Apache license, creative commons,...
![Page 19: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/19.jpg)
1919 of 38
But, the teacher's computer runs not 'linux'
![Page 20: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/20.jpg)
2020 of 38
This is the Ubuntu flavour of Linux
The rock solid Linux kernel
Ubuntu's applications and graphical interface
Many different organisations use the Linux kernel. Some, such as Canonical, to create the Ubuntu Linux distribution, adding their graphical sauce to it.
![Page 21: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/21.jpg)
2121 of 38
So – who of you is using Linux already?
http://www.linuxfoundation.org/
Graphics: http://thenakedhero.com
http://www.youtube.com/watch?v=yVpbFMhOAwE
![Page 22: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/22.jpg)
2222 of 38
So – who of you is using Linux already?
![Page 23: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/23.jpg)
2323 of 38
Linux for your computer
Different distributions
● They all use the Linux OS kernel● They add their graphical user interface ● They add tools and applications (backup, texteditor,...)● They provide a software package manager● initialization & configuration scripts● commercial support
There are many distributions (600+), but perhaps only a few that really matter...
http://www.distrowatch.com
http://www.linuxtoday.com/
![Page 24: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/24.jpg)
2424 of 38
Linux for the desktop
Dozens Linux distributions to run on your desktop exist.
A top 10 on http://distrowatch.com/dwres.php?resource=major
![Page 25: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/25.jpg)
2525 of 38
Guide to choosing your distribution
● Server
● Commercial support (company driven)
– SUSE Linux ES, Red Hat EL, Ubuntu Server
● Free and community driven
– Debian, CentOS, Scientific Linux ● Personal computer
● Old hardware, slow:
– Puppy Linux, Crunchbang, Lubuntu, ...● New hardware, fast:
– For home use: Linux Mint, Ubuntu ...
– For work use: Crunchbang, OpenSuse, Ubuntu,...
http://www.linux.org/threads/selecting-a-linux-distribution.4087/
http://distrowatch.com/dwres.php?resource=major
![Page 26: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/26.jpg)
2626 of 38
Guide to choosing your distribution
Perhaps it's easier to define the opposite
● Want stability? Don't choose Fedora.● Want the latest and hottest? Don't choose CentOS● Want a lightweight distro? Don't choose Ubuntu● Want classic look? Don't choose Elementary OS● Want to do bioinformatics? Don't choose CentOS,
go for the latest actively developed.● ...
(guess I can keep going)
Thread: Distro best for bioinformatics: http://www.biostars.org/p/16778/
![Page 27: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/27.jpg)
2727 of 38
Linux in different disguises
Linux kernel
Desktop environment
File
man
ager
Bro
wse
r
Emai
l clie
nt
Syst
em s
etti
ngs
...
The philosophy is to have the choice of several exchangeable components to customize your experience.
![Page 28: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/28.jpg)
2828 of 38
They differ in 'desktop environment'
http://en.wikipedia.org/wiki/Desktop_environment
Unity
KDE
GnomeCinnamon
![Page 29: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/29.jpg)
2929 of 38
They differ in file managers
Thunar
Dolphin
http://en.wikipedia.org/wiki/File_manager
NautilusKrusader
![Page 30: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/30.jpg)
3030 of 38
How do I choose?
http://fedoraproject.org http://www.ubuntu.com
http://pinguyos.com/ http://linuxmint.com/
![Page 31: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/31.jpg)
3131 of 38
Quickly and easy try them out!
Oempf
![Page 32: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/32.jpg)
3232 of 38
Run Linux in 'live modus'
Put Linux on a USB stick, and tell your computer to start up from the USB stick, instead of the hard drive.
![Page 33: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/33.jpg)
3333 of 38
How to create a live USB
Live modus!
1. Grab a USB key or CD
2. Download an ISO file: pick the 64-bit version
3. Put the ISO image to the USB key or CD, e.g. with Unetbootin
4. Boot your computer from the USB key or CD (press F2 during boot)
http://unetbootin.sourceforge.net/
![Page 34: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/34.jpg)
3434 of 38
Notes about installing Linux
Straight forwardGive your complete hard disk to Linux.
The current installers are very user friendly.
If you want access to other OSes on your computer (Windows,...): 2 options
VIRTUALISATION DUAL BOOT
http://www.virtualbox.org
Linux
Windows
Choose during boot which OS you want to launch.
http://www.gnu.org/software/grub/
: level of difficulty
![Page 35: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/35.jpg)
3535 of 38
Keywordsoperating system
linux
GNU
open source
distribution
desktop environment
live CD
virtual machine
dual boot
Write in your own words what the terms mean
![Page 36: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/36.jpg)
3636 of 38
Exercise: let's play!
To complete the exercises, you will find .iso images of different distributions in the Downloads folder.
Pick one of those 2 exercises (click on the link):A: Create a bootable live USBorB: Install Linux as a virtual machine
![Page 37: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/37.jpg)
3737 of 38
![Page 38: Part 1 of 'Introduction to Linux for bioinformatics': Introduction](https://reader034.fdocuments.us/reader034/viewer/2022042700/5556034dd8b42a3f168b47dd/html5/thumbnails/38.jpg)
3838 of 38
Break