Printing from your laptop: Difference between revisions

From UW-Math Wiki
Jump to navigation Jump to search
Line 9: Line 9:
There are two ways to print from a linux laptop.  
There are two ways to print from a linux laptop.  


<B>Method 1: Samba (preferred)</B>
# <B>Samba Printing (preferred)</B> To print via samba, simply open a terminal window and type a command like the following: <code><nowiki>


smbclient //printserver1/5 -U myusername -c 'put mydocument.ps'


# Connect your laptop to the internet via the spare ethernet cables in rooms 332 or 101. You may also use the DoIT wireless in Van Vleck. You cannot print via samba from outside Van Vleck.
</nowiki></code> In the example above, replace '5' with the number of your favorite printer, replace 'myusername' with your own Math department user name, and replace 'mydocument.ps' with the name of your document. Note: You will be prompted to enter your Math department password.
# Open a terminal window and type a command like the following: <code><nowiki>


smbclient //printserver1/5 -U myusername -c 'put mydocument.ps'
# <B>lpr</B> To use the lpr command to print do the following:
* Install the lprng package. On a debian system, type 'apt-get install lprng'.
* Copy the /etc/printcap file from a departmental linux machine to your laptop.
* Use lpr to print your document, 'lpr -P5 mydocument.ps'. Replace the '5' in the example with your favorite printer number and replace 'mydocument.ps' with the name of your document.


</nowiki></code> In the example above, replace '5' with the number of your favorite printer, replace 'myusername' with your own Math department user name, and replace 'mydocument.ps' with the name of your document.
#
# Note: You will be prompted to enter your Math department password.

Revision as of 22:03, 13 July 2010

Printing From Your Laptop

Printing from your laptop is possible depending on how you are connected to the internet and which operating system you use.

  1. #Printing from a linux laptop

#Printing from a Windows laptop #Printing from a Mac laptop

Printing from a linux laptop

There are two ways to print from a linux laptop.

  1. Samba Printing (preferred) To print via samba, simply open a terminal window and type a command like the following: smbclient //printserver1/5 -U myusername -c 'put mydocument.ps' In the example above, replace '5' with the number of your favorite printer, replace 'myusername' with your own Math department user name, and replace 'mydocument.ps' with the name of your document. Note: You will be prompted to enter your Math department password.
  1. lpr To use the lpr command to print do the following:
  • Install the lprng package. On a debian system, type 'apt-get install lprng'.
  • Copy the /etc/printcap file from a departmental linux machine to your laptop.
  • Use lpr to print your document, 'lpr -P5 mydocument.ps'. Replace the '5' in the example with your favorite printer number and replace 'mydocument.ps' with the name of your document.