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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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)
Domain=[DOMINIO-IMM] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC remota
print$ Disk Controladores de impresora
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.
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:
[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?
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?