+ All Categories
Home > Technology > Linux workshop

Linux workshop

Date post: 15-May-2015
Category:
Upload: mohankumar-palanichamy
View: 258 times
Download: 0 times
Share this document with a friend
Popular Tags:
29
Linux Workshop Prepared By MohanKumar
Transcript
Page 1: Linux workshop

Linux Workshop

Prepared By

MohanKumar

Page 2: Linux workshop

About this workshopNo prior knowledge of linux necessary

Lot of linux flavours, we concentrate on ubuntu

2 hr's with couple of breaks

Page 3: Linux workshop

Content Start with some history and architecture File system Files and Directories Basic commands Software management – installing,

removing, upgrading

Page 4: Linux workshop

History of UNIX & GNU

UNIX dominated since 1960. It was efficient, effective, but expensive.

An effort to produce an open-source UNIX like os begun by richard stallman in 1983, this was the GNU projects beginnings.

A lot of software was written as part of the GNU project by the Free Software Foundation(FSF): compilers, text editors, a shell....

Page 5: Linux workshop

History – GNU is not an os But there were no complete kernel,

device drivers, faemons etc. Without these subsystem, GNU could not

be completed.

Page 6: Linux workshop

History – linux fills the gap In 1991 Linuz Trovalds developed a

replacement of MINIX teaching OS developed by andrew d. Tanenbaum and released by Prentice-Hall.

This replacement became the Linux kernel. Version 0.12 of linux was released in 1992.

Linux kernel became the missing GNU kernel.

Page 7: Linux workshop

Linux? Strictly speaking Linux refers to the

kernel GNU/Linux more accurately describes the

Operating System. Linux Kernel combined with GNU utilities and libraries

Page 8: Linux workshop

Open Source SoftwareOpen Source Software (OSS) generally

refers to software for which the source code is available and which the licensing scheme permits the user to modify it and redistribute it in modified or unmodified form.

Page 9: Linux workshop

GNU copyleft1

Nobody should be restricted by the software they use. There are four freedoms that every user should have:

the freedom to use the software for any purpose,

the freedom to change the software to suit your needs,

the freedom to share the software with your friends and neighbors, and

the freedom to share the changes you make. When a program offers users all of these

freedoms, we call it free software.

Page 10: Linux workshop

Open Source SoftwareThe GIMP - Adobe Photoshop cloneOpen Office - Office suiteMozilla Firefox - Web browser Mozilla - Thunderbird E-mail ClientVLC - Media playerAudacity - Digital audio editorMySQL – Database

Page 11: Linux workshop

Ubuntu Linux A good choice for both server and

desktop distribution. Free and well updated – new release

every six months. Security updates for 18 months – after

that just upgrade to the latest version. There are LTS versions with extended

length support.

Page 12: Linux workshop

Ubuntu ReleaseLatest release is Ubuntu 13.04 (Raring

Ringtail), based on kernel 3.8Latest stable release is Ubuntu 12.04 LTS

(Precise Pangolin), based on kernel 3.2

Page 13: Linux workshop

FilesystemA filesystem is responsible for managing data

stored on a non-volatile storage device like hard disks, USB drives, DVD etc.

Most linux distros, including ubuntu, use ext3 (“third extended filesystem”) and above.

Ubuntu 9.04 introduces experimental support for ext4.

Page 14: Linux workshop

Journaling Filesystem?A journaling filesystem keeps a journal or

log of the changes that are being made to the filesystem during disk writing that can be used to rapidly reconstruct corruptions that may occur due to events such a system crash or power outage.

Page 15: Linux workshop

ext3Ext3 stands for third extended file system.It was introduced in 2001.Starting from Linux Kernel 2.4.15 ext3

was available.The main benefit of ext3 is that it allows

journaling.Maximum individual file size can be from

16 GB to 2 TBYou can convert a ext2 file system to ext3

file system directly (without backup/restore).

Page 16: Linux workshop

ext4Ext4 stands for fourth extended file system. It was introduced in 2008.Starting from Linux Kernel 2.6.19 ext4 was

available.Maximum individual file size can be from 16 GB

to 16 TBOverall maximum ext4 file system size is 1 EB

(exabyte). 1 EB = 1024 PB (petabyte). 1 PB = 1024 TB (terabyte).

You can also mount an existing ext3 fs as ext4 fs (without having to upgrade it).

In ext4, you also have the option of turning the journaling feature “off”.

Page 17: Linux workshop

Files and directoriesFilesystems store data in files and directories.Filesystems are stored in disk partitions.You can configure partitions any way you like,

but something like this is advisable /home This is where users home directories

go. /boot This is where your kernel images and

boot loader configuration go. / This is where the "root" of the file system is

kept.

Page 18: Linux workshop

Basic commandsls - List the content of a directorycd - Change directorymkdir - Create directoryrmdir - Remove directorycp - Copy filemv - Move filerm - Remove filepwd - Print the present directory

Page 19: Linux workshop

Software Management

Page 20: Linux workshop

Installing

Page 21: Linux workshop

Using aptApt (Advanced Packaging Tool) is the

most favourite method of software installation in Debian based systems. You have so many repositories where you can download more than 60,000 software. This repositories are referred in the sources list at /etc/apt/sources.list.

Eg: Install VLC player#apt-get install vlc

Page 22: Linux workshop

Using Synaptic Package Manager Synaptic Package Manager will allow you

to install software by searching the repositories. It’s a GUI based package manager. You can view the software by category and by clicking on Apply button you can easily install the software.

Page 23: Linux workshop

Downloading Deb packagesYou can download .deb packages and

install them using command line and also using GDebi GUI tool.

Eg: Install Skype#dpkg -i skype-ubuntu-intrepid_2.1.0.47-1_i386.deb

In GDebi, you can just right click on the .deb package and open it in GDebi, then you can install it from there.

Page 24: Linux workshop

Removing

Page 25: Linux workshop

GUI Package Management Tool

Just click on System > Administration > Synaptic Package Manager

Now you can select any package and click on Mark for Removal popup menu. You can also start GUI tool from command line, enter:

$ synaptic &

Page 26: Linux workshop

Command Lineapt-get is the command-line tool for

handling packages.For example remove package called

mplayer, enter:$ sudo apt-get remove mplayer

Page 27: Linux workshop

Upgrading

Page 28: Linux workshop

GUI tool - Ubuntu Update ManagerYou can also start GUI tool by Clicking

System > Administration > Update Manager > Select Install update

Page 29: Linux workshop

command lineapt-get is the command-line tool for

handling packages, updating package and installing patches under Ubuntu Linux. All you have to do is type the following two command to update all installed software to latest version.

Open terminal and type the following two commands:

$ sudo apt-get update$ sudo apt-get upgrade


Recommended