프로그램 사용/CUPS2018. 12. 20. 14:18

궁금해 하던

#PDF-BANNER

Template

Show 

요녀석의 출처인가?

[링크 : https://www.cups.org/doc/spec-banner.html]


+

2018.12.21

#PDF-BANNER 를 삭제하고 출력하니 그냥 텍스트로 출력된다.


+

2018.12.21

췟 안되잖아!?

pi@raspberrypi:~/src $ cat cups_testpage

#CUPS-BANNER


# What to show on the cover page

Show job-id job-name job-originating-user-name time-at-creation


$ lp cups_testpage

lp: Unsupported document-format "application/vnd.cups-banner".


이미 깔려있고 설치한다고 해서 먼가 달라지진 않는다. cups 설정에서 필터 사용하도록 활성화 하는게 있나?

$ apt-cache search cups-filters

cups-filters - OpenPrinting CUPS Filters - Main Package 

[링크 : https://github.com/apple/cups/issues/5173]

Posted by 구차니
프로그램 사용/CUPS2018. 12. 20. 14:11

특이하게도 아래 명령은 cups 패키지 안깔아도 있네(라즈베리 기준)

아무튼 아래의 명령을 하면 외부에서도 631번 포트를 통해 cups 관리 페이지 접근이 가능해진다.


# cupsctl --remote-admin --remote-any --share-printers 

[링크 : https://askubuntu.com/questions/23936/how-do-you-administer-cups-remotely-using-the-web-interface]

'프로그램 사용 > CUPS' 카테고리의 다른 글

lpoptions 로 기본 프린터 지정하기  (0) 2018.12.21
cups banner file format  (0) 2018.12.20
리눅스에서 프린터 추가  (0) 2018.12.20
cups / lp로 출력하기  (0) 2018.12.18
cups.. 드라이버 경로 print$  (0) 2016.06.16
Posted by 구차니
프로그램 사용/CUPS2018. 12. 20. 14:04

대개 CUPS나

우분투의 프린터 프로그램을 통해서 추가하라고 하네..

일단 콘솔로 추가하는거 찾아 보니 cups를 기반으로 하는 듯..


[링크 : https://blog.ostermiller.org/ubuntu-printer-install-command-line/]

Posted by 구차니
파일방2018. 12. 20. 14:03

cairo 라이브러리로 일일이 그리기에는 귀찮네.. -_-

어떻게 보면 RTF를 직접 코딩하는 느낌?


+

2018.12.21

backend로 ps(post script)를 지원하니

이걸로 출력을 위해 장난질 칠 수 있을 듯


[링크 : https://stackoverflow.com/questions/14518004/linux-cups-printing-example-tutorial]

[링크 : https://www.cairographics.org/manual/]

'파일방' 카테고리의 다른 글

git sourcetree  (0) 2019.01.30
vworld  (0) 2019.01.13
swagger.io  (0) 2018.09.07
차트 관련 자바스크립트  (3) 2018.09.04
웹에서 회면 캡쳐하기  (2) 2018.09.03
Posted by 구차니
Linux API2018. 12. 20. 13:06

lp나 lpr 명령어의 소스코드를 보면 좋을텐데 어디서 구할 수 있으려나?

그나저나.. cups 외에는 프린터 관련 api가 없는건가?


원본링크 깨져서..

[링크 : https://wiki.linuxfoundation.org/images/1/15/Lexington06-cups-api.pdf] 구글 웹캐시

[링크 : https://refspecs.linuxfoundation.org/LSB_3.2.0/LSB-Printing/LSB-Printing/libcupsman.html]

[링크 : http://janaxelson.com/code/printer.c]


+

lpr.c로 검색하니 하나 나오긴 하네.. 얘도 cups api를 쓴 듯?

[링크 : https://opensource.apple.com/source/cups/cups-86/berkeley/lpr.c.auto.html]


+

[링크 : https://github.com/apple/cups]

'Linux API' 카테고리의 다른 글

syslog c api(?)  (0) 2021.02.17
libescp  (0) 2019.01.03
system wait stdout  (0) 2018.10.22
lirc - linux IR Remote control  (0) 2015.03.31
vaapi vdpau uvd  (6) 2015.03.26
Posted by 구차니
Programming/node.js2018. 12. 20. 10:53

실행과 정지는 node-red-start / node-red-stop 으로 하고

서비스는 따로 등록을 해주어야 하는 듯

$ node-red

node-red        node-red-log    node-red-pi     node-red-start  node-red-stop 

[링크 : https://wikidocs.net/16817]


http://localhost:1880

[링크 : https://wikidocs.net/16816]


+

node-red MQTT 사용법

[링크 : https://www.clien.net/service/board/lecture/10699234]

'Programming > node.js' 카테고리의 다른 글

node_modules include  (0) 2019.01.29
npm npx yarn bower  (0) 2019.01.28
node-red 자동시작 관련  (0) 2018.12.14
node.js express static  (0) 2018.12.11
node.js sso  (0) 2018.12.11
Posted by 구차니

걍 아이피 주면 될줄 알았는데 그건 dbname으로 인식하고

-h 옵션 뒤에 호스트 아이피나 도메인을 입력하면 된다.

$ mysql -u fooUser -p -h 44.55.66.77 

[링크 : https://support.rackspace.com/how-to/mysql-connect-to-your-database-remotely/]

Posted by 구차니
embeded/arduino(genuino)2018. 12. 19. 18:19

한동안 가지고 놀게 될(?) 부품

[링크 : https://www.dfrobot.com/wiki/index.php/PH_meter(SKU:_SEN0161)]

[링크 : https://www.dfrobot.com/wiki/index.php/Analog_pH_Meter_Pro_SKU:SEN0169]

[링크 : https://www.dfrobot.com/wiki/index.php/PH_meter_V1.1_SKU:SEN0161]


+

Reads the value from the specified analog pin. The Arduino board contains a 6 channel (7 channels on MKR boards, 8 on the Mini and Nano, 16 on the Mega), 10-bit analog to digital converter. This means that it will map input voltages between 0 and 5 volts into integer values between 0 and 1023. This yields a resolution between readings of: 5 volts / 1024 units or, .0049 volts (4.9 mV) per unit. The input range and resolution can be changed using analogReference().

It takes about 100 microseconds (0.0001 s) to read an analog input, so the maximum reading rate is about 10,000 times a second. 

[링크 : https://www.arduino.cc/reference/en/language/functions/analog-io/analogread/]

[링크 : https://www.arduino.cc/reference/en/language/functions/analog-io/analogreference/]

[링크 : https://forum.arduino.cc/index.php?topic=16585.0]


+

회로도 및 부품 데이터시트

[링크 : http://image.dfrobot.com/image/data/SEN0161/pH%20meter%20V1.0%20SCH.pdf]

[링크 : http://ww1.microchip.com/downloads/en/DeviceDoc/20001358D.pdf]

[링크 : https://pdf1.alldatasheet.co.kr/datasheet-pdf/view/177131/TI/TL081BCDG4.html]

Posted by 구차니

그냥

촉법소년으로 보호받지 못하는 강력범죄를 규정짓고

일반적인 범죄는(?) 보호해주고

일반적인 인식으로 선을 넘어서는 강력범죄에 대해서 예외로

촉법소년으로 보호해주지 않으면 간단하지 않을까?


[링크 : https://news.v.daum.net/v/20181219162419083]

'개소리 왈왈 > 정치관련 신세한탄' 카테고리의 다른 글

길빵이 늘어난 이유가..  (0) 2019.01.26
빠른생일인 사람은 좋은줄 아나보네  (2) 2019.01.02
12월 12일  (2) 2018.12.12
일본놈들은 애니라도 있지  (7) 2018.11.11
이틀 늦은 출근일기  (2) 2018.10.06
Posted by 구차니
Linux/Ubuntu2018. 12. 19. 11:04

ubuntu 16.04

/usr/share/cups/data/testpage

/usr/share/cups/data/default-testpage.pdf

[링크 : https://askubuntu.com/questions/47815/where-can-i-find-the-default-printing-test-page]



+

centos 7 에서 확인

[root@localhost data]# ll

합계 48

-rw-r--r-- 1 root root 39852  8월  3  2017 default-testpage.pdf

-rw-r--r-- 1 root root   845  8월  3  2017 default.pdf

-rw-r--r-- 1 root root   234  8월  3  2017 testprint


[root@localhost data]# file *

default-testpage.pdf: PDF document, version 1.5

default.pdf:          PDF document, version 1.5

testprint:            ASCII text 


[root@localhost data]# cat testprint

#PDF-BANNER

Template default-testpage.pdf

Show printer-name printer-info printer-location printer-make-and-model printer-driver-name printer-driver-version paper-size imageable-area job-id options time-at-creation time-at-processing


[링크: https://forums.opensuse.org/showthread.php/478727-CUPS-test-page]

'Linux > Ubuntu' 카테고리의 다른 글

우분투 터치패드 휠 클릭 흉내내기  (0) 2019.05.04
ubuntu 18.04 kvm 설치하기  (0) 2019.04.30
epson 프린터 유틸리티 관련  (0) 2018.12.18
lpstat  (0) 2018.12.18
lp lpr  (0) 2018.12.18
Posted by 구차니