Topics. Installation Basics of Using GNU/ Linux Administration Tools

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

Linux Essentials. Programming and Data Structures Lab M Tech CS First Year, First Semester

GNU/Linux 101. Casey McLaughlin. Research Computing Center Spring Workshop Series 2018

Linux Essentials Objectives Topics:

Chapter Two. Lesson A. Objectives. Exploring the UNIX File System and File Security. Understanding Files and Directories

Chapter-3. Introduction to Unix: Fundamental Commands

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

Embedded System Design

Filesystem Hierarchy Operating systems I800 Edmund Laugasson

Linux Systems Administration Getting Started with Linux

Computer Systems and Architecture

Lab Working with Linux Command Line

Linux Command Line Primer. By: Scott Marshall

Introduction to Linux

Introduction to Linux

Computer Systems and Architecture

Chap2: Operating-System Structures

Hands-on Keyboard: Cyber Experiments for Strategists and Policy Makers

Presented by Bill Genske Gary Jackson

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

Commands are in black

Linux Kung-Fu. James Droste UBNetDef Fall 2016

Introduction to the UNIX command line

Introduction to Unix: Fundamental Commands

CSE Linux VM. For Microsoft Windows. Based on opensuse Leap 42.2

M.C.A. (Sem.-lll) (CBCS) Examination November CCA-3003 Operating System and LinuxlUnix programming

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

Introduction to remote command line Linux. Research Computing Team University of Birmingham

Essential Unix and Linux! Perl for Bioinformatics, ! F. Pineda

CS Unix Tools. Lecture 2 Fall Hussam Abu-Libdeh based on slides by David Slater. September 10, 2010

Introduction to Linux

BIOINFORMATICS POST-DIPLOMA PROGRAM SUBJECT OUTLINE Subject Title: OPERATING SYSTEMS AND PROJECT MANAGEMENT Subject Code: BIF713 Subject Description:

Unix/Linux Basics. Cpt S 223, Fall 2007 Copyright: Washington State University

Getting your department account

INF322 Operating Systems

Introduction to Linux (Part I) BUPT/QMUL 2018/03/14

Introduction to Unix The Windows User perspective. Wes Frisby Kyle Horne Todd Johansen

Linux Operating System Environment Computadors Grau en Ciència i Enginyeria de Dades Q2

Unix System Architecture, File System, and Shell Commands

Linux Kung Fu. Stephen James UBNetDef, Spring 2017

Introduction to Linux. Woo-Yeong Jeong Computer Systems Laboratory Sungkyunkwan University

ECE 471 Embedded Systems Lecture 10

Outline. Structure of a UNIX command

LAB #7 Linux Tutorial

Lab 2A> ADDING USERS in Linux

Freescale FAE75 Training Genesi Pegasos II LinuxTraining. Maurie Ommerman June 10, 2004

Introduction to Linux

Perl and R Scripting for Biologists

TJU Syllabus for Linux Fundamentals and Applications

Chapter 6. Linux File System

Full file at

CS370 Operating Systems

Introduction to the shell Part II

CS CS Tutorial 2 2 Winter 2018

5/8/2012. Creating and Changing Directories Chapter 7

INTRODUCTION TO LINUX

Linux at the Command Line Don Johnson of BU IS&T

More Raspian. An editor Configuration files Shell scripts Shell variables System admin

Introduction to UNIX command-line

File System Hierarchy Standard (FHS)

1 Installation (briefly)

LiLo Crash Recovery. 1.0 Preparation Tips. 2.0 Quick Steps to recovery

A Brief Introduction to Unix

Introduction to the Linux Command Line

CS197U: A Hands on Introduction to Unix

Intro to Linux. this will open up a new terminal window for you is super convenient on the computers in the lab

CS 143A. Principles of Operating Systems. Instructor : Prof. Anton Burtsev

CSCM98 Lab Class #5 Getting familiar with the command line

National University of Computer and Emerging Sciences Operating System Lab - 02 Lab Manual

Linux crash lecture by Andrey Lukyanenko

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

Overview of the UNIX File System

UNIX. The Very 10 Short Howto for beginners. Soon-Hyung Yook. March 27, Soon-Hyung Yook UNIX March 27, / 29

Datathon 2018 Connecting to MicroStrategy on AWS Cloud

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering

