9 Linux on the Desktop.

Slides:



Advertisements
Similar presentations
Chapter One The Essence of UNIX.
Advertisements

5 Basic utilities When a user logs in to the Linux operating system the directory that they will start in is their home directory. Most users will have.
Introduction to Unix (CA263) File System
Exploring the UNIX File System and File Security
The UNIX File System.
Guide To UNIX Using Linux Third Edition
Guide To UNIX Using Linux Third Edition
Installing Windows XP Professional Using Attended Installation Slide 1 of 41Session 2 Ver. 1.0 CompTIA A+ Certification: A Comprehensive Approach for all.
Linux Shell. 2 Linux Command-Line Interface ■ Linux shells: A shell is a command interpreter that allows you to type commands from the keyboard to interact.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
1. This presentation covers :  User Interface Administration  Files System and Services Management 2.
Guide To UNIX Using Linux Fourth Edition
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
The file structure and related utilities CS240 Computer Science II.
Chapter 9 Part II Linux Command Line Access to Linux Authenticated login using a Linux account is required to access a Linux system. The Linux prompt will.
POS/420 Introduction to Unix Philip Robbins – March 12, 2013 (Week 1)
Managing User Accounts. Module 2 – Creating and Managing Users ♦ Overview ► One should log into a Linux system with a valid user name and password granted.
Unix Basics Chapter 4.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 1 Third Edition Chapter 8 Linux on the Desktop McGraw-Hill.
Chapter Two Exploring the UNIX File System and File Security.
INTRODUCTION TO LINUX Jacob Chan. GNU/Linux Consists of Linux kernel, GNU utilities, and open source and commercial applications Works like Unix –Multi-user.
USING YOUR INSTALLED LINUX SYSTEM.  Common Linux Tasks  Installing Custom Packages  Common GUI Applications  Command Line Shell  Directory Structure/Navigation.
Linux file system "On a UNIX system, everything is a file; if something is not a file, it is a process." Sorts of files (on a Linux system) Directories:
Manage Directories and Files in Linux. 2 Objectives Understand the Filesystem Hierarchy Standard (FHS) Identify File Types in the Linux System Change.
Chapter Two Exploring the UNIX File System and File Security.
Welcome to CS323 Operating System lab 1 TA: Nouf Al-Harbi NoufNaief.net.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: whereis, which, whoami, finger, passwd, cal, date Working with Files: cat, more, less.
E X C E E D I N G E X P E C T A T I O N S Basic LINUX Linux System Administration Dr. Hoganson Kennesaw State University Operating Systems Directory structure:
Linux Commands C151 Multi-User Operating Systems.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
Lecture 02 File and File system. Topics Describe the layout of a Linux file system Display and set paths Describe the most important files, including.
The Kernel At a high level, the kernel in an operating system serves as the bridge between applications and the actual data processing of the hardware.
© 2015 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner.
Linux Tutorial Lesson Two *Getting Help in Linux *Data movement and manipulation *Relative and Absolute path *Processes Note: see chapter 1,2,3 from Linux.
LINUX Zhengli Zhu, School of Life Sciences. Outline 1. ABC of Linux 2. Basic orers of Linux 3. Bash Programming.
Red Hat ® I NTERNET S YS A DMIN Introduction to Linux.
Chap 1 ~ Introducing LINUX LINUX is a free-stable multi-user operating system that derives from UNIX operating system Benefits: 1) Linux is released under.
Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree.
Course : PGClass : MCA Subject: Operating SystemSub.Code : 3CT11 Staff Name : S.SomasundaramYear & Sem : II nd & III rd.
BILKENT UNIVERSITY DEPARTMENT OF COMPUTER TECHNOLOGY AND INFORMATION SYSTEMS CTIS156 INFORMATION TECHNOLOGIES II FILES AND FILE SYSTEM STRUCTURE.
UNIX Basics Matt Hayward October 18, 2016 LS560 – Information Technology for information professionals.
Overview of Linux Fall 2016 Dr. Donghyun Kim
Commands Basic syntax of shell commands UNIX or shell commands have a basic structure command -options target command comes first (such as cd or ls) any.
Web Programming Essentials:
Linux 101 Training Module Linux Basics.
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
Welcome to Linux Chap#1 Hanin Abdulrahman.
Linux file system "On a UNIX system, everything is a file;
Linux/Unix - Download Ubuntu Linux :
C151 Multi-User Operating Systems
The Command Prompt Commands are the way to “do things” in Unix
Tools of Web Development 1: Module C: Using Unix
Ubuntu Working in Terminal
CSE 374 Programming Concepts & Tools
Exploring the UNIX File System and File Security
CSE 390a Lecture 1 introduction to Linux/Unix environment
Unix : Introduction and Commands
Web Programming Essentials:
CSE 390a Lecture 1 introduction to Linux/Unix environment
introduction to Linux/Unix environment
introduction to Linux/Unix environment
introduction to Linux/Unix environment
Welcome to Linux Chap#1 Hanin Abdulrahman.
introduction to Linux/Unix environment
introduction to Linux/Unix environment
Welcome to Linux Chap#1.
introduction to Linux/Unix environment
January 26th, 2004 Class Meeting 2
Presentation transcript:

