Printing is an essential part of daily work flow. Dornsife Technology Services knows the importance of printing and has configured the network printers in such a way that you can easily locate the network printer you want to use and quickly set it up. This document details how to setup a network printer on your Linux computer.
Before You Begin
- You will need to be connected to the USC network (via Ethernet, secure wireless, or VPN) when adding the printer and when sending a print job to the printer.
- You will need a Dornsife Account. You will use this account username and password to add the printer to your computer. If you do not have a Dornsife Account, please visit https://dtssupport.usc.edu/catalog/request_items/101 to fill out the Dornsife Account application.
Adding a Network Printer to a Linux Computer
Complete the following steps to add a network printer to your Linux computer.
Note: This document was written using Ubuntu 64-bit. If you’re using a different version of Linux, your screens may appear slightly different, however, the steps to add the network printer should remain the same.
- Open Terminal
- Execute the following commands:
- Install SMB client: sudo apt-get install smbclient
- Install Samba: sudo apt-get install samba
- Install Python: sudo apt-get install python-smbc python3-smbc
- Next, you will need to edit the SMB file to include the appropriate workgroup. Execute the following command to edit the SMB file: sudo nano /etc/samba/smb.conf
- Use the arrow keys on your keyboard to scroll through the SMB file until you see the Global Settings section.
- Remove WORKGROUP and replace it with DTS.USC.EDU. An example is shown below.
- Press Ctrl and X on your keyboard simultaneously to save the SMB file.
- Save modified buffer? displays at the bottom of the terminal command (shown in the image above). Press the Y key on your keyboard to confirm that you want to save the file.
- Next, the message File name to write: /etc/samba/smb.conf displays. Press the Enter key on the keyboard to finish saving the file.
- After saving the SMB file, close or minimize Terminal.
- Next, navigate to Settings > Devices > Printers. The Printers screen displays.
- Select Add a Printer… The Add Printer screen displays.
- On the Add Printer screen, select the Add option. In some versions of Linux, you may need to select the CUPS printer option before the Add option becomes available. An example is shown above.
- After selecting Add, the Printers screen re-displays with a generic printer entry visible. Select Additional Printer Settings… The Printer – localhost screen displays.
- On the Printer – localhost screen, select +Add. The New Printer screen displays.
- On the New Printer screen, select Network Printer. New options display.
- Next, select Windows Printer via SAMBA. New fields displays.
- In the smb:// field, enter DTSPRINT.DTS.USC.EDU/.
- Next, click the Browse… option, located next to the smb:// field. The Authentication screen displays.
- Enter your USC NetID in the Username field. Your USC NetID is the portion of your email address that appears before the @ symbol.
- In the Domain field, enter DTS.USC.EDU. This field may be automatically populated in some versions of Linux.
- Enter your password in the Password field. If you changed your NetID password or Dornsife Account password on or after March 11, 2019, your two passwords are now synchronized to be a single password. If you have not changed either of your passwords on or after March 11, 2019, then you still have two separate passwords. Enter the appropriate password in the Password field. If you need assistance with your username and password, you will need to contact Dornsife Technology Services at 213-740-2775.
- After entering the required information, select the OK option. The SMB Browser screen displays.
- The printers are listed in alphabetical order by manufacturer. To assist you in locating the appropriate printer, the printer’s location is in parenthesis next to the name of the printer. Scroll through the list until you locate the network printer to which you want to print.
- Highlight the name of the print by selecting it with your mouse. Then, select the OK option. The New Printer screen re-displays.
- Select the Set authentication details now radio button.
- Enter your Password and Username in the appropriate fields. This is the same username and password used in steps 19-21.
- After entering your username and password, select Forward. The Choose Driver screen displays.
- On the Choose Driver screen, select Generic.
- Select the Forward option. A secondary Choose Driver screen displays.
- Select PostScript on the Choose Driver screen.
- Verify that Generic PostScript Printer Foomatic/PostScript [en] is selected on the right side of the screen.
- Select Forward. The Describe Printer screen displays.
- Use the fields on the Describe Printer screen to add descriptions of the printer you are adding. These fields are optional.
- Select Apply. The Would you like to print a test page? screen displays.
- Select the Print Test Page option to verify that the printer is correctly configured.
The network printer is now added to your Linux computer. Repeat these steps to configure additional printers.