Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Thanks to bstempi I got swat running and configured samba. Now I can
see my Linux box from outside (not in the neighborhood icon set, but
running the command directly). However, I cannot do what I really want to:
print from linux to a XP machine. I set up the printer with the redhat printool
to print in a win-machine: no luck. I set up a printer with webadmin: no luck
and I even created a filter using smbprint: also no luck. What else could I
do or check?
Going out on a limb as I have no clue, never tried to use XP for that.. only an old 95 laptop. Did you check if your windows actually allows your Linux to connect to it and print? There's that inbuilt firewall.. and I think you also need to do other things to it for it to allow remote printing. http://www.experts-exchange.com/Oper..._20482692.html
Ty was right xp has a built in firewall, that could be your problem. You also need to have an account on the xp box with the same login name as your linux-box. Also you have to have the printer shared and you might need to be in the same workgroup. Good Luck
No firewall, I can even mount the shared directories of the nt machine in my linux box. Still no luck with the printers. Maybe the solution is in cups, but
I have the feeling that that is not the case.... do not know how to proceed.
I can access a printer!!! woohooooo.... located in the machine acting as the
domain server. Now, I cannot access anything in any other machines of
the domain. I checked that the printer is shared. When I run smbclient I get (I have to put the ip directly, otherwise I get a wins error that doesn't appear when accessing the domain-server):
smbclient -U user -L //ip.win.machine
added interface ip=my.ip bcast=my.bcast nmask=255.255.0.0
session request to ip.win.machine failed (Called name not present)
session request to "three first digits of ip-win" failed (Called name not present)
Password:
Domain=[DOMINIO-IMM] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC remota
print$ Disk Controladores de impresora
Usuarios Disk
Norman Disk
ADMIN$ Disk Admin remota
C$ Disk Recurso predeterminado
hpdeskje995c Printer hp deskjet 995c series
First edit the /etc/hosts file. Enter the name and ip address of the print server and any other machines that you have to access. Then edit your /etc/samba/smb.conf file. Edit the part that tells the name of your machine and the domain name, also make sure that it says encryptpassword = yes. Check the line hostsallow, make sure your domain ips are included. restart your machine and try again. If your password on your linux box and the print server are the same it should work.
I am completely puzzled. I can mount the shared directory in the machine where the printer is. But still the printed doesn't react. It is a hp995c, it could
the drivers, but still it should do SOMETHING, print garbage or whatever.
But nothing.
I did what you want to do yesterday for the first time! Do you want a clue? I got it working just copy and paste from documentation! Everything is on the HOW-TO Collection from SWAT Documentation.
just did this:
1)
Quote:
[B]# The smb:// backend is a symlink to the Samba utility smbspool (does not ship with CUPS). If the symlink is not present in your CUPS backend directory, have your root user create it: ln -s `which smbspool' /usr/lib/cups/backend/smb. [B]
[i]This is from Chapter 19 on the SAMBA HOW-TO Collection.[i]
2) Copied the Example 19.1 from the same page.
3)Added my network printer through the Printer Manager in KDE. Just added a new printer, on the first wizard form choose Windows SMB Printer, it'll ask you for the workgroup name, scan the net, choose your printer, install the driver and that's it. Done.
Hope that's enough to help you. Just try to look at the documentation first Ok?
Could be nice if I used CUPS, but I don't.
I configured and use a printer in a WIN-NT machine (HP2100).
I cannot do the same with the other printer (in a different darn win machine).
Please do not insult me, I have read the docs. I got a printer doing it.
The only differences I find from one comp to the other
are: 1) the one I can print though is the domain server and the other is attached to it 2) the printer is different (HP2100 vs hp995c)
So far so good. I got the printer printing something by doing the following by hand:
smbclient //pc-scanew/hpdeskje995c -I ip.number -U user -c 'print file'
and if file is a text file it prints it nicely (DOS txt standard)
but if it is a pdf file it prints garbage (better than nothing).
So what I understand is that smbclient acts as if one would be copying the
file directly to the port, i.e. without filtering it.
Now I set up the f... printer with webadmin and get... nothing.
Ok. I edit the filter to debug it and see that the file that it actually sends to
the win.chit contains 0 bytes. So the problem is the filter (or it seems so).
Does anybody know how to get around with printool native RedHat filter
to send the output to the win-chit with smbclient?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.