9 Linux on the Desktop

Learning Outcomes Describe Linux and its origins and list benefits and drawbacks Select, acquire, and install a distribution of Linux for the desktop Identify certain features and utilities in a Linux GUI for customizing it and performing common tasks Demonstrate the use of shell commands to accomplish common tasks Secure a Linux desktop by creating user accounts, assigning passwords, and applying file and folder permissions

Linux Overview LO 9.1

Why Learn Linux? Qualifying for a Job Improving Your Skills

Why Learn Linux? Year Event 1970s Ken Thompson of Bell Labs writes precursor to UNIX 1984 GNU created to develop a free UNIX-like OS 1988 UNIX licensees form the Open System Foundation (OSF) 1991 Linus Torvalds begins writing open-source version of a UNIX-like OS 1994 Many versions of Linux kernels freely available

Linux Today Open-source movement growing Supported by many organizations Open-source Apache HTTP Server Written for UNIX Also runs on Linux

Linux Distributions Include kernel Include bundled programs Add functionality to Linux Targeted bundled apps Desktop Server

Benefits of Linux Many distributions are free Runs well on old computers Fast GUI optional Stable Secure Open source

The KDE GUI Figure 9-1 The KDE GUI in a Fedora installation.

The Unity GUI Figure 9-2 The Unity GUI in an Ubuntu installation.

Drawbacks of Linux Lack of Centralized Support Choice of GUIs is confusing Limited software selection Limited hardware support Complexity

Finding Software for Linux Figure 9-3 The Ubuntu Software Center

Linux on Your Desktop LO 9.2

Acquiring Linux for the Desktop Many distributions available Select one that matches your needs Example of needs: GUI desktop Quick and easy setup Included software bundle Live image Ubuntu or Fedora

Installing Linux for the Desktop Connect to distribution site and download Save the ISO file Create a bootable disc Test the disc by rebooting Install on physical PC or virtual machine

Update Linux after Installation Linux distributions can have many updates Updating is time-consuming

Exploring a Linux GUI LO 9.3

Logging In to Ubuntu Linux Figure 9-4 Log in to the Linux GUI.

The Ubuntu Unity Desktop The Ubuntu Desktop bar displays at the top of the screen in the Unity GUI. Move the cursor to the Desktop bar to show the menus.

Ubuntu Unity Launcher Figure 9-5 The Launcher with icons labeled.

Searching in the Ubuntu Unity Desktop Figure 9-6 The Dash search utility displays recently used apps and files when it opens.

Browse Directories in the GUI Every user has a home directory User has full control in home User cannot make changes in other directories Path describes location of file or directory First forward slash (/) is the root Subsequent forward slashes separate directories Everything is a file to Linux

Table 9-1 Linux Default Directories Directory Purpose or Contents / The top, or root directory of a storage volume /bin Linux commands /boot Files to be loaded during Linux boot up /dev Files that represent physical devices /etc Linux system configuration files /home Home directories for each user /lib Shared libraries for programs and commands to use /mnt Mount points for removable devices /opt Optional (add-on) software packages /proc Current status of processes /root Root account home directory /sbin System commands and binary files /tmp Temporary files /usr Secondary hierarchy /var Several directories containing variable data

Updating Ubuntu The Update Manager icon appears on the Launcher. Open the Update Manager and install the updates.

System Settings Unity’s System Settings window serves the same purpose as Windows’ Control Panel and OS X’s System Preferences.

