CMPSC 311, General Instructions

Logging In -- Locally, in 218 IST



You will need your PSU ID card to enter the room.  Don't forget it.  There is a card reader by one of the doors.  Note that the other door has an exit alarm - leave the room by the door where you entered.  Don't block the doors open, or jam the locks.

We will use the name username in place of your own user name on the PSU CSE Dept. Unix and Windows systems.  Check with the instructor if you don't already know your user name; it is probably the same as your PSU Access Account ID, but that's not guaranteed.

We will use the name labsystem in place of the name of one of the workstations in 218 IST.  They can be used locally, at the console, or remotely, via the Internet.  The full Internet name would be labsystem.cse.psu.edu .  Instructions for remote access will be found here.

The complete list of workstation names in 218 IST is

    p218inst01 p218inst02 p218inst03 p218inst04
    p218inst05 p218inst06 p218inst07 p218inst08
   
    p218inst09 p218inst10 p218inst11 p218inst12
    p218inst13 p218inst14 p218inst15 p218inst16
    p218inst17 p218inst18 p218inst19 p218inst20
    p218inst21 p218inst22 p218inst23 p218inst24
    p218inst25 p218inst26 p218inst27 p218inst28
    p218inst29 p218inst30 p218inst31 p218inst32
    p218inst33

The first group consists of Dell Precision T7500 workstations, each with an Intel Xeon E5603 processor (4 cores, 1.6 GHz), 4 GB of DDR3 ECC 1333MHz SDRAM, 21.5" display, Windows-compatible keyboard, two USB plugs, etc.  In Linux terminology, the processor is the x86_64 architecture with 40 bits physical address, 48 bits virtual address, without Hyperthreading.  These systems include an FPGA device used in CMPEN/EE 417.  The software is Red Hat Enterprise Linux 5, with Linux kernel 2.6.18 and GNOME 2.16 or KDE 3.5.4.

The second group consists of Dell Optiplex 790 workstations, each with an Intel Core i5-2400 processor (4 cores, 3.1 GHz), 8 GB of DDR3 Non-ECC 1333MHz SDRAM, 19" display, Windows-compatible keyboard, four USB plugs, etc.  In Linux terminology, the processor is the x86_64 architecture with 36 bits physical address, 48 bits virtual address, without Hyperthreading.  The software is Red Hat Enterprise Linux 6.2, with Linux kernel 2.6.32 and GNOME 2.28.2 or KDE 4.3.4.

Important!  Do not turn the workstation off in an attempt to clear a problem by restarting.  It's possible that the problem is unique to you, and that someone else is using the system remotely.  If you think there's a problem that requires attention of the support staff, send mail to helpdesk@cse.psu.edu, or contact the instructor.

Important!  Do not mess with the cables.  Obviously, if a connector seems loose, you can push it in.  The Optiplex systems have an extra VGA monitor cable, for use with a laptop; don't swipe it.

Important!  This is a shared lab.  Keep it clean.  Behave nicely.  If you find something that another student has forgotten, try to contact that person, or bring the item to Beth Kennedy in 342C IST between 8 am and 5 pm, Monday - Friday.

Important!  If you need to leave the lab and plan to return soon, then you can lock the screen and unlock it later with your password.  It would be polite to leave a note on the keyboard.  If you expect to be gone for a long time (say, half an hour or more), then logout and give someone else a chance.  If you leave without logging out, then the screen saver will eventually take over, and your password will be needed to unlock it.

The room lights in 218 IST are on a motion sensor switch.  They should turn on when you enter the room, and will turn off if you sit for long enough.  Use that as a hint to get up and stretch.

Just as a vocabulary issue, here we are using "workstation" to refer to the computer itself, and "console" to refer to the screen, keyboard and mouse associated with a workstation.  You can use the workstation remotely with a "virtual console", or with a terminal window from another Unix system (Solaris, Linux, Mac OS X), or with a terminal window from Windows with the right support software.  Those instructions will be found here.



OK, you're in 218 IST ready to log in for the first time.  Pick any of the workstations.

After touching any key on the keyboard, you should see a login screen like

[Systems 01 to 08]

Red Hat Enterprise Linux 5

Username:       [an open box]

Language     Session     Restart     Shut Down

[Systems 09 to 33]

p218inst09.cse.psu.edu

Username:       [an open box]

                        Log In

