Linux Class 2. Debian file system, superuser, editing text files, executing comands in the shell, configuring, installing and uninstalling packages.

Similar documents
Introduction. What is Linux? What is the difference between a client and a server?

Linux Systems Administration Getting Started with Linux

Perl and R Scripting for Biologists

Prerequisites: Students must be proficient in general computing skills but not necessarily experienced with Linux or Unix. Supported Distributions:

Linux Essentials. Smith, Roderick W. Table of Contents ISBN-13: Introduction xvii. Chapter 1 Selecting an Operating System 1

INTRODUCTION TO LINUX

Embedded Linux Systems. Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island

Everything about Linux User- and Filemanagement

GNU/Linux: An Essential Guide for Students Undertaking BLOSSOM

OpenSwitch OPX Installation Guide. Release 2.1.0

Linux Kung Fu. Stephen James UBNetDef, Spring 2017

NETW 110 Lab 4 Using eth0 Configuration Mounting Drives and Devices Page 1

At course completion. Overview. Audience profile. Course Outline. : 55187B: Linux System Administration. Course Outline :: 55187B::

Linux OS Fundamentals for the SQL Admin. Anthony E. Nocentino

Exam LFCS/Course 55187B Linux System Administration

Course 55187B Linux System Administration

Linux OS Fundamentals for the SQL Admin. Anthony E. Nocentino


Overview LEARN. History of Linux Linux Architecture Linux File System Linux Access Linux Commands File Permission Editors Conclusion and Questions

Linux Network Administration

Ftp Command Line Commands Linux Example Windows Putty

PiCloud. Building owncloud on a Raspberry PI

Linux Kung Fu. Ross Ventresca UBNetDef, Fall 2017

Basic Linux Security. Roman Bohuk University of Virginia

Users Manual. OP5 System 2.4. OP5 AB. Page 1 of 6

OpenSwitch OPX Installation Guide with Enhancement Package. Release 2.1.0

Linux Essentials Objectives Topics:

Outline. UNIX security ideas Users and groups File protection Setting temporary privileges. Examples. Permission bits Program language components

Installation of the OS

"Charting the Course... MOC B: Linux System Administration. Course Summary

Working with Ubuntu Linux. Track 2 Workshop June 2010 Pago Pago, American Samoa

Silexica Software Licensing Introduction & Installation Version 1.0 English

LINUX FUNDAMENTALS. Supported Distributions: Red Hat Enterprise Linux 6 SUSE Linux Enterprise 11 Ubuntu LTS. Recommended Class Length: 5 days

RG-MACC_2.0 Installation Manual

client X11 Linux workstation

1Z Oracle Linux Fundamentals (Oracle Partner Network) Exam Summary Syllabus Questions

Developing using C on imx Developer s Kits

Lec 1 add-on: Linux Intro

EASYLAMP REDHAT V1.0 DOCUMENT OWNER: OUDHUIS, JONATHAN INGRAM MICRO CLOUD EUROPE

User Guide Version 2.0

Prerequisites: Students should be comfortable with computers. No familiarity with Linux or other Unix operating systems is required.

Adafruit's Raspberry Pi Lesson 6. Using SSH

NVIDIA Professional Application Center

CS Programming Languages Fall Homework #2

Installing the Product Software

UPDATING FIRMWARE ON SUN FIRE

LINUX OS FUNDAMENTALS FOR THE SQL ADMIN

Step-by-step guide for the libradtran virtual machine. A) Installation

Short Read Sequencing Analysis Workshop

ELE409 SPRING2018 LAB0

Altiris Client Management Suite 7.1 from Symantec User Guide for Mac Management

Using Shell Commands

The instructions in this document are applicable to personal computers running the following Operating Systems:

Tcpdump. For this exercise you must again be root. Login and obtain root privileges: Note that we use three computers for this exercise.

CHAPTER 7 DEMONSTRATE THE PAN IN LINUX

GIT. A free and open source distributed version control system. User Guide. January, Department of Computer Science and Engineering

Linux crash lecture by Andrey Lukyanenko

