+ All Categories
Home > Technology > 3. introduction of centos

3. introduction of centos

Date post: 19-May-2015
Category:
Upload: mohd-yasin-karim
View: 1,522 times
Download: 1 times
Share this document with a friend
Popular Tags:
35
Introduction to Centos By Mohd Yasin Abd Karim [email protected]
Transcript
Page 1: 3. introduction of centos

Introduction to Centos

By

Mohd Yasin Abd Karim

[email protected]

Page 2: 3. introduction of centos

Topics

• Overview

• Using Centos

• Administration

• Networking

Page 3: 3. introduction of centos

Overview

• Is not associated by Red Hat Inc.• Centos takes freely available Red Hat

Enterprise Linux source code• A set of packages and ISO images for

installing centos or running it as live CD• Freely distributed without paying

subscription fees• Doesn’t achieve 100% compatibility with

RHEL

Page 4: 3. introduction of centos

Stepping Stone to RHEL

• As learning tools to become familiar

• The Backing of a Major Linux Vendor

• Technical Support

• Certified Hardware and Software

• Timely Security patches and Updates

• Certification and Training

Page 5: 3. introduction of centos

Installation

• Media – Centos installation DVD

• PC– A Pentium class PC ( > 400MHz)– 128Mb RAM(text), 512MB RAM(GUI)

• Disk Space– Depending on packages– 1.5GB to 10GB

• Keyboard & Monitor

Page 6: 3. introduction of centos

Begin Installation

• Insert DVD

• Start your Computer

• Start the Boot Procedure – Press Enter– Media Check– Continue– Choose Language– Choose keyboard– Choose Fresh Install

Page 7: 3. introduction of centos

Begin Installation

• Choose your partioning Stratetgy

• Review and Modify partioning and Modify Partioning Layout

• Configure Boot Loader

• Change Device

• Set Hostname

• Choose a Time Zone

Page 8: 3. introduction of centos

Begin Installation

• Set Root Password

• Install Classes

• Customise categories

• About Install

• Finish Installing

Page 9: 3. introduction of centos

Running Centos Firstboot

• Firewall – allow or deny access

• SELinux – additional layer security

• Date and Time

• Create User

• Sound Card

• Additional CDs

• Get Updates

Page 10: 3. introduction of centos

Getting Started With Desktop

• Checking out Your Home Folder• Open With• Side panel• Background• Organise your Work – move, delete, rename• Minimize• Maximize• Close

Page 11: 3. introduction of centos

Getting Started With Desktop

• Change Background

• Choose Browser and Others Apps

• Add a Screensaver

• Change the theme

• Configure your Panel

• Workspaces

Page 12: 3. introduction of centos

Using Linux Command

• Shell is command line interpreter

• The shell is powerful, complex

Page 13: 3. introduction of centos

id

• To find out information about your identity, use the id command as follows:

• $ id

uid=500(timothy) gid=500(timothy) groups=10(wheel),100(users),500(timothy)

context=user_u:system_r:unconfined_t

Page 14: 3. introduction of centos

who

• You can see information about your current login session by using the who command.

$ who -u -m -H

• NAME LINE TIME IDLE PID COMMENT

• timothy pts/1 2009-04-02 14:12 . 7264 (:0.0)

Page 15: 3. introduction of centos

pwd

• To find out what your current directory is, type the pwd command:

• $ pwd

• /usr/bin

Page 16: 3. introduction of centos

$HOME

• To find out the name of your home directory, type the echo command, followed by the $HOME variable:

• $ echo $HOME

• /home/timothy

Page 17: 3. introduction of centos

cd

• To get back to your home directory, you can simply type the change directory (cd) command.

• You can also use the tilde (~) character to indicate the home directory:

• $ cd ~

Page 18: 3. introduction of centos

ls

• list the contents of your home directory, using the ls command.

• $ ls -la /home/timothy

Page 19: 3. introduction of centos

ps

• The most common utility for checking running processes is the ps command.

• $ ps u

• $ ps au

• To see and thereby monitor all the processes

• $ ps aux | less

Page 20: 3. introduction of centos

Exiting the Shell

• To exit the shell when you are done, type exit or press [Ctrl]+D.

• There are also administrative commands in /sbin or /usr/sbin directories.

Page 21: 3. introduction of centos

