Basic Linux & Package Management. Original slides from GTFO Security

Similar documents
Linux System Administration on Red Hat

Partek Flow Installation Guide

OpenGeo Suite for Linux Release 3.0

Command Line Crash Course For Unix

Installing Virtual Coordinator (VC) in Linux Systems that use RPM (Red Hat, Fedora, CentOS) Document # 15807A1-103 Date: Aug 06, 2012

Command Line - Part 1

How to Install and Run Tibia on Linux Using Wine without Windows Contents

LSN 10 Linux Overview

Linux command line. An introduction to the Linux command line for genomics. Susan Fairley

Ubuntu Professional Training Course Overview (E-learning, Ubuntu LTS)

CS197U: A Hands on Introduction to Unix

An Introduction to the Linux Command Shell For Beginners

The Linux System. o Updating without touching the user's files and configurations.

How To Run A Password Manager On A 32 Bit Computer (For 64 Bit) On A 64 Bit Computer With A Password Logger (For 32 Bit) (For Linux) ( For 64 Bit (Foramd64) (Amd64 (For Pc

INASP: Effective Network Management Workshops

Birmingham Environment for Academic Research. Introduction to Linux Quick Reference Guide. Research Computing Team V1.0

CDH 5 Quick Start Guide

Massey University Follow Me Printer Setup for Linux systems

IT6204 Systems & Network Administration. (Optional)

Tutorial 0A Programming on the command line

University of Amsterdam VPN Linux User Guide (Version 1.2)

ULTEO OPEN VIRTUAL DESKTOP V4.0

Of Penguins and Wildebeest. Anthony Rodgers VA7IRL

CA and SSL Certificates

Recommended File System Ownership and Privileges

Installing QuickBooks Enterprise Solutions Database Manager On Different Linux Servers

Installation & Upgrade Guide

INUVIKA OVD INSTALLING INUVIKA OVD ON UBUNTU (TRUSTY TAHR)

The objective of this lab is to learn how to set up an environment for running distributed Hadoop applications.

Introduction to Mac OS X

Open Source Computational Fluid Dynamics

Computer Science and Engineering Linux Cisco VPN Client Installation and Setup Guide

Zulu Installation Guide. Zulu Release 8.9 August 25, 2015

A UNIX/Linux in a nutshell

Introduction to Operating Systems

Configuring MailArchiva with Insight Server

What is a Package Management System?

Installation Guide. Copyright (c) 2015 The OpenNMS Group, Inc. OpenNMS SNAPSHOT Last updated :19:20 EDT

Syntax: cd <Path> Or cd $<Custom/Standard Top Name>_TOP (In CAPS)

Basic C Shell. helpdesk@stat.rice.edu. 11th August 2003

ULTEO OPEN VIRTUAL DESKTOP UBUNTU (PRECISE PANGOLIN) SUPPORT

Web Hosting: Pipeline Program Technical Self Study Guide

Cassandra Installation over Ubuntu 1. Installing VMware player:

Unix Sampler. PEOPLE whoami id who

Lab 1: Introduction to the network lab

Installation Guide for AmiRNA and WMD3 Release 3.1

MySQL Backups: From strategy to Implementation

Unix/Linux Forensics 1

QuickBooks Enterprise Solutions. Linux Database Server Manager Installation and Configuration Guide

Installing and Running MOVES on Linux

Command-Line Operations : The Shell. Don't fear the command line...

Integrating Apache Web Server with Tomcat Application Server

Acronis Backup & Recovery 10 Server for Linux. Update 5. Installation Guide

Thirty Useful Unix Commands

Deploying Ubuntu Server Edition. Training Course Overview. (Ubuntu LTS)

Linux Overview. Local facilities. Linux commands. The vi (gvim) editor

Monitoring Clearswift Gateways with SCOM

Single Node Hadoop Cluster Setup

Net/FSE Installation Guide v1.0.1, 1/21/2008

Stata R Release 13 Installation Guide

Linux Crash Course. Prepared by Amgad Madkour

Apt-mirror. Copyright c Dr. Kent L. Miller Jan-20

CS 103 Lab Linux and Virtual Machines

USEFUL UNIX COMMANDS

Apache and Virtual Hosts Exercises

Setting up Ensembl Solr Search on an Ubuntu external server 22nd November 2013

Cloud Homework instructions for AWS default instance (Red Hat based)

User Guide - escan for Linux File Server

A candidate following a programme of learning leading to this unit will be able to:

UPSMON PRO Linux --- User Manual

A Crash Course on UNIX

An A-Z Index of the Apple OS X command line (TERMINAL) The tcsh command shell of Darwin (the open source core of OSX)

Creating a DUO MFA Service in AWS

Procedure to Create and Duplicate Master LiveUSB Stick

Partitioning. Files on the Hard Drive. Administration of Operating Systems DO2003. Partition = Binder with index. Write file = Insert document

A SHORT INTRODUCTION TO DUPLICITY WITH CLOUD OBJECT STORAGE. Version

Object Storage and Enterprise Repository Installation manual

Server Installation/Upgrade Guide

Acronis Backup & Recovery 10 Server for Linux. Installation Guide

UNIX / Linux commands Basic level. Magali COTTEVIEILLE - September 2009

IMPLEMENTATION OF CIPA - PUDUCHERRY UT SERVER MANAGEMENT. Client/Server Installation Notes - Prepared by NIC, Puducherry UT.

L01 Introduction to the Unix OS

Load Balancing/High Availability Configuration for neoninsight Server

BF2CC Daemon Linux Installation Guide

Cisco Networking Academy Program Curriculum Scope & Sequence. Fundamentals of UNIX version 2.0 (July, 2002)

Preparing for the Installation

Introduction to Linux and Cluster Basics for the CCR General Computing Cluster

Setting up Radmind For an OSX Public Lab

User and Reference Manual

F-Response Universal Manual

GeBro-BACKUP. Die Online-Datensicherung. Manual Pro Backup Client on a NAS

Installing MooseFS 2.0 Step by Step Tutorial. Core Technology Development & Support Team

Installing Hadoop. Hortonworks Hadoop. April 29, Mogulla, Deepak Reddy VERSION 1.0

UNIX Basics. Ian Darwin TCP Informatics January, Presented from a Mac using Apple s Keynote presentation software

simplify monitoring Consolidated Monitoring, Analysis and Automated Remediation For Hybrid IT Infrastructures

Transcription:

Basic Linux & Package Management Original slides from GTFO Security

outline Linux What it is? Commands Filesystem / Shell Package Management

Services run on Linux mail dns web central authentication router database virtual machines voip anything

Linux The core of many computers and devices Android Ubuntu Desktop Red Hat / Fedora Linux is a term to describe a set of tools Command line programs Programs such as email and websites Shell scripts Free and Open Source approach Layout of filesystem

Linux Linux has distributions/variants Debian/RedHat/SUSE Ubuntu - Debian based Mint - Debian based Fedora - RedHat based CentOS - RedHat based Trisquel - Debian based

basic commands man pwd cd, ls, cp, mv, rm mkdir cat, less vi, nano, emacs grep, lsof sudo, su passwd top chmod, chown, chgrp ps netstat who which

cat $cat filename #write the file to the screen $cat > filename #write input to a file $echo hi cat #take input from a bash pipe $echo hi cat cat

grep $cat filename grep "hello" $cat filename grep -v "hello" $cat /usr/share/dict/words grep -B 5 base $cat /usr/share/dict/words grep -A 5 base

grep $head $tail $more $less prints out the top of a file prints out the bottom of a file shows a file a page at a time same as more but lets to scroll up

moving files $mv filename1 filename2 same renaming $cp filename1 filename2 two files exist now $cat filename1 > filename2

directories $mkdir directory1 creates a folder $cd directory1 moves into a new folder $cd.. moves out of a folder $pwd prints the path from the root

processes $ps lists the processes that are running $top shows processes using the most cpu

editing files $vi filename $nano filename $nano filename cat filename1 grep -v hello > filename2

permissions files and directories have permissions two dimensions: users, group, others read, write, execute every file is owned by a user and a group user has several groups

permissions example: drwxr-xr-x 2 root root bin -rw-r----- 1 root shadow shadow

filesystem executables (programs): /usr/local/bin /usr/bin /bin configuration files: /etc logs: /var/logs user files: /home devices: /dev

package management system what is it?: a tool that automates the process of installing, upgrading, configuring and removing software other purposes Verifying file checksums for correct and complete packages. Verifying digital signatures to authenticate origin. Applying file archivers to manage encapsulated files. Upgrading software with latest versions. Grouping of packages by function to reduce user confusion. Managing dependencies to ensure a package is

package what's a package?: packages, are distributions of software, application and data. they typically contain meta such as information about what it is, purpose, name, checksum, and a list of dependencies.

package mangers different flavors of linux = different package managers Common Terminal Management Apps apt-get aptitude dpkg rpm yum Extension.deb.deb / ported to.rpm.deb.rpm.rpm Other common tools wget

apt-get configuring apt-get /etc/apt/sources.list: Locations to fetch packages from. /etc/apt/sources.list.d/: Additional source list fragments. /etc/apt/apt.conf: APT configuration file. /etc/apt/apt.conf.d/: APT configuration file fragments. /etc/apt/preferences: version preferences file. /var/cache/apt/archives/: storage area for retrieved package files. /var/cache/apt/archives/partial/: storage area for package files in transit. /var/lib/apt/lists/: storage area for state information for each package /var/lib/apt/lists/partial/: storage area for state information in transit.

Quick Commands apt-get install <PKG> apt-get remove --purge <PKG> apt-get autoremove <PKG> apt-get -s <PKG> apt-get -u install <PKG> apt-get -u upgrade apt-get clean & apt-get autoclean apt-get dist-upgrade apt-file search <FILE> apt-file update

Quick Commands 2 apt-file list <PKG> apt-file search "libsupp.a" apt-cache showpkg <PKG> apt-cache search "Intrusion Detection" apt-cache pkgnames sort apt-cache show <PKG> apt-key sha1sum / md5sum <FILE> dpkg -l grep dpkg -L dpkg -S /bin/netstat dpkg -s <PKG> grep Status

Debian package management cheat sheet quick reference for apt-get and dpkg commands and tricks http://www.cyberciti.biz/tips/linux-debian-packagemanagement-cheat-sheet.html quick Package Manager cheat sheet (rpm, dpkg, yum, apt, solaris, aix) http://nakedape.cc/wiki/packagemanagercheatsheet https://wiki.archlinux.org/index.php/pacman_rosetta