在VirtualBox的Debian上配置打印机,可参考以下步骤:
sudo apt-get update
,然后sudo apt-get install cups cups-client cups-bsd foomatic-filters
,安装完成后启动服务sudo systemctl start cups
并设置开机自启sudo systemctl enable cups
。apt-get
安装对应驱动,如sudo apt-get install hpijs hplip
(适用于HP打印机),也可从官网下载驱动包手动安装。http://localhost:631
,在浏览器中按提示添加,也可打开“系统设置”中的“打印机设置”,选择“添加打印机”,根据实际情况选择本地或网络打印机进行添加。/etc/cups/cupsd.conf
文件,修改Listen
指令为0.0.0.0:631
,并设置Allow
指令来控制访问权限,保存后重启CUPS服务。