使用TigerVNC在Debian上實現遠程打印,需按以下步驟操作:
安裝TigerVNC服務器
sudo apt update
sudo apt install tigervnc-standalone-server
配置VNC服務器
編輯~/.vnc/xstartup文件,添加以下內容以啟動桌面環境:
#!/bin/sh
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
賦予執行權限:chmod +x ~/.vnc/xstartup。
啟動服務并設置密碼:vncserver :1。
配置CUPS打印服務
sudo apt install cups。sudo systemctl start cups
sudo systemctl enable cups
```。
/etc/cups/cupsd.conf,添加遠程訪問權限:<Location />
Order allow,deny
Allow all
</Location>
重啟CUPS:sudo systemctl restart cups。客戶端配置
sudo apt install cups-client。http://服務器IP:631),添加網絡打印機(輸入服務器IP及打印機名稱)。測試打印
連接VNC后,使用客戶端打印功能發送任務至服務器打印機。
注意:需確保防火墻開放VNC(默認5901端口)及CUPS(631端口)通信,且CUPS配置允許遠程訪問。