Printing from your laptop: Difference between revisions
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> | # <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' | |||
</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. | |||
# <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. | |||
# | |||
# |
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.
#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.
- 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.
- 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.