You are not logged in.

#1 2008-07-11 00:34:19

smcsw2000
Member
Registered: 2007-06-22
Posts: 130

samba/cups problem

I am trying to set up a desktop/printer server using ARCH (duke)  going one step at a time getting problems solved before going to the next step. Right now the printer stopped. It could be hosts? groups?  can anyone steer me in the right direction?
rc.conf
NETWORKING
# -----------------------------------------------------------------------
#
HOSTNAME="cmehil"
#
lo="lo 127.0.0.1"
eth0="dhcp"
#eth0="eth0 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.254.255"
INTERFACES=(lo eth0)

# /etc/hosts: static lookup table for host names
#

#<ip-address>    <hostname.domain.org>    <hostname>
127.0.0.1    localhost.localdomain.org    localhost    cmehil

andrew@cmehil ~]$ smbclient -L localhost -U%
Domain=[CMEHIL] OS=[Unix] Server=[Samba 3.0.30]

        Sharename       Type      Comment
        ---------       ----      -------
        homes           Disk      Home Directories
        linda           Disk
        IPC$            IPC       IPC Service (Samba Server)
        andrew          Printer   hp2210psc
Domain=[CMEHIL] OS=[Unix] Server=[Samba 3.0.30]

        Server               Comment
        ---------            -------
        CMEHIL               Samba Server

        Workgroup            Master
        ---------            -------
        CMEHIL               CMEHIL
[root@cmehil andrew]# testparm /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[linda]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
        workgroup = CMEHIL
        netbios name =
        server string = Samba Server
        security = SHARE
        log file = /var/log/samba/log.%m
        max log size = 50
        acl compatibility = winnt
        server signing = auto
        printcap name = cups
        preferred master = No
        domain master = No
        ldap ssl = no

[homes]
        comment = Home Directories
        path = /home/svr/
        case sensitive = No
        strict locking = No
        msdfs proxy = no

[printers]
        comment = All Printers
        path = /var/spool/samba
        force user = andrew
        force group = users
        guest ok = Yes
        printable = Yes
        printer name = andrew
        browseable = No

[linda]
        path = /home/svr
        case sensitive = No
        strict locking = No
        msdfs proxy = no
If I try to restart samba or cups I get [FAIL] twice.
[root@cmehil andrew]# tail /var/log/messages.log
Jul 10 18:13:07 gconfd (andrew-1090): starting (version 2.20.1), pid 1090 user 'andrew'
Jul 10 18:13:07 gconfd (andrew-1090): Resolved address "xml:readonly:/etc/gconf/gconf.xml.mandatory" to a read-only configuration source at position 0
Jul 10 18:13:07 gconfd (andrew-1090): Resolved address "xml:readwrite:/home/andrew/.gconf" to a writable configuration source at position 1
Jul 10 18:13:07 gconfd (andrew-1090): Resolved address "xml:readonly:/etc/gconf/gconf.xml.defaults" to a read-only configuration source at position 2
Jul 10 18:16:07 gconfd (andrew-1090): GConf server is not in use, shutting down.
Jul 10 18:16:07 gconfd (andrew-1090): Exiting

Offline

#2 2008-07-11 01:04:21

slackhack
Member
Registered: 2004-06-30
Posts: 738

Re: samba/cups problem

Arch Duke? isn't that kind of old? The first thing I would do is upgrade.

for cups, set the log level to debug like in the wiki, and see what errors you get.

fwiw, samba sometimes gives me FAIL when I restart, I have to do it a couple of times.

Last edited by slackhack (2008-07-11 01:06:39)

Offline

#3 2008-07-11 19:57:36

WyoPBS
Member
From: Cheyenne, WY
Registered: 2007-10-05
Posts: 101
Website

Re: samba/cups problem

I can't tell from your description if it's a CUPS or Samba problem.  Does the printer work at all on the local console?  If you can print locally but not from a Samba-connected workstation, we can look at network issues; if you can't print locally, we need to fix CUPS first and then worry about the network stuff.


Peter B. Steiger
Cheyenne, WY

Offline

#4 2008-07-11 23:14:29

smcsw2000
Member
Registered: 2007-06-22
Posts: 130

Re: samba/cups problem

I cannot print at all. When I try to lp from console I get request id is andrew-199 (1 file(s)). And then it sits there just like when I try from Open office, thunderbird or firefox. On any job when I check the print control module under jobs it is processing and sits like that. I have to cancel it or it will sit there for days. The control module indicates it is accepting jobs and the uri:ipp//localhost.localdomain.org:631/printers/andrew. Any job I do I get Jul 10 18:13:07 gconfd (andrew-1090): starting (version 2.20.1), pid 1090 user 'andrew'
Jul 10 18:13:07 gconfd (andrew-1090): Resolved address "xml:readonly:/etc/gconf/gconf.xml.mandatory" to a read-only configuration source at position 0
Jul 10 18:13:07 gconfd (andrew-1090): Resolved address "xml:readwrite:/home/andrew/.gconf" to a writable configuration source at position 1
Jul 10 18:13:07 gconfd (andrew-1090): Resolved address "xml:readonly:/etc/gconf/gconf.xml.defaults" to a read-only configuration source at position 2
Jul 10 18:16:07 gconfd (andrew-1090): GConf server is not in use, shutting down.
Jul 10 18:16:07 gconfd (andrew-1090): Exiting
when I check the message log. I check gconf and it is empty, gconf.xml.mandatory is empty and gconf.xml.defaults is the standard script one with no changes.

Offline

Board footer

Powered by FluxBB