# Linkint 7688 Duo as print server ###### tags: `Note` 原本是利用Rasberry Pi 3B 當作 cups print server,但覺得效能過剩,因此想用 linkint 7688 duo 取代他。在 https://firmware-selector.openwrt.org/?version=21.02.2 可以找到適用linkint 7688 duo 的 OpenWrt版本。 跟著這篇部落格 https://blog.abysm.org/2018/12/linkit-7688-upstream-openwrt/ 的步驟做可以刷入OpenWrt,但發現此版本中的 opkg 沒有 cups package,因此要手動安裝。 參考[對岸網友文章](https://www.right.com.cn/forum/thread-325222-1-1.html)整理後: ```linux= cd /tmp ## 也可在其他機器下載後 ssh 傳到 /tmp git clone https://gitee.com/ytwl333/openwrt-musl-cups/tree/master/ cd ./openwrt-musl-cups/mipsel ## 移除cups-filter,因為好像會起衝突,有待查證問題在哪 rm cups-filters_2.1.4-1_mipsel_24kc.ipk ## 如果有裝kmod-usb-printer,要先移除 opkg remove kmod-usb-printer ## 安裝 opkg install /tmp/*.ipk --force-depends ## 編輯設定檔 vim /etc/cupsd.conf WebInterface 改成 Yes ## 允許使用cups服務的IP <Location /> Order Allow,Deny Allow From 127.0.0.1 Allow From 192.168.0.0/24 </Location> ## 允許使用admin登入的IP <Location /admin> AuthType Basic AuthClass Anonymous Order Allow,Deny Allow From 127.0.0.1 Allow From 192.168.0.0/24 </Location> ## 儲存離開,重啟cups /etc/init.d/cupsd enable /etc/init.d/cupsd restart ``` 進入 http://LinkIt_7688_duo_lan_ip:631/admin `account: root` `password: OpenWrt的密碼` 新增印表機並開啟共享即可 #### 20220302 後記: 發現手動安裝的 openwrt 沒有[PPD](https://en.wikipedia.org/wiki/PostScript_Printer_Description),將以下內容解壓縮後,放至 `/usr/share` 且重啟 cups 即可 https://drive.google.com/file/d/12XRsKNguXJRGLDyLR9Bv5QcfZhUThWha/view?usp=sharing
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up