Modify the Desktop Right-click empty area of desktop Select Change Desktop Background Behavior tab controls how Launcher opens Select wallpaper Control Brightness and Lock settings Modify display settings Universal Access for ease of use

Ending a Linux Session by Logging Out Open System menu (gear) Select Log Out Figure 9-7 The Ubuntu Unity System menu.

Switching Users Click User icon The User menu opens Select User

Shutting Down, Restarting, or Suspending Linux Open System menu (gear) Select Shut Down

Linux Command-Line Interface LO 9.4

The Terminal Window in Linux Figure 9-8 A terminal windows in the Ubuntu GUI.

Linux Shell Command Syntax Each line begins with a command A space follows the command Options for a command follow Order of options not important Use a space between each option

Linux Shell Command Syntax (continued) Precede short options with a hyphen Precede long options with 2 hyphens Combine multiple short options Some commands followed by name of object

Looking at the Contents of a Directory Figure 9-9 The ls command showing a simple listing of the current directory. Figure 9-10 The ls -a command showing a listing of all items in the current directory.

Combining Shell Command Options Figure 9-11 The ls command using two options (-a and -l) showing a listing of all items in the current directory and the “long” information on each item.

The Help Manual for a Linux Command Figure 9-12 Enter the man ls command to see the manual page for the ls command.

Command-Line History Saved for current session in .bash_history Scroll through commands and reuse

Command Completion Type command and press Tab key Completes file and directory names

The date and cal Commands

Linux Feedback A message appears only if a command causes an error.

Table 9-2 Basic Shell Commands for File Management Description cd Changes current directory chmod Changes the mode or file permissions cp Copies a file ls Lists directory contents mkdir Makes a directory more Displays a text file, one screenful at a time pwd Prints the working directory rm Deletes indicated file

Table 9-3 Commonly Used Options for the ls Command ls Option Description -a Lists all files in the directory, including hidden files. Files are hidden by making the first character a period: .bash_profile -l Displays a long listing of the directory contents with all file attributes and permissions listed -F Classifies the listed objects. Directory names have a / character after the name. -S Sorts the output by size -t Sorts the output by time

A Listing of the /etc directory Figure 9-13 A listing of the /etc directory.

A Listing of the /etc directory with more details Figure 9-14 A listing of the /etc directory with more details.

Changing the Current Directory Figure 9-15 Changing to the /usr/sbin directory.

Changing to the Home Directory Figure 9-16 Changing to the Home directory using the tilde (~).

Where am I? Use the pwd command to display the path to the current directory.

Relative Path Figure 9-17 Use the command cd .. to move to the parent directory of the current directory (up one level).

Using Wildcards Figure 9-18 A portion of the results of the command ls [c-d]* when run from the /etc directory.

Creating Directories Figure 9-19 Use mkdir to create directories and ls to confirm that they were created.

Copying Files Figure 9-20 Copying the hosts file from the /etc directory to the user’s home directory.

Securing a Linux Desktop LO 9.5

Home Directories Each account has home directory User’s name assigned to directory User has full control of home directory

The Linux Root Account All-powerful account Only used when absolutely necessary Disabled by default Administrator can temporarily use root

Creating User Accounts in a Linux GUI User Accounts in System Settings First account create is Administrator type Subsequent can be Administrator or Standard Administrator can create new accounts Temporarily given ability to create accounts Must provide Administrator’s credentials

Temporarily Using Root Privileges Administrator-Type User Temporarily takes root account privileges Precede command with sudo (Superuser do) When prompted, enter administrator’s password Root privileges granted for five minutes

Using Root Privileges to Install Software Installing the finger daemon.

Table 9-4 Shell Commands for User Management Description useradd Adds a user to the system userdel Removes a user from the system passwd Changes a user’s password finger Finds a username

Creating a User with useradd Figure 9-21 Create a user with the useradd command. Confirm its creation with the finger command.

Changing User Passwords Change own password Enter passwd command alone Provide password Change password for another account Enter sudo passwd <username> Enter new password

Deleting Users Enter sudo userdel <username> Delete files in user’s home directory Delete user’s home directory Enter rmdir <directoryname> Enter rm –rf <directory-or-file-name>

File and Folder Permissions Figure 9-22 A sample listing showing attributes.

Table 9-5 Access Mode Numbers Permission Value Read 4 Write 2 Execute 1