Титла: Samba + printer sharing + win/lin 
					Публикувано от: google в Apr 09, 2008, 23:21
					 
					Накратко, железарията:  CENTOS rooter FEDORA лаптоп WIN XP лаптоп FEDORA работна станция всички се вързват за суич, от където си взимат адреси; На CentOS rooter-a има забоден паралелен принтер Kyocera, на който са инсталирани PPD файла и: от линукс на линукс печата като слънце (от работната станция и лаптопа демек) от уиндоус не вижда принтера и не може да печата.  smb.conf на рутера (където е забоден принтера) е:  | Примерен код  |  # Samba config file created using SWAT # from 127.0.0.1 (127.0.0.1) # Date: 2008/04/09 22:01:06
  [global]         workgroup = W0RKGR0UP         server string = Samba         guest account = smith         log file = /var/log/samba/%m.log         max log size = 50         load printers = No         dns proxy = No         wins support = Yes         guest ok = Yes         cups options = raw
  [homes]         comment = Home Directories         read only = No
  [printers]         comment = All Printers         path = /usr/spool/samba         printable = Yes         printer name = Kyocera         use client driver = Yes         browseable = No
  [share]         path = /share         read only = No |  
 
  На уиндоус машните има инсталирани локално драйвери за принтера, но това не променя нещата... 
  Къде сбъркахме, както се казва? Моля за насока и помощ   
					 
					 
					Титла: Samba + printer sharing + win/lin 
					Публикувано от: nedpetko в Apr 10, 2008, 00:00
					 
					Веднага ти отговарям - на машината с Windows е инсталирана грешна операционна система. Не ми се сърди за бъзика - тази попара съм я сърбал и еи да му се не знае какво ли не четох - нищо не стана, нямаше печат от Windows към машината с Linux и Samba. Специално за да работи коректно мрежа с вързани Windows-ки машини трябва да е пуснат Netbios-кия проотокол, TCP/IP протокола на Windows-а е пропаднал. Макар да не ти помагам ще ти пожелая УСПЕХ и ще се радвам проблема да се реши бързо.
 
 
 
  
					 
					 
					Титла: Samba + printer sharing + win/lin 
					Публикувано от: bulg в Apr 10, 2008, 00:47
					 
					Помня, че съм попадал на подобен решен проблем в някакъв форум. Пускаха се unix print services на xp от add/rem. progz/components. Лично, мисля, че най-чистото решение е обикновено рутер-принт-сървърче; има ги за по 30-на лв. по магазините. 
					 
					 
					Титла: Samba + printer sharing + win/lin 
					Публикувано от: dedmin в Apr 10, 2008, 01:39
					 
					| Цитат  |  [printers]         comment = All Printers         path = /var/spool/samba         create mask = 0700         printable = Yes         browseable = No
  [print$]         comment = Printer Drivers         path = /var/lib/samba/printers
  [data]         comment = mix         path = /media/data         read only = No [HPDeskJet845C]         comment = HP DeskJet 845C         path = /var/spool/samba         read only = No         create mask = 0700         printable = Yes         printer name = HPDeskJet845C         oplocks = No         share modes = No
  |  
 
  Ето, при мен работи. Печатам без проблем от XP. Друг вариант е директен принт на CUPS:
 | Примерен код  |  | Share published printers connected to this system |  
  като маркираш принтера published имаш отворен порт
 
 
 | Примерен код  |  | 631/tcp open  ipp |  
 
  How to make Windows use CUPS IPP
 
 
 
  
					 
					 
					Титла: Samba + printer sharing + win/lin 
					Публикувано от: nikolaj_i в Apr 10, 2008, 09:26
					 
					Пробвай с lp_server. Version lp_server-1.1.6     Export a printer by simulating an HP JetDirect interface.     -n connection port (default 9100)     -w open output device write only (default r/w)     -d device (default /dev/lp)     -t stty_cmds - stty commands to apply if device is serial port     -r remote_list - remote hosts allowed, in IP/netmask or hostname 
					 
					 
					Титла: Samba + printer sharing + win/lin 
					Публикувано от: laskov в Apr 10, 2008, 11:06
					 
					И аз го четох някъде, беше оформено като статия във форум и мисля, че беше замесен     phantomlord. Това, което си спомням, е че в windows-а принтерът се настройва да печата към файл и за име на файла му се задава името на файла опашка на самба сървъра. Ако намеря статията ще добавя линка.  
					 
					 
					Титла: Samba + printer sharing + win/lin 
					Публикувано от: google в Apr 10, 2008, 11:09
					 
					Благодаря на всички за помоща. Опитах поетапно всеки от съветите (без lp_server), но не помага... Понеже съм бос в настройките на самба, променям 1 нещо, рестартирам сървъра, пробвам, следващото...  Ако ласков успее да намери статията, ще е чудно - лорда фонтомски пише чудесни такива!    
					 
					 
					Титла: Samba + printer sharing + win/lin 
					Публикувано от: laskov в Apr 10, 2008, 11:32
					 
					
					 
					 
					Титла: Samba + printer sharing + win/lin 
					Публикувано от: mom в Apr 10, 2008, 11:43
					 
					Ето ти работещ в аналогична ситуация при мен smb.conf | Примерен код  |   #======================= Global Settings =======================
  [global]
  # Change this to the workgroup/NT-domain name your Samba server will part of    workgroup = MY    netbios name = MOM
  # server string is the equivalent of the NT Description field    server string = %h server (Samba, Ubuntu)
  # This will prevent nmbd to search for NetBIOS names through DNS.    dns proxy = no
  #### Debugging/Accounting ####
  # This tells Samba to use a separate log file for each machine # that connects    log file = /var/log/samba/log.%m
  # Put a capping on the size of the log files (in Kb).    max log size = 1000
  # We want Samba to log a minimum amount of information to syslog. Everything # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log # through syslog you should set the following parameter to something higher.    syslog = 0
  # Do something sensible when Samba crashes: mail the admin a backtrace    panic action = /usr/share/samba/panic-action %d
 
  ####### Authentication #######
  # "security = user" is always a good idea. This will require a Unix account # in this server for every user accessing the server. See # /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html # in the samba-doc package for details.    security = share
  # You may wish to use password encryption.  See the section on # 'encrypt passwords' in the smb.conf(5) manpage before enabling.    encrypt passwords = true
  # If you are using encrypted passwords, Samba will need to know what # password database type you are using.      passdb backend = tdbsam
     obey pam restrictions = yes
  ;   guest account = nobody    invalid users = root
  # For Unix password sync to work on a Debian GNU/Linux system, the following # parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for # sending the correct chat script for the passwd program in Debian Sarge).    passwd program = /usr/bin/passwd %u    passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *passwd:*password\supdated\ssuccessfully* .
 
  ########## Printing ##########
  # If you want to automatically load your printer list rather # than setting them up individually then you'll need this    load printers = yes
  # CUPS printing.  See also the cupsaddsmb(8) manpage in the # cupsys-client package.    printing = cups    printcap name = cups
  # When using [print$], root is implicitly a 'printer admin', but you can # also give this right to other users to add drivers and set printer # properties    printer admin = @lpadmin
  ############ Misc ############
  # Most people will find that this option gives better performance. # See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/speed.html # for details # You may want to add the following on a Linux system: #         SO_RCVBUF=8192 SO_SNDBUF=8192    socket options = TCP_NODELAY
  #======================= Share Definitions =======================
  [printers]    comment = All Printers    browseable = no    path = /var/spool/samba    printable = yes    public = no    writable = no    create mode = 0700
  # Windows clients look for this share name as a source of downloadable # printer drivers [print$]    comment = Printer Drivers    path = /var/lib/samba/printers    browseable = yes    read only = yes    guest ok = no # Uncomment to allow remote administration of Windows print drivers. # Replace 'ntadmin' with the name of the group your admin users are # members of.    write list = root, @smbadmin
  |  
 
  Според мен разковничето се крие в 
 | Примерен код  |      load printers = yes
  |  
 
 
 
 
  
					 
					 
					Титла: Samba + printer sharing + win/lin 
					Публикувано от: laskov в Apr 10, 2008, 16:45
					 
					| Цитат  |   Install a printer on each using the following steps:    1. Click Start → Settings → Printers+Add Printer+Next. Do not click Network printer. Ensure that Local printer is selected.    2. Click Next. In the Manufacturer: panel, select HP. In the Printers: panel, select the printer called HP LaserJet 4. Click Next.    3. In the Available ports: panel, select FILE:. Accept the default printer name by clicking Next. When asked, “Would you like to print a test page?”, click No. Click Finish.    4. You may be prompted for the name of a file to print to. If so, close the dialog panel. Right-click HP LaserJet 4 → Properties → Details (Tab) → Add Port.    5.  In the Network panel, enter the name of the print queue on the Samba server as follows: \\SERVER\hplj4. Click OK+OK to complete the installation. |   Ето къде съм го чел, в частта "Procedure 2.3. Windows XP Professional Client Configuration" 
					 
					 
					Титла: Samba + printer sharing + win/lin 
					Публикувано от: KPETEH в Apr 10, 2008, 17:45
					 
					| Цитат (laskov @ Април 10 2008,16:45) |  | Цитат  |   Install a printer on each using the following steps:    1. Click Start → Settings → Printers+Add Printer+Next. Do not click Network printer. Ensure that Local printer is selected.    2. Click Next. In the Manufacturer: panel, select HP. In the Printers: panel, select the printer called HP LaserJet 4. Click Next.    3. In the Available ports: panel, select FILE:. Accept the default printer name by clicking Next. When asked, “Would you like to print a test page?”, click No. Click Finish.    4. You may be prompted for the name of a file to print to. If so, close the dialog panel. Right-click HP LaserJet 4 → Properties → Details (Tab) → Add Port.    5.  In the Network panel, enter the name of the print queue on the Samba server as follows: \\SERVER\hplj4. Click OK+OK to complete the installation. |   Ето къде съм го чел, в частта "Procedure 2.3. Windows XP Professional Client Configuration" |  
  До laskov  Само не разбрах DHCP server-a задължителен ли е при настройката ?  А също така на машината в работата нямах време да пробвам да си споделя принтера, та мисълта ми е че по този начин ХР-то ще си разпознае драйвъра за принтера по мрежата от линукс машината ? 
					 
					 
					Титла: Samba + printer sharing + win/lin 
					Публикувано от: laskov в Apr 10, 2008, 17:54
					 
					DHCP сървъра НЕ Е задължителен. Принтерът се инсталира локално, а драйверът НЕ СЕ разпознава автоматично по мрежата. 
					 
					 
					Титла: Samba + printer sharing + win/lin 
					Публикувано от: google в Apr 10, 2008, 23:04
					 
					laskov, благодаря ти за насоките и линковете - прочетох ги, но ми е трудно да вникна в дълбочина, а пусто време не стига.  Благодаря специално на МОМ, задето сподели работещия си файл - копирах го при мен и сега машините работят; жив да си човече, че спести времето ми!    
					 
					 
					Титла: Samba + printer sharing + win/lin 
					Публикувано от: mom в Apr 10, 2008, 23:56
					 
					   радвам се за теб - този проблем ми беше отровил живота преди 1 година  
					 
					 
					Титла: Samba + printer sharing + win/lin 
					Публикувано от: google в Apr 11, 2008, 14:58
					 
					И при мен така, докато не ми подаде работещо файлче... Интересното е, че ХР машините виждат принтера като "No access", но въпреки това печатат    
					
  
					
				 |