Difference between revisions of "Printing"

From CS Support
Jump to navigation Jump to search
Line 81: Line 81:
  
 
=== OS X ===
 
=== OS X ===
 +
 
==== Printer Driver Installation - Option 1 ====
 
==== Printer Driver Installation - Option 1 ====
# Open the "Printers & Scanners" preference pane from the System Preferences
 
# Click on the "+" to add a printer
 
# On the "Default" tab (the printer icon). Select The printer model that you wish to add (refer to the 'Current Printer Information' section below for model names).
 
# Change the printer name to any '''non-spaced name'''. Press the "Add" button.
 
# Open the MacOS terminal (search for terminal in applications or via spotlight)
 
# type the following: <code> sudo lpadmin -p {printer_name} -o auth-info-required=negotiate </code> and press enter.
 
# Terminal should ask you for your mac's password (the password for the currently logged in user), you will not receive any feedback from the terminal, keep typing your password even if you don't see anything being typed and hit enter.
 
# You should now be able to print to the printer that you selected. When prompted for a password, enter your CS username and password in the field.
 
 
==== Printer Driver Installation - Option 2 ====
 
 
# Open the "Printers & Scanners" preference pane from the System Preferences
 
# Open the "Printers & Scanners" preference pane from the System Preferences
 
# Click on the "+" to add a printer
 
# Click on the "+" to add a printer
Line 104: Line 95:
 
# If everything works out fine, you will be able to finalize your printer and use it
 
# If everything works out fine, you will be able to finalize your printer and use it
 
# When you send a print job, you will be challenged for login credentials. Please provide your CS account and password for this.
 
# When you send a print job, you will be challenged for login credentials. Please provide your CS account and password for this.
 +
 +
==== Printer Driver Installation - Option 2 - Ethernet Only ====
 +
# Open the "Printers & Scanners" preference pane from the System Preferences
 +
# Click on the "+" to add a printer
 +
# On the "Default" tab (the printer icon). Select The printer model that you wish to add (refer to the 'Current Printer Information' section below for model names).
 +
# Change the printer name to any '''non-spaced name'''. Press the "Add" button.
 +
# Open the MacOS terminal (search for terminal in applications or via spotlight)
 +
# type the following: <code> sudo lpadmin -p {printer_name} -o auth-info-required=negotiate </code> and press enter.
 +
# Terminal should ask you for your mac's password (the password for the currently logged in user), you will not receive any feedback from the terminal, keep typing your password even if you don't see anything being typed and hit enter.
 +
# You should now be able to print to the printer that you selected. When prompted for a password, enter your CS username and password in the field.
  
 
==== Troubleshooting ====
 
==== Troubleshooting ====

Revision as of 09:21, 14 February 2022

Departmental printers are available for use in the Student Center (DUE1118), main office (DUE2184), and Grad Student Office (DUE2221). See the printers list or the bottom of this page for a list of current printers available.

NOTE: Use of printers is restricted to CS students/faculty/staff and should not be used to give access to anyone else. Unauthorized use may result in loss of account privileges.

Printing from a lab machine

Windows

Appropriate printers for your login should appear automatically in the File > Print dialog. If you feel that there are printers missing that you should have access to, please contact the support team. You can also manually add the printers by following instructions below.

Linux

Print Commands

The CS department uses the Common UNIX Printing System (CUPS) for printing under Linux. In addition to printing from the File->Print menu in most graphical applications, users have the ability to print from the commandline. Some of the commonly used commands are the following:

  • lp or lpr : both of these print files, the examples below use lpr
  • lpq : displays queued print jobs
  • lprm : removes queued print jobs
  • lpstat : gives status information for printers
  • lpoptions : sets user-specific printer options and defaults

