LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 10-03-2003, 01:59 PM   #1
Haploness
LQ Newbie
 
Registered: Mar 2003
Posts: 18

Rep: Reputation: 0
Samba....gona cry


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?


Thanks alot......
 
Old 10-03-2003, 06:37 PM   #2
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
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
 
Old 10-04-2003, 05:42 AM   #3
Haploness
LQ Newbie
 
Registered: Mar 2003
Posts: 18

Original Poster
Rep: Reputation: 0
Ty, the link you gave sent me to a place where someone has
the same problem, but the answer is not available.....could you
post it here?
 
Old 10-04-2003, 04:37 PM   #4
Redbone981sl
Member
 
Registered: Jul 2003
Posts: 73

Rep: Reputation: 15
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
 
Old 10-04-2003, 06:05 PM   #5
mossy
Member
 
Registered: Aug 2003
Location: USexIRL
Distribution: *nix
Posts: 849

Rep: Reputation: 30
My $0.02~

Disable all firewalls.
Share the printer.
try again.
Failing that look into cups.
 
Old 10-05-2003, 07:09 AM   #6
Haploness
LQ Newbie
 
Registered: Mar 2003
Posts: 18

Original Poster
Rep: Reputation: 0
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.
 
Old 10-06-2003, 12:41 PM   #7
mossy
Member
 
Registered: Aug 2003
Location: USexIRL
Distribution: *nix
Posts: 849

Rep: Reputation: 30
are they shared from windows is what I mean.
 
Old 10-07-2003, 04:13 AM   #8
Haploness
LQ Newbie
 
Registered: Mar 2003
Posts: 18

Original Poster
Rep: Reputation: 0
Yes, the printers can be accessed from any machine (win-chit) on the
net.
 
Old 10-07-2003, 05:34 AM   #9
Haploness
LQ Newbie
 
Registered: Mar 2003
Posts: 18

Original Poster
Rep: Reputation: 0
Ok, I have a new thing that may be the clue.

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

Server Comment
--------- -------

Workgroup Master
--------- -------


I ger this after putting my pass, otherwise I get

Sharename Type Comment
--------- ---- -------
Error returning browse list: NT_STATUS_ACCESS_DENIED

Server Comment
--------- -------

Workgroup Master
--------- -------

so....what the hell is going on?
 
Old 10-07-2003, 08:11 PM   #10
Redbone981sl
Member
 
Registered: Jul 2003
Posts: 73

Rep: Reputation: 15
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.
 
Old 10-07-2003, 08:22 PM   #11
Redbone981sl
Member
 
Registered: Jul 2003
Posts: 73

Rep: Reputation: 15
In the /etc/samba/smb.conf file also check the line that says dns proxy, make sure it says yes.
Hope this helps
 
Old 10-08-2003, 06:38 AM   #12
Haploness
LQ Newbie
 
Registered: Mar 2003
Posts: 18

Original Poster
Rep: Reputation: 0
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.

Really I am out of ideas.
 
Old 10-08-2003, 07:17 AM   #13
frandalla
Member
 
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Blog Entries: 1

Rep: Reputation: 37
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?
 
Old 10-08-2003, 07:45 AM   #14
Haploness
LQ Newbie
 
Registered: Mar 2003
Posts: 18

Original Poster
Rep: Reputation: 0
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)
 
Old 10-08-2003, 11:11 AM   #15
Haploness
LQ Newbie
 
Registered: Mar 2003
Posts: 18

Original Poster
Rep: Reputation: 0
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?
 
  


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
I'm going to cry. henrikanttonen General 22 06-07-2005 04:54 AM
Samba + Winbind + cry for help jpb@bg Linux - Networking 3 03-16-2005 05:22 AM
only gona get 1 CD. e1000 Slackware 2 10-15-2003 08:06 PM
This one is gona be intresting Psyman014 Slackware 1 10-02-2003 02:46 AM
I think i am going to cry Ginja_Ninja Linux - Software 2 07-03-2003 12:03 PM


All times are GMT -5. The time now is 10:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration