How to use scanner on linux

Программы сканирования в Linux

Несмотря на то, что человечество ещё не может полностью отказаться от использования бумаги, многие люди уже предпочитают сканировать документы и фотографии и работать с ними в электронном формате. Но наличия сканера не достаточно. Вам ещё понадобится программное обеспечение для управления сканером.

Однако у большинства сканеров нет официального программного обеспечения, которое бы работало в операционной системе Linux. Но по большей части это не имеет значения, потому, что для Linux уже существует несколько отличных программ для сканирования документов. Они совместимы со многими сканерами и хорошо справляются со своей задачей. Давайте рассмотрим простые, но гибкие и свободные программы для сканирования в Linux.

Программы для сканирования Linux

1. Simple Scan

Программа Simple Scan — небольшая, быстрая, эффективная и лёгкая в использовании программа. Возможно, вы уже видели её раньше, потому что это программа по умолчанию для сканирования в окружении GNOME, которая используется во многих дистрибутивах.

Сканирование документа или фото выполняется в один клик мышки. После этого вы можете редактировать изображение, вращать его, а потом сохранить в формате JPG или PNG или же в формате документа PDF. Но надо сказать, что программа может работать медленно, даже если вы сканируете документы в не очень высоком разрешении. По умолчанию используются такие параметры: 150 DPI для текста и 300 DPI для фото. Вы можете изменить их в настройках.

Если вы сканируете большой документ, вы можете настроить размещение страниц перед сохранением. Также можно отправить результат сканирования по Email.

2. Skanlite

Skanlite — это альтернатива Simple Scan для KDE. Утилита имеет те же функции, что и Simple Scan, плюс несколько дополнительных настроек. Вы можете оорганизовать автоматическое сохранение обработанных файлов, установить качество сканирования и указать, куда надо сохранять результат. Skanline поддерживает такие форматы: JPEG, PNG,BMP, PPM, XBM и XPM.

Одна из интересных возможностей утилиты — сохранять разные участки отсканированного материала в разные файлы. Это может понадобиться, если вы хотите вырезать часть фото.

3. Gscan2pdf

Ещё одна старая, но популярная программа — gscan2pdf. Несмотря на её возраст, у неё есть несколько функций, которых нет у других программ в этом списке. И в то же время программа достаточно лёгкая. Кроме форматов изобаржения JPEG, PNG и TIFF, утилита позволяет сохранять результат сканирования в PDF и DJVU.

Также вы можете настроить цветной или чёрно-белый режим сканирования, размер бумаги и качество. Отсканированные страницы можно обрезать, вращать или удалять. Все эти функции вместе дают вам широкое пространство для действий.

4. Gimp

Наверное, вы уже знаете Gimp, как мощный графический редактор, но вы можете использовать эту программу и для управления своим сканером. Для этого надо установить программу XSane и плагин Xsane для Gimp. Обе программы доступны в официальных репозиториях. Затем откройте меню Файл -> Создать -> Сканер/Камера.

В этом окне осталось выбрать ваш сканер и нажать кнопку Сканировать. Если такой вариант не работает, вы можете использовать плагин Gimp — QuiteInsane. С помощью любого из плагинов можно сделать из Gimp мощный инструмент для сканирования. Вы даже можете настроить несколько параметров сканирования, например цветной режим или чёрно-белый, а также разрешение сканирования. А дальше можно использовать все возможности Gimp для применения эффектов и фильтров к обработанному материалу.

Выводы

Все выше перечисленные программы для сканирования Linux хорошо работают с большинством сканеров не зависимо от того, подключаются они через USB или через беспроводную связь. Возможно, с некоторыми принтерами или сканерами возникнут проблемы, тогда вам придётся установить официальные драйверы принтера для Linux.

Источник

Ubuntu Documentation

Introduction

Scanning on Linux is generally a quick and easy process that just works.

There are two basic options for scanning in Linux, the Open Source SANE (Scanner Access Now Easy) and the commercial VueScan.

