잉크젯 프린터 노즐 막힘 방지용 라즈베리파이 설정

최근 잉크젯 프린터를 구입하며 노즐 막힘 예방을 위해 일주일에 한번씩 자동으로 테스트 페이지를 인쇄하도록 라즈베리파이를 통해 구성해보았다.

1. cups 설치

$ sudo apt-get update
$ sudo apt-get install cups

2. cups 설정파일 수정

$ sudo vi /etc/cups/cupsd.conf
# Only listen for connections from the local machine.
-Listen localhost:631
+#Listen localhost:631
+Port 631

# Restrict access to the server...
<Location />
  Order allow,deny
+ Allow @Local
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Order allow,deny
+ Allow @Local
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
+ Allow @Local
</Location>

# Restrict access to log files...
<Location /admin/log>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
+ Allow @Local
</Location>

3. cups 재시작 및 프린터 추가

$ sudo service cups restart

http://라즈베리파이:631 로 접속하여 프린터를 추가. 다만 나의 경우 자동으로 추가되어 있어 테스트 페이지가 정상 출력되는지만 확인했음.

4. 기본 프린터로 지정 및 예약작업 추가

$ lpoptions -d 프린터명

crontab에아래 라인 추가

# 매주 금요일 오후 8:00 인쇄
0 20 * * 5 /usr/bin/lp /usr/share/cups/data/testprint

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다