Computation for Physics 計算物理概論 Introduction to Linux.

Slides:



Advertisements
Similar presentations
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Advertisements

Chapter One The Essence of UNIX.
1 Introduction to UNIX Ke Liu
Linux+ Guide to Linux Certification, Second Edition Chapter 14 Network Configuration.
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.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
Layer 7- Application Layer
Working Environment - - Linux - -.
Lesson 22 – Introduction to Linux Systems Administration.
SSH : The Secure Shell By Rachana Maheswari CS265 Spring 2003.
Guide To UNIX Using Linux Third Edition
Lecture 01CS311 – Operating Systems 1 1 CS311 – Lecture 01 Outline Course introduction Setting up your system Logging onto the servers at OSU with ssh.
A crash course in njit’s Afs
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.
CS 141 Labs are mandatory. Attendance will be taken in each lab. Make account on moodle. Projects will be submitted via moodle.
1. This presentation covers :  User Interface Administration  Files System and Services Management 2.
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Telnet/SSH: Connecting to Hosts Internet Technology1.
2440: 141 Web Site Administration Remote Web Server Access Tools Instructor: Enoch E. Damson.
Computation for Physics 計算物理概論 Introduction to Linux.
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.
Network Protocols. Why Protocols?  Rules and procedures to govern communication Some for transferring data Some for transferring data Some for route.
Mid 1960 ’ s - Multics - proposed by AT&T, Honeywell, GE & MIT; funded by DARPA Thompson & Ritchie create Unix 1978 to 84 - Bill Joy & Chuck Haley.
Introduction to Unix/Linux Chapter One The Essence of UNIX.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction Unix-like system is everywhere Linux Android for smartphones Google Chrome OS for Chromebook Web.
Linux+ Guide to Linux Certification Chapter Fifteen Linux Networking.
Linux+ Guide to Linux Certification, Second Edition Chapter 14 Network Configuration.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
UNIX Commands. Why UNIX Commands Are Noninteractive Command may take input from the output of another command (filters). May be scheduled to run at specific.
Chapter 0 A “Quick-Start” into the UNIX Operating System.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 13 FTP and Telnet.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
1 Chapter 34 Internet Applications (Telnet, FTP).
Networking in Linux. ♦ Introduction A computer network is defined as a number of systems that are connected to each other and exchange information across.
Protocols COM211 Communications and Networks CDA College Olga Pelekanou
Introduction to Programming Using C An Introduction to Operating Systems.
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.
Protocols Monil Adhikari. Agenda Introduction Port Numbers Non Secure Protocols FTP HTTP Telnet POP3, SMTP Secure Protocols HTTPS.
1 Introduction to Unix. 2 What is UNIX?  UNIX is an Operating System (OS).  An operating system is a control program that helps the user communicate.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
Linux Tutorial Lesson Two *Getting Help in Linux *Data movement and manipulation *Relative and Absolute path *Processes Note: see chapter 1,2,3 from Linux.
SSH. 2 SSH – Secure Shell SSH is a cryptographic protocol – Implemented in software originally for remote login applications – One most popular software.
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.
Learning Unix/Linux Based on slides from: Eric Bishop.
Chapter 7: Using Network Clients The Complete Guide To Linux System Administration.
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
Overview of Linux Fall 2016 Dr. Donghyun Kim
Understanding Web Server Programming
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.
Virtual Private Networks
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
Andy Wang Object Oriented Programming in C++ COP 3330
FTP Lecture supp.
Some Linux Commands.
The Linux Operating System
FTP - File Transfer Protocol
Lab 1 introduction, debrief
Telnet/SSH Connecting to Hosts Internet Technology.
Andy Wang Object Oriented Programming in C++ COP 3330
UNIX/LINUX Commands Using BASH Copyright © 2017 – Curt Hill.
Delivering the Data.
Linux Professor Sabol.
Chapter 7 Network Applications
Internet Applications (Telnet, FTP)
Presentation transcript:

Computation for Physics 計算物理概論 Introduction to Linux

Domain Name A domain name is an identification string that defines a realm of administrative autonomy, authority, or control on the Internet. Domain names are formed by the rules and procedures of the Domain Name System (DNS). Technically, any name registered in the DNS is a domain name. Domain names are used in various networking contexts and application-specific naming and addressing purposes. In general, a domain name represents an Internet Protocol (IP) resource, such as a personal computer used to access the Internet, a server computer hosting a web site, or the web site itself or any other service communicated via the Internet. (From Wikipedia)

Domain Name google.com – mail.google.com – drive.google.com nthu.edu.tw – – – qubit.phys.nthu.edu.tw

IP Address An Internet Protocol address (IP address) is a numerical label assigned to each device (e.g., computer, printer) participating in a computer network that uses the Internet Protocol for communication. An IP address serves two principal functions: host or network interface identification and location addressing. Its role has been characterized as follows: "A name indicates what we seek. An address indicates where it is. A route indicates how to get there." The designers of the Internet Protocol defined an IP address as a 32- bit number and this system, known as Internet Protocol Version 4 (IPv4), is still in use today. However, due to the enormous growth of the Internet and the predicted depletion of available addresses, a new version of IP (IPv6), using 128 bits for the address, was developed in 1995.[3] IPv6 was standardized as RFC 2460 in 1998,[4] and its deployment has been ongoing since the mid-2000s. (From Wikipedia)

Linux Server “qubit” domain name=qubit.phys.nthu.edu.tw ip= How do I access a remote linux server?

How Do I Login to a Remote Linux Server?

