Class Projects and Environment

Slides:



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

Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Working Environment - - Linux - -.
Exploring the Internet Creating and setting up your website Instructor: Michael Krolak Instructor: Patrick Krolak See also
“Final?” Day Unix/Linux April 8, 2014 Dr. Bob Mathis.
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
Linux Basics. What is an Operating System (OS)? An Operating System (OS) is an interface between hardware and user which is responsible for the management.
The Unix Environment and Compiling. Getting Set Up Your programs will be compiled and tested on the Departmental server ‘linprog’ The linprog servers.
CSCI 330 T HE UNIX S YSTEM Editing files. E DITOR C ONCEPTS Editing a file is to modify the content of a file Text editor: Enter and modify text in a.
IT 210 The Internet & World Wide Web introduction.
CS490 Web Design, AJAX, JQuery
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
CSE 390a Editing and Moving Files
1 Intro to Linux - getting around HPC systems Himanshu Chhetri.
1/ 47 COP 3503 FALL 2012 SHAYAN JAVED LECTURE 19 Programming Fundamentals using Java 1.
Potential Unix/Linux Questions March 25, 2014 Dr. Bob Mathis.
COSC513 Project Linux Features Instructor: Prof. Mort Anvari Student: Yingfeng Luo ID: #
CENT 305 Information Systems Security Linux Introduction.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction Unix-like system is everywhere Linux Android for smartphones Google Chrome OS for Chromebook Web.
HTML Hyper Text Markup Language A simple introduction.
LINUX TERMINAL TUTORIAL EDCI 339 – Online Presentation by Roop Rahal.
CS 390 Unix Programming Summer Unix Programming - CS 3902 Course Details Online Information Please check.
CS 590 Programming Environments with UNIX. Computer Lab Account Course Homepage
ENEE150 – 0202 ANDREW GOFFIN Introduction to ENEE150.
Cygwin Training Seminar January 27, 2005 MDL AWIPS (Room 10246)
Open Source Evaluation - FileZilla Michael Nye ITEC 400 Assignment 14-1 Professor D’Andrea Franklin University April 10, 2008.
General rules 1. Rule: 2. Rule: 3. Rule: 10. Rule: Ask questions ……………………. 11. Rule: I do not know your skill. If I tell you things you know, please stop.
FTP Short for File Transfer Protocol, the protocol for exchanging files over the Internet.protocolfilesInternet works in the same way as HTTP for transferring.
Unix Machine In Computer Science for Teaching Cliff Zou Spring 2015.
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.
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!
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
Projects and Environment Introduction. A lot to go over today… History of Linux Projects Overview Project partners Programming environment Programming.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Tutorial 1 Getting Started with Adobe Dreamweaver CS5.
Review Why do we use protection levels? Why do we use constructors?
Tutorial Six Linux Basics CompSci Semester Two 2016.
PHP Basics and Syntax Lesson 3 ITBS2203 E-Commerce for IT.
Overview of Linux Fall 2016 Dr. Donghyun Kim
Operating System Kernel Compilation
ENEE150 Discussion 01 Section 0101 Adam Wang.
Class Projects and Environment
CS1010: Intro Workshop.
Tutorial Six Recap & Linux Basics CompSci Semester Two 2016.
CSCI 2400/ ECE 3217: Computer Architecture
IT244 - Introduction to Linux / Unix Instructor: Bo Sheng
Chapter 9 Router Configuration (Ospf, Rip) Webmin, usermin Team viewer
Andy Wang Object Oriented Programming in C++ COP 3330
Part 3 – Remote Connection, File Transfer, Remote Environments
Introduction to Programming the WWW I
Department of Computer Science, Florida State University
File Transfer Olivia Irving and Cameron Foss
Intro to UNIX System and Homework 1
Telnet/SSH Connecting to Hosts Internet Technology.
Operating System Kernel Compilation
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
slides borrowed and adapted from Alex Mariakis and CSE 390a
Web Programming: Course Overview
Andy Wang Object Oriented Programming in C++ COP 3330
CMPT 241 Web Programming Instructor: Tina Tian.
How to create your Webpage
Video Notes.
CSCI The UNIX System Editing files
Course Overview Web Programming.
Operating System Kernel Compilation
Introduction to Linux and Code Editing
Web Application Development Using PHP
Presentation transcript:

