Getting Started with Linux Douglas Thain University of Wisconsin, Computer Sciences Condor Project October 2000.

Slides:



Advertisements
Similar presentations
Introduction to the Omega Server CSE Overview Intro to Omega Basic Unix Command Files Directories Printing C and C++ compilers GNU Debugger.
Advertisements

Linux, it's not Windows A short introduction to the sub-department's computer systems Gareth Thomas.
Linux Orientation Computer Systems Lab Computer Sciences Department Room 2350.
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Jump to first page Unix Commands Monica Stoica Jump to first page Introduction to Unix n Unix was born in 1969 at Bell Laboratories, a research subdivision.
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
CS1020: Intro Workshop. Topics CS1020Intro Workshop Login to UNIX operating system 2. …………………………………… 3. …………………………………… 4. …………………………………… 5. ……………………………………
Basic Unix Dr Tim Cutts Team Leader Systems Support Group Infrastructure Management Team.
1 Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET201.
Prof. R. Willingale Department of Physics and Astronomy 2nd Year C+R 2 nd Year C and R Workshop Part of module PA2930 – 2.5 credits Venue: Computer terminal.
1 Some basic Unix commands u Understand the concept of loggin into and out of a Unix shell u Interact with the system in a basic way through keyboard and.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction What is Unix? An operation system (OS), similar to Windows, MacOS X Why learn Unix? Greatest Software.
A Mini UNIX Tutorial. What’s UNIX?  An operating system run on many servers/workstations  Invented by AT&T Bell Labs in late 60’s  Currently there.
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.
Using the “CLI” Unix / Linux Preparation Course May 25 Djibouti.
Introduction to UNIX/Linux Exercises Dan Stanzione.
Computational physics PY2050 Course Details:
Chapter 10 – UNIX. History In late 1960s, two employees of Bell Labs (Ken Thompson & Dennis Ritchie) designed a new operating system to overcome the constraints.
COMP1070/2002/lec3/H.Melikian COMP1070 Lecture #3 v Operating Systems v Describe briefly operating systems service v To describe character and graphical.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
Unix Primer. Unix Shell The shell is a command programming language that provides an interface to the UNIX operating system. The shell is a “regular”
Nick Geoghegan1 Introduction to Linux Workshop. Nick Geoghegan2 Getting Started Download the following files:
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
COSC513 Project Linux Features Instructor: Prof. Mort Anvari Student: Yingfeng Luo ID: #
Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free.
HPC at HCC Jun Wang Outline of Workshop1 Overview of HPC Computing Resources at HCC How to obtain an account at HCC How to login a Linux cluster at HCC.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction Unix-like system is everywhere Linux Android for smartphones Google Chrome OS for Chromebook Web.
Operating System - Linux Ph. D. Course Work : PHYS 601 Statistics and Computer Applications Presented By: Sanjay Godara Dept. of Physics & Astrophysics.
Chapter 4 System Software. Software Programs that tell a computer what to do and how to do it. Sets of instructions telling computers to perform actions.
1 Editing a C Program 01/16/15. 2 Objective Use Linux to edit, compile and execute a C program.
Installation Overview Lab#2 1Hanin Abdulrahman. Installing Ubuntu Linux is the process of copying operating system files from a CD, DVD, or USB flash.
Natawut NupairojAssembly Language1 Unix Survival Guide.
INVITATION TO COMPUTER SCIENCE, JAVA VERSION, THIRD EDITION Chapter 6: An Introduction to System Software and Virtual Machines.
COP3502: Introduction to Computer Science Yashas Shankar.
Agenda Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Review next lab assignments Break Out Problems.
Getting started: Basics Outline: I.Connecting to cluster: ssh II.Connecting outside UCF firewall: VPN client III.Introduction to Linux IV.Intoduction to.
Using Commands Unix / Linux Preparation Course May 6, 2012 Serrekunda, The Gambia.
Introduction to UNIX Geraint Vaughan. What is UNIX? Command-line operating system (not point- and click) Designed for ‘experts’ Lots of different variants.
Unix and Samba By: IC Labs (Raj Kidambi). What is Unix?  Unix stands for UNiplexed Information and Computing System. (It was originally spelled "Unics.")
CS2204: Introduction to Unix January 19 th, 2004 Class Meeting 1 * Notes adapted by Christian Allgood from previous work by other members of the CS faculty.
Linux and Java Basics. What is Linux? Operating system by Linus Torvalds that was a clone of Unix (thus Linux) Free and open source – this is the reason.
Introduction to Programming Using C An Introduction to Operating Systems.
Using the “CLI” Unix / Linux Preparation Course June 9, 2013 Lusaka, Zambia.
COP3502: Introduction to Computer Science Yashas Shankar Lecture #2.
Introduction to UNIX CS 2204 Class meeting 1 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
More on Using onyx 8/28/13. Program 1 Due a week from today. See website for details.
Unix Servers Used in This Class  Two Unix servers set up in CS department will be used for some programming projects  Machine name: eustis.eecs.ucf.edu.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
Linux A practical introduction. 1)Background and Getting Started Linux is an operating system with multiple providers Red Hat/CentOS (our version) Ubuntu.
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.
Chapter Eight Exploring the UNIX Utilities. 2 Lesson A Using the UNIX Utilities.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Learning Unix/Linux Based on slides from: Eric Bishop.
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
By Jonathan Rinfret UNIX/LINUX By Jonathan Rinfret
Overview of Linux Fall 2016 Dr. Donghyun Kim
ENEE150 Discussion 01 Section 0101 Adam Wang.
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
CS1010: Intro Workshop.
Getting started with CentOS Linux
Chapter 11 Command-Line Master Class
Andy Wang Object Oriented Programming in C++ COP 3330
Unix Shells.
Computer Science I CSC 135.
College of Engineering
Getting started with CentOS Linux
Using emacs and G++ at U. W.
Yung-Hsiang Lu Purdue University
Presentation transcript:

