To share a Brother HL-L2320D printer from a Windows 11 system using Samba and access it from a Fedora Linux system, follow these steps:
Step 1: Share the Printer on Windows 11
-
Install Printer on Windows 11:
- Ensure the Brother HL-L2320D driver is installed and the printer is set up correctly on Windows.
-
Enable File and Printer Sharing:
- Open Control Panel → Network and Sharing Center → Advanced sharing settings.
- Under Private Network, enable:
- "Turn on network discovery."
- "Turn on file and printer sharing."
-
Share the Printer:
- Go to Settings → Bluetooth and Devices → Printers & scanners.
- Click on the Brother HL-L2320D printer → Printer properties → Sharing tab.
- Check Share this printer.
- Assign a share name (e.g.,
BrotherHL2320D
). - NOTE: It is preferable to use a name with no spaces! This makes it friendlier with network addressing in general and can prevent unexpected behaviour.
- Click OK.
-
Note Down the Windows Hostname or IP Address:
- Open a command prompt (
Win + R
, typecmd
, and press Enter). - Run
ipconfig
to find the IP address of the Windows 11 machine.
- Open a command prompt (
Step 2: Install and Enable CUPS on Fedora Linux
-
Install Printer Support Packages: Open a terminal and run:
sudo dnf install samba-client cups system-config-printer
-
Start and enable the CUPS service:
sudo systemctl enable cups sudo systemctl start cups
Step 3: Install 'brlaser' Open Source Drivers for Brother Laser Jet Printers
brlaser is available in Fedora's official repositories, so you can install it directly using dnf.
Open a terminal and run:
sudo dnf install brlaser
Step 4: Configure the Printer in CUPS
-
Open the CUPS web interface:
http://localhost:631
-
Go to Administration → Add Printer.
-
When prompted, log in with your system username and password (must be in the
lpadmin
group). Optional Add yourself to the group if needed:sudo usermod -aG lpadmin $USER
-
Select Windows Printer via Samba or Windows SMB as the connection type.
-
Enter the Samba URI for the printer:
smb://<WINDOWS_HOSTNAME_OR_IP>/<PRINTER_SHARE_NAME>
Example:
smb://192.168.1.100/BrotherHL2320D
-
Provide your Windows credentials when prompted (username and password).
-
When prompted for a driver:
- Look for and select the brlaser driver for your Brother printer.
- If your exact printer model is not listed, try a generic brlaser driver.
-
Test the Printer:
- After setup, print a test page to ensure everything is working.
Step 5: Troubleshooting
-
Check Samba Connectivity:
- Test if the Samba share is accessible:
smbclient -L //<WINDOWS_IP_OR_HOSTNAME> -U <USERNAME>
- Example:
smbclient -L //192.168.1.100 -U myusername
- Test if the Samba share is accessible:
-
Firewall Rules:
-
On Windows, ensure printer sharing is allowed through the firewall:
- Open Windows Defender Firewall → Allow an app through firewall → Enable File and Printer Sharing.
-
On Fedora, ensure Samba services are allowed:
sudo firewall-cmd --permanent --add-service=samba sudo firewall-cmd --reload
-
-
CUPS Logs:
- Check CUPS logs on Fedora for printer issues:
sudo journalctl -u cups
- Check CUPS logs on Fedora for printer issues:
By following these steps, you should be able to share your Brother HL-L2320D printer from Windows 11 and access it from Fedora Linux using Samba.