1、安装USB支持软件包
opkg update
opkg install kmod-usb-core
opkg install kmod-usb-storage
opkg install kmod-usb-printer #USB口打印机支持
2、安装CUPS 软件包
opkg insatll cups
opkg install libcupsdriver ##注意libcupsdriver不会默认安装,需要手工安装,否则认不到打印机
3、编辑/etc/cups/cupsd.conf
修改/etc/cups/cupsd.conf中一段,如下:
AuthClass Anonymous
AuthType None
Order Deny,Allow
Deny From All
Allow From 192.168.10.0/24 #允许192.168.10.xxx访问
4、插上打印机,并给USB设备添加权限
chmod -R 777
/dev/bus/usb/001/
5、启动服务
登陆到http://192.168.1.1(这里是路由器的后台IP地址,下面一样)到管理台去启动服务,【系统】-【启动项】,把cupsd那一项设置“启用”,并且点击“开始”
6、在网页管理客户端添加打印机
打开路由器http://192.168.1.1:631这个页面,点击“Administration”,这里提示要输入账号和密码,就是路由器的登陆帐号和密码。
然后点击“Find New
Printers”,正常情况下就能看到自己连接着的打印机了&#x