LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-21-2005, 12:10 PM   #1
Slack1_more
Member
 
Registered: Sep 2004
Location: Australia
Distribution: Slackware 10.0, 10.1, 11. and now 12!
Posts: 54

Rep: Reputation: 16
Why Is My Printer Working?


OK OK, I'm not complaining here!
I just wanna know WHY!

When I set up Slackware, I chose Samba as one of the services to run because I thought it may have something to do with printing (I never did get my printer to work last time I installed Linux).
I have a Linux box at home which is attached to a switching router, and a WinXP box with a printer attached, off that same router. On the XP box I made the printer sharable (as KyoceraF) and I can print to it if I run Windoze on my Linux box.

This time, (Slackware 10.1) I got a message about smb.conf not being found or configured right. I found smb.conf-sample and, reading that, I made up an smb.conf that looks like this:
-----------------
Load smb config files from /etc/samba/smb.conf
Unknown parameter encountered: "SO_RCVBUF"
Ignoring unknown parameter "SO_RCVBUF"
Processing section "[homes]"
Processing section "[printers]"
Processing section "[tmp]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
workgroup = HOMEGROUP
server string = Samba Server
passdb backend = tdbsam
log file = /var/log/samba.%m
max log size = 50
dns proxy = No
wins support = Yes
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[tmp]
comment = Temporary file space
path = /tmp
read only = No
guest ok = Yes
-------------------------------------

Then I read about smbclient, so I issued an smbclient -L student (student is the name of the WinXP box) and lo and behold! I got the following:

-------------------------------------
smbclient -L student
Unknown parameter encountered: "SO_RCVBUF"
Ignoring unknown parameter "SO_RCVBUF"
Password:
Domain=[STUDENT] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
--------- ---- -------
E$ Disk Default share
IPC$ IPC Remote IPC
D$ Disk Default share
SharedDocs Disk
print$ Disk Printer Drivers
BOOTDISK (C) Disk
KyoceraF Printer Kyocera FS-1000
ADMIN$ Disk Remote Admin
C$ Disk Default share
Domain=[STUDENT] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Server Comment
--------- -------
Workgroup Master
--------- -------
---------------------------------------------

I was in 7th heaven! I thought I was finally going to get my printer going!
I then went into KDE and started Control Center > Peripherals > Printers, Add ed a PrinterClass, and then my world fell apart!
When it went into Browse mode, it found the WinXP box (student) but there was NO PRINTER ATTACHED SHOWING!
I was mortified.
I chewed what's left of my nails, ate yet another lolly, rubbed my bald head , scratched my privates (for inspiration only) and then, I thought :
"What the hell - you've come so far, you may as well nominate the printer and load a driver for it and see what happens"
So I did.
Then when it asked me to load a printer driver, all I had was a Kyocera CD with PPD files on it, and when I tried pointing the configurator to the appropriate PPD file, it complained that it could not load it (??). Mind you, the Kyocera is NOT a Postscript printer, it uses the PCL language, so...
Anyhow just to test the config I clicked on Printer > Configure in the Control Center and a pop-up informed me that it was unable to load a valid driver for the printer
Ah well, I thought I'd bombed out again.

Then, piqued as I was, I thought I'd try a printout anyway, just to see if ANYTHING, no matter how garbled, came out of the printer.

AND the bloody thing WORKED! IT WORKED I TELL YOU!!
I felt like I had just created Frankenstein!
It had no right to work!
The printer had not been found during the setup, so why - no - how did CUPS know where to send it? It did not even have a proper driver!!

I tell you guys, there's more to this CUPS software than meets the eye - sheer bloody magic! Mind you, I'm not complaining, I'm just bloody well mystified.
 
Old 07-21-2005, 12:15 PM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
That's one of the ocations when I usually say "it automagically worked"

Next step, write down exactly what you did (even the body movements :P ) so you can repeat it in case you need it.
 
Old 07-21-2005, 02:02 PM   #3
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
Slack1_more
Congratulations on your printer working!
Would you like to come over and work your newbie magic on mine?
 
Old 07-22-2005, 10:03 AM   #4
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
You will find that if you set up cups, IPP printing is much faster than going through the inefficiencies of the smb protocol.
 
  


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
Need help with getting printer working. M$ISBS Linux - Hardware 5 12-05-2005 10:19 AM
Getting Printer Working shilo Slackware 2 09-04-2004 08:43 PM
I Got My Printer Working Again!!!!!!!!!!!! Ausar LinuxQuestions.org Member Success Stories 0 07-25-2004 07:25 PM
I Got My Printer Working Again!!!!!!!!!!!!!!!!!!! Ausar Linux - Newbie 3 07-24-2004 09:08 PM
Can't get my printer working nero64 Linux - Newbie 1 11-14-2002 04:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:13 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration