1 / 26

Introduction to UNIX

Introduction to UNIX. Lecture 4. Computing Environment. PC vs. UNIX Many PCs use a version of the Microsoft Windows operating system (perhaps 98/ME or more likely 2000/XP). This year, the C How To Program book has a CD with Visual C++ Version 6.0 – More later

Télécharger la présentation

Introduction to UNIX

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to UNIX Lecture 4 Winter Quarter

  2. Computing Environment • PC vs. UNIX • Many PCs use a version of the Microsoft Windows operating system (perhaps 98/ME or more likely 2000/XP). • This year, the C How To Program book has a CD with Visual C++ Version 6.0 – More later • UNIX is an operating system used primarily on workstations. There are versions for Personal Computers. LINUX is a version of UNIX. Each UNIX has its versions of C and C++ languages. Winter Quarter

  3. UNIX • Originally written by programmers for programmers at Bell Labs. • Often is the operating system of choice for high-performance engineering workstations. • Original (and still common) user interface is the "UNIX command line", although graphic user interfaces (GUIs) are available. • Names of UNIX commands tend to be a little cryptic or strange. Winter Quarter

  4. UNIX Command Line Interface • We will use the "UNIX command line" user interface for much of the work in this class. • The availability of some limited graphic user interface capabilities is provided by special terminal emulation software. • The emulator runs on the PC and makes the PC system act like an "X-Windows" terminal and is called XWin32 (OSU site licensed). • Simple Secure-Shell terminal emulation can also be used (also site licensed). Winter Quarter

  5. Some Simple UNIX Commands Winter Quarter

  6. Your Computer Accounts • Each student actually has two separate computer system accounts for ENG H192: • One for the personal computers • One for the UNIX system (Linux) • Each account is established only for the duration of the current quarter (i.e., the files stored under your Au Quarter's H191 account(s) may be gone) • Each account has a separate, distinct password for logon. Changing the password on one system (PC) does NOT change on it the other system (UNIX). Winter Quarter

  7. Your User ID and Default Password • The User ID for both of your computer accounts is simply your OSU email ID (name.#) • The default password for both accounts is: • The first letter of your last name • The first three digits of your SSN in reversed order • Your entire first name • Written as one "word" in all lowercase Winter Quarter

  8. Figuring out Your ID & Default Password • So, as an example of a User ID and a default password, let's suppose: • Your name is "Woody Hayes" • Your SSN is 987-65-4321 • Your OSU email address is hayes.1@osu.edu • Then, Wayne Woodrow "Woody" Hayes would logon as: • User ID: hayes.1 • Password: h789wayne Winter Quarter

  9. Logging On to a PC in HI 324 Windows XP Logon • Press “Ctrl - Alt - Del”, if so instructed • Fill in the logon window with • Your User ID • Your Password (watch case of text) • The Domain (ENGR1) Winter Quarter

  10. Logging On to the PC Winter Quarter

  11. Changing Your Password on the PC (Press Ctrl -- Alt -- Del) Winter Quarter

  12. Changing Your Password on the PC Winter Quarter

  13. Logging On to the Linux (UNIX) System • After logging onto the PC: • Click on “Start”, • Then Point “All Programs” menu, • Then point to “X-Win32” and Click • Then when prompted, enter your User ID and your UNIX system password Winter Quarter

  14. Enter Your User ID & UNIX Password Winter Quarter

  15. Red Hat Linux desk top Click on the Red Hat to display menu Select ‘System Tools’ – Then select ‘Terminal’ Winter Quarter

  16. Linux desk top with two Terminal Windows Winter Quarter

  17. Accessing the LINUX System From Outside the Classroom • There are three convenient ways to access the Linux system from outside this classroom: • Use the computers in the open computer lab, Hitchcock Hall 324 • Download and install the X-Win32 X Windows terminal emulator on your machine • Download and install the Secure Shell (SSH) Client terminal emulator (a more “secure” TELNET-like kind of connection) • Any OSU site-licensed software package can be downloaded from: http://osusls.osu.edu Winter Quarter

  18. Logging On to the UNIX System with SSH • With the Secure Shell Client installed on a PC: • Click on “Start”, then point to “All Programs” menu, • Then point to “Secure Shell Client” and click • When SSH window appears, click on “Quick Connect” in upper left part of window • Enter “Host Name” as: r1rhl.eng.ohio-state.edu • Enter your “User Name” and click • Enter your “Password” when prompted Winter Quarter

  19. Connecting with the SSH Client First, click on “Quick Connect” Then, type in “Host Name” & “User Name” r1rhl.eng.ohio-state.edu Finally, “Connect” Winter Quarter

  20. Using SSH • When logging on for the first time, you may be prompted to save a “host public key”. • With the SSH Client: • You can have more than one command line “window” to the UNIX system • You will not be able to use any UNIX programs which require the “X Windows” environment without losing capability. This would include full screen editors like “emacs”. • vi is the recommended editor for Secure Shell Winter Quarter

  21. Today's Assignment – G03 • In assignment G03, you are asked to logon on to the UNIX system and try a few commands. • In Part A, write down the command you typed for each of the seven steps. • In Part B, choose an editor program and type in the given computer program. • UNIX editor choices include: • vi (either SSH or X Win32) • emacs (X Win32 only) • We will be using the C++ compiler so the file extension must be .cpp • To compile the program use g++ -o g03.out g03.cpp Winter Quarter

  22. Dual Boot Computers • The computers in the classrooms are dual boot. • This means that they can run Microsoft Windows XP or Red Hat Linux OSU V1.0 • The default operating system is Windows XP • To run Red Hat Linux the machine needs to be restarted or turned off and started again. • When it is booting, there will be a point where you can select Linux rather than XP. Winter Quarter

  23. Dual Boot Computers You will see two lines printed as follows: Microsoft Windows XP Red Hat Linux OSU V 1.0 Use the down arrow to highlight Red Hat Microsoft Windows XP Red Hat Linux OSU V 1.0 Then press Enter Winter Quarter

  24. Dual Boot Computers The login information is similar to the previous slides. Winter Quarter

  25. Dual Boot Computers You will see this image after the login as the computer continues to boot. Winter Quarter

  26. Dual Boot Computers To log out, click on the Red Hat and then Logout Winter Quarter

More Related