Getting Started with Linux Douglas Thain University of Wisconsin, Computer Sciences Condor Project October 2000

Who are we? Mr. Douglas Thain University of Wisconsin (Formerly University of Minnesota) I/O in widely distributed systems Dr. Patrick Schelling Argonne National Labs (Formerly University of Minnesota) Atomic modeling Both resident at NCST October 15-27

Lectures and Workshops “Getting Started with Linux” Editing, compiling, and graphing on the new Linux machines. “Condor by Example” Managing 100s of jobs over weeks or months with Condor. “Installing and Managing Condor” Technical matters of running Condor.

Overview Lecture Cluster Overview What is Linux? Software Workshop Logging In and Getting Help Compiling a Program Graphing Results

Linux Cluster One large server 800 MHz CPU, 512 MB memory, 20 GB disk Five smaller client machines 666 MHz CPU, 128 MB memory, 10 GB disk All run the Linux operating system Managed by Condor software

Cluster Overview People may sit and work at any client. Condor software will make use of clients that are not in use. Jobs restarted after power failures. Jobs moved to idle machines. Jobs run in the middle of the night. More about Condor at 2nd lecture.

Cluster Overview Server Client Work managed by Condor

Cluster Overview Server Client Work managed by Condor

Cluster Overview Server Client Work managed by Condor

What is Linux? Linux is a free operating system. An operating system is the basic software which manages a computer. Windows NT Macintosh OS Linux is a variant of the UNIX operating system. Solaris IRIX

Advantages of Linux Linux is free: Price is zero. Unlimited copies permitted. Read and change source code. Manuals are on-line. Common in scientific circles. Text interface is good for batch processing and management.

Disadvantages of Linux Text interface is not as user-friendly as Windows. But, has StarOffice software which is looks much like Windows. Less commercial software available. But, more scientific software available. More difficult to set up. But, once set up, easy to manage.

Available Software Most software for Linux is also free! The GNU project is the source of much free software: gcc, g77, emacs Workshop will concentrate on these text-based programs.

Available Software Compilers: G77 (FORTRAN 77) Gcc ( C ) g++ (C++) Text editors Emacs Typesetting Troff, TeX Graphing Gnuplot

Available Software StarOffice provides a Windows-like environment: Word processor Spreadsheet Overhead slide designer Can load and save existing files created on a Windows computer.

Workshop Logging In Running a FORTRAN Program Graphing and Printing Results Managing Files Logging Out

Logging In

Create a Shell Window Press the _____ button to create a shell window. To move the window, grab the top. To resize the window, grab the corners.

Create Another You will type commands into a shell. If you like, you may do several things at once. Make another shell and arrange them side by side.

Create a Program Three steps to creating a program Create a source file Compile the source into a program Run the program

Create a Source File Let’s write a simple FORTRAN program and store it in the file “simple.f”. Type: emacs simple.f & In the new window, enter the simple program on the next page:

Create a Source File PROGRAM SIMPLE REAL I DO I=1, 100 PRINT *, I, SIN(I)*(I**2) END DO END Important: Indent 7 spaces Type in all CAPITALS

Create a Source File When you are done typing, click “files” then “save buffer”.

Compile the Source Use the GNU FORTRAN 77 compiler to convert the source file into an executable program. In the shell window, type: g77 simple.f -o simple Run the FORTRAN compiler. Read the source from “simple.f” Create the program in “simple”

Run the Program Type./ and the name of the program:./simple It will display a table of x 2 sin(x) for all x from 1 to 100: …

Saving the Output To save the output in a file:./simple > output To look at the output later: cat output The output is very long! To look at it slowly: cat output | more To print out the output: lpr output To print out the source: lpr simple.f

Graphing Results To graph the output of our simple program, start gnuplot and then direct it to the output file: gnuplot plot “output” There are many different options for plotting: plot “output” with lines plot “output” with dots When done plotting, quit gnuplot: quit

Graphing Results To save a graph in a file: gnuplot set terminal postscript set output “graph.ps” plot “output” Quit To view the graph later: gv graph.ps To print the graph: lpr graph.ps

Managing Files To list files: ls To move files: mv To copy files: cp To remove files: rm

Managing Files Look at all your files: ls simple.f simple output graph.ps Source code Compiled program Output file Saved graph

Managing Files Try moving one file to another name: mv output oldoutput Now list again to see the results: ls simple.f simple oldoutput graph.ps

Managing Files Make a copy of the saved graph: cp graph.ps graph2.ps Now list again to see the results: ls simple.f simple oldoutput graph.ps graph2.ps

Managing Files Remove the output file: (be careful!) rm oldoutput Now list again to see the results: ls simple.f simple graph.ps graph2.ps

Online Manuals Each of these commands has many different options. Use the “man” command to read online manuals: man ls man g77 If you don’t know exactly what command to use, use “apropos” to propose man pages: man -k delete

Logging Out When done, you must log out of the machine so others may use it. Quit all open programs: In gnuplot, type “quit”. In emacs, select “files” then “exit” In a shell window, type “exit” Finally, press the “logout” button.

More Things to Try The StarOffice tools: soffice Online manuals: man ls Help with gnuplot options: gnuplot help

Change to Workshop Meet in room ____ at _____ Bring printouts to follow along.