SANE («Scanner Access Now Easy») is the open source software that powers scanning on most Linux devices. This software allows linux devices to use various image scanner hardware (flatbed scanner, auto document feed scanners, hand-held scanners, video- and still-cameras, frame-grabbers, etc.).

Читайте также:  Mac os snow leopard как устанавливать

The SANE software is comprised of three parts —

First is the standard API (Application Programming Interface) that is designed to allow various components of scanning hardware and software to work together. This allows programmers a stable interface to write scanning software to.

Second part is the SANE back end. This is the actual software that communicates directly with the scanner to produce the images. A few manufacturers have even produced scanners with a SANE back-end built in to them.

The third part is the SANE front end. Their are a number of front ends that allow you to interface with the scanner. These programs communicate with the back end to communicate with the scanner. SANE back ends include command line programs, Windows programs, Mac programs, php programs, Android apps and many, many more.

Setting up SANE

SANE is generally installed by default on Ubuntu desktops. By and large, when you plug in your scanner and fire up a SANE front end, it will just work.

If you need general help setting up SANE on your computer, see the SANE Tutorial.

If you need help with setting up a specific scanner, see the SANE Scanners page.

Setting up Network Scanning

Network scanning allows you to set up your scanner on a server, then share that scanner or scanners out to your entire network. This is very useful in office and educational environments where you have to share a scanner among many computers, or where a single workstation needs to access several scanners.

If you need to set up network scanning with SANE, see the Sane Daemon Tutorial

Troubleshooting SANE

While SANE just works in the vast majority of cases, sometimes issues can arise. The following resources can help you troubleshoot your SANE problems.

Ubuntu SANE Troubleshooting guide. This guide contains basic troubleshooting commands and tools, the known issues and workarounds for sane problems on Ubuntu and other useful information on troubleshooting sane issues. This guide also includes how to install the SANE Project’s PPA, giving you the most up-to-date version of SANE.

Compile SANE from source — ADVANCED. This how to takes you through the process of downloading, compiling and installing the latest sane code from the git repository.
Supported Scanner Lists (note: These lists are currently outdated)

SANE Project Supported Scanners — The official SANE Project database of supported scanners.

Scanners in Ubuntu — Scanner functionality reported by the Ubuntu Community.

VueScan

VueScan is comercial scanning software for Linux. It supports a wide range of scanners. VueScan website.

Legacy Content

Supported Scanners

* SANE Project Supported Scanners — The official SANE Project database of supported scanners.

* Scanners in Ubuntu — Scanner functionality reported by the Ubuntu Community.

Manufacturer-Specific Installation

HP All-in-One Printers — Setup HP Print/Scan/Copy printers using HP tools.

Epson Scanners — Linux Drivers for many Epson scanners.

Brother scanners — Linux drivers for Brother scanners. Please note that which scanner populates in the support search box is dependent on which «Country (Language)» is currently selected. For example, if one searches for model DCP-J715W while «United States(English)» is selected, it won’t be found. However, if one has «Deutschland(Deutsch)» it is found.

Kodak Scanners — Linux drivers for several Kodak scanners.

Basic setup of sane

Basic set-up instructions for SANE can be found on the sane page.

Specific Scanners

While the Sane Project does a remarkable job of making most scanners «just work», some scanners may still need additional steps to get working.

Network Scanning

For help setting up networking scanning on a server and clients, please see the sane.d tutorial.

Setup and Troubleshooting

Update to Latest Sane — ADVANCED. How to download and install the latest sane code from the git repository.

Permissions — If you can scan as root, but not user, read this.

ScanningHowTo — Tips on setting up your scanner.

Scanner Clone Check — ADVANCED. A small percentage of the unsupported scanners may actually be clones of a scanner that is already supported. If this is the case, adding support should be relatively easy.

SimpleScanHardwareIssues — Information what to do when your scanner does not work (perfectly) using the default «Simple Scan» scanning application.

Scanners (последним исправлял пользователь 5g3-steven-7tv 2019-06-25 00:24:21)

The material on this wiki is available under a free license, see Copyright / License for details
You can contribute to this wiki, see Wiki Guide for details

Источник