Examples of how to perform some common tasks:

  • lpstat -p : displays a list of available printers in the department (access to all printers except those in labs is restricted to certain users)
  • echo "test" | lpr : prints the text "test" to the default printer
  • lpr filename : prints filename to the default printer
  • lpr -P e1118-dell-s5830 filename : prints filename to the printer in the Engineering Hall 1118 Student Center
  • lpr -o sides=two-sided-long-edge filename : prints filename duplex (two-sided) to the default printer
  • lpr -o number-up=2 filename : prints filename using half as much paper
  • lpr -o ColorModel=Gray filename : prints filename in grayscale instead of color
  • lpr -#4 filename : prints 4 copies of filename to the default printer
  • lpq : displays the current queue of print jobs running on the default printer
  • lpq -a : displays the current queue of all print jobs
  • lprm 30 : removes print job 30 from the print queue
  • lpoptions -d e1118-dell-s5830 : sets your default printer to e1118-dell-s5830

Multiple options can be combined as follows:

$ lpr -P e1118-dell-s5830 -o sides=two-sided-long-edge -o number-up=2 -o ColorModel=Gray filename

For more information, refer to Cups online help and the man pages for the tools.

Printing text files

In addition to printing the text files "raw", one can use the following utilities to format the text:

  • a2ps filename.txt | lpr : prints the text file in a nicer format; check the man file for more options as this program can do quite a bit
  • enscript -r filename.txt | lpr : prints a text file in landscape format; check the man file for more options as this program (like a2ps) can do quite a bit

Printing from a personal or office computer

All Users

There is currently only one printer that is available for use by any student, faculty, or staff member in the CS department: e1118-dell-s5830

If you are a member of staff or faculty, you have access to restricted printers. A list of these can be found on the Printers page or at the bottom of this page. Others will only have access to the printers in public labs.

If you want/need the drivers for the E2184B-KM copier/printer, you can download it here.

Note for E2184B-KM Copier/Printer users: You will also need to configure Account Track Authentication and add your copier PIN by following this guide. If you do not add your copier PIN, your print jobs will silently fail. You will not be prompted for your PIN when you print, you must add it to the printer preferences per the guide.

Windows

To install one of the department printers on your Windows laptop, follow these steps.

  1. Go to your Start Menu > Run
  2. Type \\johnson.win2.cs.ksu.edu in the "Start Search" box and press <Enter>
    • Note: Wired network users may use “johnson” instead of “johnson.win2.cs.ksu.edu” for the server name, but either will work. Wireless users must use the long form.
  3. If prompted, enter your CS username and password
    • In the Username box type "WIN2\<username>", where <username> is your username.
  4. Right click on the printer you want and select "Connect"

OS X

Printer Driver Installation - Option 1

  1. Open the "Printers & Scanners" preference pane from the System Preferences
  2. Click on the "+" to add a printer
  3. Click on the "Advanced" Icon (it will look like a cog)
    1. If you do not have the Advanced Icon showing up, right-click (or control-click) on a blank area of the "Add" window next to the icons and select "Customize Toolbar"
    2. Then drag the Advanced Icon to the "Add" window
  4. After you have clicked on the Advanced Icon select the "Windows printer via spoolss" type
  5. Next a samba connect will need to be made, in the box labeled URL you will need to put smb://johnson.win2.cs.ksu.edu/{printer name}
  6. Optional: Give the printer setup a name and location
  7. In the "Use" box at the bottom select either "Generic PostScript Printer" or "Generic PCL Printer"
  8. Press the "Add" button at the very bottom, this should verify and try to connect with the print you have specified
  9. If everything works out fine, you will be able to finalize your printer and use it
  10. When you send a print job, you will be challenged for login credentials. Please provide your CS account and password for this.

Printer Driver Installation - Option 2 - Ethernet Only

  1. Open the "Printers & Scanners" preference pane from the System Preferences
  2. Click on the "+" to add a printer
  3. On the "Default" tab (the printer icon). Select The printer model that you wish to add (refer to the 'Current Printer Information' section below for model names).
  4. Change the printer name to any non-spaced name. Press the "Add" button.
  5. Open the MacOS terminal (search for terminal in applications or via spotlight)
  6. type the following: sudo lpadmin -p {printer_name} -o auth-info-required=negotiate and press enter.
  7. Terminal should ask you for your mac's password (the password for the currently logged in user), you will not receive any feedback from the terminal, keep typing your password even if you don't see anything being typed and hit enter.
  8. You should now be able to print to the printer that you selected. When prompted for a password, enter your CS username and password in the field.

