ENEE150 Discussion 01 Section 0101 Adam Wang.

Slides:



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

ENEE150: Discussion 1 Section 0104 Please Sit Down at a Computer and Login!
Dayu Zhang 9/8/2014 Lab02. Example of Commands pwd --- show your current directory This is home of venus, not your home directory Tilde: means you are.
CSCI 1411 FUNDAMENTALS OF COMPUTING LAB Lab Introduction 1 Shane Transue MSCS.
Working Environment - - Linux - -.
Basic linux shell commands and Makefiles. Log on to engsoft.rutgers.edu Open SSH Secure Shell – Quick Connect Hostname: engsoft.rutgers.edu Username/password:
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
1 Basics of Linux On linux machine: Login at your home directory Open a “shell” or “terminal” or “xterm” workspace (4) On windows machine Intall linux.
Virtual Machine and UNIX. What is a VM? VM stands for Virtual Machine. It is a software emulation of hardware. By using a VM, you can have the same hardware.
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.
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
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”
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
Intro to Linux/Unix (user commands) Box. What is Linux? Open Source Operating system Developed by Linus Trovaldsa the U. of Helsinki in Finland since.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction Unix-like system is everywhere Linux Android for smartphones Google Chrome OS for Chromebook Web.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
Computing Fundamenatls CMSC 201 Computer Science I Penny Rheingans University of Maryland Baltimore County (with inspiration from previous 201 instructors.
1 N305 C Programming. 2 Objectives for the Lab ä Learn problem solving strategies ä Achieve intermediate knowledge of C Programming Language ä Gain experience.
Vim Editor and Unix Command gcc compiler Computer Networks.
Carnegie Mellon Linux Boot Camp Jenna MacCarley, Peter Pearson, Shashank Goyal 9/19/2015.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
ENEE150 – 0202 ANDREW GOFFIN Introduction to ENEE150.
UNIX Introduction CSCE 221H Texas A&M University.
CGS 3460 Why we choose UNIX n Powerful lMulti-user operating system lGood programming tools Most heavy-duty database management systems started out on.
Basic Unix Commands CGS 3460, Lecture 6 Jan 23, 2006 Zhen Yang.
1 Remote Access Telnet Telnet FTP FTP. 2 Applications and Communications Telnet Telnet  Program for accessing systems remotely.  Available on Windows.
City Cluster Quickstart Lien-Chi Lai, COLA Lab, Department of Mathematics, NTU 2010/05/11.
COP3502: Introduction to Computer Science Yashas Shankar Lecture #2.
Object Oriented Programming COP3330 / CGS5409.  Assignment Submission Overview  Compiling with g++  Using Makefiles  Misc. Review.
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.
ENEE150: Discussion 1 Section 0104/0105 Please Sit Down at a Computer and Login!
Basic Unix Commands & GCC Saurav Karmakar Spring 2007.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
Object Oriented Programming COP3330 / CGS5409.  Compiling with g++  Using Makefiles  Debugging.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Object Oriented Programming COP3330 / CGS5409.  Assignment Submission Overview  Compiling with g++  Using Makefiles  Misc. Review.
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.
Tutorial Six Linux Basics CompSci Semester Two 2016.
Overview of Linux Fall 2016 Dr. Donghyun Kim
Precept I : Lab Environment, Unix, Bash, Emacs
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.
First Day in Lab Making a C++ program
Tutorial of Unix Command & shell scriptS 5027
CS1010: Intro Workshop.
Tutorial Six Recap & Linux Basics CompSci Semester Two 2016.
Andy Wang Object Oriented Programming in C++ COP 3330
Computing Fundamenatls CMSC 201 Computer Science I Penny Rheingans University of Maryland Baltimore County (with inspiration from previous 201 instructors.
Part 3 – Remote Connection, File Transfer, Remote Environments
Assignment Preliminaries
Shell Environments.
Tutorial of Unix Command & shell scriptS 5027
Tutorial of Unix Command & shell scriptS 5027
Intro to UNIX System and Homework 1
slides borrowed and adapted from Alex Mariakis and CSE 390a
Welcome to CSCI 230! Problem Solving using C
Web Programming Essentials:
Tutorial of Unix Command & shell scriptS 5027
Operating Systems Lecture 5.
Lab 00 Discussion Linux Basics
Andy Wang Object Oriented Programming in C++ COP 3330
Tutorial Unix Command & Makefile CIS 5027
Video Notes.
Lab 2: Terminal Basics.
CSCE 206 Lab Structured Programming in C
Introduction to Linux and Code Editing
DIBBs Brown Dog Tutorial Setup
Presentation transcript:

ENEE150 Discussion 01 Section 0101 Adam Wang

Overview Log into GLUE Create a simple hello world program Compile it with gcc and submit

What is GLUE? Basically a network of computers owned by UMD You will submit your assignments to it so we can look at them Kind of like the cloud You will log into it by SSHing into linux.glue.umd.edu NOT glue.umd.edu

PuTTY SSH client SSH stands for Secure Shell Basically lets you remotely login to the GLUE computers

Login to GLUE If you have a mac/linux just use terminal Type “ssh linux.glue.umd.edu” If you’re using windows download PuTTY if you haven’t Linux.glue.umd.edu as the hostname and connect Login using regular UMD credentials

Glue is a UNIX environment Command-line interface, made around 1970s “Dark room” environment You basically ask the computer to show what you want

Basic UNIX commands

pwd Print working directory Used to show where you currently are

ls Displays all files and folders currently within your pwd Use “ls –l” to display even more information

mkdir Creates a new directory Make a folder called “ENEE150” in your home directory by typing “mkdir ENEE150”

cd Change directory We will navigate into the ENEE150 directory by typing “cd ENEE150” If you hit tab the computer will try to autocomplete the file/folder name You can go to parent directory by typing “cd ..”

emacs Basic text editor, like eclipse/notepad/etc. You can use vi/any alternative In the ENEE150 folder, type “emacs hello.c” to create/edit our first hello world program

Our first program Type Ctrl-x, Ctrl-s to save Type Ctrl-x, Ctrl-c to close the window

Compile using GCC Gcc stands for GNU compiler collection Basically transforms your code into an executable file Type “gcc hello.c” to compile your program This will create a file called a.out which can be executed If you type “gcc hello.c –o hello.x” it will name the executable hello.x instead of a.out Type a.out to run your program

Submit your file The format is “submit year semester class class# section assignment# filename” Type “submit 2017 fall enee 150 0101 0 hello.c” to submit your file to me Submit under assignment #0 as a test HWs will be assignment #1,2,3,… Projects will be assignment #10,20,30,… Submitting multiple times is ok, we will take the latest submission

Extra info

More UNIX commands Mv filename location “cut” Cp filename location “copy & paste” Rm name remove file Rm –r name remove a folder

MobaXterm I recommend this over puTTY More features

Cygwin Portable Unix terminal for Windows Lots of features & packages that come with it

WinSCP You can make the program on your own computer, then copy it over to glue Instead of writing your projects on glue

Final Words Make Backups Style is important Don’t Cheat Coding is UNFAIR