User Tools

Site Tools


reu:lab_directions

Laptop Operation Guidelines

  1. Once powered on, log in using the labuser account. This account should not prompt for a password.
  2. Wait until the computer prompts for credentials. These credentials are used to connect to the local wireless network (PAL2.0). Click on the message to display a window that prompts for User name, Password and Logon Domain. For these text fields, Career Account credentials must be used, not CS Account credentials. The Logon Domain field can be left blank; this will not affect network connectivity and/or validation.
  3. Open the Windows Command Prompt command line. This command line can be used to execute a majority of the commands needed to complete the assignments that require the laptops and/or the leJOS Mindstorms Robot. Windows Command Prompt can be easily opened via the Desktop shortcut or by going to Start → All Programs → Accessories and clicking on Command Prompt. The instructions that follow assume that there is a functioning command line on the console, and the commands that are presented are to be entered on the command line.
  4. After obtaining a network connection, you may map your Lore server network drive in order to complete your assignment(s).
    • This can be done conveniently via the map command. Just type map, and then the user name that you use to log into the Lore servers. Once prompted, enter the password that you use to access the Windows servers. The characters typed during this step are not displayed on the console; therefore, take care when typing in your password.
      >map jsmith
    • Note that if no network connection is present, the console will display an error message. This means that the connection to the local wireless network was not successful or it has not been completed yet. If this occurs, wait until the system notifies you that the network connection has been established or prompts for network credentials; if the latter happens, follow step number 2. If the computer does not prompt for credentials or connect to the network, log off and log on again.
    • After the mapping is successful, the current working directory will automatically be changed to the mapped network drive (defaulted as the H drive).
    • This is not an OS native command; it has been coded and added to the system manually. The batch file can be found in the C:\Program Files\bin directory of the laptops.
  5. From here, you can navigate your account on the Lore servers and complete your assignment(s).
    • Some useful commands:
      1. dir : This is the Unix equivalent of ls. It is used to display the contents of the current working directory.
      2. cd [directory] : This is synonymous to the Unix cd command. It is used to change the current working directory.
      3. drjava : Starts the DrJava IDE.
      4. javac [source] : Compiles Java source files that are meant to be executed on the local machine. Files that are to be executed on the NXT Brick must be compiled using the nxjc command. The javac command is synonymous to the Unix javac command. The source name must include the .java file extension. For multiple source files, the asterisk (*) may be used for simplicity in place of multiple source names.
        >javac MyClass.java
      5. java [source] : Executes compiled Java class files. This command is used to run the class files of programs that are intended to be executed on the local machine, not the NXT Brick. To run programs on the NXT Brick, the nxjr command must be used. Note that the source name here does not require the .java extension.
        >java MyClass
        • Even if a program contains multiple source files, only the main class needs to be mentioned in the java command.
          >javac MyClass1.java MyClass2.java MyClass3.java
          >java MyClass1
          >javac *.java
          >java MyClass1
      6. nxjc [source] : Compiles Java source files that are meant to be executed on the NXT Brick. The source name must include the .java extension. For multiple source files, the asterisk (*) may be used for simplicity in place of multiple source names.
        >nxjc MyClass.java
      7. nxjr [source] : Loads and runs binary files on the NXT Brick. This is to be done after the nxjc command. Note that the source name here does not require the .java extension.
        >nxjr MyClass
        • Even if a program contains multiple source files, only the main class needs to be mentioned in the nxjr command.
          >nxjc MyClass1.java MyClass2.java MyClass3.java
          >nxjr MyClass1
          >nxjc *.java
          >nxjr MyClass1
  6. Once you are done using the laptop, you are strongly advised to delete your personal settings so that the next user does not have access to your account. This can be easily done by executing the clean command.
    • This is not an OS native command; it has been coded and added to the system manually. The batch file can be found in the C:\Program Files\bin directory of the laptops.
  7. If any complications arise, students should ask the TA for assistance.
reu/lab_directions.txt · Last modified: 2009/03/29 12:05 by akhandok