Troubleshooting

If you have installed the printer per the above instructions and get the message Hold for authentication in the queue when printing, you probably have an old password saved in the keychain. To clear this, open the Keychain utility (from Finder, go to Applications->Utilities->Keychain Access) and delete any entry for johnson.win2.cs.ksu.edu. You should now be prompted to enter your login credentials again the next time you try to print something.

Note: Any printer in the table below that is available for Windows will also be available for MacOS.

Current Printer Information

Printer Name Access Restrictions Location Model Windows Linux Device Options
e1118-hl-l9430cnd anybody Engineering Hall 1118 (Student Center) Brother HL-L9430CND Yes Yes Color, Duplex Unit
e2184b-KM_C658-B&W-1-Sided faculty/staff/grads Engineering Hall 2184B (Copier) Minolta C658 Color Copier Yes No Black&White, 1-Sided, Stapler, Hole Punch
e2184b-KM_C658-B&W-2-Sided faculty/staff/grads Engineering Hall 2184B (Copier) Minolta C658 Color Copier Yes No Black&White, 2-Sided, Stapler, Hole Punch
e2184b-KM_C658-Color-1-Sided faculty/staff/grads Engineering Hall 2184B (Copier) Minolta C658 Color Copier Yes No Color, 1-Sided, Stapler, Hole Punch
e2184b-KM_C658-Color-2-Sided faculty/staff/grads Engineering Hall 2184B (Copier) Minolta C658 Color Copier Yes No Color, 2-Sided, Stapler, Hole Punch
e2184b-KM_C658-ByPass-B&W-1-Sided faculty/staff/grads Engineering Hall 2184B (Copier) Minolta C658 Color Copier Yes No ByPass, Black&White, 1-Sided, Stapler, Hole Punch
e2184b-KM_C658-ByPass-B&W-2-Sided faculty/staff/grads Engineering Hall 2184B (Copier) Minolta C658 Color Copier Yes No ByPass, Black&White, 2-Sided, Stapler, Hole Punch
e2184b-KM_C658-ByPass-Color-1-Sided faculty/staff/grads Engineering Hall 2184B (Copier) Minolta C658 Color Copier Yes No ByPass, Color, 1-Sided, Stapler, Hole Punch
e2184b-KM_C658-ByPass-Color-2-Sided faculty/staff/grads Engineering Hall 2184B (Copier) Minolta C658 Color Copier Yes No ByPass, Color, 2-Sided, Stapler, Hole Punch
e2184b-KM_C658 faculty/staff/grads Engineering Hall 2184B (Copier) Minolta C658 Color Copier No Yes Color, Duplex unit
e2193-hl-l5100 faculty/staff/grads Engineering Hall 2193 (Vasserman Lab) Brother HL-L5100 Yes Yes Black&White, Duplex unit
e2194-db3460 faculty/staff/grads Engineering Hall 2194 (Amariucai Lab) Dell b3460 Yes Yes Color, Duplex Unit
e2206-hp4300 faculty/staff/grads Engineering Hall 2206 (SAnTos Lab) HP LaserJet 4300 Yes Yes Color, Duplex Unit
e2221-canon-mf632 faculty/staff/grads Engineering Hall 2221 (Hsu Lab) Canon MF632C Yes Yes Color, Duplex unit
e2222-hl-l8360cdwt IT staff Engineering Hall 2222 (IT Office) Brother Color Laser HL-L8360CDWT Yes Yes Color, Duplex unit
e2224-hl-l5100 faculty/staff/grads Engineering Hall 2224 (Hitzler Lab) Brother HL-L5100 Yes Yes Black&White, Duplex unit
e2226-hpm477 faculty/staff/grads Engineering Hall 2226 (Munir Lab) HP Laserjet MFP M477fdw Yes Yes Color, Duplex unit