Linux for Beginners. Windows users should download putty or bitvise:

Development Environment Embedded Linux Primer Ch 1&2

Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p.

On successful completion of the course, the students will be able to attain CO: Experiment linked. 2 to 4. 5 to 8. 9 to 12.

Unix Filesystem. January 26 th, 2004 Class Meeting 2

CSCI 2132 Software Development. Lecture 4: Files and Directories

Manage Directories and Files in Linux. Objectives. Understand the Filesystem Hierarchy Standard (FHS)

CompTIA Linux Course Overview. Prerequisites/Audience. Course Outline. Exam Code: XK0-002 Course Length: 5 Days

This lab exercise is to be submitted at the end of the lab session! passwd [That is the command to change your current password to a new one]

CS/CIS 249 SP18 - Intro to Information Security

Practical Session 0 Introduction to Linux

List of Linux Commands in an IPm

UNIX File Hierarchy: Structure and Commands

UNIX Essentials Featuring Solaris 10 Op System

acmteam/unix.pdf How to manage your account (user ID, password, shell); How to compile C, C++, and Java programs;

UNIX Concepts COMPSCI 386

Index. Symbols * (asterisks), 104? (question mark), 104

System Administration and Networking

Unix Workshop Aug 2014

Introduction to Linux. Roman Cheplyaka

Connecting to ICS Server, Shell, Vim CS238P Operating Systems fall 18

Introduction to UNIX. Logging in. Basic System Architecture 10/7/10. most systems have graphical login on Linux machines

Linux Reference Card - Command Summary

Performing Maintenance Operations

Washington WASHINGTON UNIVERSITY IN ST LOUIS

Transcription:

GNU/ Linux Basics

Topics Installation Basics of Using GNU/ Linux Administration Tools

Installation

Installing Using the GUI Disc Partitioning Allocation of swap space Selection of packages to install Configuring system settings Setting the user account

Network Installation Note the network location of the Linux CDs (Say 192.168.36.3/ sw/ linux) Insert the first installation CD Type linux askm ethod Select network Installation Provide the IP and location when asked

Installing new packages We will show you directly how to do it! When you get the source code of a new software. Usually follow these steps./ configure make sudo make install

Linux Recovery Insert the Linux Installation CD Type linux rescue Select the Linux version on the hard disc after it is detected You will be provided with a root login after the system boots up

Recovering the GRUB If you install Windows after using Linux, this will erase and write onto the boot sector You should use the linux recover mode as described previously After you obtain the root login, you should type the following commands to restore the GRUB. Type chroot / mnt/ sysimage Type grub- install / dev/ hda

Basics

File System Structure / root / home / root / mnt / boot / etc / usr / bin / lib / tmp The hom e d irectory of the ad m inistrator user

File System Structure / home / home / root / mnt / boot / etc / usr / bin / lib / tmp Contains the hom e d irectories of norm al users

File System Structure / mnt / home / root / mnt / boot / etc / usr / bin / lib / tmp You can access CDROM, wind ows hard - d rives and network d rives here

File System Structure / bin / home / root / mnt / boot / etc / usr / bin / lib / tmp Contains executable p rogram s

File System Structure / etc / home / root / mnt / boot / etc / usr / bin / lib / tmp Contains im p ortant configuration files of several p rogram s

File System Structure / lib / home / root / mnt / boot / etc / usr / bin / lib / tmp Contains d ynam ic library m od ules

File System Structure / tmp / home / root / mnt / boot / etc / usr / bin / lib / tmp Contains tem p orary files. You can also store tem p orary files here

File System Structure / usr / home / root / mnt / boot / etc / usr/ lib / bin / lib / tmp Docum entation /usr/share/doc An extra p lace for/ lib An extra / bin /usr/bin

File System Structure / boot / home / root / mnt / boot / etc / usr / bin / lib / tmp This is where the Op erating System boots from!!!!

Navigating the Files Listing the files ls Making a new directory m kdir Changing to a directory cd Clearing the screen clear Removing a file rm Linking to a file ln, ln - s Moving a file mv

Navigating the Files Where am I??? pwd

The Coolest Desktops KDE Gnome- Desktop Try browsing the file system structures using the GUI File Browser!!! More fun to use than boring windows You can have gservelets too!