TCP=Transmission Control Protocol The Transmission Control Protocol (TCP) is one of the two original core protocols of the Internet protocol suite (IP), and is so common that the entire suite is often called TCP/IP. TCP provides reliable, ordered, error- checked delivery of a stream of octets between programs running on computers connected to an intranet or the public Internet. (Wikipedia)

Telnet Telnet is a network protocol used on the Internet or local area networks to provide a bidirectional interactive text-oriented communication facility using a virtual terminal connection. User data is interspersed in-band with Telnet control information in an 8-bit byte oriented data connection over the Transmission Control Protocol (TCP). (From Wikipedia) telnet ptt.cc

SSH=Secure Shell Secure Shell (SSH) is a cryptographic network protocol for secure data communication, remote shell services or command execution and other secure network services between two networked computers that connects, via a secure channel over an insecure network, a server and a client (running SSH server and SSH client programs, respectively). The protocol specification distinguishes between two major versions that are referred to as SSH-1 and SSH-2. (From Wikipedia)

PuTTY: A Free Telnet/SSH Client

login to qubit.phys.nthu.edu.tw

Unix Shell A shell is software that provides an interface for users of an operating system to access the services of a kernel. (From Wikipedia) A Unix shell is a command-line interpreter or shell that provides a traditional user interface for the Unix operating system and for Unix-like systems. Users direct the operation of the computer by entering commands as text for a command line interpreter to execute or by creating text scripts of one or more such commands. (From Wikipedia) Text shells = Command Line Interface (CLI) – Bourne shell bash (the Bourne-Again shell) – C shell (csh) tcsh

Your Login and Password Assume your student id is Your login is "u"+id="u " Your password is "p"+reverse_id="p " Change your password after your first login!!

Shell command: passwd $paswd Changing password for user pcchen. Changing password for pcchen. (current) UNIX password: (type your old password) New password: (type your new password) Retype new password: (type your new password again) passwd: all authentication tokens updated successfully. $

How Do I Transfer My Program to Server?

FTP: File Transfer Protocol File Transfer Protocol (FTP) is a standard network protocol used to transfer files from one host to another host over a TCP-based network, such as the Internet. FTP is built on a client-server architecture and uses separate control and data connections between the client and the server. FTP users may authenticate themselves using a clear-text sign-in protocol, normally in the form of a username and password, but can connect anonymously if the server is configured to allow it. For secure transmission that hides (encrypts) the username and password, and encrypts the content, FTP is often secured with SSL/TLS ("FTPS"). SSH File Transfer Protocol ("SFTP") is sometimes also used instead, but is technologically different. (From Wikipedia)

SFTP: SSH File Transfer Protocol SSH File Transfer Protocol (also Secure File Transfer Protocol, or SFTP) is a network protocol that provides file access, file transfer, and file management functionalities over any reliable data stream. It was designed by the Internet Engineering Task Force (IETF) as an extension of the Secure Shell protocol (SSH) version 2.0 to provide secure file transfer capability, but is also intended to be usable with other protocols. The IETF Internet Draft states that even though this protocol is described in the context of the SSH-2 protocol, it could be used in a number of different applications, such as secure file transfer over Transport Layer Security (TLS) and transfer of management information in VPN applications. This protocol assumes that it is run over a secure channel, such as SSH, that the server has already authenticated the client, and that the identity of the client user is available to the protocol. (From Wikipedia)

WinSCP :: Free SFTP and FTP client for Windows

WinSCP

How Do I "Run" My Program on Server?

~]$ python3.2 Madelung_1.py

BASH : Bourne-Again Shell Shell and BASH – A UNIX shell is a commend-line interpreter & script host. – BASH is a POSIX shell with a number of extensions. – BASH can be run on most UNIX-like operating systems. – BAHS is the default shell on many systems. Useful shell commands – cd, cp, chgrp, chown, chmod, date, kill, ls, man, make, mkdir, ps, pwd, sh, vi, Shell commands are case sensitive.

man = manual! NAME man - format and display the on-line manual pages SYNOPSIS man [-acdfFhkKtwW] [--path] [-m system] [-p string] [-C config_file] [-M pathlist] [- P pager] [-B browser] [-H htmlpager] [-S section_list] [section] name... DESCRIPTION man formats and displays the on-line manual pages. If you specify section, man only looks in that section of the manual. name is normally the name of the manual page, which is typically the name of a command, function, or file. However, if name contains a slash (/) then man interprets it as a file specification, so that you can do man./foo.5 or even man /cd/foo/bar.1.gz. See below for a description of where man looks for the manual page files. OPTIONS -C config_file Specify the configuration file to use; the default is /private/etc/man.conf. (See man.conf(5).)

Directories and Files ls -- list directory contents – ls [file...] cp -- copy files – cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file – cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file... target_directory mv -- move files – mv [-f | -i | -n] [-v] source target – mv [-f | -i | -n] [-v] source... directory rm - remove files or directories – rm [OPTION]... FILE... mkdir -- make directories – mkdir [OPTION]... DIRECTORY...

Directories and Files cd=chdir – change the current director to dir – cd [OPTION]... DIRECTORY... rmdir - remove empty directories – rmdir [OPTION]... DIRECTORY... pwd - print name of current/working directory – pwd [OPTION]... cat - concatenate files and print on the standard output – cat [OPTION]... [FILE]... more - file perusal filter for crt viewing – more [-dlfpcsu] [-num] [+/pattern] [+linenum] [file...] less - opposite of more head - output the first part of files tail - output the last part of files