Operating Systems Linux 1-2 Measurements Background material

How To Start Mysql Using Linux Command Line Client In Ubuntu

Prerequisites: General computing knowledge and experience. No prior knowledge with Linux is required. Supported Distributions:

14. Configuring Telnet in Knoppix

PASS4TEST IT 인증시험덤프전문사이트

StoneLock Gateway Installation Manual. v.1.7

Setting up a Chaincoin Masternode

Definition Center Installation for Linux

Network Monitoring & Management. A few Linux basics

Ftp Command Line Manual Windows Username Password Linux

Setting up my Dev Environment ECS 030

LPIC-l/CompTIA. Certification. Lmux+ ONE. ALL a IN. (Exams LPIC-1/LX0-101 & LXO-102) Robb H. Tracy EXAM GUIDE. Graw Hill

Create Test Environment

VIRTUAL GPU LICENSE SERVER VERSION , , AND 5.1.0

Some Ubuntu Practice...

*nix Crash Course. Presented by: Virginia Tech Linux / Unix Users Group VTLUUG

LAB #7 Linux Tutorial

UNIT 9 Introduction to Linux and Ubuntu

COUCHDB - INSTALLATION

Basic UNIX system administration

Installation of the DigitalSystemsVM virtual machine

Nortel Unified Communications Management. Fundamentals. Release: 1.0 Document Revision: NN

Operating system hardening

Linux Command Line Primer. By: Scott Marshall

This material is based on work supported by the National Science Foundation under Grant No

Welcome to getting started with Ubuntu Server. This System Administrator Manual. guide to be simple to follow, with step by step instructions

How to Use This Lab Manual

RG-MACC-BASE_v2.01. Installation Guide

Linux Fundamentals (L-120)

EASYLAMP UBUNTU V1.0 DOCUMENT OWNER: OUDHUIS, JONATHAN INGRAM MICRO CLOUD EUROPE

TEL2821/IS2150: INTRODUCTION TO SECURITY Lab: Operating Systems and Access Control

Linux Software Management. Linux System Administration COMP2018 Summer 2017

A Step by Step Guide to Installing VPN on Raspberry Pi. Whitepaper

SOFT-AM-0081_R3. AX3800S/AX3600S Software Upgrade Guide

Let us ping! First we will learn the Hello World of a networked machine.

CMP3214 Computer Communication Networks. Lecture 4 NTE. Network Training Emulator. Diarmuid Ó Briain CEng, FIEI, FIET, CISSP.

SAS Event Stream Processing for Edge Computing 4.3: Deployment Guide

Thousands of Linux Installations (and only one administrator)

Ftp Get Command Line Linux Proxy Settings Via

StampA5D3x/PortuxA5/PanelA5. Quickstart Guide

Enabling CDC_ETHER Connection for Skywire GSM CAT1

Getting Started with OpenSolaris An Introduction for Technical Evaluators

Introduction to Linux Workshop 1

Transcription:

Linux Class 2 Debian file system, superuser, editing text files, executing comands in the shell, configuring, installing and uninstalling packages. Abel Guzman sanchez Systems and networks Engineer Www.abelworld.com

File system and users Introduction

Superuser In computing, the superuser is a special user account used for system administration. Depending on the operating system, the actual name of this account might be: root, administrator, admin or supervisor. In some cases the actual name is not significant, rather an authorization flag in the user's profile determines if administrative functions can be performed. In operating systems which have the concept of a superuser, it is generally recommended that most application work be done using an ordinary account which does not have the ability to make system-wide changes. Taken from: http://en.wikipedia.org/wiki/superuser 2014-02-16

root Root is where every thing starts in Linux systems is like the alpha of the system. Is the father directory (root directory represented by / ) in the file system. And root is also the superuser. ls / ls la / The root user can do almost anything in the Linux OS.

su - command to change the user su su su class whoami Difference between $ and # symbol in the Linux terminal is that $ is for not privileged users and # is for superuser.

System restat and shutdown

init run levels-command init 0 Shootsdown the computer. init 6 Reboots the system. Homework A: What does the other init from 1 to 5 do? What is init run levels?

