以下是在CentOS中配置VirtualBox虚拟机打印机的步骤:
sudo yum install -y cups
。编辑配置文件/etc/cups/cupsd.conf
,确保Listen 0.0.0.0:631
和Allow all
,重启CUPS服务,sudo systemctl restart cups
并设置开机自启sudo systemctl enable cups
。https://<CentOS IP地址>:631
,用管理员账号登录,在CUPS管理界面选择“Add Printer”,根据打印机类型选择添加方式,输入相关信息完成添加。