LINUX.ORG.RU

Помогите настроить печать по самбе (клиент - win)


0

0

Надо чтобы win клиенты могли печатать на сетевой ринтер (через сетевое окружение)

Принтер подрублен к машине со слакой. (HP LJ 1200) Поставил cups, sambу, настроил как в манах. тестовые страницы печатает отлично )). С моей линуксовой тачки тоже все печатается.

По smb принтер виден, при попытке установить выбираем дрова из стандартной базы винды, все вроде ок, но открыв окно принтера, винда говорит, что не может подключится к нему. В логах ничего .... Так же не понял, как печатать с винды по ipp ?

★★★★★

конфиг smb

# Global parameters
[global]
workgroup = LANGROUP
netbios name = ORDERS
server string = order's smb
security = SHARE
guest account = guest
log file = /var/log/samba.%m
max log size = 50
name resolve order = lmhosts host bcast
server signing = auto
printcap name = cups
preferred master = No
domain master = No
dns proxy = No
kernel oplocks = No
ldap ssl = no
guest ok = Yes
hosts allow = 192.168.5., 127.0.0.1, 194.85.243., 194.85.247., 194.85.
printable = Yes
printing = cups
print command = /usr/bin/lp -d '%p' %s; rm %s
lpq command = /usr/bin/lpstat -o '%p'
lprm command = /usr/bin/cancel '%p-%j'
lppause command = lp -i '%p-%j' -H hold
lpresume command = lp -i '%p-%j' -H resume
queuepause command = /usr/bin/disable '%p'
queueresume command = /usr/bin/enable '%p'

[printers]
comment = All Printers
path = /var/spool/samba
printer admin = root
browseable = No

[hp]
path = /var/spool/samba
read only = No

[tmp]
comment = Temporary file space
path = /tmp
printable = No

[public]
comment = Public Stuff
path = /home/samba
read only = No
printable = No

dreamer ★★★★★
() автор топика
Ответ на: комментарий от dreamer

А разве в куске [printers] не должно быть printable = yes ?

thand
()
Ответ на: комментарий от dreamer

mikhail@linux:~/Documents> cat /etc/samba/smb.conf
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2005-03-22
[global]
        workgroup = WORKGROUP
        printing = cups
        printcap name = cups
        printcap cache time = 750
        cups options = raw
        printer admin = @ntadmin, root, administrator
        username map = /etc/samba/smbusers
        map to guest = Bad User
        include = /etc/samba/dhcp.conf
        logon path = \\%L\profiles\.msprofile
        logon home = \\%L\%U\.9xprofile
        logon drive = P:
        add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
        domain logons = No
        domain master = Yes
        security = user
        preferred master = Yes
        guest ok = Yes

[homes]
        comment = Home Directories
        valid users = %S
        browseable = No
        read only = No
        inherit acls = Yes

[profiles]
        comment = Network Profiles Service
        path = %H
        read only = No
        store dos attributes = Yes
        create mask = 0600
        directory mask = 0700

[users]
        comment = All users
        path = /home
        read only = No
        inherit acls = Yes
        veto files = /aquota.user/groups/shares/

[groups]
        comment = All groups
        path = /home/groups
        read only = No
        inherit acls = Yes

[printers]
        comment = All Printers
        path = /var/tmp
        printable = Yes
        create mask = 0600
        browseable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/drivers
        write list = @ntadmin root
        force group = ntadmin
        create mask = 0664
        directory mask = 0775
mikhail@linux:~/Documents>

mikhail
()

Кстати говоря, в Windows, начиная с Win2K есть поддержка протокола IPP, печать на CUPS можно настроить и без САМБЫ.

anonymous
()
Ответ на: комментарий от dreamer

всем спасибо - разобрался, все печатает )).

dreamer ★★★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.