View Network Configuration

Ifconfig Network Interface command ifconfig: the command shows the network interfaces configuration. root@khs01sw10:~# ifconfig eth0 Link encap:ethernet Hwaddr 08:00:27:a0:7e:72 inet addr:10.175.0.1 Bcast:10.175.1.255 Mask:255.255.254.0 lo Link... (...) root@khs01sw10:~#

Remote connections

ssh OpenSSH is a FREE version of the SSH connectivity tools that technical users of the Internet rely on. Users of telnet, rlogin, and ftp may not realize that their password is transmitted across the Internet unencrypted, but it is. OpenSSH encrypts all traffic (including passwords) to effectively eliminate eavesdropping, connection hijacking, and other attacks. Additionally, OpenSSH provides secure tunneling capabilities and several authentication methods, and supports all SSH protocol versions. Taken from: http://www.openssh.com/ 2014-02-16 The Debian Official CD version comes with the ssh client installed by default. (that means you can use it to connect to ssh servers) The ssh server can also be installed from repository.

ssh in action root@khs01wxl001:~# ssh root@10.175.0.1 root@10.175.0.1's password: Linux khs01sw10 2.6.32 5 amd64 #1 SMP Mon Sep 23 22:14:43 UTC 2013 x86_64 (...) Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Mon Feb 17 15:50:11 2014 from 10.175.0.167 root@khs01sw10:~#

Organization of the root directory and HDDs in Linux

File system organization The main two differences are: The drives are mounted in a folder. The directories are organized following FHS Conventions. Windows FS Linux FS C, D, E...

Homework B - Mount command # mount Research about how else can we use the mount commandmount

File system structure Filesystem Hierarchy Standard The Filesystem Hierarchy Standard (FHS) defines the directory structure and directory contents in Unix and Unix-like operating systems, maintained by the Linux Foundation. The current version is 2.3, announced on 29 January 2004.[1] Taken from: http://en.wikipedia.org/wiki/filesystem_hierarchy_standard on 2014-02-16.

Main directories that we will use along the classes (Use ls comand) /etc Configuration files for most of the softwares eg: ssh, network. /home users folder exept for the root user eg: class, abel. /var -variable data eg: databases, caches, logs. Homework C: Where is the root user folder?

Editing files with Nano nano shell text editor. vi shell text editor. gedit Graphic text editor. To edit a file: $ nano /path/to/file. Nano internal commands: CTRL + x: closes the file. CTRL + o: saves. CTRL + c: cursor position. CTRL + k: cuts from nano. CTRL + y: paste to nano from nano.

Exersice 1: Create a text file called class1 in /home/class. Write some content and practice the comands from last slide.

Repository Commonly refers to a storage location, often for safety or preservation. Many software publishers and other organizations maintain servers on the Internet for this purpose, either free of charge or for a subscription fee. Repositories may be solely for particular programs, such as CPAN for the Perl programming language, or for an entire operating system. Operators of such repositories typically provide a package management system, tools intended to search for, install and otherwise manipulate software packages from the repositories.

Repository For example, many Linux distributions use Advanced Packaging Tool (APT), commonly found in Debian based distributions, or yum found in Red Hat based distributions. There are also multiple independent package management systems, such as pacman, used in Arch Linux and equo, found in Sabayon Linux. Taken from: http://en.wikipedia.org/wiki/repository 2014-02-16.

Package A package format is a type of archive containing files and additional metadata found on packages. [1] While the archive file format itself is unchanged, package formats additionally specify the contents, such as requiring a manifest file or certain directory layout. The term is particularly used on Unix systems, and there are several formats available, both for Linux distributions and BSD systems, though the concept also includes pkg files on Mac OS X, MSI files on Windows, JAR files for Java, among others.

Softwares are a type of package Package Help/Docs Software/Program/app

Debian Package Management Apt-get - package managet aptitude higher level package manager. aptitude install ssh aptitude install mc Homework C - What us the diference between: aptitude update aptitude install aptitude upgrade How do you remove a packege? How can you search for a package?

Thank You!