Space University of Florida - The Foundation of the Gator Nation
University of Florida College of Liberal Arts and Sciences
Space
Quantum Theory Project QTP Home page
Slater Lab

Laptop and desktop network printer configuration

NOTE Before connecting to the Slater Lab printers you should first verify that the network connection and your password work coprrectly. This is most easily done by connecting to your home disk on the QTP server by following these instructions.

Defining QTP printers on Windows 2000 and Windows XP systems

NOTE At this time it seems that it is necessary to install \\buddy\lj first. Then you can install \\crunch\lj and it will also install the correct driver that has duplex-option enabled.

To define the HP LaserJet printers on a Windows machine, click on the Install new printer icon in the Start - Settings - Printer folder. Then select network printer and specify one of in the Name field
\\buddy\lj
or
\\crunch\lj

Because your computer may have been connected to crunch before the move to the new network, it may remember an old IP address that no longer works. To force it to connect to the correct server, type in the IP address form
\\128.227.192.2\lj
or
\\128.227.192.1\lj

Browsing for the printer in the network neighborhood no longer works for an as yet unknown reason.

It is only necessary to define lj since it will print on either lj1 or lj2 whihcver is not busy.

You can make the printer your default printer or not. You can change the choice later.

Windows will automatically download the correct driver for your system from crunch. The supported operating systems are Windws 2000, and XP, both the 32-bit. Winodws 98 and ME are not supported.

If the above does not work...
It is also possible that the above steps do not work because of a miscommunication between the Windows on your computer and the SAMBA server about the model of the printer. Then the "Printer Install" wizard installation will fail with the error that the server does not have the correct driver.

Then you must resort to the procedure outlined below for Windows Vista, which also does not understand the printer model description given by the SAMBA server. if the steps below do not work, that they will work after you install the driver. The driver can be downloaded from Hewlett-Packard at ftp://ftp.hp.com/pub/softlib/software10/COL23978/lj-62396-2/HP_CLJ_CP3525_PS_32bit_HPDIU.exe or from here The PCL driver does work even though the printer system requires PostScript.

Defining QTP printers on Windows Vista and Windows 7 systems

Windows Vista and Windows 7 will not automatically connect to a SAMBA server, which presents itself as an older version Windows server. One must force it to connect to the printer.

Windows 7 already has the correct driver installed. So you can proceed directly to the next step.

