Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Printing in Telnet session.

  1. #1
    Join Date
    Oct 2012
    Location
    India
    Posts
    332

    Default Printing in Telnet session.

    Hi,

    I have two opensuse desktops A & B each with same configuration i.e OpenSUSE 12.3 and telnet server installed on 1 machine A.Now I have connected a printer to B and I will connect to machine A through telnet client.Is there a way to take print in the telnet session without adding the printer in machine A i.e in the telnet server machine.


    thanks in advance

  2. #2
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,703

    Default Re: Printing in Telnet session.

    Should be able to use lp command check out man lp for detailed info

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,003

    Default Re: Printing in Telnet session.

    When B has the printer, you can print when you are loged in in B (telnet or direct).

    When you are loged in in A, regardless if you did that from the console or by telnet from B, and A has no printer, you can not print from any session loged in in A.
    Henk van Velden

  4. #4
    Join Date
    Oct 2012
    Location
    India
    Posts
    332

    Default Re: Printing in Telnet session.

    Quote Originally Posted by gogalthorp View Post
    Should be able to use lp command check out man lp for detailed info
    Actually I don't want to add a printer in telnet server machine.I want to connect to telnet server and print to local printer.In other words I need printer redirection to telnet session.
    If I use lp or lpr the printer should be added in telnet server otherwise it returns an error "lp:error no default destination available"

  5. #5
    Join Date
    Oct 2012
    Location
    India
    Posts
    332

    Default Re: Printing in Telnet session.

    Quote Originally Posted by hcvv View Post
    When B has the printer, you can print when you are loged in in B (telnet or direct).

    When you are loged in in A, regardless if you did that from the console or by telnet from B, and A has no printer, you can not print from any session loged in in A.
    So would you mean to say that printing redirection to telnet session is not possible.

  6. #6
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,703

    Default Re: Printing in Telnet session.

    You should be able to run lp on the remote machine to print stuff from the remote machine.

    But if you want to print on the remote from a local source then no telnet will not work.

    You need to setup remote printing which is not telnet. Should be able to do that from yast printers. If the two machines are not on a local net you can still do it but you may have to open some ports to the Internet

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Printing in Telnet session.

    On 2013-08-17 21:06, nishanth9042 wrote:
    >
    > gogalthorp;2579847 Wrote:
    >> Should be able to use lp command check out man lp for detailed info

    >
    > Actually I don't want to add a printer in telnet server machine.I want
    > to connect to telnet server and print to local printer.In other words I
    > need printer redirection to telnet session.


    I never heard of such a feature.

    You either set the telnet server to print via any other machine, local
    or remote (does not need to be the default printer), or print to file,
    download the file to client machine, and print it locally.


    By the way, I really hope you are not using telnet over Internet: the
    password travels in clear, as well as all the data. Use ssh instead.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.3 x86_64 "Dartmouth" at Telcontar)

  8. #8
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,003

    Default Re: Printing in Telnet session.

    Quote Originally Posted by nishanth9042 View Post
    So would you mean to say that printing redirection to telnet session is not possible.
    Exactly..............
    Henk van Velden

  9. #9

    Default Re: Printing in Telnet session.

    This was many moons ago, I worked for a billing company that had two version of billing software. 1. sofrrun locally on a SCO box at the customer site, or 2. for people who don't want the expense of a SCO Unix box, dial into the HP9000 box at our office, using dumb-terminal or hyperterm with Windows.

    The people with the hosted solution wanted to print locally. We found a solution by embedding ASCII code in the billing software!

    if my memory serves me right, send the following ASCII code to start/stop local printing.

    DC1 0x11, start local printing
    DC3 0x13, stop local printing

    We got it to work on Win98 and dumb terminal at the time. Not sure if it'll work on recent version of any OS. Have fun!

  10. #10
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,143
    Blog Entries
    2

    Default Re: Printing in Telnet session.

    First,
    Carlos' observation should not be overlooked. Even in a "protected network" there is probably no good reason to deploy a telnet server for anything more than a very temporary exercise. Telnet clients continue to be used for a variety of reasons, but telnet servers should be replaced with ssh in general.

    As for what the the OP is requesting, regardless of the technology you should be able to break down the objective into its most basic possibilities...
    - You can proxy the request. This means that the actual request to the service (printer) is executed by the proxy instead of the original requestor. When this is configured, the originator only needs to initiate some trigger for the actual task to be kicked off on the proxy. Note that depending on the configuration, it may or may not be possible to pass special configuration to the service (printer) like printing a specific file. An example of this is knocking
    - You can re-direct. This means that the initial connection does not terminate at target machine, but is passed to a new target. You can do stuff like this at the networking level, eg vlan or other tunnel, ip translation using something like iptables, or at the application level or some other way. The initial target does nothing more than pass the command on. In this case, some apps like Telnet probably can't do the re-direction by itself but any of many other apps can do this kind of redirection if the telnet session (in this case) can be consumed and modified, then resent.

    So, to the OP,
    If you break down your objective and problem this way it might provide some clarity about how to go about designing your solution, and this of course is aside from why you would even need to re-direct instead of simply configuring a direct connection to the network service.

    TSU

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •