Development Environment Basics

Slides:



Advertisements
Similar presentations
Utilizing the GDB debugger to analyze programs Background and application.
Advertisements

Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
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.
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.
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
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.
Basic linux shell commands and Makefiles. Log on to engsoft.rutgers.edu Open SSH Secure Shell – Quick Connect Hostname: engsoft.rutgers.edu Username/password:
CS1020: Intro Workshop. Topics CS1020Intro Workshop Login to UNIX operating system 2. …………………………………… 3. …………………………………… 4. …………………………………… 5. ……………………………………
Guide to Linux Installation and Administration, 2e1 Chapter 6 Using the Shell and Text Files.
Lecture 02CS311 – Operating Systems 1 1 CS311 – Lecture 02 Outline UNIX/Linux features – Redirection – pipes – Terminating a command – Running program.
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.
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.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
Unix Basics Chapter 4.
– Introduction to the Shell 10/1/2015 Introduction to the Shell – Session Introduction to the Shell – Session 2 · Permissions · Users.
CENT 305 Information Systems Security Linux Introduction.
Julien Thibault  Bells Labs develop a new operating system called “UNIX”  Written in C instead of assembly code  Able.
Vim Editor and Unix Command gcc compiler Computer Networks.
CS 6560 Operating System Design Lecture 3:Tour of GNU/Linux.
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.
Agenda Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Review next lab assignments Break Out Problems.
Getting started: Basics Outline: I.Connecting to cluster: ssh II.Connecting outside UCF firewall: VPN client III.Introduction to Linux IV.Intoduction to.
Next Unix Topics Tuesday, 2/11 & 18/2014. Change Password (by 2/14/14) ssh to account on – faclinux.cse.ohio-state.edu – stdlinux.cse.ohio-state.edu passwd.
Basic Unix Commands CGS 3460, Lecture 6 Jan 23, 2006 Zhen Yang.
1May 16, 2005 Week 2 Lab Agenda Command Line FTP Commands Review More UNIX commands to learn File name expansion - * Introduction of vi.
Introduction to Programming Using C An Introduction to Operating Systems.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
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.
Exploring Spyder: An IDE for scientific computing
Linux A practical introduction. 1)Background and Getting Started Linux is an operating system with multiple providers Red Hat/CentOS (our version) Ubuntu.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
Configuration your environment Many user-configurable Unix programs (such as your shell) read configuration files when they start up. These configuration.
ICE UNIX TUTORIAL. File System Commands cd – change directory cd – change directory ls – list contents ls – list contents rm – remove/delete rm – remove/delete.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Learning Unix/Linux Based on slides from: Eric Bishop.
Introduction to LINUX command line Allegra Via IBBE, National Research Council, Italy Sapienza Università di Roma, Italy EMBO Practical Course on Computational.
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
Using Linux Kaya Oğuz Room: 310.
Bash Scripting CIRC Summer School 2016 Baowei Liu CIRC Summer School 2016 Baowei Liu.
UNIX Basics Matt Hayward October 18, 2016 LS560 – Information Technology for information professionals.
Linux & Joker – An Introduction
Introduction to Unix for FreeSurfer Users
GRID COMPUTING.
Tutorial of Unix Command & shell scriptS 5027
CS1010: Intro Workshop.
CIRC Winter Boot Camp 2017 Baowei Liu
Getting started with CentOS Linux
Chapter 11 Command-Line Master Class
Web Programming Essentials:
Prepared by: Eng. Maryam Adel Abdel-Hady
Andy Wang Object Oriented Programming in C++ COP 3330
The Linux Operating System
Shell Environments.
Tutorial of Unix Command & shell scriptS 5027
Basic UNIX OLC Training.
Tutorial of Unix Command & shell scriptS 5027
Web Programming Essentials:
Tutorial of Unix Command & shell scriptS 5027
A Brief Overview of Unix
Getting started with CentOS Linux
Andy Wang Object Oriented Programming in C++ COP 3330
TA: Maya Rodrig Our C++ guru: Nic Bone
Linux Shell Script Programming
CSE 303 Concepts and Tools for Software Development
Video Notes.
Introduction to Linux and Code Editing
Presentation transcript:

Development Environment Basics Dominik Gehl May 3rd, 2004 Development Environment Basics Developing the Tools May 3rd, 2004 Montréal, Québec Dominik Gehl Hôpital Ste-Justine, Montréal Lecture 1.2 (c) 2004 CGDN

Lab Objectives Become familiar with: Linux Eclipse Command line basics Editors Eclipse Create a new Java Project Configure preferences Connect to a CVS server Lecture 1.2

Linux – Short Command Reference List directory content ls –al directory/ Change directory cd ../../destination/ cd - Copy file cp source.txt destination.txt Move or rename file mv source.txt destination.txt Lecture 1.2

