LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-20-2004, 11:56 AM   #1
provo1234
LQ Newbie
 
Registered: Dec 2004
Posts: 12

Rep: Reputation: 0
Printing to a local printer via SSH


Linux Gods,

I have Redhat Enterprise Linux ES on my office machine and a Windows XP Professional box at home. I use SSH to connect to the Redhat box in my office from my PC at home (with the help of a dial-up connection). I use CUPS and Samba on the Linux machine and I've successfully configured the printers on my office LAN.

Now, I have two questions here...
1. How can I add a printer attached to my home computer to the Linux machine in my office.
2. I'd like to print a document on my Linux computer to the printer attached to my home computer via ssh (using pass through printing?? without ftping the document). How should I do that?

All inputs are greatly appreciated. Thanks much.

Andre.
 
Old 12-20-2004, 01:22 PM   #2
provo1234
LQ Newbie
 
Registered: Dec 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Solution to print text files.. But how about PDF files?

I found the solution at http://www.anzio.com/support/whitepapers/printguide.htm

This solution works well for text files. But how do I print PDF files to a local printer?

The solution to print text files to a local printer is as follows...

1. Create a shell script containing the following three lines (using your editor of choice):
tput mc5
cat $*
tput mc4

2. Make that shell script executable. For instance, if this script is named "passprt", do
chmod +x passprt

3. If you have "root" permission, copy the shell script somewhere that everyone can access it, such as:
cp passprt /usr/bin

To use it, simply "pipe" your output to it. From a shell level, for instance, if you have a textfile named "somefile", you can do:
cat somefile | passprt
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing to large scale printer w/local IP jake292 Linux - Software 0 07-29-2005 08:19 PM
Printing from Linux to Windows Printer through puTTY (ssh)? itsman Linux - Networking 1 09-22-2004 12:50 PM
Telnet client that supports local printing? jedimastermopar Linux - Software 2 08-14-2004 07:06 AM
keeping printer on at bootup keeps printer from printing (some printer modules loaded TheOneAndOnlySM Slackware 1 10-17-2003 07:39 PM
Restrict Printing on Local Network? franticbob Linux - Networking 3 08-01-2003 03:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration