View previous topic :: View next topic |
Author |
Message |
OldManRiver Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 17 Jan 2007 Posts: 79
|
Posted: Fri Mar 30, 2007 7:53 pm Post subject: Printing CUPS/SAMBA |
|
|
All,
I have a Gentoo server, which we have tried over and over to get to print. Our printer is an HP 4L and runs off a LinkSys EPSX3.
I have SAMBA working where I can see the Gentoo box from Windows and have smbmounts working to see Windows from Gentoo, but I think I still have a SAMBA problem as I have to use IP addressing to see any windows shares and I have to do it manually. I tried putting the same commands into a script and even with full direct path name I get errors from the scripts.
The EPSX3 is on DHCP and NetBeui so I currently cannot directly see the printer, only the Windows share for it on the Windows box. I'm having to run an smbmount command to the Windows box to link the printer.
I can not get anything to see or link to/define the printer in either the smb.conf or the cupsd.conf files. I need some help here as I still don't really understand all the SAMBA and CUPS nuainces.
Thanks in advance!
OMR |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jstead1 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_farnsworth_2.gif)
Joined: 01 Aug 2003 Posts: 427 Location: Oswego, NY where the snow is deep
|
Posted: Fri Mar 30, 2007 8:10 pm Post subject: |
|
|
I think your print server supports IPP, (at least the specs say it does) and so does linux.
See the Gentoo Printing Guide for details.
(IPP doesn't use SAMBA, so you won't need it for printing, but you will need to install the printer into CUPS, this is in the gentoo printing guide as well.) _________________ jim |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
OldManRiver Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 17 Jan 2007 Posts: 79
|
Posted: Sun Apr 01, 2007 10:20 pm Post subject: Ipp |
|
|
JST1,
I think you are expecting that I'm able to see this printer in the Network Browser or that is has a static IP. Neither is the case, as I described earlier.
Thanks!
OMR |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ok Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1790175990470fddd57d325.gif)
Joined: 11 Jul 2006 Posts: 390 Location: germany
|
Posted: Mon Apr 02, 2007 9:39 am Post subject: |
|
|
I also have a HP LJ4L, connected directly to my Windows PC and using the share to access the printer from my linux box. I configured the printer with CUPS ( http://127.0.0.1:631/ ).
I only start samba if i want to share files from my linux box, don"t need to start it for printing.
HowTo: http://gentoo-wiki.com/HOWTO_print_winserver |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bunder Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
Joined: 10 Apr 2004 Posts: 5947
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jpl888 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/686496017425d82ff190a1.png)
Joined: 13 Apr 2005 Posts: 337 Location: Piltown, Co. Kilkenny, Ireland.
|
Posted: Fri Apr 06, 2007 3:31 pm Post subject: |
|
|
Quote: | All,
I have a Gentoo server, which we have tried over and over to get to print. Our printer is an HP 4L and runs off a LinkSys EPSX3.
I have SAMBA working where I can see the Gentoo box from Windows and have smbmounts working to see Windows from Gentoo, but I think I still have a SAMBA problem as I have to use IP addressing to see any windows shares and I have to do it manually. I tried putting the same commands into a script and even with full direct path name I get errors from the scripts.
The EPSX3 is on DHCP and NetBeui so I currently cannot directly see the printer, only the Windows share for it on the Windows box. I'm having to run an smbmount command to the Windows box to link the printer.
I can not get anything to see or link to/define the printer in either the smb.conf or the cupsd.conf files. I need some help here as I still don't really understand all the SAMBA and CUPS nuainces.
Thanks in advance!
OMR |
Your printer is attached to the Linksys right? So you don't need to use samba to print to it. It should support IPP and therefore the client part of CUPS will be all you need to print to it from Gentoo.
Having looked at the Linksys website version 2 of this yoke supports IPP, so CUPS is your ticket if I have read you right. _________________ John Lewis IT Consultancy and Engineering
http://www.johnlewis.ie |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
OldManRiver Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 17 Jan 2007 Posts: 79
|
Posted: Wed Apr 18, 2007 7:50 pm Post subject: Where I'm at - Wits End |
|
|
jpl888 wrote: | Your printer is attached to the Linksys right? So you don't need to use samba to print to it. It should support IPP and therefore the client part of CUPS will be all you need to print to it from Gentoo.
Having looked at the Linksys website version 2 of this yoke supports IPP, so CUPS is your ticket if I have read you right. |
Yes printer is attached to LinkSys, but Samba cannot see it as it uses DHCP not static IP, so IPP has trouble finding it.
I tried using CUPS to browse for it, but since Samba can not see it and it really is all NetBeui, (IP only works if NetBeui finds it) then nothing else CUPS or SAMBA tries seems to work. Also a note about the LinkSys, it totally aborts if I try to set a static IP. I'm not sure why and it works fine with all the Windows machine as is, so not touching it. Beside we are having ISP stability problems, so I posted at:
https://forums.gentoo.org/viewtopic-t-533062-highlight-.html
because I need to monitor two lines and distribute throught the GenToo box. One Line distributes 192.168.1.x and the other 192.168.10.x so forcing the LinkSys to conform is bad, just having to reboot LinkSys everytime we manually change lines.
My partner and I have been trying to solve the Samba problem for sometime, and we are told that we should see all windows shares with either "smbtree" at the terminal or in the "Network" folder on GNOME, but neither work. I've been told that this print server will never be seen or work, until Samba can see all the windows shares, but if you think not, tell me how to get around it.
My partner found some excerpts online, indicating the default e-build for Gentoo Samba is missing key items. He forgot to bookmark this and once he followed the procedure, posted on the Samba defficiencies, Samba saw all the Windows shares, but then we lost it, because we somehow screwed the smb.conf file.
Anything that helps solve this would leave us elated as we have fought this for weeks now, without any sight of a real solution.
Thanks!
OMR |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jstead1 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_farnsworth_2.gif)
Joined: 01 Aug 2003 Posts: 427 Location: Oswego, NY where the snow is deep
|
Posted: Thu Apr 19, 2007 1:01 am Post subject: |
|
|
I just want to make it clear that sharing a printer by IPP has nothing to do with samba, smb, or Netbeui. Sharing a printer with samba over netbeui is a cludge. Use IPP if it is available, and in your case it appears to be a viable option. Forget samba (for print sharing anyway). You won't see the printer using samba if it is shared using IPP, they are different protocols. If you already understood this, my apologies. _________________ jim |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jpl888 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/686496017425d82ff190a1.png)
Joined: 13 Apr 2005 Posts: 337 Location: Piltown, Co. Kilkenny, Ireland.
|
Posted: Thu Apr 19, 2007 9:26 am Post subject: |
|
|
OldManRiver, myself and jstead1 are basically telling you that you are trying to do this the wrong way.
I'm assuming that your ultimate goal is for all the Windows machines to be able to print through the Linksys.
The simplest thing to do is connect the windows machines directly to the Linksys using IPP.
That means you shouldn't be using NETBEUIE at all.
You don't need CUPS or Samba on the Linux machine to use IPP on the Windows machines.
If you want to print from the Linux machine to the Linksys THEN you should have have CUPS installed on it.
As for IP addresses if you cannot get the Linksys to take a static IP then I would suggest reflashing it as there is obviously something wrong with it if that is the case.
Going back to the Windows machines, Windows XP supports IPP out of the box, but older clients will need some kind of driver.
My feeling from your posts is that you don't understand some of the fundamentals of networking or TCP/IP or you wouldn't be trying to use NETBEUI in the first place.
Please feel free to ask questions regarding any areas you are vague on. _________________ John Lewis IT Consultancy and Engineering
http://www.johnlewis.ie |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
OldManRiver Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 17 Jan 2007 Posts: 79
|
Posted: Fri Apr 20, 2007 11:00 pm Post subject: |
|
|
jpl888 wrote: | As for IP addresses if you cannot get the Linksys to take a static IP then I would suggest reflashing it as there is obviously something wrong with it if that is the case.
Going back to the Windows machines, Windows XP supports IPP out of the box, but older clients will need some kind of driver.
My feeling from your posts is that you don't understand some of the fundamentals of networking or TCP/IP or you wouldn't be trying to use NETBEUI in the first place. |
JP,
I guess I need to explain the LinkSys EPSX3, it is an older box that was produced when NetBeui was King, and TCP/IP was just emerging. There are no flash updates for this box as it is no longer supported. I upgraded, I think, to the latest version of the Flash (Just checked and I have version 6013, Anyone knowing of a later version and where to download, will be helpful). Needless to say the EPSX3 does not play well with IP, and does depend primarily on NetBeui, so much so that the Bi-Admin tool for it will not see it, nor will Windows see it without NetBeui installed. If you only have the TCP/IP protocol installed on your windows box you are toast with this Print Server.
Of course if you did not know this, nor take the time to look it up, then I understand your comment about thinking I do not know TCP/IP.
If this is the issue and I can not get past it, I will have to re-assign this printer to the NetGear print server than can work without NetBeui installed. The problem with static IP on this box is two fold: 1.) The Network masking is constantly changing and will until I get my GenToo box monitoring the two ISPs and make it the Network DHCP server, not the ISP gateway routers, 2.) Something in the DNS setting doesn't work right and cause the box to no longer be seen. I then am force to "RESET" to get the box back and visible to the network.
As for IPP on windows, I run Win2K Pro, so will I need an add-in for that? If so where do I find it?
All the Unix/Linux Gurus I know, say it is not the LinkSys Box, as they looked up it's specs, and gave me that answer. They all say I have to have Samba config'd right and it will show with NetBeui, just fine. I keep being told I have a Samba config problem as I can not: 1.) Issue the "smbtree" command in the shell and see the Windows shares, 2.) I do not get automatic searching for and location of Windows shares, 3.) I see no Windows shares in the "Network" folder under "Computer" in the GNOME session.
I've been told once these config issues are resolved I will see the printer and will be able to print to it.
Thanks!
OMR |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
darkphader Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_fry.gif)
Joined: 09 May 2002 Posts: 1225 Location: Motown
|
Posted: Sat Apr 21, 2007 2:24 am Post subject: |
|
|
OldManRiver wrote: | They all say I have to have Samba config'd right and it will show with NetBeui, just fine. |
Not true. Samba does not talk NetBEUI, it does talk NetBIOS over TCP/IP which, sorry to say, is not the same. If NetBEUI is necessary to talk to the device you are plain out of luck. Get a different print server (maybe look for a used Axis on ebay).
Chris _________________ WYSIWYG - What You See Is What You Grep |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jpl888 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/686496017425d82ff190a1.png)
Joined: 13 Apr 2005 Posts: 337 Location: Piltown, Co. Kilkenny, Ireland.
|
Posted: Sat Apr 21, 2007 11:49 am Post subject: |
|
|
Quote: | Of course if you did not know this, nor take the time to look it up, then I understand your comment about thinking I do not know TCP/IP. |
I did look it up, or did you not read my first post?
Quote: | Having looked at the Linksys website version 2 of this yoke supports IPP, so CUPS is your ticket if I have read you right. |
I can understand you getting a bit defensive but as darkphader pointed out you don't seem to know the difference between NETBEUI and NETBIOS.
If I phrased things badly I apologise.
I am only trying to help
In answer to your last question, it seems I was slightly wrong according to this Microsoft KB article http://support.microsoft.com/kb/248344 Windows 2000 supports IPP printers natively so you don't need a special driver for IPP. I have a copy of Windows 2000 running in Vmware and a printer shared via CUPS and IPP, I can set a driver up and tell you how to do it if you like?
Also the other way to approach this is to connect the printer directly to your Linux box and share it via CUPS and IPP in the same way I do. It's all good as long as you don't use NETBEUI, or NETBIOS for that matter.
Cheerio. _________________ John Lewis IT Consultancy and Engineering
http://www.johnlewis.ie |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jstead1 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_farnsworth_2.gif)
Joined: 01 Aug 2003 Posts: 427 Location: Oswego, NY where the snow is deep
|
Posted: Sat Apr 21, 2007 6:49 pm Post subject: Re: Ipp |
|
|
OldManRiver wrote: | JST1,
I think you are expecting that I'm able to see this printer in the Network Browser or that is has a static IP. Neither is the case, as I described earlier.
Thanks!
OMR |
My last post to this thread.
It doesn't need a statuc IP. I know the router has or can be given a host name.
From the Gentoo Printing Guide previously referenced.
"Configuring a Windows Client for IPP
Microsoft Windows supports IPP (Windows 9x and ME users need to install it separately). To install a printer that is attached to your Linux box on Windows, fire up the Add Printer wizard and select Network Printer. When you are asked for the URI, use the http://hostname:631/printers/queue syntax. " So you don't need a static IP, you need a host name. You don't need extra stuff for windows 2000, it already supports IPP. If you had read the printing guide you would know this.
I really do like to try to help people, but you seem bound and determined to setup this printer through samba. It is just the wrong way to go.
Bye _________________ jim |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
darkphader Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_fry.gif)
Joined: 09 May 2002 Posts: 1225 Location: Motown
|
Posted: Sat Apr 21, 2007 7:47 pm Post subject: Re: Ipp |
|
|
jstead1 wrote: | It doesn't need a statuc IP. I know the router has or can be given a host name.
<snip>
When you are asked for the URI, use the http://hostname:631/printers/queue syntax. " So you don't need a static IP, you need a host name. |
Not quite so simple. The host name has to be resolvable and CUPS is not going to use NetBIOS broadcasts. Therefore without DNS or hosts (or possibly WINS) resolution a hostname by itself will mean nothing. Basically "servers" should have static/fixed IP addresses (they can be assigned by DHCP but reserved so that they're always the same). In this case I see no reason why the print server in question cannot have a static IP address, it's absurd to have it assigned via DHCP unless it's a reserved address. Easiest solution is to make it static and use hosts resolution (unless you have a DNS server - preferred). If there's some reason to insist on dynamic assignment than use a DNS server configured to support dynamic updates or possibly set Samba up as a WINS server, build it with winbind, set the print server to register itself with the WINS server, then use wins as an option in nsswitch.conf (clearly reaching a bit, maybe workable, and the least desirable option).
I do repeat, for the OP, and with emphasis - give it a static IP address.
Chris _________________ WYSIWYG - What You See Is What You Grep |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
OldManRiver Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 17 Jan 2007 Posts: 79
|
Posted: Tue May 15, 2007 8:05 pm Post subject: |
|
|
jpl888 wrote: |
I'm assuming that your ultimate goal is for all the Windows machines to be able to print through the Linksys.
|
Sorry all have been in the field steady, so just getting back to this!
Answer to the above quote is they already do, but GenToo will not!
That is where my frustration lies!
If it appears that I'm taking offense to any input, I'm not. I take each suggestion and try to apply it. When it doesn't work that when I get on the peaved side, but I don't mean anything personal, just that it still is not working.
OMR |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
OldManRiver Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 17 Jan 2007 Posts: 79
|
Posted: Tue May 15, 2007 8:13 pm Post subject: Re: Ipp |
|
|
darkphader wrote: | Not quite so simple. The host name has to be resolvable and CUPS is not going to use NetBIOS broadcasts. Therefore without DNS or hosts (or possibly WINS) resolution a hostname by itself will mean nothing. Basically "servers" should have static/fixed IP addresses (they can be assigned by DHCP but reserved so that they're always the same). In this case I see no reason why the print server in question cannot have a static IP address, it's absurd to have it assigned via DHCP unless it's a reserved address. Easiest solution is to make it static and use hosts resolution (unless you have a DNS server - preferred). If there's some reason to insist on dynamic assignment than use a DNS server configured to support dynamic updates or possibly set Samba up as a WINS server, build it with winbind, set the print server to register itself with the WINS server, then use wins as an option in nsswitch.conf (clearly reaching a bit, maybe workable, and the least desirable option). |
Finally maybe a light in this????
I think something else, maybe DNS or WINS is too blame for why the host names do not resolve and why I see none.
Maybe if I can solve that the IPP/CUPS/Printing problem will seem like an automatic fix????
By the way, Windows share for the LinkSys is:
\\SCA18563\P1
it also supports:
\\SCA18563\P2
\\SCA18563\P3
since it is a 3 port print server.
If we can resolve the issue with why I can not see any Windows Network shares then I think this will config rather easily, but not sure at this point.
Also Gentoo infomed me today that my Samba and Cups files need to be re-emerged so I did. Wondering if that will have any impact on this problem?
Since getting this right mean my smb.conf file must be right & the cups.conf, I pasting them in here:
SMB.CONF Code: | # Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2007/02/16 12:59:46
[global]
netbios name = GENTOO_NYLE
workgroup = DAVISOFT
server string = LDAP PDC
# server string = Samba Server
security = user
# security = share
os level = 65
wins support = yes
load printers = yes
browseable = yes
printcap name = cups
printing = cups
cups options = "raw"
use client driver = yes
# use client driver = no
# name resolve order = wins lmhosts host bcast
# wins support = no
name resolve order = lmhosts host bcast
dns proxy = no
# interfaces = eth2
# domain master = no
# domain master = yes
# preferred master = no
# preferred master = yes
# domain logons = yes
# logon script = login.bat OR %U.bat
# logon path = \\%L\profiles\%U
# logon drive = H:
# logon home = \\%L\%U\.9xprofile
# time server = yes
# log file = /var/log/samba/log.%m
# max log size = 50
# smb passwd file = /var/lib/samba/private/smbpasswd
# encrypt passwords = yes
# lock directory = usr/local/samba/var/lock
[public]
hosts allow = 127.0.0.0/8 192.168.10.0/24
# security = user
security = share
encrypt passwords = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = lo eth0 eth1 eth2
bind interfaces only = yes
[print$]
comment = Printer Drivers
path = /etc/samba/printer # this path holds the driver structure
guest ok = yes
browseable = yes
read only = yes
# Modify this to "username,root" if you don't want root to
# be the only printer admin)
write list = "username,root"
[printers] # here all printers will be shown; this becomes the Printers
# share/section under Network Neighborhood
comment = All Printers
guest ok = yes
writable = no
Printer admin = printer_username,root 1.*
browseable = yes
printable = yes
public = yes
# create mode = 0700
guest only = yes
guest account = smbprint
path = /etc/samba/smbprint
[HP-4L]
comment = HP-4L on Windows Server
guest ok = yes
writable = no
browseable = yes
printable = yes
public = yes
# create mode = 0700
guest only = yes
guest account = smbprint
path = /etc/samba/smbprint
[install_cds]
comment = Server Connect = CDs
path = /var/shared-files/install_cds
guest ok = yes
browseable = yes
writable = yes
valid users = administrator nyle root
public = no
printable = no
create mask = 0765
[bids_plans]
comment = Server Connect = CDs
path = /var/shared-files/bids_plans
guest ok = yes
browseable = yes
writable = yes
valid users = administrator nyle root
public = no
printable = no
create mask = 0765
[print_howto]
comment = Printing Setup Howto Files
path = /var/shared-files/print_howto
guest ok = yes
browseable = yes
writable = yes
valid users = administrator nyle root
public = no
printable = no
create mask = 0765
[school]
comment = Folder for North Lake College Unix Classes
path = /var/shared-files/school
guest ok = yes
browseable = yes
writable = yes
valid users = administrator nyle root
public = no
printable = no
create mask = 0765
|
CUPSD.CONF Code: | #
# "$Id: cupsd.conf.in 5454 2006-04-23 21:46:38Z mike $"
#
# Sample configuration file for the Common UNIX Printing System (CUPS)
# scheduler. See "man cupsd.conf" for a complete description of this
# file.
#
# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel debug
# LogLevel info
# Administrator user group...
SystemGroup lpadmin
# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock
Listen /etc/samba/smbprint
# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# You may prefer to visit http://localhost:631/ rather than edit this directly.
<DefaultPrinter HP-4L>
Info HP LaserJet 4L
Location usb:/etc/samba/smbprint
# DeviceURI usb://hp/LaserJet%201000
DeviceURI usb:/etc/samba/smbprint
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
# Restrict access to the server...
<Location />
Order allow,deny
Allow localhost
</Location>
# Restrict access to the admin pages...
<Location /admin>
Encryption Required
Order allow,deny
Allow localhost
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
AuthType Basic
Require user @SYSTEM
Order allow,deny
Allow localhost
</Location>
# Set the default printer/job policies...
<Policy default>
# Job-related operations must be done by the owner or an adminstrator...
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
# All administration operations require an adminstrator to authenticate...
<Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
AuthType Basic
Require user @SYSTEM
Order deny,allow
</Limit>
# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy> |
Maybe one of you can spot why the code doesn't work. Also I can post other files on WINS and DNS if needed!
Thanks!
OMR |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
OldManRiver Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 17 Jan 2007 Posts: 79
|
Posted: Tue May 22, 2007 5:53 pm Post subject: Input ==> Think it is WINS |
|
|
All,
A friend wrote the following in an email:
Quote: | If you were to try to bring up a WINS server (wins support = yes), WINS translates \\machinename to IP. |
This is fact the problem, none of the windows machines show without a SMBClient command with hardcoded IP addresses, therefore WINS is screwed and not resolving any host names. Therefore, we can never see the print server.
This friend also wrote:
Quote: | It is possible to reserve IP addresses in your DHCP server based on the MAC address of the print server. |
I believe that means the GenToo box must be set up as the DHCP server and not our current router(s), unless we solve our autorouting problem we posted at:
Quote: | https://forums.gentoo.org/viewtopic-t-533062-highlight-.html | So I can switch to picking up all network traffic from my Gentoo box insted of the sometimes up, sometimes down connectivity we have here. A note on that: our default is at 70MB and our backup is AT&T ADSL (256K upload) so backup mode sucks.
I'm just too noobie 2 Gentoo, so need lots of help!
Thanks!
OMR |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
OldManRiver Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 17 Jan 2007 Posts: 79
|
Posted: Fri May 25, 2007 10:52 pm Post subject: Resources Found |
|
|
All,
I found the following resources that seem very well written and in depth. Have not had time to fully analyze or apply just yet but wanted to share, in case anyone had some insight before I started trying to implement, as some of the previous "HOWTOO's" did anything but that:
I noticed the in-depth treatment of each of these on WINS, which is where I think I'm having my problem.
Thanks!
OMR |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
OldManRiver Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 17 Jan 2007 Posts: 79
|
Posted: Sun May 27, 2007 7:01 pm Post subject: Still Fighting |
|
|
All,
Still fighting to get backup after my disk full error at:
So not able to jump back on this just yet. Just curious though as to whether my reboot problems are somehow related to my postings here on Samba, since that is part of the problem in rebooting?
Thanks!
OMR |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
OldManRiver Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 17 Jan 2007 Posts: 79
|
Posted: Fri Jun 08, 2007 4:14 pm Post subject: Back |
|
|
All,
Finally resolved all my issues with the disk full and relocating the portage and dist directories so now back to this issue.
Now open to input here again!
Where I'm at is that when I run: Code: | /etc/init.d/samba start | I get nothing, it hangs. and I must use ^C to get back to the command prompt.
Any input/ideas on that?
Thanks!
OMR |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
darkphader Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_fry.gif)
Joined: 09 May 2002 Posts: 1225 Location: Motown
|
Posted: Fri Jun 08, 2007 4:26 pm Post subject: |
|
|
try running testparm _________________ WYSIWYG - What You See Is What You Grep |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
OldManRiver Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 17 Jan 2007 Posts: 79
|
Posted: Tue Jun 12, 2007 9:15 pm Post subject: |
|
|
darkphader wrote: | try running testparm |
Ok here are my results from testparm: Code: | localhost ~ # testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[print$]"
Processing section "[printers]"
WARNING: The "Printer admin" option is deprecated
Global parameter guest account found in service section!
Processing section "[HP-4L]"
Global parameter guest account found in service section!
Processing section "[install_cds]"
Processing section "[bids_plans]"
Processing section "[print_howto]"
Processing section "[school]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
workgroup = DAVISOFT
netbios name = GENTOO_NYLE
server string = Samba Server
interfaces = lo, eth0, eth1, eth2
bind interfaces only = Yes
name resolve order = wins lmhosts host bcast
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
hostname lookups = Yes
printcap name = cups
dns proxy = No
wins support = Yes
guest ok = Yes
hosts allow = localhost, 192.168.10.0/24, 192.168.1.0
hosts deny = All
printing = cups
cups options = "raw"
print command = lpr -P'%p' %s; rm %s
lppause command = lp -i '%p-%j' -H hold
lpresume command = lp -i '%p-%j' -H resume
queuepause command = disable '%p'
queueresume command = enable '%p'
use client driver = Yes
[print$]
comment = Printer Drivers
path = /etc/samba/printer # this path holds the driver structure
write list = username,root
[printers]
comment = All Printers
path = /etc/samba/smbprint
printer admin = printer_username, root, 1.*
guest only = Yes
printable = Yes
browseable = No
[HP-4L]
comment = HP-4L on Windows Server
path = /etc/samba/smbprint
create mask = 0777
guest only = Yes
printable = Yes
[install_cds]
comment = Server Connect = CDs
path = /var/shared-files/install_cds
valid users = administrator, nyle, root
read only = No
create mask = 0777
guest ok = No
[bids_plans]
comment = Downloaded Plan Files for Bidding
path = /var/shared-files/bids_plans
valid users = administrator, nyle, root
read only = No
create mask = 0765
guest ok = No
[print_howto]
comment = Printing Setup Howto Files
path = /var/shared-files/print_howto
valid users = administrator, nyle, root
read only = No
create mask = 0777
guest ok = No
[school]
comment = Folder for North Lake College Unix Classes
path = /var/shared-files/school
valid users = administrator, nyle, root
read only = No
create mask = 0777
guest ok = No |
Using this output I eliminated all the guest strings from the non-global section and re-ran.
What else do I need to change?
When I issue the samba start command: Code: | localhost ~ # /etc/init.d/samba start
* samba -> start: smbd ...
* ERROR: samba caught an interrupt
| It appears the smbd section executes OK, but the nmbd section never runs. I'm the one manually entering the ^C to force the interrupt as nothing happens past the start smbd. Thinking about this does this means smb.conf is truly OK?
I did recently have disk-full errors so have to change all the DIST and PORTAGE directories. See thread Quote: | https://forums.gentoo.org/viewtopic-t-559932-highlight-.html | Is this problem related to this? Is the nmbd section looking for a file it can no longer find? If so what file is it and where to I go to correct this problem?
Thanks!
OMR
Last edited by OldManRiver on Wed Jun 13, 2007 1:01 am; edited 5 times in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
darkphader Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_fry.gif)
Joined: 09 May 2002 Posts: 1225 Location: Motown
|
Posted: Tue Jun 12, 2007 10:20 pm Post subject: |
|
|
rtfm _________________ WYSIWYG - What You See Is What You Grep |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
OldManRiver Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 17 Jan 2007 Posts: 79
|
Posted: Wed Jun 13, 2007 1:03 am Post subject: Did you See? |
|
|
Dark,
Did you see my correction to the testparm entry?
After correcting the file I now have Code: | localhost ~ # testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[print$]"
Processing section "[printers]"
WARNING: The "Printer admin" option is deprecated
Processing section "[HP-4L]"
Processing section "[install_cds]"
Processing section "[bids_plans]"
Processing section "[print_howto]"
Processing section "[school]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions | I think this means I'm good, but need a feedback on the Warning message!
Thanks!
OMR |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
darkphader Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_fry.gif)
Joined: 09 May 2002 Posts: 1225 Location: Motown
|
Posted: Wed Jun 13, 2007 1:54 am Post subject: Re: Did you See? |
|
|
OldManRiver wrote: | Did you see my correction to the testparm entry? |
Not until now.
1) Don't have a [printers] section and then define printers separately - [HP-4L].
2) It's probably not a good idea to re-share a share - again [HP-4L], if it's connected to the Windows box and the Windows box is it's print server then just print to it w/o using Samba. If the comment is just confusing me then see 1).
3) When using cups there is no need to define print commands - get rid of them (includes the queue... shit).
4) Simplify your smb.conf - unless you have an eth3 as well that you don't want Samba to listen on then skip all of the "interfaces=", "bind interfaces...".
5) Skip useless stuff like "hostname lookups" - it's expensive and you might not be running a DNS server anyway.
6) Again simplify, get rid of the "hosts allow", and "hosts deny"
7) Dump "socket options" as well.
8) If you're not pointing your clients to the WINS server then don't run one (usually you would want it to be the PDC as well.
Basically simplify, get rid of the BS - use the example smb.conf from the examples folder in the original Samba tarball as a starting point instead of Gentoo's example config. Got to samba.org and read the "official howto" and "by example" docs. Start with something that works and then tweak it.
Remember that today's Samba emulates a Windows NT 4.0 Server. In order to use it successfully it helps to be familiar with that environment.
Chris _________________ WYSIWYG - What You See Is What You Grep |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|