CprE 288 – Quick intro for compiling C in Linux

Slides:



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

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.
Exploring the Internet Creating and setting up your website Instructor: Michael Krolak Instructor: Patrick Krolak See also
Web Pages Publishing your page on ASUWlink. Unix Directory Commands ls –la –will show all directories and files –will show directory and file permissions.
ENGR 3 rocks. Hi I’m Damon Turney Homework 0 due October 7 ! Get a computer account.
CS 110 Intro to Computer Science I Sami Rollins Fall 2006.
Exploring the Internet Creating and setting up your website Instructor: Michael Krolak Instructor: Patrick Krolak See also
CS1020: Intro Workshop. Topics CS1020Intro Workshop Login to UNIX operating system 2. …………………………………… 3. …………………………………… 4. …………………………………… 5. ……………………………………
Beginning to use United Streaming Videos Kathy Davis EdTe 281.
1 Using Workspaces to Develop Simulation Tools Michael McLennan Software Architect HUBzero™ Platform for Scientific Collaboration This work licensed under.
CS0007: Introduction to Computer Programming Setting Up Java.
Installing Active Directory on Windows Server 2008 R2 Installing Active Directory on a fresh Windows Server 2008 R2 machine in a home network. These instructions.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
1 - ECpE 583 (Reconfigurable Computing): Tools overview Iowa State University (Ames) CPRE 583 Reconfigurable Computing (Tools overview) Instructor: Dr.
MCB Lecture #3 Sept 2/14 Intro to UNIX terminal.
One to One instructions Installing and configuring samba on Ubuntu Linux to enable Linux to share files and documents with Windows XP.
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”
CSN08101 Digital Forensics Lecture 1B: Essential Linux and Caine Module Leader: Dr Gordon Russell Lecturers: Robert Ludwiniak.
Installing Active Directory on Windows Server 2008 R2 Installing Active Directory on a fresh Windows Server 2008 R2 machine in a home network. The guide.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
How KeePass password safe can save you time and energy
Guidelines for Homework 6. Getting Started Homework 6 requires that you complete Homework 5. –All of HW5 must run on the GridFarm. –HW6 may run elsewhere.
Batch File Basics Automate repetitive computer processes Friday, March 12, 2014 Presented by Thomas Redd, STS, Granite School District.
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.
QT - a C++ based GUI QT’s Designer and Assistant.
Logging into the linux machines This series of view charts show how to log into the linux machines from the Windows environment. Machine name IP address.
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.
1 ITI 1120 Lab # 1 An Introduction to the Lab Environment Contributors: G. Arbez, M. Eid, D. Inkpen, A. Williams, D. Amyot.
Booting Ubuntu Linux Live CSCI 130 – Fall 2008 Action Lab Dr. W. Jones.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
Operating System What is an Operating System? A program that acts as an intermediary between a user of a computer and the computer hardware. An operating.
Intro to Programming Environment 1. Today You Will Learn how to connect to a machine remotely with “nomachine NX client” Learn how to create a new “source.
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.
Getting Started Introduction Section 0 Lecture 1 Slide 1 Section 0 Slide 1 INTRODUCTION TO Modern Physics PHYX 2710 Fall 2004 Intermediate Lab Fall.
All sections to appear here Welcome to my pptPlex Slide Show, this can be executed in either two ways: 1.As a normal PowerPoint slide show: Example hit.
COP3502: Introduction to Computer Science Yashas Shankar Lecture #2.
1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010.
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.
Isecur1ty training center Presented by : Eng. Mohammad Khreesha.
1 Getting Started with C++ Part 2 Linux. 2 Getting Started on Linux Now we will look at Linux. See how to copy files between Windows and Linux Compile.
ENEE150: Discussion 1 Section 0104/0105 Please Sit Down at a Computer and Login!
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Integrity Check As You Well Know, It Is A Violation Of Academic Integrity To Fake The Results On Any.
Basic Unix Commands & GCC Saurav Karmakar Spring 2007.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
Unix Environment Basics CSCI-1302 Lakshmish Ramaswamy.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
Integrity Check As You Well Know, It Is A Violation Of Academic Integrity To Fake The Results On Any.
 CSC 215 : Procedural Programming with C C Compilers.
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.
How to Work on your METEO 473 codes from your PC at home
First Day in Lab Making a C++ program
CS1010: Intro Workshop.
Remote Access: Guide for Windows
Andy Wang Object Oriented Programming in C++ COP 3330
Tutorial of Unix Command & shell scriptS 5027
Tutorial of Unix Command & shell scriptS 5027
Intro to UNIX System and Homework 1
Tutorial of Unix Command & shell scriptS 5027
CPRE 583 Reconfigurable Computing (Tools overview)
Lab 00 Discussion Linux Basics
Andy Wang Object Oriented Programming in C++ COP 3330
TA: Maya Rodrig Our C++ guru: Nic Bone
Logging into the linux machines
DIBBs Brown Dog Tutorial Setup
Presentation transcript:

CprE 288 – Quick intro for compiling C in Linux Instructor: Dr. Phillip Jones http://class.ece.iastate.edu/cpre288

Overview Compile C code in Linux Linux Basics Logging in to Linux boxes from off-campus http://class.ece.iastate.edu/cpre288

Open a file At the command line prompt type: gedit file_name_to_create & In this case I created a file called hw3_1.c The “&” is important. Without it you lose the prompt http://class.ece.iastate.edu/cpre288

Blank File A gedit window should open Notice the name of you file on the tab http://class.ece.iastate.edu/cpre288

Add your C code Don’t forget to SAVE In this case I just copied from Word Note: if you copy from Word the “ “ may not copy correctly. Just manually retype. See Next slide http://class.ece.iastate.edu/cpre288

Add your C code http://class.ece.iastate.edu/cpre288

Compile your code and execute it compile hw3_1.c and call the executable “test”. Output of the program. Note: I have not put any code for my_strcat Run the program that you just compiled called “test” http://class.ece.iastate.edu/cpre288

Linux Basics Some on-line tutorials and quick reference cards http://www.ee.surrey.ac.uk/Teaching/Unix/ http://www.linuxdevcenter.com/excerpt/LinuxPG_quickref/linux.pdf How do I know where I am pwd (tells you your current location, use this command often) What is in my current location ls (list all the files and directors at this location) Changing directories cd directory_name cd .. (takes you up one directory level) cd ~ (takes you to your home directory) Making a new directory mkdir new_directory_name

NX NX is an application that allows you to access Linux machines from off campus. It is very lightweight and can be typically installed in less than 5 minutes You can download NX 3.5 from the following links For Windows: http://it.engineering.iastate.edu/nx/ After you install the NX client, make sure to install any additional fonts that are available for your platform type. If you do not some application will not display properly You can try NX 4 (I have not tried this). You can download from: https://www.nomachine.com/download Note: You will need to adjust the setting to be compatible with NX 3.5. https://www.nomachine.com/AR04J00627 You can login to the following ISU Linux machines using your userID & password Those listed here: http://www.it.eng.iastate.edu/remote The ones that are NX capable will say NX in there list of applications.