If you don't see anything on the screen at all, be patient, then maybe try the power switch on the front of the monitor (not the power switch on the computer itself!).  It's possible the console is locked by another user (the screen would say Display locked by user ..., and it needs that person's password to unlock it), or the system is just not working correctly (maybe you should send mail to helpdesk@cse.psu.edu).

The console has a 2-button mouse with a scroll wheel, which also acts as the middle button.  The keyboard is a typical Windows PC keyboard.  If you want to use the numeric keypad to enter digits, be sure to press the NumLock key first.

[Systems 01 to 08]  On the login screen, click on Language for a menu (Afrikaans to Zulu), and click on Session for the choices GNOME, KDE or Failsafe Terminal.  The recommended settings are English (USA) and GNOME or KDE.  Don't click on Restart or Shut Down; if you do, then Cancel.  Remember, someone else may be logged in remotely.  Type your Username, then tab or Enter; the next screen will appear, so type your password, and tab or Enter.

[Systems 09 to 33]  The login screen has a selector for Universal Access Preferences and Shut Down options (don't).  Type your Username, then Enter (or click Log In); the next screen will appear, so type your password, and Enter (or click Log In).  On the Password screen, you can select a Language and a Session (GNOME or KDE).

On your first console login, you will be required to change your password (details below).  Your initial password is your nine-digit PSU student ID number followed by Cse.  Click on the terminal window that opened up, and enter your new password.  Don't forget it.

If the system doesn't respond to your login attempt in a reasonable time, give up, cancel the login attempt, and try another system.  You might have the wrong user name, the wrong password, an expired password, or your window manager might be configured incorrectly.

For more information on the window managers, see



Some notes on KDE (on RHEL 5)

There are four workspaces (virtual desktops); see the lower left task bar.

Right-click on the desktop background for a pop-up menu.  To log out, select the desktop menu Log Out, or use the K Menu.

In the task bar (bottom left), click on the Red Hat symbol for the K Menu.  For a web browser and terminal window, select
For one of the recommended editors, pick one of these:
These will open an editor window running emacs or vim, with some basic usage instructions displayed.

For an interactive development environment, try one of these:
To run Eclipse, you need to specify a workspace, which is a designated directory.  Use the Browse button to make a selection, or to create a new workspace.

For system information, try K Menu / System Tools / KInfoCenter.



Some notes on GNOME (on RHEL 5)

There are four workspaces (virtual desktops); see the lower right task bar.

Right-click on the desktop background for a pop-up menu.  To log out, select System / Log Out on the upper left task bar.

In the task bar (top left), these are useful:
You may discover Applications / Accessories / Text Editor, which is gedit, not a tool for serious programmers.  But, if you're not yet ready to invest the time to learn vi or Emacs, gedit will do.



Some notes on GNOME (on RHEL 6)

There are two workspaces (virtual desktops); see the lower right task bar.

Right-click on the desktop background for a pop-up menu.  To log out, select System / Log Out on the upper left task bar.

In the task bar (top left), these are useful:
You may discover Applications / Accessories / gedit Text Editor, which is not a tool for serious programmers.  But, if you're not yet ready to invest the time to learn vi or Emacs, gedit will do.

On the upper task bar, the time and temperature defaults to Boston; this is easily changed.



Some notes on KDE (on RHEL 6)

There are four desktops (lower left task bar).  Right-click for the desktop menu.  To logout, select the desktop menu Leave, or the Kickoff Application Launcher / Leave / Logout.

In the task bar (lower left), click on the Red Hat symbol for the Kickoff Application Launcher.  Select



Some notes on Emacs

When reading the Emacs instructions, C-x means Control-x, M-x means Meta-x, or Alt-x since no one has Meta-keys anymore.

C-h ?  opens a Help buffer; use the scroll bar or arrow keys to navigate within the buffer.  Right-click on the Help bar at the bottom of the buffer to close it.  Next time, use the Help menu at the top of the screen; it's much easier.  Even better, open a web browser and go here.

C-h t starts the Emacs Tutorial.



Passwords
The current CSE Dept. rules for choosing a password
Use the command adpasswd to change your password at any time.
If your password is not accepted, check the CapsLock and NumLock lights, and perhaps try again.

If you get a message "Account Locked" it's because there were too many tries with a bad password.  Try again in 15 minutes.  This is to slow down automated password-guessing attacks.

Passwords expire after one year.  Starting two weeks before that, you will get a daily reminder message by email.



How to get out of various kinds of trouble

You forgot your user name.  Contact the instructor.

You forgot your password.  Visit Barb Einfalt in 111D IST, between 8 am and 4:30 pm Monday - Friday, and bring your PSU student ID card.

Your PSU ID card does not let you into 218 IST.  Visit Barb Einfalt, or one of the staff members on the same corridor, or send email to helpdesk@cse.psu.edu.

Something happened that requires the attention of the system administrators.  Send mail to helpdesk@cse.psu.edu but please don't do this lightly.  In particular, they won't help with your homework.

Your window manager at the console seems to be irretrievably screwed up.  There are three possible solutions:
See also, the CSE computing FAQ  (login required) for info on various topics, including wireless access from within the IST building.



Some additional notes on Terminal Windows

Open a terminal window.  This will get you a command-line interface to a command interpreter, or shell.
You can left-click, drag and release to highlight text in the terminal window.  You can then middle-click to copy the highlighted text to the same terminal window or another one.  Double-left-click highlights a word, triple-left-click highlights the whole line.

Be careful not to use control-C and control-V when you want to copy and paste highlighted text in a terminal window.  Use shift-control-C and shift-control-V instead.  Control-C in Unix is used to interrupt a command, quite different from control-C on Windows.  Control-C on DOS works like control-C on Unix, but we don't speak of such things here.

Note that left-click-drag does not copy text to the clipboard, but shift-control-C does.  Middle-click copies from the highlighted text, if any, and shift-control-V copies from the clipboard.  There are also Copy and Paste menu buttons, under Edit.

When entering commands, you can use the left- and right-arrow keys to move through the current command text, for example to add or delete characters to an incorrect or incomplete command.  The up- and down-arrow keys will display previous commands.  Just type Return to run the command; you don't need to be at the end of the line for this.

Type control-U to clear the current command line.

The exit command terminates the shell and closes the terminal window.

Read the Help information from the menu bar of Terminal Help / Contents.  Right-click in the terminal window for a menu.

Open a Web browser (1).  From a terminal window command line, type
firefox &
This will open a new window for the browser.  If you get a "Command not found" response, try /opt/csw/bin/firefox which is the full pathname of the command, and see the new_dots discussion above.

Open a Web browser (2).  See the above instructions for GNOME or KDE.



Other things we should have mentioned



Miscellaneous items

220 IST is a Windows lab.  It is often reserved for classroom use during the day, so check the schedule on the door before entering.

When you decide to order pizza, keep it at the tables outside the lab, not in the lab.



Last revised, 11 Jan. 2012