Skip to content

Instantly share code, notes, and snippets.

@BorysVrublevskyi
Last active January 19, 2024 14:40
Show Gist options
  • Save BorysVrublevskyi/0bf16f906aeb7bff67dc9a4b791d5c51 to your computer and use it in GitHub Desktop.
Save BorysVrublevskyi/0bf16f906aeb7bff67dc9a4b791d5c51 to your computer and use it in GitHub Desktop.
How to compile CUPS print server for the latest OpenWRT (tested on v21)

Compile CUPS print server for the latest OpenWrt (v21)

Sources

https://github.com/TheMMcOfficial/cups-for-openwrt
Deps https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem
Single package https://openwrt.org/docs/guide-developer/toolchain/single.package
http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/
https://openwrt.org/docs/guide-developer/toolchain/using_the_sdk
https://openwrt.org/ru/doc/howto/build
https://github.com/syb999/openwrt-musl-cups/tree/master/x86_64

Run on Linux machine

git clone https://github.com/lede-project/source

cd source

echo "src-git cups https://github.com/TheMMcOfficial/lede-cups.git" >> feeds.conf.default

./scripts/feeds update -a && ./scripts/feeds install -a

make menuconfig

### Set the target system to your router's "Platform" and set Network -> Printing -> cups as "M"

make tools/install && make toolchain/install

# ???
# ./scripts/feeds install cups

make package/cups/compile 
# make package/cups/install
find ./ -name \*ipk

Copy .ipk files to your router

Run on router

opkg install ./packages/*.ipk
opkg install ./packages/libcups_2.3.0-2_x86_64.ipk
opkg install ./packages/libcups_2.3.0-2_x86_64.ipk

### CONFIG: Alow local admin (need to test)
cupsctl --remote-admin

/etc/init.d/cupsd restart

Open in browser. Add your printer

http://192.168.1.1:631/admin

Copy printer's url, add printer by url, but edit it to use http (not https)

@Vladdrako
Copy link

https://github.com/Vladdrako/openwrt-printing-packages
Trying to update some stuff) Works fine on my qcom/ipq60xx/linksys-mr7350

@hidasw
Copy link

hidasw commented Jan 7, 2024

is possible to enable tls?
android print service restrict to use tls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment