在VirtualBox中配置Debian系统的打印机共享,可以按照以下步骤进行:
安装增强功能包(Guest Additions):
sudo apt-get update
sudo apt-get install build-essential linux-headers-$(uname -r)
cd /media/cdrom0
sudo sh VBoxLinuxAdditions.run
配置CUPS服务:
sudo apt-get install cups cups-client cups-bsd foomatic-filters
sudo /etc/init.d/cups restart
配置共享打印机:
Listen 0.0.0.0:631
Location / Order deny,allow
Allow From 192.168.1.*
sudo /etc/init.d/cups restart
挂载共享文件夹(可选):
sudo mkdir /mnt/shared
sudo mount -t vboxsf share /mnt/shared
通过以上步骤,你可以在VirtualBox中的Debian系统上配置打印机共享,并实现与局域网内其他设备的打印共享。