Привіт!!!
У мене проблема. Я маю принтер Canon LBP-810, який не працює під управлінням ОС Лінакс ;-(, у зв'язку з відсутністю драйверів.
Десь я прочитав, що єдиний спосіб друкувати на ньому із під Лінакса - це використовувати Windows машину і Samba (якщо комусь відомі інші варіанти, будь-ласка, напишіть). І ось коли з'явився ще один комп'ютер я вирішив налаштувати Samba. Samba я налаштував, але ось з друком проблеми. У книзі Using Samba є пункт Printing to Windows Client Printers, там сказано зробити наступне:
You need to get obtain the smbprint.sysv script in the /usr/local/samba/examples/printing directory and do the following:
Change the server, service, and password parameters in the script to match the NetBIOS machine, its shared printer service, and its password, respectively. For example, the following entries would be correct for the service in the previous example:
server = phoenix
service = CANON
password = ""
Run the following commands, which create a reference for the printer in the printer capabilities file. Note that the new Unix printer entry canon_printer is named:
# lpadmin -p canon_printer -v /dev/null -i ./smbprint.sysv
# enable canon_printer
# accept canon_printer
After you've done that, restart the Samba daemons and try printing to it using any standard Unix program. You should now be able to send data to a printer on a Windows client across the network.
У скрипті smbprint.sysv я замінив рядок /opt/samba/smbclient "\\\\$server\\$service" $password -N -P > /dev/null на /usr/bin/smbclient "\\\\$server\\$service" $password -N -P > /dev/null, бо smbclient у мене знаходиться там.
Команда lpadmin -p canon_printer -v /dev/null -i ./smbprint.sysv помилок не видає, а ось enable canon_printer видає "bash: enable: canon_printer: not a shell builtin"
Допоможіть, будь-ласка, розібратися!
Дистрибутив: Linux Mandrake 9.1, Samba v. 2.0.7 (Встановлював із дистрибутиву Mandrake 8.0, бо диски із 9.1 були поганенькими і з них Samba ставитися не хотіла).