Linux & Joker – An Introduction

Slides:



Advertisements
Similar presentations
Linux, it's not Windows A short introduction to the sub-department's computer systems Gareth Thomas.
Advertisements

Cosc 4750 Getting Started in UNIX Don’t be afraid of the prompt, in linux it can be your best friend. In some cases, the only way to do certain things.
CSCI 1411 FUNDAMENTALS OF COMPUTING LAB Lab Introduction 1 Shane Transue MSCS.
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.
T UTORIAL OF U NIX C OMMAND & SHELL SCRIPT S 5027 Professor: Dr. Shu-Ching Chen TA: Samira Pouyanfar Spring 2015.
Dayu Zhang 9/3/2014 Lab01. Lab Instructor: Dayu Zhang Office Hour Mon/Wed 10:40am – 11:10am Room A201 Lab Website
Guide to Linux Installation and Administration, 2e1 Chapter 6 Using the Shell and Text Files.
“Linux at the Command Line” Don Johnson of BU IS&T.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Introduction to UNIX/Linux Exercises Dan Stanzione.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
Help session: Unix basics Keith 9/9/2011. Login in Unix lab  User name: ug0xx Password: ece321 (initial)  The password will not be displayed on the.
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”
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.
Welcome to Linux & Shell Scripting Small Group How to learn how to Code Workshop small-group/
1 Intro to Linux - getting around HPC systems Himanshu Chhetri.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction Unix-like system is everywhere Linux Android for smartphones Google Chrome OS for Chromebook Web.
1 N305 C Programming. 2 Objectives for the Lab ä Learn problem solving strategies ä Achieve intermediate knowledge of C Programming Language ä Gain experience.
CS240 Computer Science II Introduction the Unix File System and File Related Utilities Based on “UNIX for Programmers and Users” by G.Class and K. Ables.
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
ENEE150 – 0202 ANDREW GOFFIN Introduction to ENEE150.
Getting started: Basics Outline: I.Connecting to cluster: ssh II.Connecting outside UCF firewall: VPN client III.Introduction to Linux IV.Intoduction to.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
Chapter 1 : The Linux System Part 2 Lecture 2 11/14/
Unix and Samba By: IC Labs (Raj Kidambi). What is Unix?  Unix stands for UNiplexed Information and Computing System. (It was originally spelled "Unics.")
Introduction to Programming Using C An Introduction to Operating Systems.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: which, passwd, date, ps / kill Working with Files: file, touch, cat, more, less, grep,
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.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
Operating Systems and Using Linux Courtesy of John Y. Park 1.
CMSC 104, Version 8/061L03OperatingSystems.ppt Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Assignprelim.1 Assignment Preliminaries © 2012 B. Wilkinson/Clayton Ferner. Modification date: Jan 16a, 2014.
CMSC 104, Version 9/011 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
Review Why do we use protection levels? Why do we use constructors?
UNIX Basics Matt Hayward October 18, 2016 LS560 – Information Technology for information professionals.
Overview of Linux Fall 2016 Dr. Donghyun Kim
Introduction to Unix for FreeSurfer Users
GRID COMPUTING.
ENEE150 Discussion 01 Section 0101 Adam Wang.
Tutorial of Unix Command & shell scriptS 5027
Development Environment Basics
Web Programming Essentials:
Andy Wang Object Oriented Programming in C++ COP 3330
Part 3 – Remote Connection, File Transfer, Remote Environments
Shell Script Assignment 1.
Assignment Preliminaries
Tutorial of Unix Command & shell scriptS 5027
Tutorial of Unix Command & shell scriptS 5027
Telnet/SSH Connecting to Hosts Internet Technology.
Linux + Galaxy Server Tutorial
College of Engineering
CCR Advanced Seminar: Running CPLEX Computations on the ISE Cluster
Operating Systems and Using Linux
Operating Systems and Using Linux
Web Programming Essentials:
Tutorial of Unix Command & shell scriptS 5027
Operating Systems and Using Linux
Andy Wang Object Oriented Programming in C++ COP 3330
Tutorial Unix Command & Makefile CIS 5027
Operating Systems and Using Linux
Operating Systems and Using Linux
Yung-Hsiang Lu Purdue University
Operating Systems and Using Linux
Module 6 Working with Files and Directories
CSCI The UNIX System Editing files
DIBBs Brown Dog Tutorial Setup
Presentation transcript:

