Using laptops at CITA

Please note troubleshooting section at end of page



Laptops can be connected to the CITA network using DHCP and either an ethernet cable or a wireless connection.  Your IP address will have the form 192.168.10.x. In order to use the wireless, you will have to enter the CITA SSID (``cita'')and the following 128 bit HEX key: a0b5681adff631b5320744ee5c

When you first log in you will have to open a browser and input your regular cita username/password in order to authenticate.

We run an internal firewall to protect CITA machines from laptops (which could be infected before coming onto our network). You should have no problem using ssh (port 22), or a web browser (port 80) but other services (even ping) may be denied.  For security reasons, we don't allow you to mount CITA disks or use the CITA SMTP server. CITA had once been blacklisted, preventing outgoing e-mails, due to an infected laptop.


In order to print you will have to ssh tunnel a connection to our print server (grouse). Details below.

Linux Postscript

In order to print via grouse, you must use SSH to forward port 631 to your computer, then print via this forwarded connection.

# /etc/init.d/cups stop
# ssh -l <username> -L 631:grouse:631 <cita workstation>

Now in another terminal, print files via:
$ lp -h localhost filename.ps


Windows

Secure Shell

This is the same process as Linux, just using Secure Shell, available from SSH.com. Start up Secure shell. Select "Edit" from the top menu bar, then "Settings...".
Navigate to the 'Tunneling' settings, then enter the following 'Outgoing' information:


Make sure this is under the outgoing tab

Now select 'Quick connect' and connect to host any regular CITA workstation with your CITA username and password.
Be sure to keep this window open. Select Start -> Printers and Faxes -> Add Printer.
Select 'Network Printer' and then enter the url http://localhost:631/printers/trillium, or whatever other printer you wish to use. Do not send a test page when prompted, as you will be charged for this.


Putty

To print with tunneling via Putty, navigate to Connections -> SSH -> Tunnels and enter the following information:

Now simply click 'Add' and connect to any CITA host like normal. You can set up the printer in Windows by using the 'Add Printer' dialog like in above.





MacOS

If you use MacOS and know how to SSH tunnel or would like to volunteer your Mac to allow us to develop these instructions, please email requests@cita.utoronto.ca

Printing from MAC

In order to print directly from a MAC machine to a CITA printer, you'll need to put the following script (replacing $USER with your username) in ~$USER/Library/PDF\ Services/citaprint (the '\ ' is just a space), and it will have to be made executable (chmod 700 citaprint). You'll also need to have ssh-agent setup, so that you can scp/ssh without a password. Then, when you actually want to print, select 'print' from the File menu. In the lower left hand corner of the printer menu, there is a button labeled 'PDF' with a down arrow. Click it, and select 'citaprint'.

#!/bin/sh
Title=$1
Opts=$2
File=$3

cp "$3" ~$USER/y.pdf
scp ~$USER/y.pdf $USER@kodiak:
ssh $USER@kodiak lpr y.pdf




Sending mail from laptops

If you want to be able to send mail from your laptop, you have 3 options:
* open pine
* X forward thunderbird (or another email client of your choice)
* make a vnc server
Preferably, all of the above should be done either on kodiak or on your regular CITA machine.


Troubleshooting

Open up your web browser of choice and try to connect to "http://localhost:631/". If you do not receive the "Common Unix Printing System" start page, your tunnel isn't working. If you do receive this page, check the 'Manage Printers' link. You should see 'trillium' listed as well as others. If you do not, you are connecting to the wrong host. Double check that CUPS is disabled on your machine and you're connecting to 'grouse'