![]() |
Henry A. Rowland Department of Physics and Astronomy
PUC Lab |
Q. How can I connect to JHUNIX or other computers from the PUC Lab?
A. There are several solutions, depending on your requirements.
Q. How can I connect to a PUC Lab computer from outside the Department?
A. If you are at a windows machine and you are within the Hopkins
network, you can connect to a shared folder by mapping a network drive.
Do this by opening Windows Explorer, selecting "Map Network Drive"
from the tools menu, and a pop-up box will appear. Where it says
"folder" enter \\nevill.pha.jhu.edu\users\yourusername.
You may also try \\128.220.143.168\users\yourusername.
Click if it says "Connect using a different user name" and enter your user name and password where indicated. You may need to preface your username
with PUC\ as in PUC\yourusername.
From outside the campus network, use JHSecure to get through the campus firewall. Please note that if you are on RESNET, you
may still require JHSecure to get through to the PUC network.
Q. How do I use the Secure Shell Client?
A. Start Secure Shell Client from the Start Menu --> Programs --> SSH Secure Shell -->
Secure Shell Client. A window will pop up that looks like this:

Click "Quick Connect" and the following box should appear:

Type the remote computer's IP address in the Host Name textbox
and in the User Name textbox type in your username for the
computer to which you are trying to connect. Leave the port number at
22 (which is the default port for SSH), and click the connect button.
You will be prompted for your password for the account on the computer to which you are trying to connect. A "Host Identification" dialog box, like

may appear; in this case, select "yes" and save the host key to your computer.
Q. How do I connect to a X Windows Host?
A. First connect to the host using Secure Shell (SSH) (see the previous answer for how)
Run XWin32 from the Start Menu: Start Menu --> Programs --> X-Win32 --> X-Win32 The connect method window shown below pops up:

export DISPLAY=your.computer.name:0
setenv DISPLAY your.computer.name:0
your.computer.name with the actual name of the workstation you are using (The name is written on the case) albert.pha.jhu.edu for example.xterm to test this.

A.
The following assumes that your laptop runs Windows XP or an equivalent.
Create a file named startup.bat using Notepad or another pure text editor.
If this file is placed in the "startup" folder, it will be executed
whenever you log on to the computer. (On my laptop this location is
C:\Documents and Settings\Steve\Start Menu\Programs\Startup.) If the file
is placed on your desktop or elsewhere, you need to execute it (e.g.
double-click on it) to make the connections.
The file should have the following two lines:
net use Z: \\128.220.143.168\users\yourusername yourpwd /user:PUC\yourusername
net use P: \\128.220.143.168\users\AdvLabShare yourpwd /user:PUC\yourusername
Here, yourusername is your PUC username, and yourpwd is the password for
your account.
To make a connection to the PUC Lab Laserprinter, you can simply use the
"Add Printer" wizard on your computer after executing the startup.bat
file.
Or, you may add the following line to the startup.bat file, so that the
printer connection will be made automatically:
rundll32.exe printui.dll,PrintUIEntry /in /n\\128.220.143.168\PUCLaser /c\\youripaddress
where youripaddress is the IP address of your own computer. By the way,
each of the three lines above need to be typed as a single long line, so that startup.bat
has three lines.
Example: if I'm logged onto a laptop whose IP address is 128.220.147.202, the complete batch file would look like this:
net use Z: \\128.220.143.168\users\Steve Stvpwd8 /user:PUC\Steve
net use P: \\128.220.143.168\users\AdvLabShare Stvpwd8 /user:PUC\Steve
rundll32.exe printui.dll,PrintUIEntry /in /n\\128.220.143.168\PUCLaser /c\\128.220.147.202
Notes:
cmd in the Start-->Run
box, which will give you a DOS prompt, and type ipconfig at the DOS prompt
(clicking the ENTER button after each).