Linux & Joker – An Introduction ICT Cyber Infrastructure Architecture Team Linux & Joker – An Introduction

Part I Presenter: Dusan Jolovic Presentation by: Jelena Karapetrovic Tracey Fernandez

Why Linux? Why Joker? Linux is ‘light’ OS It is secure and reliable Most supercomputers run on Linux Joker is a supercomputer with 238 cores Joker can help you with heavy computational tasks Saves time

Do you have an account? Why do you need an account? Where to register for an account? https://hpc.nmsu.edu/resources/

Accessing Joker from within the NMSU domain using a terminal emulator. Joker may be accessed by any one of the many SSH terminal programs (such as “PuTTY”). Download and install PuTTY (Google “putty ssh” for download URL). Run putty. Enter joker.nmsu.edu in Hostname window. Click open.

Enter your Joker account username and password when prompted Enter your Joker account username and password when prompted. You will then be in the terminal window ready to go.

Accessing Joker from outside NMSU’s domain with a terminal emulator. Joker is not exposed to “outside” connections. You must first connect using NMSU's VPN service. The VPN client may be found at “VPN.NMSU.EDU”. Install and run the client.

Enter your NMSU Username and Password Enter your NMSU Username and Password. Once connected, you may then connect to Joker with a terminal emulator (PuTTY).

Upload and download files to and from Joker using sftp. Download and install a sftp client (let’s use WinSCP). Google winscp, go to the site download, installation package. After install, run the app. and enter the login information. Note: If “outside” the NMSU domain, you will need to connect with the VPN client before the sftp app.

WinSCP sftp Window Local drive on left. Joker on right. Windows Explorer functionality (drag and drop, right click options, …) local drive on left, joker on right

Navigation File System Organization: hierarchical directory structure The files on Linux are organized in a tree-like pattern of directories. Linux does not employ the concept of drive letters (drive letters used by legacy operating system split the file system into a series of different trees). Linux always has a single tree.

Root directory- the first directory; contains files and subdirectories. The working directory - the directory you are in. When you first log on to a Linux system, the working directory is set to your home directory.

Commands pwd- used to find the name of the working directory ls- used to list the files in the working directory (ls -a will list hidden files as well) cd- used to change the working directory (type cd followed by the pathname of the desired working directory) Passwd – to change password -help (eg: type ‘module –help)

Rules about file names File names that begin with a period character are hidden. This only means that ls will not list them unless you say ls -a. Case sensitive (“File1” and “file1” are not the same thing) Do not use spaces Limit punctuation to: Period Dash Underscore.

Use the following commands: pwd, ls, cd pwd (find the name of the working directory) ls (list the files in the working directory) cd/usr/bin (change the working directory) pwd (find the name of the working directory- note it is different now) cd /home (change the working directory to home) pwd (find the name of the working directory- note the change)

List hidden files: cd /usr/bin (change the working directory) ls (list the files in the working directory) ls -a (list the files, including hidden files in the working directory. Note the difference!)

The following commands are amongst the most frequently used Remember Commands The following commands are amongst the most frequently used mkdir - create directories mv - move or rename files and directories cp - copy files and directories rm - remove files and directories

