LinuxForum.Fans
Тема

Принтер hp LJ 1000 без драйверов клиента

Автор: BRomister 5 сообщений 4299 просмотров
#200846

доброго времени суток, установил притер hp laserjet 1000 на домашний сервер с дебиан-ом на борту, настроил самбу, капс для печати через драйвер foo2zjs, через hplip не пичатал...вопшем если послать тестовуб страницу на печать через веб морду капса- все ок. Тогда решыл сделать так чтоб можно было печатать буз дров под виндов 7 64 бит(дров нет под ету ось), сделал по мануалам из сети

Показать
например, но вот при выполнение команды cupsaddsmb -v, или cupsaddsmb -v HP_LJ_1000, или cupsaddsmb -a -v то говорит или

cupsaddsmb: No PPD file for printer "HP_LJ_1000"
для
cupsaddsmb -v HP_LJ_1000
или
No Windows printer drivers are installed!
для
cupsaddsmb -v -a

не знаю что делать, вошем прошу помощи в вопросе, или подскажыте другие способы заставить работать принтер под вин764бит без дров
Спасибо, жду ответов, надеюсь написал в правильнуб ветку

#200887
BRomister написал:
заставить работать принтер под вин764бит без дров

в мане сказано что вы должны получить драйвера с www.cups.org и скопировать их в каталог /usr/share/cups/drivers :
[console]
~$ man cupsaddsmb
.........
MICROSOFT POSTSCRIPT DRIVERS FOR WINDOWS
The base driver for Windows 2000 and higher is the Microsoft PostScript driver, which is available on any system running Windows 2000 or higher in the %WINDIR%\SYSTEM32\SPOOL\DRIVERS\W32X86\3
folder for 32-bit drivers and %WINDIR%\SYSTEM32\SPOOL\DRIVERS\X64\3 folder for 64-bit drivers.

The CUPS printer driver is preferred over the Microsoft driver since it supports the page-label, job-billing, and job-hold-until options fully on all printers. However, currently only Windows
2000 and higher is supported by the Microsoft driver, so you will also need to get the Adobe driver to support Windows 95, 98, and Me clients. The Adobe and Microsoft drivers for Windows 2000
are identical.

Once you have extracted the driver files, copy the 32-bit drivers to the /usr/share/cups/drivers directory and the 64-bit drivers to the /usr/share/cups/drivers/x64 directory exactly as named
below:

[Windows 2000 and higher]
ps5ui.dll
pscript.hlp
pscript.ntf
pscript5.dll

Note: Unlike Windows, case is significant - make sure that you use the lowercase filenames shown above, otherwise cupsaddsmb will fail to export the drivers.

CUPS POSTSCRIPT DRIVERS FOR WINDOWS
cupsaddsmb can use the CUPS v6 PostScript printer driver for Windows, which is available for download from the CUPS web site.

The CUPS printer driver is preferred over the Adobe and Microsoft drivers since it supports the page-label, job-billing, and job-hold-until options fully on all printers. However, currently
only Windows 2000 and higher is supported by the CUPS driver, so you will also need to get the Adobe driver to support Windows 95, 98, and Me clients.

Once you have extracted the driver files, copy the 32-bit drivers to the /usr/share/cups/drivers directory and the 64-bit drivers to the /usr/share/cups/drivers/x64 directory exactly as named
below:

[Windows 2000 and higher]
cups6.inf (from www.cups.org)
cups6.ini (from www.cups.org)
cupsps6.dll (from www.cups.org)
cupsui6.dll (from www.cups.org)
ps5ui.dll (from your Windows system)
pscript.hlp (from your Windows system)
pscript.ntf (from your Windows system)
pscript5.dll (from your Windows system)

Note: Unlike Windows, case is significant - make sure that you use the lowercase filenames shown above, otherwise cupsaddsmb will fail to export the drivers.

ADOBE POSTSCRIPT DRIVERS FOR WINDOWS 95, 98, AND ME
cupsaddsmb can use the Adobe PostScript printer driver for Windows 95, 98, and ME, which are available for download from the Adobe web site (http://www.adobe.com).

The Adobe driver does not support the page-label, job-billing, or job-hold-until options.

Once you have installed the driver on a Windows system, copy the following files to the /usr/share/cups/drivers directory exactly as named below:

[Windows 95, 98, and Me]
ADFONTS.MFM
ADOBEPS4.DRV
ADOBEPS4.HLP
ICONLIB.DLL
PSMON.DLL

Note: Unlike Windows, case is significant - make sure that you use the UPPERCASE filenames shown above, otherwise cupsaddsmb will fail to export the drivers.
[/console]

#201043

Спасибо, действительно была проблема с именами файлов( большые буквы) но вот теперь выдает

Unable to copy 64-bit Windows printer driver files (1)!
Running command: smbclient //localhost/print$ -N -A /tmp/007174eac9c9c -c 'mkdir x64;put /tmp/007174eae1cae x64/HP_LaserJet_1000.ppd;put /usr/share/cups/drivers/x64/ps5ui.dll x64/ps5ui.dll;put /usr/share/cups/drivers/x64/pscript.hlp x64/pscript.hlp;put /usr/share/cups/drivers/x64/pscript.ntf x64/pscript.ntf;put /usr/share/cups/drivers/x64/pscript5.dll x64/pscript5.dll'
^XDomain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.6]
NT_STATUS_MEDIA_WRITE_PROTECTED making remote directory \x64
NT_STATUS_ACCESS_DENIED opening remote file \x64/HP_LaserJet_1000.ppd
NT_STATUS_ACCESS_DENIED opening remote file \x64/ps5ui.dll
NT_STATUS_ACCESS_DENIED opening remote file \x64/pscript.hlp
NT_STATUS_ACCESS_DENIED opening remote file \x64/pscript.ntf
NT_STATUS_ACCESS_DENIED opening remote file \x64/pscript5.dll

давал права на папку chmod 777 /etc/share/cups/drivers/x64
не помогло

#201047

мой файл смб.конф

Показать
#======================= Global Settings =======================

[global]

; workgroup = WORKGROUP
; server string =
; wins support = yes
; wins server = w.x.y.z

#### Networking ####

; interfaces = 127.0.0.0/8 eth0
; bind interfaces only = yes

#### Debugging/Accounting ####

log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0

####### Authentication #######
; security = share

########## Domains ###########
; domain logons = no
########## Printing ##########

; load printers = yes

; printing = cups
; printcap name = cups
#======================= Share Definitions =======================

[homes]
comment = Home Directories
browseable = yes
read only = no
create mask = 0775
directory mask = 0775
valid users = BRomister
;[netlogon]
; comment = Network Logon Service
; path = /home/samba/netlogon
; guest ok = yes
; read only = no

;[profiles]
; comment = Users profiles
; path = /home/samba/profiles
; guest ok = no
; browseable = no
; create mask = 0600
; directory mask = 0700

[printers]
comment = All Printers
browseable = yes
path = /var/spool/samba
printable = yes
guest ok = yes
read only = yes
create mask = 0775

[print$]
comment = Printer Drivers
path = /etc/samba/drivers
browseable = yes
read only = yes
guest ok = no
; write list = root, @lpadmin


#201048
BRomister написал:
давал права на папку chmod 777 /etc/share/cups/drivers/x64
не помогло

а причем тут права ?? у вас сама самба не пускает , почему - разбирайтесь . Я с ней не работал , сказать ничего не могу , может кто из местных подскажет :o .. а так читайте маны , быстрее ошибку найдете , там тривиальные примеры есть , а ваш случай как раз из их числа ..

Войдите или зарегистрируйтесь, чтобы ответить.