Difference between revisions of "Setting up Printers"

From RHLUG Wiki
Jump to navigation Jump to search
(formatting fix)
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
You can easily set up a printer '''on Rose-Hulman's campus''' by finding it's hostname. To find a list of all the hostnames you can go to the url [https://servicedesk.rose-hulman.edu/knowledgebase/article/KA-01094/en-us here] and scrolling down to the table of printers. '''You need to be connected to the eduroam Wi-Fi network to print.'''
You can easily print '''on Rose-Hulman's campus''' using Papercut. '''You need to be connected to the eduroam Wi-Fi network to print.'''


You will need the <code>cups</code> package to interface with printers, or similar. On campus, all of the printers are HP printers. You should install the <code>hplip</code> driver as a package on your system.
You will need the <code>cups</code>, <code>samba</code> and <code>system-config-printer</code> packages.  


To check this, in Ubuntu/Debian-based distributions with the apt package manager, type <code>sudo apt-get install cups</code>. This will install cups on your system.
To check this, in Ubuntu/Debian-based distributions with the apt package manager, type <code>sudo apt-get install cups samba system-config-printer</code>. This will install the required dependencies on your system.


In Arch Linux based distributions (Manjaro, EndeavourOS, Parabola, etc.), type <code>sudo pacman -S cups</code>.
In Arch Linux based distributions (Manjaro, EndeavourOS, Parabola, etc.), type <code>sudo pacman -S cups samba</code>. For Arch you will also need to configure samba. The [https://git.samba.org/samba.git/?p=samba.git;a=blob_plain;f=examples/smb.conf.default;hb=HEAD default configuration] should be fine.


Similarly, with <code>hplip</code>, do the same thing, except replace "cups" with "hplip" in both examples.
= Initial Setup =
You must be logged into the eduroam network. These tutorials assume you have cups already installed on your system. When you setup printers on your laptop, there are two available print queues. One is for black and white printing and one for printing to the library. You only need to add these two to your system and you should be able to use any printer on campus by scanning that printer's QR code to release the job. The hostnames for the queues are:
{| class="wikitable"
|+
!Name
!URL
!Printers
|-
|Color Print Queue
|print.rose-hulman.edu/RHIT%20Library%20Color%20Printing
|Library Color Printer
|-
|Black & White Print Queue
|print.rose-hulman.edu/RHIT%20BW%20Printing
|All other campus printers
|}


= Viewing All Printers =
==Via <code>system-config-printer</code>==
You must be logged into the eduroam network.


These tutorials assume you have cups already installed on your system.
Using the terminal, run <code>system-config-printer</code>


== KDE (probably works on GNOME as well) ==
Click the unlock button in the top right corner and input your password in the popup.
Updated as of 9/23/2021.


'''WARNING:''' System Settings will not work if you don't know the printer's hostname. This is because the "Browse" button when adding a printer via SAMBA is apparently grayed out.
Click Add


We will use <code>system-config-printer</code> instead, and it's been overall more reliable for me.
In the new window, expand Network Printer and choose Windows Printer via SAMBA


In the address box enter ether the Color or Black & White URL


'''Tutorial:'''
Select Set authentication details now and add your Rose-Hulman username and password


You need to have the <code>system-config-printer</code> package already installed on your Linux system.
Do not click the Verify button, it will always report a failure even if everything is correct
[[File:Printer network settings.png|none|thumb|476x476px|printer network settings]]


Go to the terminal and run the command
Click Forward


<code> system-config-printer </code>
Leave the driver selection on Generic
[[File:Driver selection 1.png|alt=driver selection page 1|none|thumb|478x478px|driver selection page 1]]
Click Forward


A GUI will pop up. Click the "Unlock" button.
Select PostScript from the left box
[[File:Driver selection 2.png|alt=page 2 of driver selection|none|thumb|479x479px|page 2 of driver selection]]
Click Forward


This will prompt you for your password which you should type then press ENTER.
Check the Duplexer box


Click on "Add Printer".
Click Forward


Scroll down to "Other Network Printers" > "Windows Printer via SAMBA".
Give the printer a name such as BWprinting
[[File:Printer naming.png|alt=page for naming the printer|none|thumb|478x478px|page for naming the printer]]
Click apply


'''Finding a Printer'''
Choose yes to printing a test page


Do the following:
The page should report as printing successfully


# Make the text box after <code>smb://</code> show <code>print/</code>
Click on on the Printer Properties window
# Click "Browse" next to it
# A login dialog should pop up. It says "you must log in to access print".
# Enter your Rose email in the username box, which should be <code>[NETWORKUSERNAME]@rose-hulman.edu</code>
# '''Leave the Domain as WORKGROUP. Do not change it.'''
# Enter your Rose network password.
# Click OK.
# Click on a printer in the "SMB Browser" window. This is very similar to the way you would do it in Windows.
# '''Note down the "Name" which contains the hostname (e.g. hmu100-ricoh) and the "Comment" which contains the model of the printer. You will need it when searching for a driver.'''
# For example, to print on the printer in the Union, click "hmu100-ricoh" and click OK. (For future reference, the hostname is <code>socket://hmu100-ricoh.printer.rose-hulman.edu</code>, or <code>socket://[name on the left].printer.rose-hulman.edu</code>, should you follow the below tutorial.)


'''Driver Selection'''
Go to https://print.rose-hulman.edu:9192/mobile/release?#printers


# Now, in the other window, where you actually add the printer, instead of using SAMBA, click on "Manual URI" and type in the printer hostname which is <code>socket://[name on the left that you wrote down].printer.rose-hulman.edu</code>
Login with your rose username and password
#In the other window, leave the radio box as "Prompt user if authentication is required" and click Forward.
# Select your driver.
## For HP printers, this should be easy -- find your make and model. You do need to install hplip though (see at the top for instructions)
## For Ricoh printers, ignore the model number. Select Printer from Database > scroll down under Makes and click "Ricoh" > click "Ricoh PDF Printer [en] (recommended)".
##Other printers: TBD, just find a driver that works.
# Click Forward.
# You can name your printer and give it a description which will only be stored locally. I called the Union one "HMU100", for example, and left the description as-is.
# Click Apply and enter your password.
# '''Do not print a test page unless you need it. This wastes paper. (Click "Cancel" in the dialog to do so.)''' Instead, I recommend you test a real document. If the document is confidential, print a test page first so you know this is the right printer.


Set your printer in the print settings, make sure it's letter (not A4 paper), and print away!
Click on the printer you want to print from


Sources: https://www.howtogeek.com/191323/how-to-share-printers-between-windows-mac-and-linux-pcs-on-a-network/
You should see (Test Page) in the print que
[[File:Papercut websight.png|alt=Papercut web sight showing a test page in the que|none|thumb|636x636px|Papercut web sight]]
Cancel the print job


'''Doesn't work?'''
If the print job exists you can now print from any application to the newly added printer and then use Papercut to send it to any of the printers on campus


Make sure you've entered the socket://[name on the left].printer.rose-hulman.edu URL and chose "Manual URI".
=Troubleshooting =


Go to printer queue (e.g. on the tray in KDE -> printer icon, click on it) > click on the right printer > "Active Jobs" > right click a job > Authenticate. Enter your rose username '''without @rose-hulman.edu''' this time, and your password, then click OK. Wait a few seconds, click "Completed jobs", and it should print.
== Rose-Hulman provided resources ==
[https://rose-hulman.microsoftcrmportals.com/knowledgebase/article/KA-01361/en-us How to print from Ubuntu]


== Via the command line ==
[https://rose-hulman.microsoftcrmportals.com/knowledgebase/article/KA-01362/en-us How to print from a Mac]
Coming soon


= Adding a Printer Given the Printer Hostname =
[https://rose-hulman.microsoftcrmportals.com/knowledgebase/article/KA-01154/en-us How to print from a personal Windows device]
These tutorials assume you have cups already installed on your system.


'''You need to have a printer hostname already figured out. If not, look at the tutorial above.'''
[https://rose-hulman.microsoftcrmportals.com/knowledgebase/article/KA-01358/en-us How to print from your provided Thinkpad]


== Via the command line ==
==Can't print==
You need to have the <code>system-config-printer</code> package already installed on your Linux system.
 
To add a printer, go to the terminal and run the command
 
<code> sudo system-config-printer </code>
 
This will prompt you for your password which you should type then press enter.
 
It will bring up a printer menu that shows all available printers. To add a printer, click the + Add button in the upper left hand corner.
 
The default option will be to add a printer by the URI which is basically a link to the printer. The URI will be something like this:
 
<code> socket://PRINTER_HOSTNAME.printer.rose-hulman.edu </code>
 
Most printer hostnames can be found on [https://servicedesk.rose-hulman.edu/knowledgebase/article/KA-01094/en-us Rose-Hulman's EIT knowledgebase]. Pick the location you want to print from.
 
For example, for Olin-257, the hostname is "o257-ps" meaning the URI would be <code> socket://o257-ps.printer.rose-hulman.edu </code>.
 
So type that value into the uri field and press "Forward".
 
Next you have to pick the printer driver. All printers on Rose-Hulman's campus are HP so pick HP and press "Forward".
 
Next pick the model for the printer. This information can also be found in the link where hostnames are found. The 9040dn is under the driver name "LaserJet 9040dn".
 
When you find the appropriate driver, press "Forward". This will bring you to the Installable Options. The defaults are usually fine so press "Forward" again.
 
Next you can give the printer a Printer Name, Description, and Location. These values are just to make it easy to remember which printer is which. Choose values and press "apply"
 
Now in the menu you should see the printer was added. You can right click on the printer, choose "Properties" and then press "Print Test Page" to print a test page. This will verify if the printer is correctly configured.
 
Now you can print from any application as normal.
 
== KDE ==
 
Click on the Application Launcher in the bottom-left panel. Type "system settings" and click on the "System Settings" item. You can also go to the "Computer" tab > System Settings.
 
In KDE Plasma 5.11 and newer, the settings are arranged on the left panel. In older KDE Plasma versions, the settings are arranged in a grid.
 
In either case, scroll down to Hardware section > Printers. Click on "Add Printer". A "Select a Printer to Add" dialog box should come up. Click on "Manual URI" and type in the printer hostname.
 
Most printer hostnames can be found on [https://servicedesk.rose-hulman.edu/knowledgebase/article/KA-01094/en-us Rose-Hulman's EIT knowledgebase]. Pick the location you want to print from.
 
For example, for Olin-257, the hostname is "o257-ps" meaning the URI would be <code> socket://o257-ps.printer.rose-hulman.edu </code>. Type that into the "Connection" box.
 
Click "Next". In "Pick a Driver", click on the driver matching the printer model and name. See the EIT knowledgebase link above for details. If there are multiple drivers, you should choose the (recommended) version, and (en) version if it is listed. If you see "requires proprietary plugin" in one of the listings, you can install that driver, unless you prefer not to install it.
 
Click "Next". You can give a name and description to the printer if you want to, or disable sharing. Click "Finish" to finish setup. You can print a test page by clicking on the printer name > "Maintenance" > "Print Test Page" to see if the configuration works properly.
 
= Troubleshooting =
 
== Can't print ==
Make sure cups is enabled in a terminal: <code>sudo systemctl status cups</code>. If it says it's disabled or stopped, try typing: <code>sudo systemctl enable cups && sudo systemctl start cups</code>
Make sure cups is enabled in a terminal: <code>sudo systemctl status cups</code>. If it says it's disabled or stopped, try typing: <code>sudo systemctl enable cups && sudo systemctl start cups</code>


== Paper looks weird ==
== Paper looks weird==
Make sure you have selected Letter paper and not A4 paper in your printer settings and make that the default. That will make the page margins appear less "airy" on real paper. Sometimes Linux defaults to A4 when setting up a printer for the first time.
Make sure you have selected Letter paper and not A4 paper in your printer settings and make that the default. That will make the page margins appear less "airy" on real paper. Sometimes Linux defaults to A4 when setting up a printer for the first time.

Latest revision as of 14:59, 4 October 2024

You can easily print on Rose-Hulman's campus using Papercut. You need to be connected to the eduroam Wi-Fi network to print.

You will need the cups, samba and system-config-printer packages.

To check this, in Ubuntu/Debian-based distributions with the apt package manager, type sudo apt-get install cups samba system-config-printer. This will install the required dependencies on your system.

In Arch Linux based distributions (Manjaro, EndeavourOS, Parabola, etc.), type sudo pacman -S cups samba. For Arch you will also need to configure samba. The default configuration should be fine.

Initial Setup[edit | edit source]

You must be logged into the eduroam network. These tutorials assume you have cups already installed on your system. When you setup printers on your laptop, there are two available print queues. One is for black and white printing and one for printing to the library. You only need to add these two to your system and you should be able to use any printer on campus by scanning that printer's QR code to release the job. The hostnames for the queues are:

Name URL Printers
Color Print Queue print.rose-hulman.edu/RHIT%20Library%20Color%20Printing Library Color Printer
Black & White Print Queue print.rose-hulman.edu/RHIT%20BW%20Printing All other campus printers

Via system-config-printer[edit | edit source]

Using the terminal, run system-config-printer

Click the unlock button in the top right corner and input your password in the popup.

Click Add

In the new window, expand Network Printer and choose Windows Printer via SAMBA

In the address box enter ether the Color or Black & White URL

Select Set authentication details now and add your Rose-Hulman username and password

Do not click the Verify button, it will always report a failure even if everything is correct

printer network settings

Click Forward

Leave the driver selection on Generic

driver selection page 1
driver selection page 1

Click Forward

Select PostScript from the left box

page 2 of driver selection
page 2 of driver selection

Click Forward

Check the Duplexer box

Click Forward

Give the printer a name such as BWprinting

page for naming the printer
page for naming the printer

Click apply

Choose yes to printing a test page

The page should report as printing successfully

Click on on the Printer Properties window

Go to https://print.rose-hulman.edu:9192/mobile/release?#printers

Login with your rose username and password

Click on the printer you want to print from

You should see (Test Page) in the print que

Papercut web sight showing a test page in the que
Papercut web sight

Cancel the print job

If the print job exists you can now print from any application to the newly added printer and then use Papercut to send it to any of the printers on campus

Troubleshooting[edit | edit source]

Rose-Hulman provided resources[edit | edit source]

How to print from Ubuntu

How to print from a Mac

How to print from a personal Windows device

How to print from your provided Thinkpad

Can't print[edit | edit source]

Make sure cups is enabled in a terminal: sudo systemctl status cups. If it says it's disabled or stopped, try typing: sudo systemctl enable cups && sudo systemctl start cups

Paper looks weird[edit | edit source]

Make sure you have selected Letter paper and not A4 paper in your printer settings and make that the default. That will make the page margins appear less "airy" on real paper. Sometimes Linux defaults to A4 when setting up a printer for the first time.