SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
All righty, 1st off, I am running Slackware 10.2 in text mode only (no GUI). I am mainly using it as a server for various things. One thing I'd like to be able to start doing (and I have no idea why I didn't start it earlier!) is to print out things (mainly just documentations and how to's I make up) from the server. The printer I want to print to is not located on the server but is a networked printer on another machine in our house. NOW, I do have samba shares made for the other machines in the house including the one the printer is on. Granted I made the shares in Samba, I have not configured anything related to printing in Samba's config file.
I just installed CUPS a little bit ago on my machine and have taken a gander at the config files and I ended up editting the printers file. I gave the printer it's name, state, and the host/printer name where the printer is located. The printer, by the way, is an HP Deskjet 812C. I have not made any other changes to any other files. And that's basically what I was wondering.
So, what other files do I need to edit and what sorts of things do I need to edit/add to be able to print to the networked printer? I am figuring Samba's config file but as I said, I have no experience using the printing options in the smb.conf file.
Also...another brief question...what commands do you use to print in common text editors (vi or vim)? I mainly use joe but I have not seen a print option there.
I will try and mess with it some more in the mean time. Any help is appreciated. Thanks.
# chmod +x /etc/rc.d/rc.cups
# /etc/rc.d/rc.cups start
open 'links' and go http://localhost:631
log in as root
new printer-> printer name-> shared with samba->device url is this:
smb://workgroup/sambauser:password@name/ip of computer printer is shared on/printersharename
onto drivers and finishing up.
Thanks for that Mr_C that helped a lot. Unfortunately it says I am having problems with a Bad URI and that my printer name is bad. I am naming the printer right...however maybe my syntax is wrong with the URI. I did something like this:
smb://workgroup/user: password@host/printer (without the space of course)
and one like this as well
smb://workgroup/host/printer
I have tried a few combinations but nothing is working.
I have noticed this specific error in my cups error log:
E [14/Dec/2005:10:54:43 -0500] PID 3555 stopped with status 22!
Also, I have not noticed any changes made to my smb.conf file and in the CUPS configuration/administration page I get the error "client-error-not-possible" next to the latest print jobs.
I am using the smbclient command and am getting NT_STATUS_LOGON_FAILURES. Of course, none of the other systems on the network are providing shares except the printer share. My Linux computer handles all shares on the network. Still don't understand the error though as all the usernames and passwords I am entering are correct. And I do have the printer shared and my other Windows client can see it and print from it just fine.
I can actually copy shell commands and outputs if I login via Putty on Windows. I was curious about it the other day and well it works. That's actually how I posted that one error up there. Now as for the guest thing...is that assuming the guest account on Windows is turned on? I don't think it is on the other PC. There isn't any major dependencies or libraries I may be missing is there? I didn't have CUPS installed previously, but I did install it the other day. Oh yeah, here is the output I got from a running the smbclient command on the PC which has the shared printer:
Code:
Sharename Type Comment
--------- ---- -------
IPC$ IPC Remote IPC
D$ Disk Default share
print$ Disk Printer Drivers
Deskjet Printer HP DeskJet 812C
ADMIN$ Disk Remote Admin
C$ Disk Default share
I know I said had problems with it before but I didn't have the syntax just right. But anyways, that's what smbclient shows. Hopefully you can make some sense out of it if something is wrong...otherwise, back to the drawing board. I've run out of ideas to check unless someone else has any ideas.
Those shares are fine.
Nope its not the guest account you need to enable. When you share the printer under windows, on the security tab, from a list of users make sure and add 'everyone'
I have an HP840c and I call the share name just that. I've noticed that spaces in names tend to give trouble.
See if you can smbclient into c$ for example. If you can, then it may be CUPS messing about.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.