100 likes | 229 Views
Intro to CSIS Unix Lab. Lab 304. Logging on. First time login Log into homer If asked for Session, C hoose Java Desktop System Common Desktop Environment is being phased out Enter username Enter password No characters are displayed when typing password. Files.
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