For Windows Vista, and if Windows 2000 and Windows XP "Printer Installation" wizard fails, you need to download and install the driver first. The driver can be downloaded from Hewlett-Packard at ftp://ftp.hp.com/pub/softlib/software10/COL23978/lj-62396-2/HP_CLJ_CP3525_PS_32bit_HPDIU.exe or from here (The PCL driver does work even though the printer system requires PostScript.)

  1. After downloading, you must run the executable which will unpack the installation files and put them in a folder on C:. You can delete this folder after everything is done.
  2. Go to Start Panel; type "Run" in the search box; scroll down and click on the "Run" icon in the search results; type "cmd" in the Run... menu
  3. In the command window, type the following command:
    net use LPT1: \\crunch\lj /persistent:yes
    or
    net use LPT1: \\buddy\lj /persistent:yes
    	      
    LPT# is the number of the port printer port. You can choose 1-3.
  4. Go to Start Panel; type "Printers" in the search box; click on the "Printers" icon in the results; click on "Add a printer" in the top menu.

    Now there will be a wizard that you have to go through:

    1. Click "Add a local printer"
    2. Select "Use an existing port:" and select the number of the port that you used in the command above (LPT#); click Next
    3. Select "Have local disk" and use the file browser to go to the folder on C: created before.
    4. Name the printer and print a test page

You can also install the local printer first and then connect to the printer using the following script launched with administrative rights:

net use LPT1 /delete
net use LPT1 \\crunch.qtp.ufl.edu\lj /persistent:yes
	  
You must click on "Run as Administrator" to execute the commands. This will install a local printer on port LPT1 connected over the network to the SAMBA server. Now the printer will use its own driver, which you installed or was already present, instead of the driver supplied by SAMBA.

Defining QTP printers on MacOS X 10.3 and 10.4

You must activate the "Samba Server" capability in MacOS. The info on starting the Samba Server is on this web page http://www.macdevcenter.com/pub/a/mac/2003/03/18/samba.html Basically, you have to do the following:

Printers shared by Windows PCs that are on a different subnet than your Mac will not be listed. You can manually add printers shared by a Windows computer on another subnet using the steps below. Be sure to use the computer's IP address---not the computer's workgroup and name when adding the printer manually.

How to manually add a Windows shared printer

  • Open Printer Setup Utility (located in /Applications/Utilities).
  • There is a difference between MacOS X 10.3 and 10.4
    1. Mac OS X 10.4.x users: Choose Add Printer from the Printers menu, then hold the Option key while clicking the "More Printers" button.
    2. Mac OS X 10.3.x users: Hold the Option key down while choosing Add Printer from the Printers menu.
  • Choose "Advanced" from the first pop-up menu.
  • Choose "Windows Printer via SAMBA" from the Device pop-up menu.
  • In the Device Name field, type the name you would like to use for this printer in Mac OS X.
  • In the Device URI field, use one of the following formats to link to the printer:
          smb://128.227.192.1/lj
          smb://128.227.192.2/lj
          smb://username:password@128.227.192.1/lj
          smb://username:password@128.227.192.2/lj
          smb://username:password@128.227.192.1:139/lj
          smb://username:password@128.227.192.2:139/lj
          smb://user:password@workgroup/server/sharename
          smb://user:password@server/sharename
          smb://workgroup/server/sharename
          smb://server/sharename
    	      
    Notes: "user" is the name of a Windows user who has privileges to use the printer. "password" is the password of that Windows user. "workgroup" is the name of the Windows workgroup to which the computer sharing the printer belongs. "server" is the name of the computer sharing the printer or its IP address. "sharename" is the shared Windows printer's share name.

    Tip: You don't need a "workgroup" when specifying the IP address of the computer (such as when the printer is on a different subnet), or if your Mac belongs to the same Windows (SMB) workgroup.

  • Choose the appropriate PPD or printer driver from the Printer Model pop-up menu.
  • Click Add.

(These instructions are taken from http://docs.info.apple.com/article.html?artnum=301397)

Defining QTP printers on MacOS X 10.5 and higher systems

You must activate the "Samba Server" capability in MacOS. The info on starting the Samba Server is on this web page http://www.macdevcenter.com/pub/a/mac/2003/03/18/samba.html Basically, you have to do the following:

  • To print correctly on the HP printers you need the device drivers. Download the HP Color LaserJet 3525 installer disk image" and run it on your Mac. The file is a MacOS disk image, download it and open it, and then run it. The installer will ask for confirmation to install the drivers. You will need the administrator password to complete the installation.
  • Open "System Preferences".
  • In the "System Preferences" pane, open "Print & Fax" (under "Hardware").
  • Add a new printer, by clicking on the "+" button which appears just underneath the list of printers (on the left-hand side of the "Print & Fax" pane).
  • A new, untitled dialog will open for the printer creation. It should have seven items up top: "Default", "Fax", "IP", "Windows", and so forth. Click on "Windows".
  • The easiest way to set up printers unfortunatley does not work, because for some reason browsing SAMBA servers does not work.
    1. The main part of the "new printer" dialog will split up into three list panels, of which only the left-most should have anything in it. From this left-most panel, click on "qtpdomain".
    2. The middle panel should now populate automatically. When it has done so, click on "crunch".
    3. A login dialog will now appear. Connect to crunch as a "Registered User", replacing any automatic name (probably your "Full Name" which you gave to the Mac when you first set it up) with your QTP user name. For example, if it says "Joe Bloggs" in the login name box, you'll need to replace that with "bloggs", even if Joe Bloggs' local account on your mac has the username "bloggs". Also enter your password. This is the QTP Samba password, which means it doesn't change when you change your QTP login password, so it's probably the same password you received when you arrived. Click OK.
    4. The right-most panel should now populate. Click on the printer you want to add (e.g., lj, lj1, lj2).
    You must follow the more manual steps.
    1. Define an "Advanced Printer"
    2. Specify manually "Windows printing via SAMBA"
    3. Specify one of the following formats to define the printer
           smb://crunchqtp.ufl.edu/lj
           smb://buddy.qtp.ufl.edu/lj
           smb://username:password@crunch.qtp.ufl.edu/lj
           smb://username:password@buddy.qtp.ufl.edu/lj
           smb://username:password@crunch.qtp.ufl.edu:139/lj
           smb://username:password@buddy.qtp.ufl.edu:139/lj
           smb://128.227.192.1/lj
           smb://128.227.192.2/lj
           smb://username:password@128.227.192.1/lj
           smb://username:password@128.227.192.2/lj
           smb://username:password@128.227.192.1:139/lj
           smb://username:password@128.227.192.2:139/lj
      		  
      One of these should work.
  • In the bottom of the "New Printer" dialog, there are three fields: Name, Location and "Print Using". Name and Location can be changed if you so desire, but there's no harm in leaving them alone (e.g., Name = "lj", Location = empty). The "Print Using" menu, a pop-up, is another story. It should be set to "Select a driver to use...", then a list with a search box will come up so you can select your driver (or the driver for a closely related model by the same manufacturer). Use the one obtained from the first item in this instrcution list.
  • Once you've selected the driver (single click), click Add.

It is only necessary to define lj since it will print on either lj1 or lj2 whihcver is not busy.

Sometimes, you may also have to start Windows Sharing under System Preferences -> Sharing.

More information, especially if the above steps dor not work, can be found at this site

Defining QTP printers on Linux and UNIX systems

NOTE On Ubuntu the installation has a GUI to help you.

From laptops running Linux it is recommended to install the Samba software.

Do not configure the SAMBA server, only use the smbclient program, as follows.

To print a file, for example plaintext.txt, to the printer
\\crunch\lj
use the following command:

     laptopuser@laptop% cat plaintext.txt | \
         smbclient //crunch/lj" -U qtpuser \
         -c "print -"
	  
You will be prompted for your SAMBA password. Notice that Linux will translate the / into \ for convenience, since \ means something special in Unix shells.

You will see output like

     added interface ip=192.168.8.64 bcast=192.168.8.255 
                               nmask=255.255.255.0
     Password: 
     Domain=[QTPDOMAIN] OS=[Unix] Server=[Samba 2.2.3a]
     putting file - as stdin-18684 (10.1 kb/s) 
                               (average 10.1 kb/s)
     laptopuser@laptop ~%
	  

The file will be sent to the samba server using the QTP username qtpuser as authetication and the SAMBA printer will convert the text file into proper PostScript for the printer lj and print the file. It will also record the page charges to the correct QTP account for the QTP username qtpuser even if the username does not match the username laptopuser on the laptop.

All security advisories state that it is a bad idea to configure a printer daemon on a laptop. It may make it easier to print from any window, but it also opens the LPR port on your system. If you configure the lp system to print to a SAMBA server with your QTP username and password, then anyone on the network can send files to your LPR port and have their documents print at your expense.

It may be inconvenient to have to type the smbclient password every time you send a file. You can create a script, only executable and readable by you that uses the password argument of the smbclient command to avoid this.

It would be a simple task for any skilled programmer to modify the smbclient program to take your password interactively and listen to a named pipe $HOME/lj to which only laptopuser has write permission. Then a simple

 
     laptopuser@laptop ~% cat postscrip.ps >
	    $HOME/lj 
     laptopuser@laptop ~%
	  

would print using your credentials as long as you are longged in. This functionality is very similar to that in Windows 2000 and Windows XP provided by network printers established in a login session.

You can download the HP CP 3525dn PPD file and provide it to the Linux CUPS system to define the printer in an alternative way.

>> top

Space Space Space
Space
Have a Question? Contact us.
Last Updated 9/14/09
 
University of Florida