Other Useful Commands Lost in the directory tree ? pwd Don’t know who you are anymore ? whoami Which files are executed ? which executableName Need help ? info command man command Lecture 1.2

Finding Files Several tools exist to help you find your files By filename find / -name ”*pattern*” find can also be used to find files which have been modified in the last several days/hours/minutes etc. By file content fgrep –recursive –i pattern * Lecture 1.2

Let’s Find Eclipse Eclipse is installed on your computer … but where ? Is it in the path ? which eclipse Let’s search for the filename “eclipse” find / -name “eclipse” find / -name “eclipse” … we can now start eclipse by typing /soft/diro/opt-linux-redhat-9.0/eclipse-3.0/eclipse Lecture 1.2

Linux File Permissions Permissions can be given to read, write and execute files and directories Execute a directory means to be able to cd into the directory Read a directory means to be able to ls the files in the directory File permissions are given on a user, group, and ‘everyone else’ basis Lecture 1.2

File Permission Values rw-r--r-x means that the owner has read and write rights, the group read-only rights and ‘everyone else’ read and execute r has a value of 4, w of 2 and x of 1 Calculate the sum and you have to numerical permission values (645 in the above example) Permissions can be changed with chmod Lecture 1.2

Linux References The Linux Documentation Project http://www.tldp.org Introduction to Linux – A Hands on Guide http://www.tldp.org/LDP/intro-linux/html/index.html http://www.tldp.org/LDP/intro-linux/intro-linux.pdf The Linux System Administrators’ Guide http://www.tldp.org/LDP/sag/html/index.html http://www.tldp.org/LDP/sag/sag.pdf Lecture 1.2

Secure File Transfers ssh allows you to execute commands on a remote server ssh –l login serverName scp allows to copy files between different computers scp login@server:~/file . scp file login@server:/home/ If you don’t want to type your password every time, have a look at ssh-keygen Lecture 1.2

Editing Files Several editors are available: vi Emacs Pico The most used ones are vi and emacs (both are installed by default and work in text-only mode) Lecture 1.2

Emacs Command Reference Quit Ctrl-x Ctrl-c Save Ctrl-x Ctrl-s Save As Ctrl-x Ctrl-w Cancel Ctrl-g Select bloc Ctrl-Space Cut bloc Ctrl-w Paste bloc Ctrl-y Lecture 1.2

Vi Command Reference Quit Esc : q Save Esc : w Quit without saving Esc : q! Save and quit Esc : wq Lecture 1.2

Editor References Emacs Vi Main site http://www.gnu.org/software/emacs/emacs.html Documentation and more http://www.emacswiki.org Printable reference card http://www2.iro.umontreal.ca/~dift1147/Emacs/refcard.pdf Vi http://www.vim.org Lecture 1.2

Shells Different ‘shells’, which allow you to enter commands, are available: Ksh Csh Bash Until the end of the week, we will be using the bash shell. Lecture 1.2

Setting Environment Variables To check the setting of an environment variable, you can use the echo command: echo $PATH Set an environment variable JAVA_HOME=/usr/java/j2sdk1.4.2_01 export JAVA_HOME To permanently set variables, enter the above commands in the .bashrc file Lecture 1.2

Bash Programming Basics Do something to several files for i in `ls` do echo $i other commands here done If statements if [ -d fileName ]; then commands fi Lecture 1.2

Bash References Main site http://www.gnu.org/software/bash/bash.html Advanced Bash-Scripting Guide http://www.tldp.org/LDP/abs/html/index.html http://www.tldp.org/LDP/abs/abs-guide.pdf Lecture 1.2

Eclipse Main Window Lecture 1.2

Create New Project File – New Project Lecture 1.2

Create New Class File – New Class Lecture 1.2

Edit Code Lecture 1.2

Run Application Lecture 1.2

Classpath Lecture 1.2

Add Variable to Classpath Lecture 1.2

Debug from Eclipse Debugging can be done by inserting System.out.println statements all over your code … or (much better) Logging libraries (Log4j) By using the debugger integrated into Eclipse Just set a breakpoint after the start of the main method by double-clicking on the bar left of the edit window Lecture 1.2

Setting a breakpoint Lecture 1.2

Start Debugging Lecture 1.2

Run Step by Step Lecture 1.2

Run Step by Step Lecture 1.2

Configuration - Tabs or Spaces Lecture 1.2

Configuration - Tabs or Spaces Lecture 1.2

Configuration - Indentation Lecture 1.2

Configuration - Indentation Lecture 1.2

CVS Lecture 1.2

Eclipse References Main site http://www.eclipse.org Eclipse FAQ http://www.eclipse.org/eclipse/faq/eclipse-faq.html Eclipse Plugins http://www.eclipse-plugins.info http://www.eclipseplugincentral.com Lecture 1.2