0% found this document useful (0 votes)
160 views28 pages

Beginner's Guide to GNU/Linux Basics

This document provides an introduction to GNU/Linux. It discusses what free and open source software (FOSS) is, the advantages of using GNU/Linux like lower costs and greater freedom, and popular GNU/Linux distributions like Ubuntu, Fedora, and openSUSE. It also covers how to install and use GNU/Linux, including basic system administration tasks, word processing, programming, and references for further help and information.

Uploaded by

Dwaipayan Roy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
160 views28 pages

Beginner's Guide to GNU/Linux Basics

This document provides an introduction to GNU/Linux. It discusses what free and open source software (FOSS) is, the advantages of using GNU/Linux like lower costs and greater freedom, and popular GNU/Linux distributions like Ubuntu, Fedora, and openSUSE. It also covers how to install and use GNU/Linux, including basic system administration tasks, word processing, programming, and references for further help and information.

Uploaded by

Dwaipayan Roy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28

Introduction to GNU/Linux

Mandar Mitra

Indian Statistical Institute


Kolkata

Introduction to GNU/Linux p. 1/28


Outline

What is FOSS?
Advantages of GNU/Linux
GNU/Linux distributions
Installing GNU/Linux
Using GNU/Linux
basic system administration
tasks
word processing
data analysis
programming
Pointers, where to get help, etc.

Introduction to GNU/Linux p. 2/28


What is FOSS?

Software that provides users with following freedoms


http://www.gnu.org/philosophy/free-sw.html

1. the freedom to run the program, for any purpose (freedom 0);
2. the freedom to study how the program works, and change it to
make it do what the user wishes (freedom 1);
3. the freedom to redistribute copies (freedom 2);
4. the freedom to distribute copies of any modified versions to others
(freedom 3).

Introduction to GNU/Linux p. 3/28


What is FOSS?

Software that provides users with following freedoms


http://www.gnu.org/philosophy/free-sw.html

1. the freedom to run the program, for any purpose (freedom 0);
2. the freedom to study how the program works, and change it to
make it do what the user wishes (freedom 1);
3. the freedom to redistribute copies (freedom 2);
4. the freedom to distribute copies of any modified versions to others
(freedom 3).

Introduction to GNU/Linux p. 4/28


Advantages of GNU/Linux

Economic reasons: cheaper.


Legal reasons: freedom to share no piracy involved.
Technical reasons: freedom quality is often as good / better.

Examples:
music player
better desktop manager

Introduction to GNU/Linux p. 5/28


Introduction to GNU/Linux p. 6/28
Introduction to GNU/Linux p. 7/28
Advantages of GNU/Linux

Most useful software comes with the distribution or is readily


available
updates and improvements are available more quickly
For most hardware, no drivers are needed
users have more control; less bloat, runs on lower end
hardware
Enormous and usually very helpful user community
+ documentation (HOWTOs, etc.)
More secure no / very few viruses
Live CDs / USBs you can try it easily and without any risk

http://www.whylinuxisbetter.net/
Introduction to GNU/Linux p. 8/28
Common misconceptions

GNU/Linux is hard to use.


some of us are just conditioned to think that way.
GNU/Linux is unsupported, and therefore unreliable.
Paid support is often available.
Community support is freely available.
We need to use what the real world uses.

Introduction to GNU/Linux p. 9/28


GNU/Linux distributions

Introduction to GNU/Linux p. 10/28


What is a distribution?

Kernel + application programmes


Components from many sources packaged together
Available conveniently as a single download / DVD / CD set

Distribution = flavour

Introduction to GNU/Linux p. 11/28


Choice of distribution

Different distributions have different emphasis


Package management is an important distinguishing feature
http://www.distrowatch.com
Some of the most popular distributions:
Ubuntu http://www.ubuntu.com/
Fedora http://fedoraproject.org/
openSUSE http://www.opensuse.org/

Introduction to GNU/Linux p. 12/28


Installation and use

Introduction to GNU/Linux p. 13/28


Installation

Resources
http://www.dedoimedo.com/computers/ubuntu-install.html
http://seogadget.co.uk/the-ubuntu-installation-guide/
http://www.howtoforge.com/the-perfect-desktop-ubuntu-11.04-
natty-narwhal-with-ubuntu-classic

Points to remember
Partitioning
Set non-obvious password(s) (and remember it/them!)

Introduction to GNU/Linux p. 14/28


Package management

DEB (Ubuntu):
apt-get (install | remove) <package name>
synaptic
RPM (Fedora, SuSE):
yum (install | remove) <package name>
yumex

Introduction to GNU/Linux p. 15/28


Introduction to GNU/Linux p. 16/28
Introduction to GNU/Linux p. 17/28
Introduction to GNU/Linux p. 18/28
System administration

Commands:
Also available through menu (System Administration)

Introduction to GNU/Linux p. 19/28


Introduction to GNU/Linux p. 20/28
Introduction to GNU/Linux p. 21/28
Word processing

Openoffice http://www.openoffice.org
writer, calc, impress, base, etc.
Viewers for postscript, PDF
Kile for writing Latex documents
Drawing tools: tgif, dia, inkscape
Image processing: GIMP, ImageMagick

Introduction to GNU/Linux p. 22/28


Diagrams

40
6A

R 8A L
P
x
12A

V(t)=Vosint A B

k1 k2

6m

M m
1
2

Introduction to GNU/Linux p. 23/28


Programming

Memory debugging tools: valgrind (http://valgrind.org/)


Usage: valgrind -leak-check=yes myprog arg1 arg2
Output:
==19182== Invalid write of size 4
==19182== at 0x804838F: f (example.c:6)
==19182== by 0x80483AB: main (example.c:11)
==19182== Address 0x1BA45050 is 0 bytes after a block of size 40 allocd
==19182== at 0x1B8FF5CD: malloc (vg_replace_malloc.c:130)
==19182== by 0x8048385: f (example.c:5)
==19182== by 0x80483AB: main (example.c:11)

Introduction to GNU/Linux p. 24/28


Other common tasks

The command line


Commands can be entered at a shell prompt in a terminal
Some common commands
cd pwd mkdir rmdir
ls cp mv rm
cmp diff less su
For help on commands, use man

Data analysis using the command line:


sort, join, comm, awk, sed, grep

Introduction to GNU/Linux p. 25/28


General tips

If you are using new hardware, use an up-to-date version


Live CDs (Ubuntu / Knoppix) are very useful
familiarization
rescue disk
Take backups at least once a month
Mailing lists and Google are very helpful

Introduction to GNU/Linux p. 26/28


Sources and references

Linux in a nutshell - OReilly


Linux in 24 hours / Linux unleashed
http://www.linuxebooks.com/ebooks.html
The Linux Installation HOWTO
http://tldp.org/HOWTO/Installation-HOWTO/
Linux Installation and Getting Started
http://tldp.org/LDP/gs/gs.html
The Linux System Administrators Guide
http://tldp.org/LDP/sag/sag.pdf
Installation
http://cacs.usc.edu/CSWUG07/Linux%20Install%20-%20rseymour.pd
Package management
http://www.debian.org/doc/manuals/apt-howto/

Introduction to GNU/Linux p. 27/28


More pointers

www.linuxquestions.org
www.howtoforge.org
www.linuxmanuals.net

Our own: www.ilug-cal.info please register!

Introduction to GNU/Linux p. 28/28

You might also like