Armbian 安装 cups 支持EPSON R330

armbian-config
设置固定ip
安装cpus

sudo apt-get install printer-driver-gutenprint
安装打印机驱动EPSON R330 选 P50或者T50(国外型号)

sudo usermod -a -G lpadmin root
把cups用户加入root权限

sudo nano /etc/cups/cupsd.conf
修改配置文件
Listen 0.0.0.0:631
#改0.0.0.0

Browsing On
#改On

//=========================================================================
图中红字localhost改成0.0.0.0
Browsing off改成Browsing on
并在三个地方分别添加Allow all,具体如下

Listen 0.0.0.0:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseLocalProtocols dnssd

# Default authentication type, when authentication is required…
DefaultAuthType Basic

# Web interface setting…
WebInterface Yes

# Restrict access to the server…
<Location />
Order allow,deny
Allow all
</Location>

# Restrict access to the admin pages…
<Location /admin>
Order allow,deny
Allow all
</Location>

# Restrict access to configuration files…
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow all
//=========================================================================

sudo systemctl restart cups
重启cpus服务

网页打开 ip:631 开始配置打印机,期间admin登录的用户名密码为 armbian的用户名密码

sudo sudo apt-get -y install avahi-daemon avahi-discover libnss-mdns
#安装Avahi和mDns 支持 AirPrint 无线打印

sudo service avahi-daemon restart
#重启下。完成!!

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

You must enable javascript to see captcha here!