Сканируем с помощью Samsung SCX-4521F в Debian GNU Linux

Чтото послденее время у меня задачи какието принтеряче-сканильные 😀

Вот и на этот раз опишу как настроил сканирование через МФУ Samsung SCX-4521F (подключен по USB) в Debian Squeeze. Как всегда, все просто и лаконично 🙂 Ниже листинг команд с небольшими комментариями:

Ставим sane и xsane

root@ws1:~# aptitude install sane xsane

Пробуем найти сканер специальной утилиткой из пакета sane:

root@ws1:~# sane-find-scanner

# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x04e8 [Samsung], product=0x3419 [SCX-4x21 Series]) at libusb:002:002
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.

Ха! Сканер нашелся 🙂 Пробуем добавить его в sane как устройство сканирования:

root@ws1:~# scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
root@ws1:~#

Как видите, тут нас ожидал облом 🙂 Нету дров у sane для нашего замечательного девайса от Samsung. Но не беда! Все что надо сделать — это установить специальный пакетик samsungmfp-scanner который любезно предоставляется ресурсом http://www.bchemnet.com/suldr/. Особенно радует тот факт что пакетик этот доступен для Debian 🙂

Убедимся что сейчас apt незнает о том где взять этот пакет 🙂

root@ws1:~# aptitude search mfp
v   libumfpack4-dev                                                          -
p   libumfpack5.4.0                                                          - sparse LU factorization library
root@ws1:~#

Чтобы установить пакетик samsungmfp-scanner нужно добавить в /etc/apt/sources.list такую строчку:

deb http://www.bchemnet.com/suldr/ debian extra

Обновляем инфу о доступных пакетах:

root@ws1:~# apt-get update

А теперь смотрим что у нас за пакеты с mfp появилось

root@ws1:~# aptitude search mfp
v   libumfpack4-dev                                              -
p   libumfpack5.4.0                                               - sparse LU factorization library
p   samsungmfp-configurator-data                         - Samsung Unified Driver Configurator (data)
p   samsungmfp-configurator-qt3                              - Samsung Unified Driver Configurator (Qt3 interface)
p   samsungmfp-configurator-qt4                               - Samsung Unified Driver Configurator (Qt4 interface)
p   samsungmfp-data                                        - Samsung Unified Linux Driver (data)
p   samsungmfp-driver                                   - Samsung Unified Linux Driver (drivers)
p   samsungmfp-eglibc                                   - Samsung Unified Linux Driver (libc)
p   samsungmfp-legacy-configurator-data          - Samsung Unified Driver Configurator (data) - legacy version
p   samsungmfp-legacy-configurator-qt3          - Samsung Unified Driver Configurator (Qt3 interface) - legacy version
p   samsungmfp-legacy-configurator-qt4          - Samsung Unified Driver Configurator (Qt4 interface) - legacy version
p   samsungmfp-legacy-data                             - Samsung Unified Linux Driver (data) - legacy version
p   samsungmfp-legacy-driver                        - Samsung Unified Linux Driver (drivers) - legacy version
p   samsungmfp-legacy-lpr                            - Samsung Unified Linux Driver (lpr link) - legacy version
p   samsungmfp-legacy-netdiscovery                         - Samsung Unified Driver Configurator (netdiscovery) - legacy version
p   samsungmfp-legacy-netdiscovery-oldlibc              - Samsung Unified Driver Configurator (netdiscovery) - legacy version
p   samsungmfp-legacy-parallel                       - Samsung Unified Linux Driver (parallel port interface) - legacy version
p   samsungmfp-legacy-scanner                    - Samsung Unified Linux Driver (enable scanning) - legacy version
p   samsungmfp-lpr                                          - Samsung Unified Linux Driver (lpr link)
p   samsungmfp-netdiscovery                  - Samsung Unified Driver Configurator (netdiscovery)
p   samsungmfp-netdiscovery-oldlibc          - Samsung Unified Driver Configurator (netdiscovery)
p   samsungmfp-parallel                      - Samsung Unified Linux Driver (parallel port interface)
p   samsungmfp-scanner                       - Samsung Unified Linux Driver (enable scanning)
root@ws1:~#

Отлично! Нужные нам пакетики появились 🙂 Можно ставить:

root@ws1:~# aptitude install samsungmfp-scanner
The following NEW packages will be installed:
libstdc++5{a} samsungmfp-data{a} samsungmfp-driver{a} samsungmfp-scanner
0 packages upgraded, 4 newly installed, 0 to remove and 9 not upgraded.
Need to get 13.1MB of archives. After unpacking 33.9MB will be used.
Do you want to continue? [Y/n/?]
WARNING: untrusted versions of the following packages will be installed!

Untrusted packages could compromise your systems security.
You should only proceed with the installation if you are certain that
this is what you want to do.

samsungmfp-scanner samsungmfp-data samsungmfp-driver

Do you want to ignore this warning and proceed anyway?
To continue, enter "Yes"; to abort, enter "No": Yes
Get:1 http://10.0.1.13 squeeze/main libstdc++5 1:3.3.6-20 [311kB]
Get:2 http://10.0.1.13 debian/extra samsungmfp-data 3.00.80-4 [12.1MB]
Get:3 http://10.0.1.13 debian/extra samsungmfp-driver 3.00.80-4 [642kB]
Get:4 http://10.0.1.13 debian/extra samsungmfp-scanner 3.00.80-4 [934B]
Fetched 13.1MB in 3min 34s (61.0kB/s)
Selecting previously deselected package libstdc++5.
(Reading database ... 112402 files and directories currently installed.)
Unpacking libstdc++5 (from .../libstdc++5_1%3a3.3.6-20_i386.deb) ...
Selecting previously deselected package samsungmfp-data.
Unpacking samsungmfp-data (from .../samsungmfp-data_3.00.80-4_all.deb) ...
Selecting previously deselected package samsungmfp-driver.
Unpacking samsungmfp-driver (from .../samsungmfp-driver_3.00.80-4_i386.deb) ...
Selecting previously deselected package samsungmfp-scanner.
Unpacking samsungmfp-scanner (from .../samsungmfp-scanner_3.00.80-4_all.deb) ...
Setting up libstdc++5 (1:3.3.6-20) ...
Setting up samsungmfp-data (3.00.80-4) ...
Setting up samsungmfp-driver (3.00.80-4) ...
Stopping the hotplug events dispatcher: udevd.
Starting the hotplug events dispatcher: udevd.
Restarting Common Unix Printing System: cupsd.
Setting up samsungmfp-scanner (3.00.80-4) ...
root@ws1:~#

Повторяем процедуру с поиском и добавлением сканера:

root@ws1:~# sane-find-scanner

# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x04e8 [Samsung], product=0x3419 [SCX-4x21 Series]) at libusb:002:002
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.
root@ws1:~# scanimage -L
device `smfp:SAMSUNG SCX-4x21 Series on USB:0' is a SAMSUNG SCX-4x21 Series on USB:0 Unknown Scanner
root@ws1:~#

Для того чтобы пользователь смог пользоваться сканером он должен быть в группе scanner. Добавить пользователя myuser в группу scanner можно простой командой:

root@ws1:~# gpasswd -a myuser scanner
Adding user myuser to group scanner
root@ws1:~#

Для того чтобы добавление в новую группу вступило в силу, пользователю нужно перелогиниться в системе.

Дальше просто тестим 🙂 Должно работать. У меня так точно заработало!

  1. Комментов пока нет

  1. Трэкбэков пока нет.

Why ask?