Airscan
To install airscan (which is part of sane-airscan) in Linux and configure it with a Kyocera scanner, follow these steps:
Step 1: Install sane-airscan
sane-airscan provides support for eSCL (Apple AirScan) and WSD (Web Services on Devices) scanners, which many Kyocera models support.
Ubuntu/Debian-based distributions:
sudo apt update
sudo apt install sane-airscan
Fedora:
sudo dnf install sane-airscan
Arch Linux (AUR package):
yay -S sane-airscan
Step 2: Install SANE and Required Utilities
To ensure scanning works properly, install the following:
sudo apt install sane-utils
Check if SANE recognizes your scanner:
scanimage -L
If your Kyocera scanner supports eSCL or WSD, it should appear in the list.
Step 3: Configure sane-airscan
By default, sane-airscan should detect supported network scanners. However, if your scanner is not detected:
1. Check for the scanner's IP
If your Kyocera printer/scanner is on the network, find its IP address using:
avahi-browse -rt _uscan._tcp
or check your router for connected devices.
2. Manually add the scanner (if needed)
Edit the configuration file:
sudo nano /etc/sane.d/airscan.conf
Add your scanner manually:
[devices]
"Kyocera Scanner" = http://<SCANNER_IP>:<PORT>/eSCL
Replace <SCANNER_IP> with the scanner's actual IP address.
3. Restart the SANE service
sudo systemctl restart saned
Step 4: Install Kyocera Scanner Drivers (Optional)
Kyocera provides Linux drivers for some multifunction printers (MFPs). Download and install them:
1. Go to Kyocera's official support site.
2. Search for your Kyocera MFP model.
3. Download the Linux Scanner Driver package (usually a .deb or .rpm file).
4. Install it:
sudo dpkg -i kyocera-scanner-driver.deb # For Debian-based systems
sudo rpm -i kyocera-scanner-driver.rpm # For Red Hat-based systems
5. Restart your system.
Step 5: Test Scanning
Once installed, test scanning using:
scanimage -L
scanimage --format=png > test-scan.png
Or use a GUI tool like Sim
ple Scan:
sudo apt install simple-scan
simple-scan
Let me know if you face any issues!
In most cases, sane-airscan does not require manual configuration because it automatically detects network and USB scanners. However, if you need to configure it manually, the configuration file is located at:
/etc/sane.d/airscan.conf
To edit the configuration file:
sudo nano /etc/sane.d/airscan.conf
Example Configuration (Manual Scanner Addition)
If your Kyocera scanner is not detected automatically, you can manually specify its IP:
[devices]
"Kyocera Scanner" = http://<SCANNER_IP>:<PORT>/eSCL
Replace <SCANNER_IP> with the actual IP address of your Kyocera scanner. The default eSCL port is usually 80 or 443.
Other Important Configuration Files
/etc/sane.d/saned.conf → Controls access permissions for the SANE daemon.
/etc/sane.d/dll.conf → Lists installed SANE backends. Ensure airscan is enabled.
After Editing, Restart the SANE Service
sudo systemctl restart saned
Then test scanning:
scanimage -L
scanimage --format=png > test.png
Let me k
now if you need further details!
To edit access permissions for SANE (Scanner Access Now Easy) and allow specific users or network devices to access the scanner, follow these steps:
---
1. Grant Scanner Access to Your User
By default, scanner devices are accessible only to users in the scanner or lp group.
Check your groups:
groups
If your user is not in scanner or lp, add it:
sudo usermod -aG scanner,lp $(whoami)
Then log out and log back in to apply the changes.
---
2. Configure SANE to Allow Network Access
Edit the SANE daemon configuration file:
sudo nano /etc/sane.d/saned.conf
Look for the section that allows access and add your local network or specific IP addresses:
# Allow local access
localhost
# Allow a specific IP
192.168.1.100
# Allow a whole network range
192.168.1.0/24
Save the file (Ctrl + X, then Y, then Enter).
---
3. Adjust saned Service Permissions
Check if saned (SANE daemon) is running as a restricted user:
ps aux | grep saned
If needed, allow it more access by editing the systemd service:
sudo nano /lib/systemd/system/saned.service
Find this line:
User=saned
And change it to:
User=root
Then reload systemd:
sudo systemctl daemon-reload
sudo systemctl restart saned
---
4. Allow Access in sane-airscan (If Using airscan)
If using sane-airscan, ensure permissions are correct:
sudo nano /etc/sane.d/airscan.conf
Add a specific scanner if needed:
[devices]
"Kyocera Scanner" = http://192.168.1.50/eSCL
---
5. Restart Services
Apply the changes:
sudo systemctl restart saned
sudo systemctl restart avahi-daemon
Test if the scanner is accessible:
scanimage -L
If you're accessing the scanner from another
machine, try:
SANE_DEBUG_DLL=255 scanimage -L
---
Let me know if you run into any issues!
Comments
Post a Comment