Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
I've got Samba 3.0.20 installed on Slackware 10.2 with WindowMaker. I can connect to my printer from Samba and all, but printing...kinda works. Paper comes out and sometimes there's stuff on it, but nothing correct. Usually I get a row or two (sometimes overlapped) of edge-to-edge random characters. I can only print from aterm, too. How can I add the printer so that things like OpenOffice and GIMP can use it? And how do I make it print what I tell it to?
So, you are trying to print over the network, where the printer is on a Windows machine? Or do you have the printer on a Linux machine?
If you have the printer on a Windows machine and want to print from the Linux box install CUPS (Common Unix Printing System) on you Linux box and configure a printer over CUPS (For details contact me or post here). I had some trouble with that at first too.
If the printer is on your Linux box, and you want to share it over the network, samba is the choice to take.
The printer is on a Windows XP box. I ran xfsamba4 and could see that particular box, but after updating samba I could see a different one and this one (but still not two others).
I was following the CUPS tutorial here up until the point where it says to install cupsomatic, which I can't find ANYWHERE! I would love some help on setting up CUPS.
Just ignore that step. Have you got CUPS running? Do the following:
Click Administration (enter user: root, password: <root password>)
Printers -> Add Printer
Name: <your choice>
Location: smb://<the windows host name>/<printer share name>
Device: Windows Printer via Samba
Device URI: smb://<username>:<password>@<the windows host name>/<printer share name>
Choose the printer make, model (if the exact model is not supported, just select a model lower, always worked for me)
If it still doesn't work try to change the Location to
smb://<username>:<password>@<the windows host name>/<printer share name>
or
smb://<username>:<password>@<the windows host name>/<printer share name>
Hope this helps.
Last edited by haymaker2000; 04-18-2006 at 08:32 PM.
Have you correctly setup your windows machine as at the end of: http://osr600doc.sco.com/en/PR_admin/cups-start.html
Be sure to have set the usernameassword in the smb:// line. Otherwise, I can't really help you more I guess. So, CUPS is working on port 631?
Yeah I set up my Windows box last night. I used 'smb://spencer:/Attic/HP_Laserjet_' since I don't have a password set. (Taking out that colon doesn't work either...)
You need to use a user:<password> combination, where the password is not blank, I guess. Also, the device URI has an "@" in it instead of a "/".
Note: It took me quite a while to figure this out at first because I did not find any documentation where it pointed you towards doing "smb://username:<password>@host/SHARENAME" in the device URI section of CUPS. This could be documented better I think, so your question is quite relevant. Maybe this would be a topic for a howto ;-).
Last edited by haymaker2000; 04-18-2006 at 08:33 PM.
Eh..added another test print job to the queue and got the 'Could not connect' message again:
Quote:
"Unable to connect to SAMBA host, will retry in 60 seconds...foomatic-rip version $Revision: 3.48 $ running..."
I KNOW it's there:
Code:
root@Paradise:~# /usr/bin/smbclient -L Attic -U spencer
Domain=[ATTIC] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
--------- ---- -------
HP_LaserJet_ Printer HP LaserJet 6P
My Documents Disk
IPC$ IPC Remote IPC
D$ Disk Default share
print$ Disk Printer Drivers
SharedDocs Disk
C Disk
D Disk
Pictures Disk
DMR Disk
Stuff Disk
ADMIN$ Disk Remote Admin
C$ Disk Default share
LTS set list Disk
Domain=[ATTIC] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Server Comment
--------- -------
Workgroup Master
--------- -------
root@Paradise:~# ls -l /usr/lib/cups/backend/smb
lrwxrwxrwx 1 root root 17 Apr 15 06:44 /usr/lib/cups/backend/smb -> /usr/bin/smbspool
Hrm...
[update]
Also, the device URI isn't what I set it to, and won't update when I change it. Currently it should be smb://printer@******@Attic/HP_Laserjet_ but it keeps resetting to smb://Attic/HP_Laserjet_ no matter what I do.
Last edited by liquidrabbit; 04-22-2006 at 07:09 AM.
OK, once more:
device URI is:
smb://printeruserasswd@mywindowshost/EPSON
NOT smb://printer@******@Attic/HP_Laserjet_
THERE IS NO @ between user and password. It's the same as if you log in to a FTP server btw. The username:upassword will not show at the printer configuration on localhost:631 !
See your /etc/cups/printers.conf
Mine:
Code:
<DefaultPrinter Epson>
Info printer info
Location smb://mywindowshost/EPSON
DeviceURI smb://printeruser:upasswd@mywindowshost/EPSON
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
Last edited by haymaker2000; 04-20-2006 at 10:22 PM.
root@Paradise:/home/spencer# /usr/bin/smbclient -L Attic -U printer
Password:
Domain=[ATTIC] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
--------- ---- -------
HP_LaserJet_ Printer HP LaserJet 6P
My Documents Disk
IPC$ IPC Remote IPC
D$ Disk Default share
print$ Disk Printer Drivers
SharedDocs Disk
C Disk
D Disk
Pictures Disk
DMR Disk
Stuff Disk
ADMIN$ Disk Remote Admin
C$ Disk Default share
LTS set list Disk
Domain=[ATTIC] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Server Comment
--------- -------
Workgroup Master
--------- -------
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.