-
Notifications
You must be signed in to change notification settings - Fork 0
Add setup script and README for Brother HL-L1222-V Android print server on Raspberry Pi (openSUSE) #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add setup script and README for Brother HL-L1222-V Android print server on Raspberry Pi (openSUSE) #29
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,3 +1,30 @@ | ||||||
| ```codex_answers | ||||||
| <!-- placeholder for codex's responses textual data --> | ||||||
| # Brother HL-L1222-V Android Print Server (Raspberry Pi 4B+ / openSUSE Tumbleweed) | ||||||
|
|
||||||
| This repository now provides an executable setup script that configures a Raspberry Pi 4B+ (openSUSE Tumbleweed) as a print server for a USB-connected Brother HL-L1222/HL-L1222-V. | ||||||
|
|
||||||
| ## What this enables | ||||||
| - Android phones on the **same Wi-Fi network** can print through IPP (Mopria-compatible workflow). | ||||||
| - USB Brother printer is shared by CUPS over the local network. | ||||||
| - Firewall and discovery services are configured for LAN printing. | ||||||
|
|
||||||
| ## Important Bluetooth note | ||||||
| Android-to-Raspberry-Pi Bluetooth printing into CUPS is generally not reliable/supported in modern Android/CUPS workflows. The script still enables Bluetooth service for optional experimentation, but the production path is **Wi-Fi IPP**. | ||||||
|
|
||||||
| ## Script | ||||||
| - `scripts/setup_hl_l1222_android_print.sh` | ||||||
|
|
||||||
| ## Run | ||||||
| ```bash | ||||||
| sudo bash scripts/setup_hl_l1222_android_print.sh | ||||||
| ``` | ||||||
|
|
||||||
| ## After script completes | ||||||
| 1. Keep printer connected via USB to Raspberry Pi. | ||||||
| 2. Connect Android phone to same Wi-Fi as Raspberry Pi. | ||||||
| 3. Enable Mopria Print Service (or equivalent Android print service). | ||||||
| 4. Add printer with: | ||||||
| - `ipp://<raspberrypi-ip>/printers/Brother_HL_L1222_V` | ||||||
|
|
||||||
| ## Notes | ||||||
| - Script uses CUPS `everywhere` model as default for broad compatibility. | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P3: README incorrectly states that Prompt for AI agents
Suggested change
|
||||||
| - If you have an official Brother HL-L1222-V Linux PPD/driver package, install it and adjust queue model if desired. | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nitpick (typo): Consider adding an article before "queue model" for clarity. This small tweak preserves the meaning but improves the sentence flow. |
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚩 README says
sudo bashbut script comments say run as normal userThe README at line 18 instructs users to run
sudo bash scripts/setup_hl_l1222_android_print.sh, which executes the entire script as root. However, the script's own header comment (scripts/setup_hl_l1222_android_print.sh:11-13) says "Run as a normal user from home directory (~/)" and usessudointernally for privileged operations. Running as root makes all internalsudocalls redundant and could subtly change behavior (e.g.,lpoptions -dat line 349 sets the default printer for root rather than a regular user). This inconsistency should be resolved.Was this helpful? React with 👍 or 👎 to provide feedback.