Applications Unlimited

Shell : Cooler than Desktops How to list all jpg images whose filenames start with t and contain at in between? ls t*at*.jp g teens- at- sea.jp g tatto.jp g thatsit.jp g tom m ycat.jp g

Shell : system properties What is the time? date Show me the calendar of 2007 cal 2007 How much of disc space is free? df - h What programs am I running now? ps x How busy is the cpu now? tload Compare all the processes based on how they are eating memory and CPU time : top

Shell : redirection How to save the list of files into a new text file?? ls > files- list.txt How to see what is in the file now? cat files- list.txt

Shell : file- search How to search for all the jpg images that are hidden inside the subfolders of the current directory? find. - nam e *.jp g Where in the computer are the songs of the athadu movie? locat e *athadu*

Shell : variables What is your hom e directory? echo $HOME I found out about this cool command called ifconfig, but it is not running. which ifconfig / sbin/ ifconfig echo $PATH PATH= $PATH:/ sbin/ What if I have more than one shell running? To do get the same effect in all the shells, ex port PATH= $PATH:/ sbin/

Shell : pipe How to find out all the images whose file- name contains a number in between? ls *jp g *gif grep [0-9] How to further find out if any of these files begin with the word James? ls *jp g *gif grep [0-9] grep ^ Jam es

Shell : Command Line Programs How to edit a file? emacs, vi How to print a file? lpr filename.pdf How to increase the volume? aumix How to browse in text mode!!? links How to listen to mp3s? mplayer How to check email? pine How to convert a file format? convert a.jpg a.gif

Shell : Isn t it awesome? Why d o I need a Desktop at all!!?

Shell : Having fun with users How to know if my friend is logged in now? w friend- nam e How to know my friend s phone number? finger friend- nam e How to change my phone number so my friends can see? chfn How to write to friends? write How to talk to friends? talk When did my friend last log in?? last friend- nam e

Shell : How to open.zip files?? unzip nicepictureshehe.zip Also gunzip notsonicepicshehe.zip Som etim es tar - x vzf tarpics.tar.gz Some other times tar - xvjf tarpics.tar.bz2 What if I want to put everything into an archive? You can do zip pics.zip pics/ You can also do tar - cvzf pics.tgz pics/

How to set permissions Each file has 3 types of users owner, group of the owner and all other users. Each file has 3 types of permissions read, write and execute How to change the permissions to a file chmod How to see the permissions set to a file ls - l filename

Connecting from Remotely You can use the telnet/ ssh client putty from a Windows m achine From a linux machine use ssh IP- address You can install the XServer program on your windows machine and export your linux desktop there!!! Let s say your IP is 192.168.36.2 Start the XServer, connect through putty and run the following com m ands. ex port DISPLAY= 192.168.36.2:0.0 gnom e- session &

Help!!!!!! How to use a command? man How to use a command? info Why is anything not working? Google on the error message Where to find software to download? www.sourceforge.net, www.rpm find.net Where to find more help? Form a mailing list!! Join other mailing lists.

Administration Tools

Managing Users To add a new user useradd To delete a user userdel To change the group of a user chgrp To assign a file or folder to a user chown To login as that user su user To login as root su - To change the password passwd

Mounting File Systems Mounting the music on your Windows drive : mkdir / mnt/ win- e df - h mount / dev/ hda6 / mnt/ win- e Unm ounting the data umount / mnt/ win- e Mounting the CDROM mount / dev/ cdrom / mnt/ cdrom Unm ounting um ount / m nt/ cdrom

Configuring the Network You can set the IP using netconfig You have to restart the network using service network restart You can check the IP with ifconfig You can check if the net is working by pinging the gateway ping 172.16.8.1 You can stop/ start the network by using service network stop/ start

Configuring the I/ O Devices With Root Password, you can use several GUI based applications to configure the system. system- config- soundcard system- config- mouse system- config- printer system- config- display system- config- network

Editing.conf files in / etc / etc/ grub.conf for GRUB settings / etc/ crontab for setting processes to run periodically at a time of the day / etc/ inittab for deciding how you want your computer to boot up single user, multi user, GUI/ textmode etc. / etc/ passwd (not for editing) contains the login, group and home directory information of all the users

Happy Geeking