1、安装cups:sudo apt install cups
sudo systemctl start cups 启动cups sudo systemctl enable cups 添加到cups启动项 sudo systemctl status cups 查看cups状态
2、修改cups配置文件:sudo vim?/etc/cups/cupsd.conf
1、?Browsing Off? ? 改为:Browsing On
2、Listen localhost:631 改为:Listen 0.0.0.0:631
3、将一下配置改为:
改前? 改后 <Location />
Order allow,deny
</Location>
<Location />
Order allow,deny
Allow @LOCAL
</Location>
<Location admin />
Order allow,deny
</Location>
<Location admin/>
AuthType Default
Require valid-user
Order allow,deny
Allow @LOCAL
</Location>
3、重启cups:sudo systemctl restart cups
4、安装兄弟打印机驱动:
1、查看打印机例如兄弟打印机:sudo apt search brother?
找到printer-driver-brlaser然后安装驱动:sudo apt install printer-driver-brlaser
?附加配置:来源
1、sudo apt-get install avahi-daemon avahi-utils
sudo systemctl start avahi-daemon 启动服务 sudo systemctl enable avahi-daemon 添加开机启动