100 likes | 236 Vues
This guide covers the essential steps for first-time login into the CSIS Unix Lab environment and basic file operations. Users will learn how to log into the Java Desktop System, navigate the graphical interface similar to MS Windows, and access the "Documents" directory. We'll explore text editing options like gedit and pico, as well as compiling and running C++ programs via command line. Additionally, the guide provides instructions for printing documents and important telnet tips for efficient file management and operations.
E N D
Intro to CSIS Unix Lab Lab 304
Logging on • First time login • Log into homer • If asked for Session, • Choose Java Desktop System • Common Desktop Environment is being phased out • Enter username • Enter password • No characters are displayed when typing password
Files • Java Desktop is designed to look like MS Windows • A “Documents” directory exists • Double-clicking on Documents opens the File Browser • Right clicking allows creation of file or directory
Text Editing (Graphical) • Graphical Edit • gedit filename(s) • Normally associated with .cc file by File Browser • Allows editing of multiple files • Command line; gedit filename & • Not available via telnet
Text Editing (character) • pico is most popular • Character based much like notepad • Always in input mode • List of commands along bottom of screen • vi is also available • Less friendly • More powerful
Compiling a C++ program • At this point, command line only • In 304 open a terminal window • I right click on the desktop • Via telnet you are in a terminal window • Move to appropriate directory • cd command • Command is g++ filename • Default output is a.out • Assumes a c++ text file has specific file extension • .cc • .cpp
Running a program • Assume executable is a.out • From terminal window type a.out
Printing a program • Graphical • Open print manager • Launch • Preferences • Printer Preferences • Drag file from File Browser to appropriate printer
Printing a Program • Command line • lp –d mh304a file(s) • lpr –Pmh304a file(s) • If used via telnet still prints to Meshel Hall 304
Telnet hints • Connect to csis.ysu.edu • No need to specify homer • Do not use spaces in file names! • Resize the screen before editing • Can have multiple windows open • One for editor • One to compile and run