Useful Resources https://cia.nmsu.edu/other-resources/ http://linuxcommand.org/index.php http://www.howtogeek.com/199687/how-to-quickly-create-a-text-file-using-the-command-line-in-linux/ https://www.chpc.utah.edu/presentations/IntroLinux3parts.php http://www.thegeekstuff.com/2010/11/50-linux-commands/?utm_source=feedburner https://www-uxsup.csx.cam.ac.uk/pub/doc/suse/suse9.0/userguide-9.0/ch24s04.html

About Us https://cia.nmsu.edu/meet-the-team/

Contact Info Jelena Karapetrovic iskra@nmsu.edu Tracey Fernandez tfernnnn@nmsu.edu Dusan Jolovic djolovic@nmsu.edu

Part II Presenter: Poo-Chou Su Prepared by: Poo-Chou Su Mohammed Tanash

UNIX TEXT EDITORS Common Text Editors: Vim Pico Nano Emacs Mousepad Xedit Editor Features Enter text Search and replace Copy, cut and paste Undo and redo Importing and exporting text Save and cancel

VIMTEXT EDITORS Creat/Open a file Vim [File-name].[Ext] Close a file q(Quit) or wq(Write than Quit) Online source http://www.openvim.com/ https://linuxconfig.org/vim-tutorial http://vim.wikia.com/wiki/Tutorial Google “vi cheatsheet” Input Mode Esc Ins Command Mode Esc v Visual Mode

Module System Allows you to add various path definitions to your shell environment. Default compilers, applications and libraries can be set by individual or combinations of Modules commands. Modules are not applications, rather they simply add the location of applications to your environment.

Module System List the available Modules using the command: $ module avail You can load a module using the command: $ module load <module name>

Module System You can load multiple modules in one line using the command $ module load <module name1><module name2>... You can view the added modules using the command $ module list

Module System To unload a module you can use the command $ module unload <module name> To unload more than one out of many loaded modules use the command $ module unload <module name1> <module name2>…

Module System To unload all the loaded modules, use either commands $ module purge $ module clear

Advanced command “Awk” Awk is a shell programming language designed for text processing and typically used as a data extraction and reporting tool. Awk command searches files for text containing a pattern. When a line or text matches, awk performs a specific action on that line/text. Syntax: awk 'Program' input-file1 input-file2 ... awk -f PROGRAM-FILE input-file1 input-file2 ... Online Sources: https://www.tutorialspoint.com/unix_commands/awk.htm https://www.tutorialspoint.com/awk/index.htm

Advanced command “Sed” sed, short for "stream editor", allows you to filter and transform text. Sed is used to perform basic text transformations on an input stream (a file, or input from a pipeline). Whenever you want to make changes to the file automatically, sed comes in handy to do this. Online source https://www.gnu.org/software/sed/manual/sed.html#Introduction http://www.computerhope.com/unix/used.htm http://www.grymoire.com/Unix/Sed.html#uh-0

Use Joker User guide https://hpc.nmsu.edu/hpc-user-guide/ IMPORTANT Test on head node before submit script to compute nodes Use SMALL input SIZE

The Slurm Scheduler Job scheduler implemented on Joker Mostly used commands sinfo reports the state of partitions and nodes managed by Slurm squeue reports the state of jobs or job steps

The Slurm Scheduler Mostly used commands (cont’d) srun is used to submit a job for execution or initiate job steps in real time

The Slurm Scheduler Mostly used commands (cont’d) sbatch is used to submit a job script for later execution

The Slurm Scheduler Tutorial Mostly used commands (cont’d) scancel is used to cancel a pending or running job or job step Tutorial https://hpc.nmsu.edu/hpc-user-guide/using-slurm-on-joker/

How to use Gaussian on Joker Not ready on Module yet Run set up script before you use Gaussian Complete and test gaussian script on head node Submit the script to compute node using sbatch Gaussian_script.sh Example script http://psurc-docs.readthedocs.io/en/latest/research_software/g09.html

X Windows Graphic User Interface for Linux terminal on Windows OS Xming http://www.straightrunning.com/XmingNotes/