Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Stupid Samba question [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
k1ll1nt1m3
Apprentice
Apprentice


Joined: 02 Jun 2004
Posts: 196

PostPosted: Fri Dec 29, 2006 4:17 am    Post subject: Stupid Samba question [SOLVED] Reply with quote

I have samba installed and working on my Gentoo box. I can see my samba shares from my XP box if enter \\gentoo (or ip add). For some reason the samba server does not show up in the windows network. I have the samba server set for the same workgroup as my XP.

Code:
workgroup = Home


I can resolve gentoo, which is the samba name of the gentoo server.

Here is part of the config. I have a ton of junk in it now from trying to get it to work the way I want.

Code:

[global]
restrict anonymous = no
domain master = yes
preferred master = yes
max protocol = NT
ldap ssl = No
server signing = Auto
workgroup = Home
netbios name = Gentoo
server string = Samba Server %v
remote announce = 192.168.0.255
wins support = yes
printcap name = cups
load printers = yes
hosts allow = ALL
restrict anonymous = no
wins support = yes


Thanks for any help. I dont see what im missing. :roll:

Edit:
Another question.
How do I setup samba to have the XP printer driver so XP can just add the printer thats on gentoo?


Last edited by k1ll1nt1m3 on Tue Jan 02, 2007 4:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
occ
Apprentice
Apprentice


Joined: 06 May 2005
Posts: 202

PostPosted: Fri Dec 29, 2006 4:46 am    Post subject: Reply with quote

lowercase in the workgroup name ???

I thought netbios didn't like that....

as far as the zoen descrition I use

[myshare]
comment = Shared zone
path = /path/to/my/share
read only = no
public = yes

That seems to be enough....
Back to top
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Fri Dec 29, 2006 10:09 am    Post subject: Re: Stupid Samba question Reply with quote

k1ll1nt1m3 wrote:

Another question.
How do I setup samba to have the XP printer driver so XP can just add the printer thats on gentoo?


Read http://gentoo-wiki.com/HOWTO_Native_Windows_Printing_with_CUPS/Samba. Forum thread referenced at the end of this article was very useful for me. If you have any problems with cupsaddsmb read its man page first to get file names of drivers you have to copy.
Back to top
View user's profile Send private message
k1ll1nt1m3
Apprentice
Apprentice


Joined: 02 Jun 2004
Posts: 196

PostPosted: Sat Dec 30, 2006 2:33 am    Post subject: Reply with quote

I knew it had to be something simple. I had disabled the windows firewall but I forgot I had installed Nvidias Firewall. I found it to be blocking ports 137,139, and 631. Gentoo now shows up in the network. Samba is working fine. Thanks again for the help.

The cups printer is still not right. I edited /etc/cups/cupsd.conf and I can now get an error page when I try to connect to the cups http admin page (http://192.168.0.102:631). I get a 403 Forbidden, "You don't have permission to access the resource on this server.". Is there a way I can set cups so I can get http admin working?

I havent tried the drivers yet. Thats next. Thanks again
Back to top
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Sat Dec 30, 2006 9:24 am    Post subject: Reply with quote

k1ll1nt1m3 wrote:
The cups printer is still not right. I edited /etc/cups/cupsd.conf and I can now get an error page when I try to connect to the cups http admin page (http://192.168.0.102:631). I get a 403 Forbidden, "You don't have permission to access the resource on this server.". Is there a way I can set cups so I can get http admin working?


Information that you changed something in the file is not enough. Can you post here your changes? Does the admin interface work from localhost?
Back to top
View user's profile Send private message
k1ll1nt1m3
Apprentice
Apprentice


Joined: 02 Jun 2004
Posts: 196

PostPosted: Sun Dec 31, 2006 12:38 am    Post subject: Reply with quote

Sorry. I have it all messed up now. Before I post my config Im going to start from scratch. I tried editing it in the kde control panel and its now adding stuff to the config if I change it.
Back to top
View user's profile Send private message
k1ll1nt1m3
Apprentice
Apprentice


Joined: 02 Jun 2004
Posts: 196

PostPosted: Sun Dec 31, 2006 6:25 pm    Post subject: Reply with quote

Here is my current cupsd.conf
REMOVED

Here is my current smb.conf
Code:


[global]
printcap name = cups
cups options = "raw"
bind interfaces only = yes
interfaces = lo eth0
hosts allow = ALL
restrict anonymous = no
domain master = yes
preferred master = yes
max protocol = NT
ldap ssl = No
server signing = Auto
workgroup = HOME
netbios name = Gentoo
server string = Samba Server %v
remote announce = 192.168.0.255
wins support = yes

[Samba]
path = /mnt/samba/
admin users = Jordan
case sensitive = no
msdfs proxy = no
inherit permissions = yes
guest ok = yes
read only = no

[printers]
printable = yes
path = /var/lib/samba/printers
admin users = Jordan root
#force group = lp
browseable = yes
guest ok = yes
#create mask = 0700
printer admin = Jordan
max print jobs = 100
use client driver = no
print command = lpr-cups -P %p %s
write list = @adm root Jordan


I still cant get my gentoo box to serve a driver for the cups printer.

As a work around, I installed the printer again as a second printer but with a raw driver on the Gentoo box. Windows sees both printers fine and uses the windows driver for the raw one.

I think I am going to put the printer on the XP box after all. I have never been able to get the cups driver to check the ink levels.
Back to top
View user's profile Send private message
k1ll1nt1m3
Apprentice
Apprentice


Joined: 02 Jun 2004
Posts: 196

PostPosted: Tue Jan 02, 2007 4:15 am    Post subject: Reply with quote

I have reinstalled cups and have had nothing but problems now. I put the Epson RX620 on the XP pc. I have it shared and can connect to it through kde print setup via smb. I can print using raw, only it just prints the text. If I try using the CUPS+Gutenprint v5.0.0 it just sends the job and nothing happens. It wouldnt even work when it was connect to my Gentoo box.

Debug log after trying to print... error.log
Code:

I [01/Jan/2007:10:11:24 -0600] Sending browsing info to c0a800ff:631
I [01/Jan/2007:10:11:24 -0600] Loaded configuration file "/etc/cups/cupsd.conf"
I [01/Jan/2007:10:11:24 -0600] Configured for up to 100 clients.
I [01/Jan/2007:10:11:24 -0600] Allowing up to 100 client connections per host.
I [01/Jan/2007:10:11:24 -0600] Full reload is required.
I [01/Jan/2007:10:11:24 -0600] LoadPPDs: Read "/etc/cups/ppds.dat", 16292 PPDs...
I [01/Jan/2007:10:11:25 -0600] LoadPPDs: No new or changed PPDs...
I [01/Jan/2007:10:11:25 -0600] Full reload complete.
I [01/Jan/2007:10:12:07 -0600] Adding start banner page "none" to job 13.
I [01/Jan/2007:10:12:07 -0600] Adding end banner page "none" to job 13.
I [01/Jan/2007:10:12:07 -0600] Job 13 queued on 'RX620' by 'root'.
I [01/Jan/2007:10:12:07 -0600] Started filter /usr/lib64/cups/filter/pstops (PID 12265) for job 13.
I [01/Jan/2007:10:12:07 -0600] Started filter /usr/lib64/cups/filter/pstoraster (PID 12267) for job 13.
I [01/Jan/2007:10:12:07 -0600] Started filter /usr/lib64/cups/filter/rastertogutenprint.5.0 (PID 12268) for job 13.
I [01/Jan/2007:10:12:07 -0600] Started backend /usr/lib64/cups/backend/smb (PID 12269) for job 13.
E [01/Jan/2007:10:12:07 -0600] [Job 13] Gutenprint: The version of Gutenprint software installed (5.0.0-rc2) does not match the PPD file (5.0.0).
E [01/Jan/2007:10:12:07 -0600] [Job 13] Gutenprint: If you have upgraded your version of Gutenprint
E [01/Jan/2007:10:12:07 -0600] [Job 13] Gutenprint: recently, you must reinstall all printer queues.
E [01/Jan/2007:10:12:07 -0600] [Job 13] Gutenprint: If the previous installed version of Gutenprint
E [01/Jan/2007:10:12:07 -0600] [Job 13] Gutenprint: was 4.3.19 or higher, you can use the `cups-genppdupdate.5.0'
E [01/Jan/2007:10:12:07 -0600] [Job 13] Gutenprint: program to do this; if the previous installed version
E [01/Jan/2007:10:12:07 -0600] [Job 13] Gutenprint: was older, you can use the Modify Printer command via
E [01/Jan/2007:10:12:07 -0600] [Job 13] Gutenprint: the CUPS web interface: http://localhost:631/printers.
E [01/Jan/2007:10:12:07 -0600] [Job 13] Gutenprint: The version of Gutenprint software installed (5.0.0-rc2) does not match the PPD file (5.0.0).
E [01/Jan/2007:10:12:07 -0600] PID 12268 stopped with status 1!
I [01/Jan/2007:10:12:07 -0600] Hint: Try setting the LogLevel to "debug" to find out more.


Is there a better driver I can install? I have tried `cups-genppdupdate.5.0'. Still no luck.
Back to top
View user's profile Send private message
k1ll1nt1m3
Apprentice
Apprentice


Joined: 02 Jun 2004
Posts: 196

PostPosted: Tue Jan 02, 2007 5:00 am    Post subject: Reply with quote

I got it, finally. I was using an old version of cups.

Installed the latest cups, etc-update after updating world and it works. I think Im going to leave it on the XP box for a little bit. Im tired of cups right now.

Thanks for the help!
Back to top
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Tue Jan 02, 2007 1:26 pm    Post subject: Reply with quote

k1ll1nt1m3 wrote:
I got it, finally. I was using an old version of cups.

Installed the latest cups, etc-update after updating world and it works.


Nice that it's solved. Don't forget about including [solved] in title of this thread.

k1ll1nt1m3 wrote:
I think Im going to leave it on the XP box for a little bit. Im tired of cups right now.


I understand you. Some time ago I had similar problems (Lin/Win printer sharing) and couldn't solve it. But now it works.
Back to top
View user's profile Send private message
k1ll1nt1m3
Apprentice
Apprentice


Joined: 02 Jun 2004
Posts: 196

PostPosted: Tue Jan 02, 2007 4:56 pm    Post subject: Reply with quote

I dont get it. I had installed cups, foomatic and ghoshtscript so many times over the last four days. I always do an etc-update after installing, just to make sure. Then I gave up and did an emerge --sync, which shows I have 7 files that need to be updated. (cups,etc..)

Im pretty sure it all started because I had cups locked to an old version and didnt realize it. I set it the latest stable and things are fine now. End user error, of course. :roll:

Thanks again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum