ÀÌÀü¿¡ ¿Ã¸° ¶óÁ¸®ÆÄÀ̸¦ È°¿ëÀ» Çß¾ú´Âµ¥¿ä.
´õ ½±°Ô ±¸¼ºÀÌ µÇ¾î ¶óÁ¸®ÆÄÀ̸¦ ¹ö¸®°í Ÿ¿À¹ß ³ª½º·Î ±¸¼ºÇغýÀ´Ï´Ù.
SSH ¸ðµå ÁøÇà
docker run -d -p 631:631 -v /volume1/docker/cups:/config -v /var/run/dbus:/var/run/dbus --name cupsd --net=host olbat/cupsd
http://IPÁÖ¼Ò:631
Administration
À§¿¡ ¶È°°Àº ¸Þ´º Ŭ¸¯
¾ÆÀ̵ð ºñ¹Ð¹øÈ£´Â print
Add Printer Ŭ¸¯
ÇØ´ç ÇÁ¸°ÅÍ Ãß°¡ÇÏ½Ã¸é µÇ½Ê´Ï´Ù.
´ëºÎºÐ µå¶óÀ̹ö ³ª¿Ã°Å °°½À´Ï´Ù.
docker exec -it cupsd /bin/sh
apt update
apt upgrade
apt install google-cloud-print-connector
/usr/bin/gcp-connector-util
cp gcp-cups-connector.config.json /config
chmod 777 /config/gcp-cups-connector.config.json
apt install nano
nano test.sh or vi test.sh
#!/bin/bash
case "$1" in
start)
kill -9 `ps -ef | grep 'gcp-cups-connector' | awk '{print $2}'`
rm /tmp/*.sock
/usr/bin/gcp-cups-connector -config-filename /config/gcp-cups-connecto>
;;
stop)
kill -9 `ps -ef | grep 'gcp-cups-connector' | awk '{print $2}'`
rm /tmp/*.sock
;;
*)
echo "Usage {start|stop}"
exit 1
;;
esac
exit 0
vi or nano Á¾·á ¹× ÀúÀå
cp test.sh /config
chmod 777 /config/test.sh
ÀÛ¾÷ ½ºÄÉÁÙ·¯¿¡ Ãß°¡
docker exec cupsd /config/test.sh start
¶óÁ¸®ÆÄÀÌ´Â ¾Æ·¡ ÀÖÀ¸´Ï Âü°í ÇϽñ⠹ٶø´Ï´Ù.
À©µµ¿ì¿¡¼ Ãß°¡ÇϽǷÁ¸é
http://print:print@IPÁÖ¼Ò:631/printers/ÇÁ¸°ÅÍÀ̸§
ÇÁ¸°ÅÍ Ãß°¡ÇϽǶ§ Àú ÁÖ¼Ò·Î Ãß°¡ÇÏ½Ã¸é µÇ½Ê´Ï´Ù.
ÇÁ¸°ÅÍ À̸§Àº
Printers
µé¾î°¡½Ã¸é ÀÖ½À´Ï´Ù.
Âü°í»çÇ×
------------------------------------------------------------------------------------------------------
Á¦ ±¸¼ºÀº ÀÌ·¸½À´Ï´Ù.
½Ã³î·ÎÁö Á¤Ç°¿¡ ÇÁ¸°Å͸¦ ¿¬°áÇÏ¿´°í Ÿ¿À¹ß ³ª½º·Î °øÀ¯±â´ÉÀ» ÄѼ »ç¿ëÁßÀÔ´Ï´Ù.
ÀÌ·±½ÄÀ¸·Î »ç¿ëÀ» ÇϽ÷Á¸é ÇÁ¸°ÅÍ Ãß°¡ÇϽǶ§
¼öµ¿À¸·Î Ãß°¡ÇÏ¼Å¾ß µË´Ï´Ù.
LPD/LPR Host or Printer
lpd://½Ã³îÁ¤Ç°IP:515/usbprinter1
------------------------------------------------------------------------------------------------------
ÀÌÁ¦ ¸ðµç ÄÄÇ»ÅÍ¿¡¼µµ ¿ÜºÎ¿¡¼µµ ÇÁ¸°Å͸¦ È°¿ëÇÒ¼öÀÖ½À´Ï´Ù.
°³ÀÎÀûÀ¸·Î´Â CUPS ÇÁ¸°ÅÍ ¼¹ö°¡ ¿¹Àü¿¡´Â º°·Î ÁÁÁö°¡ ¾Ê¾Ò½À´Ï´Ù.
Á¤¸» ³ë°¡´Ù¸¦ Çß¾ú´Âµ¥ Áö±ÝÀº ±×·¸Áö ¾Ê¾Æ ÆíÇÕ´Ï´Ù. ´ëºÎºÐ µå¶óÀ̹ö°¡ Áö¿øÀÌ µÇ´Ï ¸»ÀÌÁÒ.
°Å±â´Ù°¡ ±¸±Û Ŭ¶ó¿ìµå ÇÁ¸°ÅͱîÁö µÈ´Ù¸é ¿Ø¸¸ÇÑ »ç¹«½Ç »£Ä¡´Â ±¸¼ºÀÌ µÇ°í ½º¸¶Æ®Æù¿¡¼µµ µÇ´Ï Á¤¸» ÁÁÁö¿ä.
¹°·Ð ¿ÍÀÌÆÄÀÌ ¹× ³×Æ®¿öÅ© Áö¿ø ÇÁ¸°Åͱâ±â´Â ÀÌ·±°Å ÇÊ¿ä°¡ ¾ø½À´Ï´Ù. |
µµÄ¿ ¼³Ä¡ÇÏ°í putty·Î SSH Á¢¼Ó Çؼ ù ¹ø° ¸í·ÉÀÔ·Â Çߴµ¥ ¾Æ·¡¿Í °°ÀÌ ¿À·ù ¸Þ¼¼Áö°¡ ³ª¿É´Ï´Ù.
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.39/containers/create?name=cupsd: dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.
µµÄ¿´Â óÀ½À̶ó, ¾î´À ºÎºÐÀÌ ¹®Á¦Àϱî¿ä? DSM »ó¿¡¼ ÁøÇàÇÏ´Â ¹æ¹ýÀº ¾øÀ»±î¿ä?
´ëºÎºÐÀÇ ¸í·ÉÀº ·çÆ®±ÇÇÑÀ¸·Î ÇϽô°ÅÁö¿ä