remote printing

Posted on 2003-11-03
Last Modified: 2010-04-21
I have set up a lan using a router/switch.  When I try to print remotely nothing happens.  I have set the server ip and the path to
/dev/lp0.  I think the port is blocked.  I cannot allow the port in redhat 9 setup.

Question by:mbpssgms

Expert Comment

ID: 9672482
by remote printer you mean the printer at your office?

Author Comment

ID: 9673661
No, the printer is connected to a machine on this lan.

Also, I am about to submit another imp q about rhn, I don't know which to buy.


Expert Comment

ID: 9673883
about buying rhn? you mean wich product to buy from redhat? I personally may go to the free side, the Fedora Project - I havent tried it yet, I may get a chance tonight.

Is this a linux or windows machine it is connected to? It's a windows machien you will need to use samba and connect to it as a samba printer.
LVL 12

Expert Comment

ID: 9675752
majorwoo is right if you wanna your M$ windoz to print from your RH9, you need to have samba setup in your linux, in your /etc/samba/smb.conf there should be an entry in Share Definitions eg.

   comment = All Printers
   path = /var/spool/samba
   browseable = no
#   Set public = yes/no  (yes to allow yser 'guest account' to printer, no for disallow)
   guest ok = yes/no
   writeable = no
   printable = yes

this will share out the printer for access.

unless your printer is shared out from M$ windoz, you need to mount the windows shared device into your linux box something like

mount //windowspcname/sharedprintername  /dev/lp0

try read the man page of mount
LVL 23

Expert Comment

ID: 9675812
It sounds like you are setting up remote LPR port printing.  Try setting up IPP printing instead.

Assuming the printer is on the RH9 machine:
Open the URL http://localhost:631 in your favorite browser.
Select the Printers page and set up the printer to export.
Make a note of the printer name (not the discription) the printer name
is the CUPS queue name.  The printer queue name should not contain spaces.

On the client, open the URL http://localhost:631 in your favorite browser.
On the Printer page, select Add printer.  For Printer Name enter the same name
as the printhost uses for that printer.  (Its not necessary, but it is convenient.)
For the Description enter the pretty name you want to appear in print dialogs.
Optionally specify the printer's physical Location.  Continue onto the next pane.
Specify Internet Printing Protocol and  specify ipp://printserver/queuename  as the
network printer URI. Fill in the printer model, options, etc.

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.


Author Comment

ID: 9677778
I think your method will work since both machines run rh9.  )I never use win).  I will try this when I have a spare moment.

Your reply to my rhn is the one I was after.  Pls visit

for a couple of q's and the points.


Expert Comment

ID: 9678844
Bear in mind the defauly in rh9 is still lpr, so you will need to switch over to CUPS to use that method

(going to the other link now)

Author Comment

ID: 9694492

I followed your instructions to the url, but to modify or configure the printer there I need a cups username and passwd.  What do I use here, or am I going about it wrong?


Accepted Solution

majorwoo earned 100 total points
ID: 9694612
your cups username/password is your root username/password - you can add other users to the cups group too if its setup

Author Comment

ID: 9715562

Sorry I am taking ages, but I'm busy.

Where do I find the 'export' option.  Sinc e when I open cups this isn't obvious.


Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Guacamole and browser performance 1 64
Oracle 12c patching 1 61
I think my Ubuntu 12.10 box is hacked, but not sure... 13 52
php ssh2_scp_send 1 49
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now