Getting Help with Shell

• help command

• man command

Page 22: 3. introduction of centos

Linux Filesystems

• /bin —Contains common Linux user commands, such as ls, sort, date, and chmod.

• /boot— Has the bootable Linux kernel and boot loader configuration files (GRUB).

Page 23: 3. introduction of centos

Linux Filesystems

• /dev—Contains files representing access points to devices on your systems. These include terminal devices (tty*), floppy disks (fd*), hard disks (hd* or sd*), RAM (ram*), and CD-ROM (cd*). (Applications normally access these devices directly through the device files, but end-users rarely access them directly.)

• /etc— Contains administrative configuration files.

• /home—Contains directories assigned to each user with a login account.

Page 24: 3. introduction of centos

Linux Filesystems

• /media —Provides a location for mounting devices, such as remote file systems and removable media (with directory names of cdrom, floppy, etc.). In CentOS, many removable media are mounted automatically in this directory when the media is inserted (CD or DVD) or connected (USB pen drives or cameras).

• /proc —Provides a mechanism for the kernel to send information to processes.

• /root—Represents the root user’s home directory.• /sbin —Contains administrative commands and daemon

processes.

Page 25: 3. introduction of centos

Linux Filesystems

• /sys —A /proc-like file system, added with the Linux 2.6 kernel and intended to contain files for getting hardware status and reflecting the system’s device tree as it is seen by the kernel. It pulls many of its functions from /proc.

• /tmp —Contains temporary files used by applications.

Page 26: 3. introduction of centos

Linux Filesystems

• /usr—Contains user documentation, games, libraries (lib), and a variety of other user and administrative commands and files.

• /var—Contains directories of data used by various applications. In particular, this is where you would place files that you share as an FTP server (/var/ftp) or a Web Server (/var/www). It also contains all system log files (/var/log). In time, FTP, HTTP, and similar services will move to the /srv directory to adhere to the Linux Standards Base (www.freestandards.org/spec).

Page 27: 3. introduction of centos

Creating Files and Directories

• cd— Change to another directory.

• pwd—Print the name of the current working directory.

• mkdir— Create a directory.

• chmod— Change the permission on a file or directory.

• ls— List the contents of a directory.

Page 28: 3. introduction of centos

Moving, Copying, and Deleting Files

• $ mv abc def

• $ mv abc $ cp abc def∼• $ cp abc $ rm abc∼• $ rm *

Page 29: 3. introduction of centos

Using the vi Text Editor

• $ vi /tmp/test

Page 30: 3. introduction of centos

Exploring Other Text Editors• emacs—Most experienced Linux and UNIX users traditionally have

used vi or emacs as their text editor. Many extensions are available with emacs to handle editing of many different file types.

• gedit—The GNOME text editor that runs in the GUI• joe— The joe editor is similar to many PC text editors. Use control

and arrow keys to move around. Press [Ctrl]+C to exit with no save or [Ctrl]+X to save and exit.

• kate— A nice-looking editor that comes in the kdebase package. It has lots of bells and whistles, such as highlighting for different types of programming languages and controls for managing word wrap.

• kedit—A GUI-based text editor that comes with the KDE desktop• nedit—A good tool for editing source code

Page 31: 3. introduction of centos

Accessing and RunningApplications

• Running yum to Download and Install RPMs

• # yum install gcc

• Using yum to Install Packages Locally

• yum localinstall /media/disk/CentOS/gftp-*

Page 32: 3. introduction of centos

Using the rpm Command

• The rpm command has the following modes of operation:• ■ Install (-i)• ■ Upgrade (-U)• ■ Freshen (-F)• ■ Query (-q)• ■ Verify (-V)• ■ Signature check (--checksig)• ■ Uninstall (-e)• ■ Rebuild database (--rebuilddb)• ■ Fix permissions (--setperms)• ■ Set owners/groups (--setugids)• ■ Show RC (--showrc)

Page 33: 3. introduction of centos

Linux Applications

• OpenOffice.org

• Firefox

• Thunderbird

• The GIMP (gimp)

• Quanta (html editor)

• GnuCash

Page 34: 3. introduction of centos

Using SSH

• Putty

• winscp

Page 35: 3. introduction of centos

Thank You

• http://www.yasin.my


Recommended