LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-13-2005, 11:20 PM   #1
Basslord1124
Member
 
Registered: Jun 2004
Location: Ashland, KY
Distribution: Debian, Puppy/Slacko
Posts: 351

Rep: Reputation: 31
CUPS and Samba questions....


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.
 
Old 12-13-2005, 11:55 PM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
AFAIK, it should print by only specifing just the workgroup on /etc/samba/smb.con.

You can just use lpr filename, that's the only way i've used on console because i never need some advanced printing on it.
 
Old 12-14-2005, 02:11 AM   #3
Mr_C
Member
 
Registered: Jan 2004
Location: Trinidad & Tobago
Distribution: Slackware
Posts: 317

Rep: Reputation: 30
# 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.

Have fun.

Last edited by Mr_C; 12-14-2005 at 02:20 AM.
 
Old 12-14-2005, 09:10 AM   #4
Basslord1124
Member
 
Registered: Jun 2004
Location: Ashland, KY
Distribution: Debian, Puppy/Slacko
Posts: 351

Original Poster
Rep: Reputation: 31
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.
 
Old 12-14-2005, 10:17 AM   #5
Basslord1124
Member
 
Registered: Jun 2004
Location: Ashland, KY
Distribution: Debian, Puppy/Slacko
Posts: 351

Original Poster
Rep: Reputation: 31
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.
 
Old 12-14-2005, 12:36 PM   #6
Mr_C
Member
 
Registered: Jan 2004
Location: Trinidad & Tobago
Distribution: Slackware
Posts: 317

Rep: Reputation: 30
that should work
smb://workgroup/smbuserasswd@1.1.1.1/HP

Checklist>
- you have samba user (smbuser -a usernameofexistinglinuxaccount)
- can smbclient see shares?
 
Old 12-14-2005, 03:56 PM   #7
Basslord1124
Member
 
Registered: Jun 2004
Location: Ashland, KY
Distribution: Debian, Puppy/Slacko
Posts: 351

Original Poster
Rep: Reputation: 31
Yup...got all that.
 
Old 12-14-2005, 04:05 PM   #8
Basslord1124
Member
 
Registered: Jun 2004
Location: Ashland, KY
Distribution: Debian, Puppy/Slacko
Posts: 351

Original Poster
Rep: Reputation: 31
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.
 
Old 12-14-2005, 06:10 PM   #9
noxious
Member
 
Registered: May 2004
Location: Ohio, USA
Distribution: LinuxMint Gloria, Ubuntu 9.10
Posts: 299

Rep: Reputation: 30
sometimes "smb://guest@host/printer" works, also.
 
Old 12-14-2005, 09:37 PM   #10
Mr_C
Member
 
Registered: Jan 2004
Location: Trinidad & Tobago
Distribution: Slackware
Posts: 317

Rep: Reputation: 30
Now is it possible to post your shell commands and outputs?
We're gonna get this working one way or the other.
 
Old 12-15-2005, 06:33 PM   #11
Basslord1124
Member
 
Registered: Jun 2004
Location: Ashland, KY
Distribution: Debian, Puppy/Slacko
Posts: 351

Original Poster
Rep: Reputation: 31
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.
 
Old 12-15-2005, 09:00 PM   #12
Mr_C
Member
 
Registered: Jan 2004
Location: Trinidad & Tobago
Distribution: Slackware
Posts: 317

Rep: Reputation: 30
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.
 
Old 12-16-2005, 11:51 AM   #13
Basslord1124
Member
 
Registered: Jun 2004
Location: Ashland, KY
Distribution: Debian, Puppy/Slacko
Posts: 351

Original Poster
Rep: Reputation: 31
All righty, must be CUPS then...I logged into Samba via Putty and actually pulled up the printer and printed a document from it. Worked fine.
 
Old 12-17-2005, 10:51 AM   #14
Basslord1124
Member
 
Registered: Jun 2004
Location: Ashland, KY
Distribution: Debian, Puppy/Slacko
Posts: 351

Original Poster
Rep: Reputation: 31
So should I attempt to reinstall CUPS? Are there any other packages I may be missing that would be causing these problems?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
Cups questions Jeffroarbo Linux - Software 0 12-08-2004 02:26 PM
CUPS webserver questions - where are the html files? veritas Linux - Software 0 03-13-2004 03:54 PM
Samba and CUPS ghuber Linux - Networking 0 12-11-2003 10:42 AM
Printing to Windows with Samba and CUPS, error questions messenjah Linux - Software 1 07-22-2003 07:15 PM


All times are GMT -5. The time now is 09:29 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration