The Everywhere Cloud

Deploy an instance.
Accelerate your application.

Samba Print Client in Debian-based Linux

The following procedure demonstrates how to enable Debian-based Linux distributions to access, via Samba protocols, printers hosted on Windows machines. This process has been tested on Epson L210 Series inkjet printers.


1. Open the Samba configuration file.

user@host: $ sudo nano -c /etc/samba/smb.conf

2. Under "Global Settings", specify the following protocols.

# ...

client min protocol = CORE
client max protocol = NT1

# ...

3. Temporarily stop the "Common Unix Printing System" (CUPS) service.

user@host: $ sudo service cups stop

4. Open the CUPS printer configuration file.

user@host: $ sudo nano -c /etc/cups/printers.conf

5. Find and modify (or add) the following directive.

# ...
# UUID ...

AuthInfoRequired username,password
# This allows the printer service to receive user/pass authentication.
# The words "username,password" must be written as is, not as actual user/pass.

# ...

6. Start the CUPS service again.

user@host: $ sudo service cups start

7. On the desktop environment, look for the printers in "System Tools" or "Administration" or "Preferences" and do the following on the desired printer.

Properties -> Settings -> Device URI -> Change -> Authentication

Password: (Windows pass)
Username: (Windows user)

8. Test the printer connection.

Properties -> Settings -> Print Test Page



Popular posts from this blog

Enabling HTTPS in Home Assistant

Configuring the FreeBSD Firewall with IPFW

Running Home Assistant on FreeBSD Servers