I really love Linux and open-source and have been doing most of my work in these 
environments for more than 5 years now and started working with Linux in 1993. And 
things have certainly improved and changed significantly since then. But sometimes, 
what you would naturally expect to be the simplest of tasks becomes a nightmare and 
pain, like printing from Windows clients. For some reason this morning, after a reboot 
of my main server, I cannot print from Windows. I can print directly from the server, 
I can connect to CUPS Administration remotely and print a test page, I can add the 
printer to a Windows machine but clicking on "Test Print" does not produce anything, 
nothing goes to the printer. I could always plug it back into my Win2k Advanced Server 
and would be able to print in 3-5 minutes, but I resent having to do this and refuse 
(for now). 

I have lost the entire morning just trying to print something that I cannot print from 
a Linux box so I am sorry about the rant. It is probably better than tossing my new 
$4000.00 dedicated Linux server over the balcony (16 floors up it would make a nice 
explosion on the ground). 

And inconsistent and illogical behavior from CUPS. Make a change in the Gnome Print 
Tool and your customized cups.conf gets messed up like resetting all remote access 
back to 127.0.0.1 only!!! And with the following in cupsd.conf I still get access 
denied trying to access from a machine at 192.168.1.2

<Location /admin>
        Order Deny,Allow
        Deny From All
        Allow From 192.168.1.2, 127.0.0.1, 192.168.1.0/255.255.255.0
        AuthType None
</Location>


<Location /printers/Samsung>
        Order Deny,Allow
        Deny From All
        Allow From 192.168.1.2, 127.0.0.1, 192.168.1.0/255.255.255.0
        AuthType None
</Location>


<Location />
        Order Deny,Allow
        Deny From All
        Allow From 192.168.1.2, 127.0.0.1, 192.168.1.0/255.255.255.0
        AuthType None
</Location>


So I had to change the settings above to "Allow From ALL" to get the CUPS web 
interface remotely. At least I can access it.

1) Printing a Test Page from the CUPS admin page works

2) Opening KDE Control Panel, Peripherials, Printers and printing a Test Page works ok.

3) "Linux Print Configuration Tool" prints Test Page ok, 

4) I can also add the printer to a Windows machine, but printing a test page does 
nothing?


So if you have tolerated my rant up to this point I would be greatful if anyone has a 
step-by-step systematic process to follow so I can return to printing from Windows 
clients to my Linux/Samba/Cups machine.

Here are my smb.conf contents:


# Samba config file created using SWAT
# from Johnny (192.168.1.2)
# Date: 2003/06/20 12:06:41

# Global parameters
[global]
        workgroup = ACADEMIC
        netbios name = PENGUIN
        server string = Samba PDC
        interfaces = 192.168.1.0/255.255.255.0 127.0.0.1
        security = DOMAIN
        encrypt passwords = Yes
        null passwords = Yes
        password server = Penguin
        passwd program = /usr/bin/passwd %u
        passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n 
*Enter*new*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *passwd: 
*all*authentication*tokens*updated*successfully*
        unix password sync = Yes
        log level = 2
        log file = /var/log/samba/log.%m
        max log size = 50
        time server = Yes
        socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192
        printcap name = cups
        add user script = /usr/sbin/useradd -d /dev/null -g machines -s /bin/false -M 
%u
        logon script = logon.cmd
        logon path = \\%L\%U\Profile
        logon home = \\%L\%U    logon drive = Y:
        domain logons = Yes
        os level = 255
        preferred master = Yes
        domain master = Yes
        wins support = Yes
        hosts allow = 127.0.0.1 192.168.1.0/255.255.255.0
        printing = cups
        printer name = Samsung

[homes]
        comment = Home Directories
        force user = root
        read only = No
        create mask = 0664
        browseable = No

[profiles]
        path = /home/%U/Profile
        read only = No
        create mask = 0600
        directory mask = 0700
        browseable = No

[netlogon]
        comment = Network Logon Service
        path = /home/netlogon
        write list = stork root Administrator
        browseable = No

[Printers]
        comment = All Printers
        path = /tmp
        guest ok = Yes
        printable = Yes
        browseable = No

[Shared]
        comment = Shared
        path = /mnt/Shared
        force user = root
        force group = stork
        read only = No
        create mask = 0664
        guest ok = Yes

[Jaz]
        comment = Jaz
        path = /mnt/Jaz
        valid users = stork root Administrator
        force user = root
        force group = stork
        read only = No
        create mask = 0664
        guest ok = Yes

[Samsung]
        comment = Samsung ML-1450
        path = /tmp
        read only = No
        guest ok = Yes
        printable = Yes
        oplocks = No


Off to the gym now to vent some steam......

<hr>
<b><font color=blue size=4>Open Enterprise Solutions</font>
<font color=red>Linux & Open Source Solutions for Business</font></b>

Johnny Stork, B.A.
Calgary, AB

<a href="http://www.openenterprise.ca";>
www.openenterprise.ca</a>


Reply via email to