5. Setting Up the EPSON L120 Print Server
1. Completed Configuration
| Server |
ECS LIVA Z / Ubuntu Server 24.04.5 LTS |
| Network |
Wi-Fi wlp2s0, static IP 192.168.1.86/24 |
| Router / DNS |
192.168.1.1 |
| Printer |
EPSON L120、USB ID 04b8:005e |
| Print service |
CUPS(IPP / TCP 631) |
| Name shown in Windows |
EPSON_L120 @ homeserver |
| IPP URL |
http://192.168.1.86:631/printers/EPSON_L120 |
| Paper size |
A4 by default; Letter also supported |
2. Install CUPS, Samba, and EPSON Packages
sudo apt install cups cups-client printer-driver-escpr usbutils samba
sudo systemctl enable --now cups
The standard printer-driver-escpr package did not include an L120 model definition, so the official EPSON Linux driver was added.
3. Obtain and Transfer the Official EPSON Driver
In the EPSON Download Center, select L120 Series and Linux Deb(x64). The Intel N4200 requires the x64 package rather than an ARM package.
Downloaded file: epson-inkjet-printer-201310w_1.0.2-1_amd64.deb (version 1.0.2-1).
After connecting by SSH in Tera Term on Windows, use File → SSH SCP... to send the file to /home/ji1fgx/. No FTP server is needed.
ls -lh ~/epson*.deb
sudo apt install ./epson-inkjet-printer-201310w_1.0.2-1_amd64.deb
APT's unsandboxed as root message was a notice; installation itself succeeded.
4. Check the USB Device and Driver
lpinfo -m | grep -i L120
Result: Epson L120 Series - epson-inkjet-printer 1.0.2-1
lsusb
Result: 04b8:005e Seiko Epson Corp. EPSON L120 Series
sudo lpinfo -v
Result: usb://EPSON/L120%20Series?serial=58394C563335323675
lpinfo -v returned Forbidden for the ordinary user but worked with sudo.
sudo usermod -aG lpadmin ji1fgx
5. Register the Printer in CUPS and Test Locally
sudo lpadmin -p EPSON_L120 -E -v 'usb://EPSON/L120%20Series?serial=58394C563335323675' -m 'lsb/usr/epson-inkjet-printer-201310w/Epson/Epson-L120_Series-epson-driver.ppd.gz'
sudo cupsaccept EPSON_L120
sudo lpadmin -p EPSON_L120 -o PageSize=A4
sudo lpadmin -d EPSON_L120
lpstat -t
echo "EPSON L120 Ubuntu Print Server Test" | lp -d EPSON_L120
Paper output succeeded. Printer drivers are deprecated is a warning about future CUPS versions; printing worked normally in this installation.
lpoptions -p EPSON_L120 -l | grep -i PageSize
Result: *A4, Letter, Legal, and other sizes. Select Letter for Short Bond Paper used for university submissions (approximately 216 × 279 mm).
6. Samba Setup and the Authentication Issue
The [EPSON_L120] Samba share was added to smb.conf. /var/spool/samba was created with permissions set to 1777.
sudo mkdir -p /var/spool/samba
sudo chmod 1777 /var/spool/samba
testparm -s
sudo systemctl enable --now smbd
Samba was active (running), but opening \\192.168.1.86 in Windows requested credentials. IPP was chosen instead of Samba so my daughters could print without a password. Samba was retained for future file sharing.
7. Share CUPS Printers over the Network
sudo cupsctl --share-printers
sudo lpadmin -p EPSON_L120 -o printer-is-shared=true
sudo cupsctl | grep share
Result: _share_printers=1
sudo ss -lntp | grep ':631'
Result: CUPS was listening on 0.0.0.0:631 and [::]:631.
Opening http://192.168.1.86:631/printers/EPSON_L120 in a Windows browser showed that the printer was shared, idle, and accepting jobs.
8. Assign a Static IP to Ubuntu Wi-Fi
The existing /etc/netplan/50-cloud-init.yaml file was backed up and edited with vi. Wi-Fi SSID and authentication settings were retained. Settings were changed to dhcp4: false, addresses: [192.168.1.86/24], a default route via 192.168.1.1, and DNS 192.168.1.1.
The Wi-Fi password is not included in this record.
sudo netplan generate
sudo netplan try --timeout 120
Configuration accepted. was confirmed.
ip -4 addr show wlp2s0
Result: inet 192.168.1.86/24, valid_lft forever.
Router DHCP reservation or exclusion has not yet been configured. A conflict is possible if this address is in the DHCP pool, so a reservation is recommended once access to the router is available.
9. Server Names and Printing from Windows 11
Ubuntu's hostname is homeserver. Samba was configured with netbios name = HOME-SERVER, but Windows could not resolve \\HOME-SERVER.
However, EPSON_L120 @ homeserver was automatically discovered in Windows 11 under Settings → Bluetooth & devices → Printers & scanners.
After Add device was selected, the status briefly showed a connection attempt and then became Ready.
The Windows test page printed successfully. A Microsoft Word document also printed normally.
Windows uses IPP for printing. No Samba username or password is required.
10. Operating Notes
Add EPSON_L120 @ homeserver on my daughters' PCs as well. If it is not found, add it manually using the IPP URL.
For Short Bond Paper in Word, select Letter in both Page Setup and Print Settings. Check the required dimensions separately for documents that specify exactly 216 × 278 mm.
An existing EPSON L120 Series (Offline) entry may be an old registration. Avoid selecting it by mistake.
Restrict CUPS TCP port 631 to the home LAN. Do not expose it to the internet through the router.
The Netplan configuration originated from cloud-init. Check that these settings are preserved during future rebuilding or network reinitialization.
11. Adding the Printer on My Daughter's Windows 11 PC
My daughter's Windows 11 PC also discovered EPSON_L120 @ homeserver automatically after a short search. Entering the IPP URL manually was unnecessary.
On English-language Windows 11, open Settings → Bluetooth & devices → Printers & scanners.
Turn off Let Windows manage my default printer to prevent automatic changes to the default printer.
Check that EPSON_L120 @ homeserver is marked Default. It was already the default, so no additional action was necessary.
12. Printing from an Android Smartphone (Tested on Hardware)
Search for printing in Android Settings and open Default print service. Device connection settings had a different name on this phone and did not contain a printing entry, so using Settings search was the reliable approach.
Enabling Default print service automatically displayed EPSON_L120 @ homeserver as an available device, with IP address 192.168.1.86. Manual registration was unnecessary.
Connect the smartphone to the same home Wi-Fi and open the photo or document to print.
On this Android phone, Print was selected from the Share icon rather than the app's menu.
EPSON_L120 @ homeserver was selected, and actual paper output succeeded.
Result: Ubuntu Server 24.04.5 LTS with CUPS and a USB-connected EPSON L120 successfully provided network printing for both Windows 11 and Android.
The way to invoke printing varies by app. If Print is not offered in the Share menu, use the app's own print feature or open the file in another viewing app.
13. Printing Setup on an English-Language Android Phone
The family's English-language Android phone automatically discovered the Ubuntu CUPS printer EPSON_L120 @ homeserver. The following is the sequence confirmed on that phone.
1. Open Settings and search for Print.
2. Open More connection settings, then tap Printing.
3. Under Print services, confirm that Default print service is On.
4. Tap the words Default print service, rather than the switch, to open the available printer list.
5. Confirm that EPSON_L120 @ homeserver appears. It was discovered automatically, so no IP address had to be registered manually.
How to Print
Connect the phone to the same home Wi-Fi as Ubuntu, open a photo or PDF, and choose Share → Print. Select EPSON_L120 @ homeserver and print. Some apps offer printing in their own menus instead of Share.
Confirmed Results and Notes
The family's English-language Android phone successfully discovered the printer and printed on paper. Successful printing has also been confirmed on Japanese-language Android and both Japanese- and English-language Windows 11.
If the printer is not detected, check that the phone is on the same Wi-Fi, wait briefly, and search again. If necessary, use a print service that supports manually adding the IPP URL http://192.168.1.86:631/printers/EPSON_L120.