How to add a network Windows printer server?
I am running Slackware 13. There is a printer in my local network. I want to use it, so I checked online, and here seems to be the answer(the installation of CUPS does have smb backend):
Code:
/usr/sbin/lpadmin -p RicePrinter -v smb://fred:mypass@rice/INKJET -P /root/inkjet.ppd Here are the problems: 1. I have done the first command, namely the '/usr/sbin/lpadmin -p' one, with no problem; But when trying the second one, typing '/usr/bin/enable' returns '/usr/bin/enable: no such file'; I then try 'enable RicePrinter', it returns 'enable RicePrinter: not a shell builtin'. Then typing 'type -a enable', it tells me that 'enable is a shell builtin'. The last two commands are of no problem. Then what the system wants to say after all? I have checked the printer configuration with 'lpstat -p', it shows 'printer RicePrinter disabled since BlahBlah, reason unknown', so it may indeed be caused by the problem from the 'enable' step. How to enable the printer? 2. Unless the 'enable' step asks for a driver, I am wondering why there is no such step as choosing a driver from a list or so. Any ideas? Thanks in advance! |
Can you not try doing this through Cups administration via web browser? I am not sure of the address from memory - something like:
localhost:631/ |
Quote:
|
A few things to check:
Have you got the cupsd daemon running? 'ps ax | grep cupsd' should show /usr/sbin/cupsd. This daemon can be started at boot by making /etc/rc.d/rc.cups executable. I prefer to use the web interface to the CUPS server to setup and administer CUPS. Just type 'http://localhost:631' into your browser's address bar to do this. Try the Find New Printers button on the Administration tab. I think you do not have your device URI correct. Quote:
|
[Edit: Contents solving the wrong problem, so I removed it.]
|
FYI: lpadmin is the command line utility but you can also configure printers via the cups web interface and would be much easier for the beginner to use.
You do realize the commands you posted was just an example from the howto and you need to replace rice with the actual hostname or IP address of the windows computer that is attached to the printer. |
Quote:
Here is the information in the web interface, the printer did exist, no? Code:
labprinter (Paused, Accepting Jobs, Shared, Server Default) We can see that it is 'Paused'. As I said, the 'enable' step failed, I guess this might be the reason. So at least one of the questions here is how to get the 'enable' thing work... Thanks! |
Quote:
Quote:
Quote:
|
This thread seems dead... No one else has the same problem?
|
The cups web interface in the printers section should have buttons to stop/start etc. Have you tried this yet?
|
Hi,
I, at times, do run the next (below enclosed about) Samba. But I've not yet actually done the **Cups via smb** (Samba). But I hope that soon I'll have the time to do a **Cups via smb to a Windoze printer.** And that above is what I believe that you need to do. The remainder of my post shares a screenshot picture as well as what I know about or on this topic. I'm nearly, if not certain, that you need or must have the Samba server running. And you'll need an smb.conf file (for Samba) with appropriate permissions (by default it very most probably is far far too secure to allow you to do what you want). Hit me up if you want a VERY_INSECURE smb.conf file (good *only* for use on a secure and trusted lan or network) What we do here is we access (and use) an M$ Windoze printer. We do so with Cups via smb (Samba) to said printer. Next is a screenshot (also see steps enclosed below) http://spiffyminer.tripod.com/screen_cups.htm 1. localhost:631 did localhost:631 in my Firefox web browser address field 2. clicked on "add printer" 3. filled in the three fields (test_win_smb for name, etc.) 4. clicked "continue" 5. now we're at my as per my above listed screenshot page where I clicked on the little down pointing arrow or triangle (refer to my screenshot picture). That mouse click brought up a lengthy list of different types of devices. I chose the most appropriate type of device (again, see my screenshot which displays my choice). 6. click "continue" At this time, I went no further because I don't yet have a Windoze printer. (I've four Linux//Cups printers on my network that work adequately for me) Alan. |
Quote:
The next two (grep smb and the grep nmb) commands their output here, in this case, tells me that my Samba is running. (yours Samba will need be running and you'll need a smb.conf that allows you to do what you want to do) al@P5Q:~$ ps aux | grep smb root 3907 0.0 0.0 11756 2864 ? Ss 01:03 0:00 /usr/sbin/smbd -D root 3910 0.0 0.0 11756 1148 ? S 01:03 0:00 /usr/sbin/smbd -D al 3914 0.0 0.0 2084 636 pts/1 R+ 01:03 0:00 grep smb al@P5Q:~$ ps aux | grep nmb root 3909 0.0 0.0 7076 1672 ? Ss 01:03 0:00 /usr/sbin/nmbd -D al 3916 0.0 0.0 2084 636 pts/1 R+ 01:03 0:00 grep nmb al@P5Q:~$ Alan. |
Insecure,
for protected//safe//trusted lan or network use only And you may also need some sort of "allow cups" statement in the smb.conf too so that cups can be allowed to go out through smb so as to ultimately print to the Windoze printer. Code:
root@P5Q:/etc/samba# pwd |
The 'Paused' problem is solved by simply click on 'Resume' in CUPS web interface.
Thanks anyway, acummings! |
That's where your management is accomplished.
If you ever need to cancel a print job, here's the place to do it. Setup and also management of printer(s). Glad you got it working. Alan. |
All times are GMT -5. The time now is 04:42 AM. |