Top Banner
ACE Course CT01558 Linux Introduction Linux GUI & Command Tools
24

Linux introduction Class 03

Jul 15, 2015

Download

Software

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Linux introduction Class 03

ACE Course CT01558 Linux Introduction

Linux GUI & Command Tools

Page 2: Linux introduction Class 03

X, DM, KDE and GNOME

Other X Graphical User Interfaces

Command Line Tools

Shells, bash options, shell scripts

Basic administration

Linux#3 - Commands 2

Agenda

8/29/2013

Page 3: Linux introduction Class 03

X11, or “X Window System” is the a distributed client/server software as well as protocol

http://en.wikipedia.org/wiki/X_server

Display Manager

Controls WHO logs into display

If GUI crashes, it restarts itself again!

In most distributions, you can’t login as root to DM

Each GUI has its version: KDM, GDM, MDM, …

8/29/2013 Linux#3 - Commands 3

X & Display Managers

Page 4: Linux introduction Class 03

Controls the placement & appearance of application windows (frames, titles, icons)

Metacity in GNOME

KWin in KDE

Xfwm in Xfce

8/29/2013 Linux#3 - Commands 4

Window Managers

Page 5: Linux introduction Class 03

Provide additional functionality to GUI with:

Control panel

cut & paste

trash can

file manager

multimedia tools, music & wallpapers!

notepad, calendar, calculator

shared libraries for those programs

8/29/2013 Linux#3 - Commands 5

Desktop Environments (DE)

Page 6: Linux introduction Class 03

Most Popular Desktop Environments are:

KDE http://kde.org/

GNOME http://www.gnome.org/

Xfce http://xfce.org/

Much more exist!

Common Desktop Environment (CDE)

8/29/2013 Linux#3 - Commands 6

Linux Desktop Environments

Page 7: Linux introduction Class 03

7

Basic Linux Usage

Accessing a terminal in a GUI environment

Page 8: Linux introduction Class 03

Graphical interface Start GUI environment on top of BASH shell

Or, switch to a graphical terminal

e.g., GNOME Display Manager (gdm)

Graphical Interface

Page 9: Linux introduction Class 03

Shells, Terminals, and the Kernel

From the local server, use key combinations to change to separate terminal

Command-line terminal may be accessed from GUI environment

Command line prompt: Root user: #

Regular user: $

Page 10: Linux introduction Class 03

Commands: indicate name of program to execute

Case sensitive

Options: specific letters starting with “-” appearing after command name Alter way command works

Arguments: specify a command’s specific working parameters

Basic Shell Commands

Page 11: Linux introduction Class 03

ls command: List the files in a directory

May pass an argument indicating the directory to be listed

–F option: Argument to indicate file types

–l option: Argument to list long file listings

Linux+ Guide to Linux Certification, 3ed 11

Listing Files

Page 12: Linux introduction Class 03

Basic Shell Commands (continued)

Some common Linux commands

Page 13: Linux introduction Class 03

Shell Metacharacters

Metacharacters: characters with a special meaning

e.g., $

Refers to a variable

Avoid use of metacharacters when typing commands unless using their special functionality

Single quotation marks ‘ ’ protect metacharacters from being interpreted specially by the shell

Page 14: Linux introduction Class 03

A shell script is a script written for the shell

Operations: backups, file manipulation, program execution, and printing text

A script needs to be “flagged” as an executable “x” with the chmod command

If you are running a script from current directory it needs to be preceded by “./”

Shell Scripts

Page 15: Linux introduction Class 03

Getting Command Help

Manual (man) pages: most common form of documentation for Linux commands

type “man” followed by command name

contains different sections

Searchable by keyword

Info pages: set of local, easy-to-read command syntax documentation

type “info” followed by a command name

Page 16: Linux introduction Class 03

Start/Stop/Reboot Server

Backup critical or User files

Install NEW software or services

Update EXISTING software

Add/Remove users

Troubleshoot

8/29/2013 Linux#3 - Commands 16

Basic Administration

Page 17: Linux introduction Class 03

Linux#3 - Commands 17

System Stop or Reboot

To reboot: shutdown –r

reboot

init 6

To halt: shutdown –s

halt

init 0 You must be administrator!

8/29/2013

Page 18: Linux introduction Class 03

Adds functionality to your system,

example:

install LibreOffice or MySQL

From Command line mode:

sudo apt-get mysql

8/29/2013 Linux#3 - Commands 18

Install Software

Page 19: Linux introduction Class 03

Keeps your system safe and bug-free

From Command line mode:

sudo apt-get update

8/29/2013 Linux#3 - Commands 19

Update Software

Page 20: Linux introduction Class 03

Linux#3 - Commands 20

Monitoring & Process Control

top – displays top processes uptime + ps = w ps ax – list of all running processes nice PID priority – changes priority level Default priority is 10, it can be changed from -20 (highest priority) to 19 (lowest)

kill –signal PID killall process

8/29/2013

Page 21: Linux introduction Class 03

useradd <username>

passwd <username> //changes password for a user

userdel <username>

8/29/2013 Linux#3 - Commands 21

User Maintenance

Page 22: Linux introduction Class 03

Installation Fails

Server crashes

Service(s) not running

Read LOGS! /var/log/messages

Restart in single user mode [init S]

Check file system for errors

8/29/2013 Linux#3 - Commands 22

Troubleshooting

Page 23: Linux introduction Class 03

KDE and GNOME

Other X Graphical User Interfaces

Command Line Tools

Shells, bash options, shell scripts

Basic administration

Linux#3 - Commands 23

Summary

8/29/2013

Page 24: Linux introduction Class 03

Questions???