Class Projects and Environment Networking CS 3470, Section 1 Sarah Diesburg

A lot to go over today… Why interface with Linux? Programming environment Programming languages Useful Tools

Why Use Linux? Linux is open source We actually have access to the kernel code and can change it Much of the Internet runs on UNIX/Linux! Wonderful time to get some experience 3

Unix/Linux Share Desktop/laptop – Linux 1.73% Mobile Devices – Android 79.0% Servers – Unix-like/Linux 66.8% Supercomputers – Linux 96.4-98% Source: http://en.wikipedia.org/wiki/Usage_share_of_operatin g_systems#Servers 4

Five Projects Projects will include Network programming on a Linux server and clients Chat program Network game Network cables and the physical medium Investigating network protocols Analyzing packets 5

Programming Project Start projects when they're assigned. They're often trickier than they look. Ask questions early. If you're asking questions, be it to yourself or to others, you're thinking about the project. This will make it easier to complete them correctly and on time. Write small programs to test your program or language features you don't understand.

Accessing the Remote Servers Linux server located at student.cs.uni.edu Use CatID and password to access If you are unfamiliar accessing remote Linux servers, please watch this video posted on today’s webpage 7

Logging In Secure SHell If in Linux or OSX Use SSH to connect to “student.cs.uni.edu” Secure SHell If in Linux or OSX Open up a command-line terminal $> ssh <username>@student.cs.uni.edu If in Windows You will need a terminal emulator Bash for Windows PuTTY (download from link on resources page)

Bash for Windows Setup: https://itsfoss.com/install-bash-on-windows/ Demo

PuTTY Get PuTTY if you are on Windows and can’t use bash for Windows: http://www.chiark.greenend.org.uk/~sgtatham/putty/

Next Steps Get familiar with Linux shell commands inside of student.cs.uni.edu Go to the Resources web link: (Video #2)

Editing Source Files I want to edit a file before I compile and run it. How/where do I do this? Two ways Create and edit files on your own computer, then transfer to Linux server – use a terminal editor  Create and edit files directly on Linux server

Terminal Editors -- Vim The vi editor was created by Bill Joy, the founder of Sun Microsystems when he was a graduate student The vim editor, vi improved, is the Linux version of the vi editor multiple windows, highlighting text, and command history http://www.vim.org/

Terminal Editors -- Emacs GNU Emacs is an extensible, customizable text editor Content-sensitive editing modes, including syntax coloring, for a variety of file types including plain text, source code, and HTML http://www.gnu.org/software/emacs/

Terminal Editors -- Others Nano and/or pico are also available on most Linux systems If you have never worked in Linux before, this is your editor! Extremely basic $>nano <file name>

Transferring Files In Linux/OSX In Windows scp In Windows File transfer client like WinSCP or FileZilla Look on the resources page for links

WinSCP

Programming Language C is the programming language of operating systems and the networking stack Kernel, system utilities, and large server programs (like apache and sendmail) Need to understand some C for class examples Will get practice with C in homework 1 I will help, but you also need to get yourself up to speed with the basics 18

Quick C Language Tutorial Look in the resources page 19

Compiling See Video Link 3

Compiling TL;DW $> gcc myfile.c –o myfile gcc is the compiler myfile.c contains my source code. It could be called anything as long as it ends with .c -o is the output flag – the file that follows this flag will be the output executable myfile – this is the output executable. Can be called anything 21

Running your executable $> ./myfile ./ means “here” (or “this” version of the program) myfile is the name of the executable that you compiled 22

Homework 1 (Due next Wed) Find this linked on the website Short C program C Program Log onto the class servers Go through the online C tutorial To test your knowledge, implement the homework 1 C program Harder than it looks… 23

manpages Extensive documentation that come with almost all Unix-like systems For documentation on C functions or packages Examples $> man bash $> man strncpy Sometimes multiple definitions, so use man section numbers ‘man 1 printf’ shows bash printf ‘man 3 printf’ shows C printf For more information on sections, see ‘man man’