Ubuntu Documentation

Needs Expansion
This article is incomplete, and needs to be expanded. More info.

Читайте также:  Что такое аккаунт windows live

NOTE: this page mostly refers to older versions of sane. Also see the sane page for the version of sane that ships with Ubuntu 10.10 and above

Setting up a scanner in Ubuntu is normally straightforward. Here are some tips if you do get stuck.

How can I find out if my scanner works with Ubuntu?

    Simply plug it in and try! If it is a newer model USB scanner, it is likely that it will work immediately without any further driver or software installations.

Hardware Support Component Scanners — check which scanners are supported in your specific Ubuntu release.

SANE project listing of supported scanners — The SANE (Scanner Access Now Easy) project provides most of the backends to the scanning software on Ubuntu.

Using your scanner

    Turn on your scanner and place a document or photo face down on the scanner.

Go to Applications —>Graphics —>XSane Image Scanner or SimpleScan. Adjust some settings if required.

Press Scan. Alternatively you can also press the «Scan» button on the scanner to open the scanning dialog.

Once the scanning process is finished a thumbnail image is displayed. Save your file.

If you want to create a multi-page file exchange the documents on the scanner and repeat the scanning process until all pages are scanned. Don’t forget to Save when you are finished!

«No device available» — what to do?

There could be several reasons why you might get this message:

  1. This might be a permissions problem. Try to run the scanning software as root.
  2. Your scanner is not supported in Ubuntu. The most common type of unsupported scanners are old parallel port or Lexmark All-in-One printer/scanner/faxes.
  3. The required driver for your scanner has not been autoloaded

You need to install the appropriate firmware (probably a *.fw or *.usb) for your particular scanner. Try to find the firmware file on the documentation provided with your scanner or search online. Once you got the right firmware file copy it into /usr/share/sane/. Tip: In my case I got the firmware file from the CD that came with the scanner. If the CD only supports Windows, try installing the CD with WINE- don’t use the program instead search for the firmware file and coy this file «ccd548.fw» into /usr/share/sane/gt68xx/.

For a Mustek 1200 UB Plus scanner you will need this file sbfw.usb. Rename it to «PS1fw.usb» and then put it in the directory «/usr/share/sane/gt68xx» (remember to give read permission to all users).

Your scanner is parallel port and you are not a member of the scanner group. The device /dev/parport0 (or whichever parallel port your scanner is connected to) by default is only readable and writable by user lp and group scanner. You can become member of group scanner: go to Administrations —>Users and Groups —>Account Properties —>User Privileges.

Install a scanner manually

The SANE project does not always provide complete drivers for all scanners. These drivers can still be used, but not all features may work. Here is a list of scanners with incomplete drivers:

  • HP 4200, HP 3300C, HP 4300C, Agfa Snapscan Touch, HP 4400C, HP 4470C

    Make sure the Universe repository is enabled. The easiest way to do this is probably through Synaptic.

  1. Search Synaptic for «libsane-extras» or alternatively type the following command in the terminal:

Now you need to edit .conf file in /etc/sane.d/dll.conf. To enable the right driver for your scanner look for the following lines:

    Below are several commented lines. Uncomment (delete the #) the correct one for your scanner, e.g.:

HP 4200 — uncomment the hp4200 line.

HP 3300C, HP 3400C, HP 4300C, Afga Snapscan Touch — uncomment the niash line.

HP 4400C, HP 4470C — uncomment the hp_rts88xx line.

  1. Save changes to .conf file.
  2. Fire up Sane and scan away.

Note: the way Linux’ hotplugging stuff works, you may need to plug in the scanner after the computer has booted..

Specific Scanner Models

Some specific models have been documented here:

Permission Issues

Add saned to the group which owns your scanner device:

Note: I used sane-find-scanner to determine the device and ls -al /dev/bus/usb/XXX/XXX to identify the group. Since I have MFC printer/scanner/fax the device happened to be owned by group ‘lp’ so I added saned to that group (instead of scanner) to allow it access to the scanner.

ACL permissions for saned

Because of a change is the way access permissions are now applied to devices, saned may still not be able to access the scanner when it is launched by inetd or xinetd. This can happen even though other regular users on the server have access. The following bug-report contains a solution to this problem :

Sharing a Scanner Over a Network

Note: The following documentation was written mostly for Ubuntu 10.10 and earlier. For Ubuntu 11.10 and higher, please see the sane.d tutorial.

There are two common configurations for using a scanner over a network:

Server-side setup

In this configuration, one computer has a scanner connected by USB or parallel port and shares it with others on the network. The computer with the scanner connected is called the server and all other computers on the network wishing to share the scanner are called clients.

Note: Make sure your scanner is installed and working properly on the server computer (i.e. the computer to which the scanner is physically attached).Test first on that local machine before attempting to share the scanner over the network.

All computers need to have Sane installed:

As saned does not automatically detect a scanner that is shared by a remote computer you will need to set it up with both, the server and the client.

  1. Tell it to run sane as a server (daemon, service)
  2. Set the subnet where to share the scanner.
  3. On distributions older that 10.10, set inet (or xinet) to listen on the appropriate port (This is optional, saned can be setup to be running continuously)
  4. Make sane run at start up

Sane as a server

Set sane to run as a server, ie expect connections Edit /etc/default/saned to read:

You must be root to edit this file (hint, use sudo)

Share with

Set the subnet that will be able to see the scanner Edit /etc/sane.d/saned.conf to share the printer on your subnet:

Make sure it is in your range of IPs. It hit me badly when I mis-configured it for 192.168.0.0 when I meant 192.168.1.0 !

The /24 means to share with everybody in xxx.xxx.xxx.0 to 255.

User setup

In some cases, correct permissions needs to be set. E.g. for HP DesignJet 2050 All-in-one device, the saned user has to be inserted into lp group. To do that by typing

To verify the saned user has the correct permissions to access the scaner device, run the following commands:

As a result, you should see a device identified, e.g.

Set (x)inetd

Only needed for 10.04 and previous distributions. You don’t need this step if running 10.10, jump to step four.

Edit /etc/inetd.conf by adding the following line:

Note: that an inetd server need not be installed.

Or, if you are using xinetd, create a file called /etc/xinetd.d/saned and enter the following in the file:

Note: The saned value (last word on the inet configuration or in the user line in the xinetd configuration) is the name of the user running the server. You can get it form the RUN_AS_USER= line on the /etc/default/saned file

restart inetd or xinetd by

Run at start-up

Restart saned by (10.10)

or (10.04 and previous)

One user writes that a reboot is necessary. Not my experience (with 10.10) but YMMV.

To configure the Sane daemon to start automatically at boot up run:

Client-side Setup

From the client, all you need to do is add server name or IP address of the scanner server to /etc/sane.d/net.conf:

Now run xsane and it should pick up the new network scanner.

LAN-based scanners

The scanner is connected directly to the network without any intermediary computer.

HP All-in-One devices

    Ensure the device is connected to the network and can be pinged.

Ensure hplip is installed:

Run the hp-setup wizard which installs printer, scanner, and any other features.

  1. For Connection Type choose «Network/Ethernet. «
  2. If the device is not detected, click «Show advanced options», tick «Manual discovery» and supply the scanner’s IP address.

Check the scanner is now recognized:

For more details, see HpAllInOne.

Brother All-in-One

See this page for the brscan utility and instructions.

Help Ubuntu to support more scanners

There are several ways you can help Ubuntu to support more and more scanners over time.

Support the SANE Project! This project provides most of the scanning backend information for Ubuntu.
When purchasing a new scanner, always ask if it works in Linux

Contact the manufacturer about supporting your scanner under Linux. Make sure you tell them about the SANE project!

SANE project (Scanner Access Now Easy)

ScanningHowTo (последним исправлял пользователь penalvch 2018-04-11 04:55:33)

The material on this wiki is available under a free license, see Copyright / License for details
You can contribute to this wiki, see Wiki Guide for details

Источник

Читайте также:  Нормальный поиск windows 10
Оцените статью